Bug #630 compiling mysql-3.23.56 on Solaris 2.6 - missing sleep declaration
Submitted: 11 Jun 2003 1:39 Modified: 20 Jul 2003 7:54
Reporter: Frank Gadegast Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:3.23.56 OS:Any (SunOS 5.6)
Assigned to: Kent Boortz CPU Architecture:Any
Tags: compiling

[11 Jun 2003 1:39] Frank Gadegast
Description:

using:
SunOS 5.6 Generic_105181-05 sun4u sparc
gcc (GCC) 3.2.2
mysql-3.23.56

unistd.h does nclude a definition for the sleep() function in Sol 2.6,
but mysql's configure is unable to detect this and fails compiling
client/mysql.cc
sql/mysqld.cc

How to repeat:
--

Suggested fix:
I had to define the following in the .cc files to get it to compile:
extern "C" unsigned int sleep(unsigned int);

I was unable to figure out with compiler-flag is need.
[20 Jun 2003 7:54] Lenz Grimmer
Thanks for bringing this to our attention. Does this happen with MySQL 4.x as
well? Can you please post config.log as well? It would be interesting to see,
why configure fails to properly detect this.
[2 Jun 2004 5:00] Chris Hellberg
I have the same problem on 4.0.20 - also solaris 2.6

The following is the config.log:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2004.06.02 14:59:37 =~=~=~=~=~=~=~=~=~=~=~=

[{root} pluto:/usr/src/mysql-4.0.20] 
[{root} pluto:/usr/src/mysql-4.0.20] 
[{root} pluto:/usr/src/mysql-4.0.20] 
[{root} pluto:/usr/src/mysql-4.0.20] 
[{root} pluto:/usr/src/mysql-4.0.20] cat config/.  .log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = pluto
uname -m = sun4u
uname -r = 5.6
uname -s = SunOS
uname -v = Generic_105181-34

/usr/bin/uname -p = sparc
/bin/uname -X     = System = SunOS
Node = pluto
Release = 5.6
KernelID = Generic_105181-34
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch              = sun4
/usr/bin/arch -k       = sun4u
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/dt/bin
PATH: /usr/ccs/bin
PATH: /opt/SUNWspro/bin
PATH: /opt/GNUgzip/bin
PATH: /usr/local/bin
PATH: /usr/local/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1580: checking build system type
configure:1598: result: sparc-sun-solaris2.6
configure:1606: checking host system type
configure:1620: result: sparc-sun-solaris2.6
configure:1628: checking target system type
configure:1642: result: sparc-sun-solaris2.6
configure:1670: checking for a BSD-compatible install
configure:1724: result: ./install-sh -c
configure:1735: checking whether build environment is sane
configure:1753: result: yes
configure:1786: checking for gawk
configure:1815: result: no
configure:1786: checking for mawk
configure:1815: result: no
configure:1786: checking for nawk
configure:1802: found /usr/bin/nawk
configure:1812: result: nawk
configure:1822: checking whether make sets $(MAKE)
configure:1842: result: yes
configure:2110: checking whether to enable maintainer-specific portions of Makefiles
configure:2119: result: no
configure:2135: checking whether build environment is sane
configure:2153: result: yes
configure:2156: checking whether make sets $(MAKE)
configure:2176: result: yes
configure:2227: checking for gawk
configure:2253: result: nawk
configure:2309: checking for gcc
configure:2325: found /usr/local/bin/gcc
configure:2335: result: gcc
configure:2579: checking for C compiler version
configure:2582: gcc --version </dev/null >&5
3.0.1
configure:2585: $? = 0
configure:2587: gcc -v </dev/null >&5
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.1
configure:2590: $? = 0
configure:2592: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2595: $? = 1
configure:2619: checking for C compiler default output
configure:2622: gcc     conftest.c  >&5
configure:2625: $? = 0
configure:2671: result: a.out
configure:2676: checking whether the C compiler works
configure:2682: ./a.out
configure:2685: $? = 0
configure:2702: result: yes
configure:2709: checking whether we are cross compiling
configure:2711: result: no
configure:2714: checking for suffix of executables
configure:2716: gcc -o conftest     conftest.c  >&5
configure:2719: $? = 0
configure:2744: result: 
configure:2750: checking for suffix of object files
configure:2772: gcc -c    conftest.c >&5
configure:2775: $? = 0
configure:2797: result: o
configure:2801: checking whether we are using the GNU C compiler
configure:2826: gcc -c    conftest.c >&5
configure:2829: $? = 0
configure:2832: test -s conftest.o
configure:2835: $? = 0
configure:2848: result: yes
configure:2854: checking whether gcc accepts -g
configure:2876: gcc -c -g  conftest.c >&5
configure:2879: $? = 0
configure:2882: test -s conftest.o
configure:2885: $? = 0
configure:2896: result: yes
configure:2913: checking for gcc option to accept ANSI C
configure:2974: gcc  -c    conftest.c >&5
configure:2977: $? = 0
configure:2980: test -s conftest.o
configure:2983: $? = 0
configure:3001: result: none needed
configure:3019: gcc -c    conftest.c >&5
conftest.c:2: parse error before "me"
configure:3022: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3142: checking for style of include used by make
configure:3170: result: GNU
configure:3198: checking dependency style of gcc
configure:3281: result: gcc3
configure:3350: checking for g++
configure:3366: found /usr/local/bin/g++
configure:3376: result: g++
configure:3392: checking for C++ compiler version
configure:3395: g++ --version </dev/null >&5
3.0.1
configure:3398: $? = 0
configure:3400: g++ -v </dev/null >&5
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.1
configure:3403: $? = 0
configure:3405: g++ -V </dev/null >&5
g++: argument to `-V' missing

configure:3408: $? = 1
configure:3411: checking whether we are using the GNU C++ compiler
configure:3436: g++ -c    conftest.cc >&5
configure:3439: $? = 0
configure:3442: test -s conftest.o
configure:3445: $? = 0
configure:3458: result: yes
configure:3464: checking whether g++ accepts -g
configure:3486: g++ -c -g  conftest.cc >&5
configure:3489: $? = 0
configure:3492: test -s conftest.o
configure:3495: $? = 0
configure:3506: result: yes
configure:3550: g++ -c    conftest.cc >&5
configure:3553: $? = 0
configure:3556: test -s conftest.o
configure:3559: $? = 0
configure:3586: g++ -c    conftest.cc >&5
configure: In function `int main()':
configure:3587: `exit' undeclared (first use this function)
configure:3587: (Each undeclared identifier is reported only once for each 
   function it appears in.)
configure:3589: $? = 1
configure: failed program was:
| #line 3569 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:3550: g++ -c    conftest.cc >&5
configure:3547: `void std::exit(int)' should have been declared inside `std'
configure:3547: `exit' not declared
configure:3553: $? = 1
configure: failed program was:
| #line 3532 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| /* end confdefs.h.  */
| #include <stdlib.h>
| extern "C" void std::exit (int) throw (); using std::exit;
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:3550: g++ -c    conftest.cc >&5
configure:3547: `void std::exit(int)' should have been declared inside `std'
configure:3547: `exit' not declared
configure:3553: $? = 1
configure: failed program was:
| #line 3532 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| /* end confdefs.h.  */
| #include <stdlib.h>
| extern "C" void std::exit (int); using std::exit;
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:3550: g++ -c    conftest.cc >&5
configure:3553: $? = 0
configure:3556: test -s conftest.o
configure:3559: $? = 0
configure:3586: g++ -c    conftest.cc >&5
configure:3589: $? = 0
configure:3592: test -s conftest.o
configure:3595: $? = 0
configure:3620: checking dependency style of g++
configure:3703: result: gcc3
configure:3725: checking how to run the C preprocessor
configure:3761: gcc -E  conftest.c
configure:3767: $? = 0
configure:3799: gcc -E  conftest.c
configure:3807:28: ac_nonexistent.h: No such file or directory
configure:3805: $? = 1
configure: failed program was:
| #line 3790 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3843: result: gcc -E
configure:3868: gcc -E  conftest.c
configure:3874: $? = 0
configure:3906: gcc -E  conftest.c
configure:3914:28: ac_nonexistent.h: No such file or directory
configure:3912: $? = 1
configure: failed program was:
| #line 3897 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3966: checking "C Compiler version"
configure:3968: result: "gcc 3.0.1"
configure:3983: checking "C++ compiler version"
configure:3985: result: "g++ 3.0.1"
configure:4091: checking for ranlib
configure:4107: found /usr/ccs/bin/ranlib
configure:4118: result: ranlib
configure:4204: checking for a sed that does not truncate output
configure:4258: result: /usr/xpg4/bin/sed
configure:4261: checking for egrep
configure:4271: result: egrep
configure:4287: checking for ld used by gcc
configure:4354: result: /usr/local/bin/ld
configure:4363: checking if the linker (/usr/local/bin/ld) is GNU ld
configure:4378: result: yes
configure:4383: checking for /usr/local/bin/ld option to reload object files
configure:4390: result: -r
configure:4399: checking for BSD-compatible nm
configure:4441: result: /usr/ccs/bin/nm -p
configure:4445: checking whether ln -s works
configure:4449: result: yes
configure:4456: checking how to recognise dependent libraries
configure:4656: result: pass_all
configure:4856: checking for ANSI C header files
configure:4882: gcc -c    conftest.c >&5
configure:4885: $? = 0
configure:4888: test -s conftest.o
configure:4891: $? = 0
configure:4983: gcc -o conftest     conftest.c  >&5
configure:4986: $? = 0
configure:4988: ./conftest
configure:4991: $? = 0
configure:5006: result: yes
configure:5030: checking for sys/types.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5030: checking for sys/stat.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5030: checking for stdlib.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5030: checking for string.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5030: checking for memory.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5030: checking for strings.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5030: checking for inttypes.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5030: checking for stdint.h
configure:5047: gcc -c    conftest.c >&5
configure:5095:20: stdint.h: No such file or directory
configure:5050: $? = 1
configure: failed program was:
| #line 5035 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| 
| #include <stdint.h>
configure:5067: result: no
configure:5030: checking for unistd.h
configure:5047: gcc -c    conftest.c >&5
configure:5050: $? = 0
configure:5053: test -s conftest.o
configure:5056: $? = 0
configure:5067: result: yes
configure:5093: checking dlfcn.h usability
configure:5106: gcc -c    conftest.c >&5
configure:5109: $? = 0
configure:5112: test -s conftest.o
configure:5115: $? = 0
configure:5125: result: yes
configure:5129: checking dlfcn.h presence
configure:5140: gcc -E  conftest.c
configure:5146: $? = 0
configure:5165: result: yes
configure:5201: checking for dlfcn.h
configure:5208: result: yes
configure:5226: checking how to run the C++ preprocessor
configure:5258: g++ -E  conftest.cc
configure:5264: $? = 0
configure:5296: g++ -E  conftest.cc
configure:5314:28: ac_nonexistent.h: No such file or directory
configure:5302: $? = 1
configure: failed program was:
| #line 5287 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5340: result: g++ -E
configure:5365: g++ -E  conftest.cc
configure:5371: $? = 0
configure:5403: g++ -E  conftest.cc
configure:5421:28: ac_nonexistent.h: No such file or directory
configure:5409: $? = 1
configure: failed program was:
| #line 5394 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5503: checking for g77
configure:5519: found /usr/local/bin/g77
configure:5529: result: g77
configure:5544: checking for Fortran 77 compiler version
configure:5547: g77 --version </dev/null >&5
GNU Fortran 0.5.26 20010819 (release)
Copyright (C) 2001 Free Software Foundation, Inc.
For more version information on components of the GNU Fortran
compilation system, especially useful when reporting bugs,
type the command `g77 --verbose'.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
or type the command `info -f g77 Copying'.
configure:5550: $? = 0
configure:5552: g77 -v </dev/null >&5
g77 version 3.0.1 (Fortran Frontend version 0.5.26 20010819 (release))
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.1
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/tradcpp0 -lang-fortran -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc /dev/null /dev/null
GNU traditional CPP version 3.0.1
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/f771 -fnull-version -quiet -dumpbase g77-version.f -version -fversion -o /var/tmp/ccwikArQ.s /dev/null
GNU F77 version 3.0.1 (sparc-sun-solaris2.6)
        compiled by GNU C version 3.0.1.
GNU Fortran Front End version 0.5.26 20010819 (release)
 /usr/local/bin/as -V -Qy -s -o /var/tmp/ccPChu7O.o /var/tmp/ccwikArQ.s
GNU assembler version 2.11.2 (sparc-sun-solaris2.6) using BFD version 2.11.2
 /usr/local/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o /var/tmp/ccfYUscP /var/tmp/ccPChu7O.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/crt1.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/crti.o /usr/ccs/lib/values-Xa.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/crtbegin.o -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/../../../../sparc-sun-solaris2.6/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/../../.. -lg2c -lm -lgcc -lc -lgcc /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/crtend.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.1/crtn.o
GNU ld version 2.11.2 (with BFD 2.11.2)
  Supported emulations:
   elf32_sparc
 /var/tmp/ccfYUscP
__G77_LIBF77_VERSION__: 0.5.26 20010819 (release)
@(#)LIBF77 VERSION 20000929
__G77_LIBI77_VERSION__: 0.5.26 20010819 (release)
@(#) LIBI77 VERSION pjw,dmg-mods 20001205
__G77_LIBU77_VERSION__: 0.5.26 20010819 (release)
@(#) LIBU77 VERSION 19980709
configure:5555: $? = 0
configure:5557: g77 -V </dev/null >&5
g77: argument to `-V' missing
configure:5560: $? = 1
configure:5567: checking whether we are using the GNU Fortran 77 compiler
configure:5581: g77 -c  conftest.F >&5
configure:5584: $? = 0
configure:5587: test -s conftest.o
configure:5590: $? = 0
configure:5603: result: yes
configure:5610: checking whether g77 accepts -g
configure:5622: g77 -c -g conftest.f >&5
configure:5625: $? = 0
configure:5628: test -s conftest.o
configure:5631: $? = 0
configure:5643: result: yes
configure:5671: checking the maximum length of command line arguments
configure:5730: result: 262144
configure:5741: checking command to parse /usr/ccs/bin/nm -p output from gcc object
configure:5830: gcc -c    conftest.c >&5
configure:5833: $? = 0
configure:5837: /usr/ccs/bin/nm -p conftest.o \| sed -n -e 's/^.*[      ]\([BDT][BDT]*\)[       ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' \> conftest.nm
configure:5840: $? = 0
configure:5892: gcc -o conftest     conftest.c conftstm.o >&5
configure:5895: $? = 0
configure:5933: result: ok
configure:5937: checking for objdir
configure:5952: result: .libs
configure:6042: checking for ar
configure:6058: found /usr/ccs/bin/ar
configure:6069: result: ar
configure:6122: checking for ranlib
configure:6149: result: ranlib
configure:6202: checking for strip
configure:6218: found /usr/ccs/bin/strip
configure:6229: result: strip
configure:6491: checking if gcc static flag  works
configure:6514: result: yes
configure:6531: checking if gcc supports -fno-rtti -fno-exceptions
configure:6549: gcc -c    -fno-rtti -fno-exceptions conftest.c >&5
configure:6553: $? = 0
configure:6564: result: yes
configure:6579: checking for gcc option to produce PIC
configure:6756: result: -fPIC
configure:6763: checking if gcc PIC flag -fPIC works
configure:6781: gcc -c    -fPIC -DPIC conftest.c >&5
configure:6785: $? = 0
configure:6796: result: yes
configure:6820: checking if gcc supports -c -o file.o
configure:6848: gcc -c    -o out/conftest2.o conftest.c >&5
configure:6852: $? = 0
configure:6869: result: yes
configure:6895: checking whether the gcc linker (/usr/local/bin/ld) supports shared libraries
configure:7689: result: yes
configure:7715: checking whether -lc should be explicitly linked in
configure:7720: gcc -c    conftest.c >&5
configure:7723: $? = 0
configure:7737: gcc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep  -lc  \>/dev/null 2\>\&1
configure:7740: $? = 1
configure:7752: result: yes
configure:7760: checking how to hardcode library paths into programs
configure:7785: result: immediate
configure:7799: checking whether stripping libraries is possible
configure:7820: result: no
configure:7826: checking dynamic linker characteristics
configure:8344: result: solaris2.6 ld.so
configure:9086: checking if libtool supports shared libraries
configure:9088: result: yes
configure:9091: checking whether to build shared libraries
configure:9140: result: yes
configure:9143: checking whether to build static libraries
configure:9147: result: yes
configure:9238: creating libtool
configure:9782: checking for ld used by g++
configure:9849: result: /usr/local/bin/ld
configure:9858: checking if the linker (/usr/local/bin/ld) is GNU ld
configure:9873: result: yes
configure:9924: checking whether the g++ linker (/usr/local/bin/ld) supports shared libraries
configure:10719: result: yes
configure:10737: g++ -c    conftest.cc >&5
configure:10740: $? = 0
configure:10836: checking for g++ option to produce PIC
configure:11088: result: -fPIC
configure:11095: checking if g++ PIC flag -fPIC works
configure:11113: g++ -c    -fPIC -DPIC conftest.cc >&5
configure:11117: $? = 0
configure:11128: result: yes
configure:11152: checking if g++ supports -c -o file.o
configure:11180: g++ -c    -o out/conftest2.o conftest.cc >&5
configure:11184: $? = 0
configure:11201: result: yes
configure:11227: checking whether the g++ linker (/usr/local/bin/ld) supports shared libraries
configure:11252: result: yes
configure:11323: checking how to hardcode library paths into programs
configure:11348: result: immediate
configure:11362: checking whether stripping libraries is possible
configure:11383: result: no
configure:11389: checking dynamic linker characteristics
configure:11907: result: solaris2.6 ld.so
configure:13122: checking if libtool supports shared libraries
configure:13124: result: yes
configure:13127: checking whether to build shared libraries
configure:13145: result: yes
configure:13148: checking whether to build static libraries
configure:13152: result: yes
configure:13164: checking for g77 option to produce PIC
configure:13341: result: -fPIC
configure:13348: checking if g77 PIC flag -fPIC works
configure:13366: g77 -c -g -O2 -fPIC conftest.f >&5
configure:13370: $? = 0
configure:13381: result: yes
configure:13405: checking if g77 supports -c -o file.o
configure:13433: g77 -c -g -O2 -o out/conftest2.o conftest.f >&5
configure:13437: $? = 0
configure:13454: result: yes
configure:13480: checking whether the g77 linker (/usr/local/bin/ld) supports shared libraries
configure:14252: result: yes
configure:14323: checking how to hardcode library paths into programs
configure:14348: result: immediate
configure:14362: checking whether stripping libraries is possible
configure:14383: result: no
configure:14389: checking dynamic linker characteristics
configure:14907: result: solaris2.6 ld.so
configure:18838: checking for a BSD-compatible install
configure:18892: result: ./install-sh -c
configure:18910: checking for bison
configure:18926: found /usr/local/bin/bison
configure:18936: result: bison -y
configure:18949: checking for pdftex
configure:18978: result: no
configure:18984: checking for tex
configure:19013: result: no
configure:19018: checking "return type of sprintf"
configure:19058: gcc -o conftest     conftest.c  >&5
configure:19061: $? = 0
configure:19063: ./conftest
configure:19066: $? = 0
configure:19071: result: "int"
configure:19154: checking for uname
configure:19172: found /usr/bin/uname
configure:19185: result: /usr/bin/uname
configure:19195: checking operating system
configure:19209: result: SunOS
configure:19405: checking "if we should use 'skip-locking' as default for solaris2.6"
configure:19417: result: "no"
configure:19425: checking for ln
configure:19443: found /usr/bin/ln
configure:19456: result: /usr/bin/ln
configure:19466: checking for ln
configure:19484: found /usr/bin/ln
configure:19497: result: /usr/bin/ln
configure:19513: checking for mv
configure:19531: found /usr/bin/mv
configure:19544: result: /usr/bin/mv
configure:19553: checking for rm
configure:19571: found /usr/bin/rm
configure:19584: result: /usr/bin/rm
configure:19593: checking for cp
configure:19611: found /usr/bin/cp
configure:19624: result: /usr/bin/cp
configure:19633: checking for sed
configure:19664: result: /usr/xpg4/bin/sed
configure:19673: checking for cmp
configure:19691: found /usr/bin/cmp
configure:19704: result: /usr/bin/cmp
configure:19713: checking for chmod
configure:19731: found /usr/bin/chmod
configure:19744: result: /usr/bin/chmod
configure:19753: checking for hostname
configure:19771: found /usr/bin/hostname
configure:19784: result: /usr/bin/hostname
configure:19797: checking for gnutar
configure:19826: result: no
configure:19797: checking for gtar
configure:19826: result: no
configure:19797: checking for tar
configure:19813: found /usr/sbin/tar
configure:19823: result: tar
configure:19836: checking for perl
configure:19854: found /usr/bin/perl
configure:19867: result: /usr/bin/perl
configure:19932: checking for ps
configure:19950: found /usr/bin/ps
configure:19963: result: /usr/bin/ps
configure:19970: checking "how to check if pid exists"
configure:20011: result: "/usr/bin/ps -ef | grep mysqld | grep " $$PID " > /dev/null"
configure:20017: checking for kill
configure:20035: found /usr/bin/kill
configure:20048: result: /usr/bin/kill
configure:20055: checking "for kill switches"
configure:20069: result: "/usr/bin/kill -0 $$PID > /dev/null 2> /dev/null"
configure:20074: checking for gcc option to accept ANSI C
configure:20119: gcc  -c    conftest.c >&5
configure:20122: $? = 0
configure:20125: test -s conftest.o
configure:20128: $? = 0
configure:20142: result: 
configure:20333: checking if we should use assembler functions
configure:20382: result: no
configure:20387: checking if we should use RAID
configure:20407: result: no
configure:20449: checking If we should should enable LOAD DATA LOCAL by default
configure:20468: result: no
configure:20520: checking for getconf
configure:20536: found /usr/bin/getconf
configure:20546: result: getconf
configure:20558: checking for CFLAGS value to request large file support
configure:20627: result: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
configure:20629: checking for LDFLAGS value to request large file support
configure:20643: result: 
configure:20645: checking for LIBS value to request large file support
configure:20659: result: 
configure:20705: checking for _FILE_OFFSET_BITS
configure:20734: result: 64
configure:20743: checking for _LARGEFILE_SOURCE
configure:20764: result: 1
configure:20773: checking for _LARGE_FILES
configure:20794: result: no
configure:20807: checking for size_t
configure:20832: gcc -c    conftest.c >&5
configure:20835: $? = 0
configure:20838: test -s conftest.o
configure:20841: $? = 0
configure:20852: result: yes
configure:20877: checking for dirent.h that defines DIR
configure:20902: gcc -c    conftest.c >&5
configure:20905: $? = 0
configure:20908: test -s conftest.o
configure:20911: $? = 0
configure:20922: result: yes
configure:20935: checking for library containing opendir
configure:20966: gcc -o conftest     conftest.c  >&5
configure:20969: $? = 0
configure:20972: test -s conftest
configure:20975: $? = 0
configure:21034: result: none required
configure:21150: checking for ANSI C header files
configure:21300: result: yes
configure:21310: checking for sys/wait.h that is POSIX.1 compatible
configure:21342: gcc -c    conftest.c >&5
configure:21345: $? = 0
configure:21348: test -s conftest.o
configure:21351: $? = 0
configure:21362: result: yes
configure:21426: checking fcntl.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking fcntl.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for fcntl.h
configure:21541: result: yes
configure:21426: checking float.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking float.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for float.h
configure:21541: result: yes
configure:21426: checking floatingpoint.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking floatingpoint.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for floatingpoint.h
configure:21541: result: yes
configure:21426: checking ieeefp.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking ieeefp.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for ieeefp.h
configure:21541: result: yes
configure:21426: checking limits.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking limits.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for limits.h
configure:21541: result: yes
configure:21417: checking for memory.h
configure:21422: result: yes
configure:21426: checking pwd.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking pwd.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for pwd.h
configure:21541: result: yes
configure:21426: checking select.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21502:20: select.h: No such file or directory
configure:21442: $? = 1
configure: failed program was:
| #line 21428 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <select.h>
configure:21458: result: no
configure:21462: checking select.h presence
configure:21473: gcc -E  conftest.c
configure:21504:20: select.h: No such file or directory
configure:21479: $? = 1
configure: failed program was:
| #line 21464 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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
| /* end confdefs.h.  */
| #include <select.h>
configure:21498: result: no
configure:21534: checking for select.h
configure:21541: result: no
configure:21417: checking for stdlib.h
configure:21422: result: yes
configure:21426: checking stddef.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking stddef.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for stddef.h
configure:21541: result: yes
configure:21417: checking for strings.h
configure:21422: result: yes
configure:21417: checking for string.h
configure:21422: result: yes
configure:21426: checking synch.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking synch.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for synch.h
configure:21541: result: yes
configure:21426: checking sys/mman.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking sys/mman.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for sys/mman.h
configure:21541: result: yes
configure:21426: checking sys/socket.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking sys/socket.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for sys/socket.h
configure:21541: result: yes
configure:21426: checking netinet/in.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking netinet/in.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for netinet/in.h
configure:21541: result: yes
configure:21426: checking arpa/inet.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking arpa/inet.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for arpa/inet.h
configure:21541: result: yes
configure:21426: checking sys/timeb.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking sys/timeb.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for sys/timeb.h
configure:21541: result: yes
configure:21417: checking for sys/types.h
configure:21422: result: yes
configure:21426: checking sys/un.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking sys/un.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for sys/un.h
configure:21541: result: yes
configure:21426: checking sys/vadvise.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21514:25: sys/vadvise.h: No such file or directory
configure:21442: $? = 1
configure: failed program was:
| #line 21428 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/vadvise.h>
configure:21458: result: no
configure:21462: checking sys/vadvise.h presence
configure:21473: gcc -E  conftest.c
configure:21516:25: sys/vadvise.h: No such file or directory
configure:21479: $? = 1
configure: failed program was:
| #line 21464 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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
| /* end confdefs.h.  */
| #include <sys/vadvise.h>
configure:21498: result: no
configure:21534: checking for sys/vadvise.h
configure:21541: result: no
configure:21417: checking for sys/wait.h
configure:21422: result: yes
configure:21426: checking term.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking term.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for term.h
configure:21541: result: yes
configure:21417: checking for unistd.h
configure:21422: result: yes
configure:21426: checking utime.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking utime.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for utime.h
configure:21541: result: yes
configure:21426: checking sys/utime.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking sys/utime.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for sys/utime.h
configure:21541: result: yes
configure:21426: checking termio.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking termio.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for termio.h
configure:21541: result: yes
configure:21426: checking termios.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking termios.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for termios.h
configure:21541: result: yes
configure:21426: checking sched.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking sched.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for sched.h
configure:21541: result: yes
configure:21426: checking crypt.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking crypt.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for crypt.h
configure:21541: result: yes
configure:21426: checking alloca.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking alloca.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for alloca.h
configure:21541: result: yes
configure:21426: checking sys/ioctl.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking sys/ioctl.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for sys/ioctl.h
configure:21541: result: yes
configure:21426: checking malloc.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21442: $? = 0
configure:21445: test -s conftest.o
configure:21448: $? = 0
configure:21458: result: yes
configure:21462: checking malloc.h presence
configure:21473: gcc -E  conftest.c
configure:21479: $? = 0
configure:21498: result: yes
configure:21534: checking for malloc.h
configure:21541: result: yes
configure:21426: checking sys/malloc.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21526:24: sys/malloc.h: No such file or directory
configure:21442: $? = 1
configure: failed program was:
| #line 21428 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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_SYS_UTIME_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_MALLOC_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/malloc.h>
configure:21458: result: no
configure:21462: checking sys/malloc.h presence
configure:21473: gcc -E  conftest.c
configure:21528:24: sys/malloc.h: No such file or directory
configure:21479: $? = 1
configure: failed program was:
| #line 21464 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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_SYS_UTIME_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_MALLOC_H 1
| /* end confdefs.h.  */
| #include <sys/malloc.h>
configure:21498: result: no
configure:21534: checking for sys/malloc.h
configure:21541: result: no
configure:21426: checking linux/config.h usability
configure:21439: gcc -c    conftest.c >&5
configure:21526:26: linux/config.h: No such file or directory
configure:21442: $? = 1
configure: failed program was:
| #line 21428 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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_SYS_UTIME_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_MALLOC_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <linux/config.h>
configure:21458: result: no
configure:21462: checking linux/config.h presence
configure:21473: gcc -E  conftest.c
configure:21528:26: linux/config.h: No such file or directory
configure:21479: $? = 1
configure: failed program was:
| #line 21464 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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_SYS_UTIME_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_MALLOC_H 1
| /* end confdefs.h.  */
| #include <linux/config.h>
configure:21498: result: no
configure:21534: checking for linux/config.h
configure:21541: result: no
configure:21561: checking for floor in -lm
configure:21592: gcc -o conftest     conftest.c -lm   >&5
configure:21595: $? = 0
configure:21598: test -s conftest
configure:21601: $? = 0
configure:21613: result: yes
configure:21691: checking for gethostbyname_r in -lnsl_r
configure:21722: gcc -o conftest     conftest.c -lnsl_r  -lm  >&5
/usr/local/bin/ld: cannot find -lnsl_r
collect2: ld returned 1 exit status
configure:21725: $? = 1
configure: failed program was:
| #line 21698 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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_SYS_UTIME_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_LIBM 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* 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:21743: result: no
configure:21754: checking for gethostbyname_r in -lnsl
configure:21785: gcc -o conftest     conftest.c -lnsl  -lm  >&5
configure:21788: $? = 0
configure:21791: test -s conftest
configure:21794: $? = 0
configure:21806: result: yes
configure:21819: checking for gethostbyname_r
configure:21877: gcc -o conftest     conftest.c -lnsl -lm  >&5
configure:21880: $? = 0
configure:21883: test -s conftest
configure:21886: $? = 0
configure:21897: result: yes
configure:21901: checking for setsockopt
configure:21959: gcc -o conftest     conftest.c -lnsl -lm  >&5
/var/tmp/ccQUI36S.o: In function `main':
/var/tmp/ccQUI36S.o(.text+0x10): undefined reference to `setsockopt'
/var/tmp/ccQUI36S.o(.text+0x14): undefined reference to `setsockopt'
/var/tmp/ccQUI36S.o(.data+0x0): undefined reference to `setsockopt'
collect2: ld returned 1 exit status
configure:21962: $? = 1
configure: failed program was:
| #line 21906 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.20"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "sun-solaris2.6"
| #define MACHINE_TYPE "sparc"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #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_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define SPRINTF_RETURNS_INT 1
| #define _FILE_OFFSET_BITS 64
| #define _LARGEFILE_SOURCE 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_SYNCH_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_SYS_UTIME_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_LIBM 1
| #define HAVE_LIBNSL 1
| /* end confdefs.h.  */
| /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define setsockopt innocuous_setsockopt
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char setsockopt (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef setsockopt
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char setsockopt ();
| /* 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
| char (*f) () = setsockopt;
| #endif
| #ifdef __cplusplus
| }
| #endif
| 
| int
| main ()
| {
| return f != setsockopt;
|   ;
|   return 0;
| }
configure:21979: result: no
configure:21985: checking for setsockopt in -lsocket
configure:22016: gcc -o conftest     conftest.c -lsocket  -lnsl -lm  >&5
configure:22019: $? = 0
conf
[14 Feb 2005 22:54] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[30 Jul 2007 9:39] Giulio Troccoli
I am having the same problem wit MySql 5.0.45

# uname -a
SunOS pvwdev-s 5.6 Generic_105181-35 sun4u sparc SUNW,Ultra-4

# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0.2/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld : (reconfigured) ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.2

# make -v
GNU Make version 3.76.1, by Richard Stallman and Roland McGrath.

but no fix has been provided so far, and it's been 4 years.
[30 Jul 2007 16:21] Lenz Grimmer
Wow, I was't even aware that this bug was still assigned to me, sorry about that!
Kent, since I have moved on to other tasks, would it be possible for you to take a look at this and investigate?