Platform: SunOS 5.8
MySQL Version: 3.23.33 Source distribution not binaries.
gcc version: 2.95.2

Problem: Getting some fatal compiler errors when I run configure. Not sure what to do 
about it.
  Any and all help is appreciated. I've tried using this lists archived email for an 
answer, but all attempts to run configure produce the same errors. I suspect I'm just 
not fully understanding what I read, so if it could be stated to me again that might 
help. Prior to each time I ran configure, I made sure I performed an rm config.cache 
and then a make clean.

I ran configure in the following manner:

CFLAGS="-O6" CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=~nelson/mysql/mysql-3.23.33/mysql_client \
--with-low-memory --without-server \
--enable-assembler --with-mysqld-ldflags=-all-static

Here is the first part of the config.log. It is too large to post on this list. If 
you'd like to look at the rest I can email you separately. There are too many "fatal" 
errors for me to believe that "make" will run error free. Errors having to do with 
"select.h", "vadvise.h", "gethostbyname_r", "setsockopt", etc.  Thanks for any and all 
help. 

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:796: checking host system type
configure:817: checking target system type
configure:835: checking build system type
configure:870: checking for a BSD compatible install
configure:923: checking whether build environment is sane
configure:958: checking whether make sets ${MAKE}
configure:1004: checking for working aclocal
configure:1017: checking for working autoconf
configure:1030: checking for working automake
configure:1043: checking for working autoheader
configure:1056: checking for working makeinfo
configure:1158: checking whether to enable maintainer-specific portions of Makefiles
configure:1200: checking whether build environment is sane
configure:1217: checking whether make sets ${MAKE}
configure:1285: checking for gawk
configure:1285: checking for mawk
configure:1285: checking for nawk
configure:1317: checking for gcc
configure:1430: checking whether the C compiler (gcc -O6  ) works
configure:1446: gcc -o conftest -O6    conftest.c  1>&5
configure:1472: checking whether the C compiler (gcc -O6  ) is a cross-compiler
configure:1477: checking whether we are using GNU C
configure:1486: gcc -E conftest.c
configure:1505: checking whether gcc accepts -g
configure:1541: checking for c++
configure:1573: checking whether the C++ compiler (gcc -O6 -felide-constructors 
-fno-exceptions -fno-rtti  ) works
configure:1589: gcc -o conftest -O6 -felide-constructors -fno-exceptions -fno-rtti    
conftest.C  1>&5
configure:1615: checking whether the C++ compiler (gcc -O6 -felide-constructors 
-fno-exceptions -fno-rtti  ) is a cross-compiler
configure:1620: checking whether we are using GNU C++
configure:1629: gcc -E conftest.C
configure:1648: checking whether gcc accepts -g
configure:1680: checking how to run the C preprocessor
configure:1701: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1805: checking for ranlib
configure:1915: checking for ld used by GCC
configure:1977: checking if the linker (/usr/ccs/bin/ld) is GNU ld
configure:1993: checking for BSD-compatible nm
configure:2029: checking whether ln -s works
ltconfig:603: checking for object suffix
ltconfig:604: gcc -c -O6   conftest.c 1>&5
ltconfig:629: checking for executable suffix
ltconfig:630: gcc -o conftest -O6    conftest.c  1>&5
ltconfig:776: checking if gcc PIC flag -fPIC works
ltconfig:777: gcc -c -O6  -fPIC -DPIC  conftest.c 1>&5
ltconfig:829: checking if gcc supports -c -o file.o
ltconfig:830: gcc -c -O6  -o out/conftest2.o  conftest.c 1>&5
ltconfig:862: checking if gcc supports -c -o file.lo
ltconfig:863: gcc -c -O6  -c -o conftest.lo  conftest.c 1>&5
ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:915: gcc -c -O6  -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
ltconfig:958: checking if gcc static flag -static works
ltconfig:959: gcc -o conftest -O6    -static conftest.c  1>&5
ltconfig:1653: checking if global_symbol_pipe works
ltconfig:1654: gcc -c -O6   conftest.c 1>&5
ltconfig:1657: eval "/usr/ccs/bin/nm -p conftest.o | sed -n -e 's/^.*[  ]\([BDT]\)[    
 ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1709: gcc -o conftest -O6  -fno-builtin -fno-rtti -fno-exceptions   
conftest.c conftstm.o 1>&5
configure:2234: checking for a BSD compatible install
configure:2292: checking for bison
configure:2325: checking for pdftex
configure:2353: checking return type of sprintf
configure:2374: gcc -o conftest -O6    conftest.c  1>&5
configure:2438: checking for uname
configure:2475: checking operating system
configure:2633: checking if we should use skip-locking as default for solaris2.8
configure:2651: checking for ln
configure:2688: checking for ln
configure:2729: checking for mv
configure:2765: checking for rm
configure:2801: checking for cp
configure:2837: checking for sed
configure:2873: checking for cmp
configure:2909: checking for chmod
configure:2945: checking for hostname
configure:2981: checking for perl
configure:3069: checking for ps
configure:3103: checking how to check if pid exists
configure:3141: checking for kill
configure:3175: checking for kill switches
configure:3192: checking for gcc option to accept ANSI C
configure:3227: gcc  -c -O6   conftest.c 1>&5
configure:3375: checking whether to use RAID
configure:3452: checking for getconf
configure:3482: checking for CFLAGS value to request large file support
configure:3532: checking for LDFLAGS value to request large file support
configure:3548: checking for LIBS value to request large file support
configure:3607: checking for _FILE_OFFSET_BITS
configure:3636: checking for _LARGEFILE_SOURCE
configure:3665: checking for _LARGE_FILES
configure:3698: checking for ANSI C header files
configure:3711: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3778: gcc -o conftest -O6    conftest.c  1>&5
configure:3802: checking for size_t
configure:3844: checking for dirent.h that defines DIR
configure:3857: gcc -c -O6   conftest.c 1>&5
configure:3882: checking for opendir in -ldir
configure:3901: gcc -o conftest -O6    conftest.c -ldir   1>&5
ld: fatal: library -ldir: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3890 "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 opendir();

int main() {
opendir()
; return 0; }
configure:3965: checking for ANSI C header files
configure:4069: checking for sys/wait.h that is POSIX.1 compatible
configure:4090: gcc -c -O6   conftest.c 1>&5
configure:4120: checking for fcntl.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for float.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for floatingpoint.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for ieeefp.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for limits.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for memory.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for pwd.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for select.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4126: select.h: No such file or directory
configure: failed program was:
#line 4125 "configure"
#include "confdefs.h"
#include <select.h>
configure:4120: checking for stdlib.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for stddef.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for strings.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for string.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for synch.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/mman.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/socket.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for netinet/in.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for arpa/inet.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/timeb.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/types.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/un.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/vadvise.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4126: sys/vadvise.h: No such file or directory
configure: failed program was:
#line 4125 "configure"
#include "confdefs.h"
#include <sys/vadvise.h>
configure:4120: checking for sys/wait.h
configure:4120: checking for term.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for unistd.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for utime.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/utime.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for termio.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for termios.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sched.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for crypt.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for alloca.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4120: checking for sys/ioctl.h
configure:4130: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4163: checking for floor in -lm
configure:4182: gcc -o conftest -O6    conftest.c -lm   1>&5
configure:4257: checking for gethostbyname_r
configure:4285: gcc -o conftest -O6    conftest.c -lm  1>&5
Undefined                       first referenced
  symbol                            in file
gethostbyname_r                     /var/tmp/ccnY7HgU.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4262 "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:4304: checking for gethostbyname_r in -lnsl_r
configure:4323: gcc -o conftest -O6    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 4312 "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:4349: checking for gethostbyname_r in -lnsl
configure:4368: gcc -o conftest -O6    conftest.c -lnsl  -lm  1>&5
configure:4400: checking for setsockopt
configure:4428: gcc -o conftest -O6    conftest.c -lnsl -lm  1>&5
Undefined                       first referenced
  symbol                            in file
setsockopt                          /var/tmp/cc1JyRQA.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4405 "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:4446: checking for setsockopt in -lsocket
configure:4465: gcc -o conftest -O6    conftest.c -lsocket  -lnsl -lm  1>&5
configure:4495: checking for yp_get_default_domain
configure:4523: gcc -o conftest -O6    conftest.c -lsocket -lnsl -lm  1>&5
configure:4590: checking for p2open
configure:4618: gcc -o conftest -O6    conftest.c -lsocket -lnsl -lm  1>&5
Undefined                       first referenced
  symbol                            in file
p2open                              /var/tmp/cc33ppCO.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4595 "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; }

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