Below are what I believe to be the relevant lines from the config.log...

> > Running Debian, 2.4.19pre1 kernel, gcc 3.0.4, glib-2.2.2 with linuxthreads
> > and the mysql-supplied linuxthreads patch.

After re-reading my original post as well, I realize that I forgot to mention that I 
compiled the glibc libraries with gcc 2.95; configure would fail saying that gcc 3.0.4 
was a bad compiler, and I'm not good enough with autoconf to hack the check out of the 
configure script (despite several attempts to do so). I don't know if that is 
information worth noting or not; but it can't hurt I suppose.

Thanks again.

configure:12730: checking style of gethost* routines
configure:12773: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
 -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc >&5
gcc: installation problem, cannot exec `cc1plus': No such file or directory
configure:12776: $? = 1
configure: failed program was:
#line 12750 "configure"
#include "confdefs.h"
#undef inline
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
#define _REENTRANT
#endif
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
int
main ()
{
int skr;
 struct hostent *foo = gethostbyaddr_r((const char *) 0,
  0, 0, (struct hostent *) 0, (char *) NULL,  0, &skr); return (foo == 0);
  ;
  return 0;
}
configure:12792: result: other
configure:12813: checking style of gethostname_r routines
configure:12854: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
 -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc >&5
gcc: installation problem, cannot exec `cc1plus': No such file or directory
configure:12857: $? = 1
configure: failed program was:
#line 12830 "configure"
#include "confdefs.h"
#undef inline
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
#define _REENTRANT
#endif
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
int
main ()
{
int skr;

 skr = gethostbyname_r((const char *) 0,
  (struct hostent*) 0, (char*) 0, 0, (struct hostent **) 0, &skr);
  ;
  return 0;
}
configure:12873: result: other
configure:12892: checking 3 argument to gethostname_r routines
configure:12932: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
 -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc >&5
gcc: installation problem, cannot exec `cc1plus': No such file or directory
configure:12935: $? = 1
configure: failed program was:
#line 12909 "configure"
#include "confdefs.h"
#undef inline
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
#define _REENTRANT
#endif
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
int
main ()
{
int skr;

 skr = gethostbyname_r((const char *) 0, (struct hostent*) 0, (struct hostent_data*) 
0);
  ;
  return 0;
}


On Sat, Jun 22, 2002 at 03:09:15AM +0200, Jocelyn Fournier wrote:
> Hi,
> 
> It seems to be linked with the gethostname_r detection
> 
> "checking style of gethostname_r routines... other"
> 
> I think you should have the following line instead :
> 
> checking style of gethostname_r routines... glibc2
> 
> Can you take a look at the config.log file and tell us what is wrong ?
> 
> (in my case I have the following lines  :
> 
> configure:15261: checking style of gethostname_r routines
> configure:15309:
> gcc -c -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcommen
> t -W -Wchar-subscripts -Wformat -Wparen
> theses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wre
> order -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-con
> structors -fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-poi
> nter  -fno-implicit-templates -fno-exceptions -fno-rtti
> -DUSE_MYSYS_NEW -Werror  conftest.cc >&5
> configure:15312: $? = 0
> configure:15315: test -s conftest.o
> configure:15318: $? = 0
> configure:15328: result: glibc2
> 
> )
> 
> Regards,
>   Jocelyn
> 
> ----- Original Message -----
> From: "Shane Allen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 22, 2002 3:05 AM
> Subject: Build errors with 3.23.51
> 
> 
> > Running Debian, 2.4.19pre1 kernel, gcc 3.0.4, glib-2.2.2 with linuxthreads
> and the mysql-supplied linuxthreads patch.
> >
> > I'm using the following configure line:
> >
> > CFLAGS="-O3 -march=pentiumpro" CXX=gcc
> CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti"
> /configure  --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-sta
> tic --enable-thread-safe-client --with-other-libc=/usr/local/mysql-glibc-2.2
> .2
> >
> > I have not successfully built against this glibc yet, however I did not
> receive any unusual warnings, and no errors occured during any part of the
> build.
> >
> > Following is the output of the configure:
> > checking build system type... i686-pc-linux-gnu
> > checking host system type... i686-pc-linux-gnu
> > checking target system type... i686-pc-linux-gnu
> > checking for a BSD compatible install... /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking whether make sets ${MAKE}... yes
> > checking for working aclocal... missing
> > checking for working autoconf... missing
> > checking for working automake... missing
> > checking for working autoheader... missing
> > checking for working makeinfo... found
> > checking whether to enable maintainer-specific portions of Makefiles... no
> > checking whether build environment is sane... yes
> > checking whether make sets ${MAKE}... (cached) yes
> > checking for mawk... mawk
> > checking for gcc... gcc
> > checking for C compiler default output... a.out
> > checking whether the C compiler works... yes
> > checking whether we are cross compiling... no
> > checking for executable suffix...
> > checking for object suffix... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking whether we are using the GNU C++ compiler... no
> > checking whether gcc accepts -g... no
> > checking how to run the C preprocessor... gcc -E
> > checking "C Compiler version"... "gcc 3.0.4"
> > checking "C++ compiler version"... "gcc 3.0.4"
> > checking for ranlib... ranlib
> > checking for ld used by GCC... /usr/bin/ld
> > checking if the linker (/usr/bin/ld) is GNU ld... yes
> > checking for BSD-compatible nm... /usr/bin/nm -B
> > checking whether ln -s works... yes
> > loading cache /dev/null within ltconfig
> > checking for object suffix... o
> > checking for executable suffix... no
> > checking for gcc option to produce PIC... -fPIC
> > checking if gcc PIC flag -fPIC works... yes
> > checking if gcc supports -c -o file.o... yes
> > checking if gcc supports -c -o file.lo... yes
> > checking if gcc supports -fno-rtti -fno-exceptions ... yes
> > checking if gcc static flag -static works... -static
> > checking if the linker (/usr/bin/ld) is GNU ld... yes
> > checking whether the linker (/usr/bin/ld) supports shared libraries... yes
> > checking command to parse /usr/bin/nm -B output... ok
> > checking how to hardcode library paths into programs... immediate
> > checking for /usr/bin/ld option to reload object files... -r
> > checking dynamic linker characteristics... Linux ld.so
> > checking if libtool supports shared libraries... yes
> > checking whether to build shared libraries... yes
> > checking whether to build static libraries... yes
> > checking for objdir... .libs
> > creating libtool
> > updating cache /dev/null
> > checking for a BSD compatible install... /usr/bin/install -c
> > checking for bison... bison -y
> > checking for pdftex... manual.pdf
> > checking "return type of sprintf"... "int"
> > checking for uname... /bin/uname
> > checking operating system... Linux
> > checking "if we should use 'skip-locking' as default for linux-gnu"...
> "yes"
> > checking for ln... /bin/ln
> > checking for ln... /bin/ln
> > checking for mv... /bin/mv
> > checking for rm... /bin/rm
> > checking for cp... /bin/cp
> > checking for sed... /bin/sed
> > checking for cmp... /usr/bin/cmp
> > checking for chmod... /bin/chmod
> > checking for hostname... /bin/hostname
> > checking for gnutar... no
> > checking for gtar... no
> > checking for tar... tar
> > checking for perl... /usr/bin/perl
> > checking for ps... /bin/ps
> > checking "how to check if pid exists"... "/bin/ps p $$PID | grep mysqld >
> /dev/null"
> > checking for kill... /bin/kill
> > checking "for kill switches"... "/bin/kill -0 $$PID > /dev/null 2>
> /dev/null"
> > checking for gcc option to accept ANSI C...
> > checking if we should use assembler functions... no
> > checking if we should use RAID... no
> > checking if we should should enable LOAD DATA LOCAL by default... no
> > checking for getconf... getconf
> > checking for CFLAGS value to request large file
> support... -D_FILE_OFFSET_BITS=64
> > checking for LDFLAGS value to request large file support...
> > checking for LIBS value to request large file support...
> > checking for _FILE_OFFSET_BITS... 64
> > checking for _LARGEFILE_SOURCE... no
> > checking for _LARGE_FILES... no
> > checking for ANSI C header files... yes
> > checking for sys/types.h... yes
> > checking for sys/stat.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for memory.h... yes
> > checking for strings.h... yes
> > checking for inttypes.h... yes
> > checking for stdint.h... yes
> > checking for unistd.h... yes
> > checking for size_t... yes
> > checking for dirent.h that defines DIR... yes
> > checking for opendir in -ldir... no
> > checking for ANSI C header files... (cached) yes
> > checking for sys/wait.h that is POSIX.1 compatible... yes
> > checking for fcntl.h... yes
> > checking for float.h... yes
> > checking for floatingpoint.h... no
> > checking for ieeefp.h... no
> > checking for limits.h... yes
> > checking for memory.h... (cached) yes
> > checking for pwd.h... yes
> > checking for select.h... no
> > checking for stdlib.h... (cached) yes
> > checking for stddef.h... yes
> > checking for strings.h... (cached) yes
> > checking for string.h... (cached) yes
> > checking for synch.h... no
> > checking for sys/mman.h... yes
> > checking for sys/socket.h... yes
> > checking for netinet/in.h... yes
> > checking for arpa/inet.h... yes
> > checking for sys/timeb.h... yes
> > checking for sys/types.h... (cached) yes
> > checking for sys/un.h... yes
> > checking for sys/vadvise.h... no
> > checking for sys/wait.h... (cached) yes
> > checking for term.h... yes
> > checking for unistd.h... (cached) yes
> > checking for utime.h... yes
> > checking for sys/utime.h... no
> > checking for termio.h... yes
> > checking for termios.h... yes
> > checking for sched.h... yes
> > checking for crypt.h... yes
> > checking for alloca.h... yes
> > checking for sys/ioctl.h... yes
> > checking for floor in -lm... yes
> > checking for gethostbyname_r in -lnsl_r... no
> > checking for gethostbyname_r in -lnsl... yes
> > checking for gethostbyname_r... yes
> > checking for setsockopt... yes
> > checking for yp_get_default_domain... yes
> > checking for p2open... no
> > checking for p2open in -lgen... no
> > checking for bind... yes
> > checking for crypt in -lcrypt... yes
> > checking for crypt... yes
> > checking if libz with compress... yes
> > checking for atomic operations... atomic_add atomic_sub
> > checking for int8... no
> > checking "LinuxThreads"... "Found"
> > checking "named thread libs:"... "-lpthread"
> > checking for strtok_r in -lpthread... yes
> > checking for strtok_r... yes
> > checking for dlopen in -ldl... yes
> > checking for unistd.h... (cached) yes
> > checking for restartable system calls... yes
> > checking "need of special linking flags"... "none"
> > checking for gcc option to accept ANSI C... none needed
> > 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 for char... yes
> > checking size of char... 1
> > checking for int... yes
> > checking size of int... 4
> > checking for long... yes
> > checking size of long... 4
> > checking for long long... yes
> > checking size of long long... 8
> > checking size of off_t... 8
> > checking whether byte ordering is bigendian... no
> > checking base type of last arg to accept... int
> > checking stack direction for C alloca... -1
> > checking for working alloca.h... (cached) yes
> > checking for alloca... yes
> > checking if struct timespec has a ts_sec member... no
> > checking if we have tzname variable... yes
> > checking for type ulong... yes
> > checking for type uchar... no
> > checking for type uint... yes
> > checking for type fp_except... no
> > checking if gcc supports bool types... no
> > checking if conversion of longlong to float works... yes
> > checking if pthread_yield takes zero arguments... yes
> > checking if pthread_yield takes 1 argument... no
> > checking for varargs.h... yes
> > checking for stdarg.h... yes
> > checking for dirent.h... yes
> > checking for locale.h... yes
> > checking for ndir.h... no
> > checking for sys/dir.h... yes
> > checking for sys/file.h... yes
> > checking for sys/ndir.h... no
> > checking for sys/ptem.h... no
> > checking for sys/pte.h... no
> > checking for sys/select.h... yes
> > checking for sys/stream.h... no
> > checking for sys/mman.h... (cached) yes
> > checking for curses.h... yes
> > checking for termcap.h... yes
> > checking for termio.h... (cached) yes
> > checking for termbits.h... no
> > checking for asm/termbits.h... yes
> > checking for grp.h... yes
> > checking for paths.h... yes
> > checking for lstat... yes
> > checking for putenv... yes
> > checking for select... yes
> > checking for setenv... yes
> > checking for setlocale... yes
> > checking for strcoll... yes
> > checking for tcgetattr... yes
> > checking whether stat file-mode macros are broken... no
> > checking return type of signal handlers... void
> > checking for type of signal functions... posix
> > checking whether programs are able to redeclare getpw functions... yes
> > checking for TIOCGWINSZ in sys/ioctl.h... yes
> > checking for FIONREAD in sys/ioctl.h... yes
> > checking for TIOCSTAT in sys/ioctl.h... no
> > checking if struct dirent has a d_ino member... yes
> > checking whether signal handlers are of type void... yes
> > checking for tgetent in -lncurses... yes
> > checking for termcap functions library... -lncurses
> > checking for stdlib.h... (cached) yes
> > checking for unistd.h... (cached) yes
> > checking for getpagesize... yes
> > checking for working mmap... yes
> > checking return type of signal handlers... (cached) void
> > checking return type of qsort... void
> > checking whether utime accepts a null argument... yes
> > checking for vprintf... yes
> > checking for _doprnt... no
> > checking for alarm... yes
> > checking for bmove... no
> > checking for chsize... no
> > checking for ftruncate... yes
> > checking for rint... yes
> > checking for finite... yes
> > checking for isnan... yes
> > checking for fpsetmask... no
> > checking for fpresetsticky... no
> > checking for cuserid... yes
> > checking for fcntl... yes
> > checking for fconvert... no
> > checking for poll... yes
> > checking for getrusage... yes
> > checking for getpwuid... yes
> > checking for getcwd... yes
> > checking for getrlimit... yes
> > checking for getwd... yes
> > checking for index... yes
> > checking for stpcpy... yes
> > checking for locking... no
> > checking for longjmp... yes
> > checking for perror... yes
> > checking for pread... yes
> > checking for realpath... yes
> > checking for readlink... yes
> > checking for rename... yes
> > checking for socket... yes
> > checking for strnlen... yes
> > checking for madvise... yes
> > checking for mkstemp... yes
> > checking for strtol... yes
> > checking for strtoul... yes
> > checking for strtoll... yes
> > checking for strtoull... yes
> > checking for snprintf... yes
> > checking for tempnam... yes
> > checking for thr_setconcurrency... no
> > checking for gethostbyaddr_r... yes
> > checking for gethostbyname_r... (cached) yes
> > checking for getpwnam... yes
> > checking for bfill... no
> > checking for bzero... yes
> > checking for bcmp... yes
> > checking for strstr... yes
> > checking for strpbrk... yes
> > checking for strerror... yes
> > checking for tell... no
> > checking for atod... no
> > checking for memcpy... yes
> > checking for memmove... yes
> > checking for setupterm... no
> > checking for strcasecmp... yes
> > checking for sighold... yes
> > checking for vidattr... no
> > checking for lrand48... yes
> > checking for localtime_r... yes
> > checking for sigset... yes
> > checking for sigthreadmask... no
> > checking for pthread_sigmask... yes
> > checking for pthread_setprio... no
> > checking for pthread_setprio_np... no
> > checking for pthread_setschedparam... yes
> > checking for pthread_attr_setprio... no
> > checking for pthread_attr_setschedparam... yes
> > checking for pthread_attr_create... no
> > checking for pthread_getsequence_np... no
> > checking for pthread_attr_setstacksize... yes
> > checking for pthread_condattr_create... no
> > checking for rwlock_init... no
> > checking for pthread_rwlock_rdlock... yes
> > checking for fchmod... yes
> > checking for getpass... yes
> > checking for getpassphrase... no
> > checking for initgroups... yes
> > checking for mlockall... yes
> > checking for fseeko... yes
> > checking for dlopen... yes
> > checking for dlerror... yes
> > checking style of gethost* routines... other
> > checking style of gethostname_r routines... other
> > checking 3 argument to gethostname_r routines... char
> > checking "args to pthread_getspecific"... POSIX
> > checking "args to pthread_mutex_init"... POSIX
> > checking "args to readdir_r"... POSIX
> > checking "style of sigwait"... POSIX
> > checking "for pthread_attr_setscope"... yes
> > checking "can netinet files be included"... "yes"
> > checking "character sets"... default: latin1; compiled in: latin1
> > checking for BerkeleyDB... no
> > Not using Berkeley DB
> > checking for Innodb... Not using Innodb
> > checking for Gemini DB... Not using Gemini DB
> > configure: creating ./config.status
> > config.status: creating Makefile
> > config.status: creating extra/Makefile
> > config.status: creating mysys/Makefile
> > config.status: creating isam/Makefile
> > config.status: creating strings/Makefile
> > config.status: creating regex/Makefile
> > config.status: creating heap/Makefile
> > config.status: creating bdb/Makefile
> > config.status: creating myisam/Makefile
> > config.status: creating myisammrg/Makefile
> > config.status: creating man/Makefile
> > config.status: creating os2/Makefile
> > config.status: creating readline/Makefile
> > config.status: creating libmysql_r/Makefile
> > config.status: creating libmysql/Makefile
> > config.status: creating client/Makefile
> > config.status: creating sql/Makefile
> > config.status: creating sql/share/Makefile
> > config.status: creating merge/Makefile
> > config.status: creating dbug/Makefile
> > config.status: creating scripts/Makefile
> > config.status: creating include/Makefile
> > config.status: creating sql-bench/Makefile
> > config.status: creating tests/Makefile
> > config.status: creating Docs/Makefile
> > config.status: creating support-files/Makefile
> > config.status: creating mysql-test/Makefile
> > config.status: creating include/mysql_version.h
> > config.status: creating config.h
> >
> > MySQL has a Web site at http://www.mysql.com/ which carries details on the
> > latest release, upcoming features, and other information to make your
> > work or play with MySQL more productive. There you can also find
> > information about mailing lists for MySQL discussion.
> >
> > Remember to check the platform specific part in the reference manual for
> > hints about installing on your platfrom. See the Docs directory.
> >
> > Thank you for choosing MySQL!
> >
> > root@dbmaster:/usr/local/src/mysql-3.23.51#
> >
> >
> > Then make: (snipped all but the end of the process)
> >
> > <snip>
> >
> > make[2]: Entering directory `/usr/local/src/mysql-3.23.51/libmysql_r'
> > /bin/sh ../libtool --mode=compile
> gcc -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DDATADIR="\"/usr/local/var\""  
>                   -DSHAREDIR="\"/usr/local/share/mysql\"" -DDONT_USE_RAID  -
> I./../include -I../include            -I./.. -I.. -I..    -O3 -DDBUG_OFF -O3
>  -march=pentiumpro  -I/usr/local/mysql-glibc-2.2.2/include -c libmysql.c
> > mkdir .libs
> >
> gcc -DDEFAULT_CHARSET_HOME=\"/usr/local\" -DDATADIR=\"/usr/local/var\" -DSHA
> REDIR=\"/usr/local/share/mysql\" -DDONT_USE_RAID -I./../include -I../include
>  -I./.. -I.. -I.. -O3 -DDBUG_OFF -O3 -march=pentiumpro -I/usr/local/mysql-gl
> ibc-2.2.2/include -c libmysql.c  -fPIC -DPIC -o .libs/libmysql.lo
> > libmysql.c: In function `mysql_real_connect':
> > libmysql.c:1324: warning: passing arg 5 of `gethostbyname_r' from
> incompatible pointer type
> > libmysql.c:1324: too few arguments to function `gethostbyname_r'
> > libmysql.c:1325: warning: assignment makes pointer from integer without a
> cast
> > make[2]: *** [libmysql.lo] Error 1
> > make[2]: Leaving directory `/usr/local/src/mysql-3.23.51/libmysql_r'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/src/mysql-3.23.51'
> > make: *** [all-recursive-am] Error 2
> > root@dbmaster:/usr/local/src/mysql-3.23.51#
> >
> > Let me know if I need to provide any further info.
> >
> > TIA

---------------------------------------------------------------------
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

Reply via email to