>Description:
I got a message stating the length of CHAR was 0 and the configuration script
ended.
>How-To-Repeat:
Using ksh: CC=gcc CXX=gcc ./configure --prefix=/usr/local/mysql
>Fix: Unknown
>Submitter-Id: Remko de Keijzer
>Originator: Super-User
>Organization: Obragas Holding N.V.
>MySQL support: none
>Synopsis: configuration problem Source Compiling
>Severity: critical
>Priority: medium
>Category: mysql
>Class: sw-bug
>Release: mysql-3.23.35 (Source distribution)
>Environment:
System: SunOS ah21sn10 5.7 Generic_106541-11 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
Architecture: sun4
Some paths: /bin/perl /usr/local/bin/make /usr/local/bin/gcc /usr/ucb/cc
GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Compilation info: CC='gcc' CFLAGS='' CXX='gcc' CXXFLAGS='' LDFLAGS=''
LIBC:
-rw-r--r-- 1 bin bin 1693992 May 26 2000 /lib/libc.a
lrwxrwxrwx 1 root root 11 Aug 29 2000 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x 1 bin bin 1115532 May 26 2000 /lib/libc.so.1
-rw-r--r-- 1 bin bin 1693992 May 26 2000 /usr/lib/libc.a
lrwxrwxrwx 1 root root 11 Aug 29 2000 /usr/lib/libc.so -> ./libc.so.1
-rwxr-xr-x 1 bin bin 1115532 May 26 2000 /usr/lib/libc.so.1
Configure command: ./configure --with-unix-socket-path=/var/tmp/mysql.sock
--with-low-memory --with-mit-threads=yes --without-perl --enable-thread-safe-client
--with-berkeley-db --with-innobase
Perl: This is perl, version 5.005_03 built for sun4-solaris
Extract from config.log:
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for sys/vadvise.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4133: sys/vadvise.h: No such file or directory
configure: failed program was:
#line 4132 "configure"
#include "confdefs.h"
#include <sys/vadvise.h>
configure:4127: checking for sys/wait.h
configure:4127: checking for term.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for unistd.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for utime.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for sys/utime.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for termio.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for termios.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for sched.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for crypt.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for alloca.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4127: checking for sys/ioctl.h
configure:4137: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4170: checking for floor in -lm
configure:4189: gcc -o conftest conftest.c -lm 1>&5
configure:4264: checking for gethostbyname_r
configure:4292: gcc -o conftest conftest.c -lm 1>&5
Undefined first referenced
symbol in file
gethostbyname_r /var/tmp/cckSbwKL.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4269 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostbyname_r(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gethostbyname_r();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
choke me
#else
gethostbyname_r();
#endif
; return 0; }
configure:4311: checking for gethostbyname_r in -lnsl_r
configure:4330: gcc -o conftest conftest.c -lnsl_r -lm 1>&5
ld: fatal: library -lnsl_r: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4319 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gethostbyname_r();
int main() {
gethostbyname_r()
; return 0; }
configure:4356: checking for gethostbyname_r in -lnsl
configure:4375: gcc -o conftest conftest.c -lnsl -lm 1>&5
configure:4407: checking for setsockopt
configure:4435: gcc -o conftest conftest.c -lnsl -lm 1>&5
Undefined first referenced
symbol in file
setsockopt /var/tmp/ccV2HKCf.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4412 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char setsockopt(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char setsockopt();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
choke me
#else
setsockopt();
#endif
; return 0; }
configure:4453: checking for setsockopt in -lsocket
configure:4472: gcc -o conftest conftest.c -lsocket -lnsl -lm 1>&5
configure:4502: checking for yp_get_default_domain
configure:4530: gcc -o conftest conftest.c -lsocket -lnsl -lm 1>&5
configure:4597: checking for p2open
configure:4625: gcc -o conftest conftest.c -lsocket -lnsl -lm 1>&5
Undefined first referenced
symbol in file
p2open /var/tmp/ccI6oxIk.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4602 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char p2open(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char p2open();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_p2open) || defined (__stub___p2open)
choke me
#else
p2open();
#endif
; return 0; }
configure:4643: checking for p2open in -lgen
configure:4662: gcc -o conftest conftest.c -lgen -lsocket -lnsl -lm 1>&5
configure:4693: checking for bind
configure:4721: gcc -o conftest conftest.c -lgen -lsocket -lnsl -lm 1>&5
configure:4789: checking for crypt in -lcrypt
configure:4808: gcc -o conftest conftest.c -lcrypt -lgen -lsocket -lnsl -lm 1>&5
configure:4836: checking for crypt
configure:4864: gcc -o conftest conftest.c -lcrypt -lgen -lsocket -lnsl -lm 1>&5
configure:4892: checking if libz with compress
configure:4909: gcc -o conftest conftest.c -lz -lcrypt -lgen -lsocket -lnsl -lm
1>&5
configure:5206: checking for int8
configure:5233: gcc -o conftest conftest.c -lz -lcrypt -lgen -lsocket -lnsl -lm
1>&5
configure: In function `main':
configure:5227: `int8' undeclared (first use in this function)
configure:5227: (Each undeclared identifier is reported only once
configure:5227: for each function it appears in.)
configure:5227: parse error before `i'
configure: failed program was:
#line 5211 "configure"
#include "confdefs.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
int main()
{
int8 i;
return 0;
}
configure:5374: checking LinuxThreads
configure:5415: checking DEC threads
configure:5428: checking DEC 3.2 threads
configure:5457: checking SCO threads
configure:5558: checking SCO UnixWare7 native threads
configure:5602: checking Siemens threads
configure:5631: checking Solaris threads
configure:5643: checking named thread libs:
configure:5767: checking for strtok_r in -lpthread
configure:5786: gcc -o conftest -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c -lpthread
-lz -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lthread 1>&5
configure:5927: checking for strtok_r
configure:5955: gcc -o conftest -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c -lz -lcrypt
-lgen -lsocket -lnsl -lm -lpthread -lthread 1>&5
configure:5984: checking for dlopen in -ldl
configure:6003: gcc -o conftest -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c -ldl -lz
-lcrypt -lgen -lsocket -lnsl -lm -lpthread -lthread 1>&5
configure:6033: checking for restartable system calls
configure:6059: gcc -o conftest -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c -ldl -lz
-lcrypt -lgen -lsocket -lnsl -lm -lpthread -lthread 1>&5
configure: In function `main':
configure:6051: warning: passing arg 2 of `signal' from incompatible pointer type
configure: failed program was:
#line 6041 "configure"
#include "confdefs.h"
/* Exit 0 (true) if wait returns something other than -1,
i.e. the pid of the child, which means that wait was restarted
after getting the signal. */
#include <sys/types.h>
#include <signal.h>
ucatch (isig) { }
main () {
int i = fork (), status;
if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
signal (SIGINT, ucatch);
status = wait(&i);
if (status == -1) wait(&i);
exit (status == -1);
}
configure:6188: checking need of special linking flags
configure:6198: checking for working const
configure:6252: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c 1>&5
configure:6273: checking for inline
configure:6287: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c 1>&5
configure:6313: checking for off_t
configure:6346: checking for st_rdev in struct stat
configure:6359: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c 1>&5
configure:6380: checking whether time.h and sys/time.h may both be included
configure:6394: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c 1>&5
configure:6415: checking whether struct tm is in sys/time.h or time.h
configure:6428: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c 1>&5
configure:6451: checking size of char
configure:6470: gcc -o conftest -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/home/kzr770/mysql-3.23.35/include -DHAVE_RWLOCK_T conftest.c -ldl -lz
-lcrypt -lgen -lsocket -lnsl -lm -lpthread -lthread 1>&5
configure: failed program was:
#line 6459 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(char));
exit(0);
}
#
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php