ports/132229: Can't install mysql51-server on freebsd 7.1-STABLE from ports

Dmitriy davaeron at gmail.com
Sun Mar 1 19:00:02 UTC 2009


>Number:         132229
>Category:       ports
>Synopsis:       Can't install mysql51-server on freebsd 7.1-STABLE from ports
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 01 19:00:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitriy
>Release:        7.1
>Organization:
JSC "Ionit-telecom"
>Environment:
FreeBSD noname.ionitcom.ru 7.1-STABLE FreeBSD 7.1-STABLE #1: Sat Feb 28 02:53:23 MSK 2009     root@:/usr/obj/usr/src/sys/NONAME  i386
>Description:
Configure error follows:

checking for ulong... no
checking for in_addr_t... yes
checking for fp_except... no
configure: WARNING: Adding fix for interrupted reads
checking "named thread libs:"... "-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r -llstdc++ -llsupc++"
checking for strtok_r in -lpthread... yes
checking for strtok_r... yes
checking for restartable system calls... Segmentation fault (core dumped)
no
checking whether the compiler provides atomic builtins... Segmentation fault (core dumped)
no
checking "need of special linking flags"... "none"
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for struct stat.st_rdev... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking needs mysys_new helpers... no
checking size of char... Segmentation fault (core dumped)
0
configure: error: No size for char type.
A likely cause for this could be that there isn't any
static libraries installed. You can verify this by checking if you have libm.a
in /lib, /usr/lib or some other standard place.  If this is the problem,
install the static libraries and try again.  If this isn't the problem,
examine config.log for possible errors.  If you want to report this, use
'scripts/mysqlbug' and include at least the last 20 rows from config.log!
===>  Script "configure" failed unexpectedly.
Please report the problem to ale at FreeBSD.org [maintainer] and attach the
"/usr/ports/databases/mysql51-server/work/mysql-5.1.30/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/databases/mysql51-server.

ls /var/db/pkg output:
apache-2.2.11_3                 linuxthreads-2.2.3_23
autoconf-2.62                   m4-1.4.12,1
autoconf-wrapper-20071109       mc-4.6.2
automake-1.9.6_3                memcached-1.2.6_1
automake-wrapper-20071109       mod_rpaf-ap2-0.6
cvsup-without-gui-16.1h_4       mpd-5.2
expat-2.0.1                     mysql-client-5.1.30
ezm3-1.2_1                      nginx-0.6.35
gamin-0.1.10                    p5-gettext-1.05_2
gettext-0.17_1                  pcre-7.8
gio-fam-backend-2.18.4          pecl-APC-3.0.19
glib-2.18.4                     pecl-memcache-3.0.3
gmake-3.81_3                    perl-5.8.9_1
help2man-1.36.4_2               php5-5.2.8
libevent-1.4.9                  php5-session-5.2.8
libiconv-1.11_1                 php5-zlib-5.2.8
libpdel-0.5.3_4                 pkg-config-0.23_1
libslang2-2.1.4_1               png-1.2.35
libtool-1.5.26                  python25-2.5.4_1
libxml2-2.7.3


make.conf:
DEFAULT_MYSQL_VER=51

# for server 5.1
.if ${.CURDIR} == ${PORTSDIR}/databases/mysql51-server
WITH_CHARSET=utf8
WITH_XCHARSET=all
WITH_COLLATION=utf8_bin
WITH_LINUXTHREADS=yes
WITH_PROC_SCOPE_PTH=yes
BUILD_OPTIMIZED=yes
BUILD_STATIC=yes
WITHOUT_INNODB=yes
WITH_FAST_MUTEXES=yes
.endif

CFLAGS= -O2 -pipe -mtune=pentium4 -mno-3dnow -mmmx -msse -msse2 -mfpmath=sse

The failed program was:
 /* confdefs.h.  */
 #define PACKAGE_NAME ""
 #define PACKAGE_TARNAME ""
 #define PACKAGE_VERSION ""
 #define PACKAGE_STRING ""
 #define PACKAGE_BUGREPORT ""
 #define PACKAGE "mysql"
 #define VERSION "5.1.30"
 #define DEFINE_ALL_CHARACTER_SETS 1
 #define HAVE_CHARSET_utf8 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_latin1 1
 #define HAVE_CHARSET_utf8 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_armscii8 1
 #define HAVE_CHARSET_ascii 1
 #define HAVE_CHARSET_big5 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_cp1250 1
 #define HAVE_CHARSET_cp1251 1
 #define HAVE_CHARSET_cp1256 1
 #define HAVE_CHARSET_cp1257 1
 #define HAVE_CHARSET_cp850 1
 #define HAVE_CHARSET_cp852 1
 #define HAVE_CHARSET_cp866 1
 #define HAVE_CHARSET_cp932 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_dec8 1
 #define HAVE_CHARSET_eucjpms 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_euckr 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_gb2312 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_gbk 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_geostd8 1
 #define HAVE_CHARSET_greek 1
 #define HAVE_CHARSET_hebrew 1
 #define HAVE_CHARSET_hp8 1
 #define HAVE_CHARSET_keybcs2 1
 #define HAVE_CHARSET_koi8r 1
 #define HAVE_CHARSET_koi8u 1
 #define HAVE_CHARSET_latin1 1
 #define HAVE_CHARSET_latin2 1
 #define HAVE_CHARSET_latin5 1
 #define HAVE_CHARSET_latin7 1
 #define HAVE_CHARSET_macce 1
 #define HAVE_CHARSET_macroman 1
 #define HAVE_CHARSET_sjis 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_swe7 1
 #define HAVE_CHARSET_tis620 1
 #define HAVE_CHARSET_ucs2 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_ujis 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_utf8 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define MYSQL_DEFAULT_CHARSET_NAME "utf8"
 #define MYSQL_DEFAULT_COLLATION_NAME "utf8_bin"
 #define HAVE_UCA_COLLATIONS 1
 #define PROTOCOL_VERSION 10
 #define DOT_FRM_VERSION 6
 #define SYSTEM_TYPE "portbld-freebsd7.1"
 #define MACHINE_TYPE "i386"
 #define STDC_HEADERS 1
 #define HAVE_SYS_TYPES_H 1
 #define HAVE_SYS_STAT_H 1
 #define HAVE_STDLIB_H 1
 #define HAVE_STRING_H 1
 #define HAVE_MEMORY_H 1
 #define HAVE_STRINGS_H 1
 #define HAVE_INTTYPES_H 1
 #define HAVE_STDINT_H 1
 #define HAVE_UNISTD_H 1
 #define HAVE_DLFCN_H 1
 #define SPRINTF_RETURNS_INT 1
 #define HAVE_EXPLICIT_TEMPLATE_INSTANTIATION 1
 #define COMMUNITY_SERVER 1
 #define ENABLED_PROFILING 1
 #define HAVE_DIRENT_H 1
 #define STDC_HEADERS 1
 #define HAVE_SYS_WAIT_H 1
 #define HAVE_FCNTL_H 1
 #define HAVE_FLOAT_H 1
 #define HAVE_FLOATINGPOINT_H 1
 #define HAVE_IEEEFP_H 1
 #define HAVE_LIMITS_H 1
 #define HAVE_MEMORY_H 1
 #define HAVE_PWD_H 1
 #define HAVE_STDLIB_H 1
 #define HAVE_STDDEF_H 1
 #define HAVE_STRINGS_H 1
 #define HAVE_STRING_H 1
 #define HAVE_SYS_MMAN_H 1
 #define HAVE_SYS_SOCKET_H 1
 #define HAVE_NETINET_IN_H 1
 #define HAVE_ARPA_INET_H 1
 #define HAVE_SYS_TIMEB_H 1
 #define HAVE_SYS_TYPES_H 1
 #define HAVE_SYS_UN_H 1
 #define HAVE_SYS_WAIT_H 1
 #define HAVE_TERM_H 1
 #define HAVE_UNISTD_H 1
 #define HAVE_UTIME_H 1
 #define HAVE_TERMIOS_H 1
 #define HAVE_SCHED_H 1
 #define HAVE_SYS_IOCTL_H 1
 #define HAVE_SYS_MALLOC_H 1
 #define HAVE_SYS_IPC_H 1
 #define HAVE_SYS_SHM_H 1
 #define HAVE_SYS_RESOURCE_H 1
 #define HAVE_SYS_PARAM_H 1
 #define HAVE_IEEEFP_H 1
 #define HAVE_LIBM 1
 #define HAVE_CRYPT 1
 #define HAVE_COMPRESS 1
 #define LIBWRAP 1
 #define HAVE_LIBWRAP 1
 #define HAVE_UINT 1
 #define HAVE_IN_ADDR_T 1
 #define HAVE_LIBPTHREAD 1
 #define HAVE_STRTOK_R 1
 #define HAVE_DLOPEN 1
 #define HAVE_DLERROR 1
 #define DBUG_OFF 1
 #define MY_PTHREAD_FASTMUTEX 1
 #define HAVE_STRUCT_STAT_ST_RDEV 1
 #define HAVE_ST_RDEV 1
 #define TIME_WITH_SYS_TIME 1
 /* end confdefs.h.  */
 #include <stdio.h>
 #ifdef HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif
 #ifdef STDC_HEADERS
 # include <stdlib.h>
 # include <stddef.h>
 #else
 # ifdef HAVE_STDLIB_H
 #  include <stdlib.h>
 # endif
 #endif
 #ifdef HAVE_STRING_H
 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 #  include <memory.h>
 # endif
 # include <string.h>
 #endif
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
 #endif
 #ifdef HAVE_INTTYPES_H
 # include <inttypes.h>
 #endif
 #ifdef HAVE_STDINT_H
 # include <stdint.h>
 #endif
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 static long int longval () { return (long int) (sizeof (char)); }
 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
 #include <stdio.h>
 #include <stdlib.h>
 int
 main ()
 {

   FILE *f = fopen ("conftest.val", "w");
   if (! f)
     return 1;
   if (((long int) (sizeof (char))) < 0)
     {
       long int i = longval ();
       if (i != ((long int) (sizeof (char))))
       return 1;
       fprintf (f, "%ld", i);
     }
   else
     {
       unsigned long int i = ulongval ();
       if (i != ((long int) (sizeof (char))))
       return 1;
       fprintf (f, "%lu", i);
     }
   /* Do not output a trailing newline, as this causes \r\n confusion
      on some platforms.  */
   return ferror (f) || fclose (f) != 0;

   ;
   return 0;
 }

Compile string:
cc -o conftest  -O2 -pipe -mtune=pentium4 -mno-3dnow -mmmx -msse -msse2 -mfpmath=sse -march=pentium4 -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -fno-strict-aliasing conftest.c -DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r -llstdc++ -llsupc++ -lcrypt -lm -DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r -llstdc++ -llsupc++

Output:
Segmentation fault (core dumped)
>How-To-Repeat:
cd /usr/ports/database/mysql51-server
make

or

touch conftest.c
add this to conftest.c:
 /* confdefs.h.  */
 #define PACKAGE_NAME ""
 #define PACKAGE_TARNAME ""
 #define PACKAGE_VERSION ""
 #define PACKAGE_STRING ""
 #define PACKAGE_BUGREPORT ""
 #define PACKAGE "mysql"
 #define VERSION "5.1.30"
 #define DEFINE_ALL_CHARACTER_SETS 1
 #define HAVE_CHARSET_utf8 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_latin1 1
 #define HAVE_CHARSET_utf8 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_armscii8 1
 #define HAVE_CHARSET_ascii 1
 #define HAVE_CHARSET_big5 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_cp1250 1
 #define HAVE_CHARSET_cp1251 1
 #define HAVE_CHARSET_cp1256 1
 #define HAVE_CHARSET_cp1257 1
 #define HAVE_CHARSET_cp850 1
 #define HAVE_CHARSET_cp852 1
 #define HAVE_CHARSET_cp866 1
 #define HAVE_CHARSET_cp932 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_dec8 1
 #define HAVE_CHARSET_eucjpms 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_euckr 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_gb2312 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_gbk 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_geostd8 1
 #define HAVE_CHARSET_greek 1
 #define HAVE_CHARSET_hebrew 1
 #define HAVE_CHARSET_hp8 1
 #define HAVE_CHARSET_keybcs2 1
 #define HAVE_CHARSET_koi8r 1
 #define HAVE_CHARSET_koi8u 1
 #define HAVE_CHARSET_latin1 1
 #define HAVE_CHARSET_latin2 1
 #define HAVE_CHARSET_latin5 1
 #define HAVE_CHARSET_latin7 1
 #define HAVE_CHARSET_macce 1
 #define HAVE_CHARSET_macroman 1
 #define HAVE_CHARSET_sjis 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_swe7 1
 #define HAVE_CHARSET_tis620 1
 #define HAVE_CHARSET_ucs2 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_ujis 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define HAVE_CHARSET_utf8 1
 #define USE_MB 1
 #define USE_MB_IDENT 1
 #define MYSQL_DEFAULT_CHARSET_NAME "utf8"
 #define MYSQL_DEFAULT_COLLATION_NAME "utf8_bin"
 #define HAVE_UCA_COLLATIONS 1
 #define PROTOCOL_VERSION 10
 #define DOT_FRM_VERSION 6
 #define SYSTEM_TYPE "portbld-freebsd7.1"
 #define MACHINE_TYPE "i386"
 #define STDC_HEADERS 1
 #define HAVE_SYS_TYPES_H 1
 #define HAVE_SYS_STAT_H 1
 #define HAVE_STDLIB_H 1
 #define HAVE_STRING_H 1
 #define HAVE_MEMORY_H 1
 #define HAVE_STRINGS_H 1
 #define HAVE_INTTYPES_H 1
 #define HAVE_STDINT_H 1
 #define HAVE_UNISTD_H 1
 #define HAVE_DLFCN_H 1
 #define SPRINTF_RETURNS_INT 1
 #define HAVE_EXPLICIT_TEMPLATE_INSTANTIATION 1
 #define COMMUNITY_SERVER 1
 #define ENABLED_PROFILING 1
 #define HAVE_DIRENT_H 1
 #define STDC_HEADERS 1
 #define HAVE_SYS_WAIT_H 1
 #define HAVE_FCNTL_H 1
 #define HAVE_FLOAT_H 1
 #define HAVE_FLOATINGPOINT_H 1
 #define HAVE_IEEEFP_H 1
 #define HAVE_LIMITS_H 1
 #define HAVE_MEMORY_H 1
 #define HAVE_PWD_H 1
 #define HAVE_STDLIB_H 1
 #define HAVE_STDDEF_H 1
 #define HAVE_STRINGS_H 1
 #define HAVE_STRING_H 1
 #define HAVE_SYS_MMAN_H 1
 #define HAVE_SYS_SOCKET_H 1
 #define HAVE_NETINET_IN_H 1
 #define HAVE_ARPA_INET_H 1
 #define HAVE_SYS_TIMEB_H 1
 #define HAVE_SYS_TYPES_H 1
 #define HAVE_SYS_UN_H 1
 #define HAVE_SYS_WAIT_H 1
 #define HAVE_TERM_H 1
 #define HAVE_UNISTD_H 1
 #define HAVE_UTIME_H 1
 #define HAVE_TERMIOS_H 1
 #define HAVE_SCHED_H 1
 #define HAVE_SYS_IOCTL_H 1
 #define HAVE_SYS_MALLOC_H 1
 #define HAVE_SYS_IPC_H 1
 #define HAVE_SYS_SHM_H 1
 #define HAVE_SYS_RESOURCE_H 1
 #define HAVE_SYS_PARAM_H 1
 #define HAVE_IEEEFP_H 1
 #define HAVE_LIBM 1
 #define HAVE_CRYPT 1
 #define HAVE_COMPRESS 1
 #define LIBWRAP 1
 #define HAVE_LIBWRAP 1
 #define HAVE_UINT 1
 #define HAVE_IN_ADDR_T 1
 #define HAVE_LIBPTHREAD 1
 #define HAVE_STRTOK_R 1
 #define HAVE_DLOPEN 1
 #define HAVE_DLERROR 1
 #define DBUG_OFF 1
 #define MY_PTHREAD_FASTMUTEX 1
 #define HAVE_STRUCT_STAT_ST_RDEV 1
 #define HAVE_ST_RDEV 1
 #define TIME_WITH_SYS_TIME 1
 /* end confdefs.h.  */
 #include <stdio.h>
 #ifdef HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif
 #ifdef STDC_HEADERS
 # include <stdlib.h>
 # include <stddef.h>
 #else
 # ifdef HAVE_STDLIB_H
 #  include <stdlib.h>
 # endif
 #endif
 #ifdef HAVE_STRING_H
 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 #  include <memory.h>
 # endif
 # include <string.h>
 #endif
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
 #endif
 #ifdef HAVE_INTTYPES_H
 # include <inttypes.h>
 #endif
 #ifdef HAVE_STDINT_H
 # include <stdint.h>
 #endif
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 static long int longval () { return (long int) (sizeof (char)); }
 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
 #include <stdio.h>
 #include <stdlib.h>
 int
 main ()
 {

   FILE *f = fopen ("conftest.val", "w");
   if (! f)
     return 1;
   if (((long int) (sizeof (char))) < 0)
     {
       long int i = longval ();
       if (i != ((long int) (sizeof (char))))
       return 1;
       fprintf (f, "%ld", i);
     }
   else
     {
       unsigned long int i = ulongval ();
       if (i != ((long int) (sizeof (char))))
       return 1;
       fprintf (f, "%lu", i);
     }
   /* Do not output a trailing newline, as this causes \r\n confusion
      on some platforms.  */
   return ferror (f) || fclose (f) != 0;

   ;
   return 0;
 }

And compile with:
cc -o conftest  -O2 -pipe -mtune=pentium4 -mno-3dnow -mmmx -msse -msse2 -mfpmath=sse -march=pentium4 -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -fno-strict-aliasing conftest.c -DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r -llstdc++ -llsupc++ -lcrypt -lm -DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r -llstdc++ -llsupc++

run:
./conftest

Output:
Segmentation fault (core dumped)
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list