[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: configure: error: Berkeley DB version mismatch



Stefan Champailler wrote:

Well, from what I've experienced you should read carefully the config.log file. I recently installed openLDAP on my Linux with so many problems that I may help you if you show the log...

Stefan



Here is the log, i see there is allot of errors like "ld: fatal: library -ldld: not found", but i dont know how to fix them....:


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

configure:865: checking host system type
configure:906: checking target system type
configure:946: checking build system type
configure:1023: checking for a BSD compatible install
configure:1080: checking whether build environment is sane
configure:1141: checking for mawk
configure:1141: checking for gawk
configure:1141: checking for nawk
configure:1171: checking whether make sets ${MAKE}
configure:1211: checking for working aclocal
configure:1224: checking for working autoconf
configure:1237: checking for working automake
configure:1250: checking for working autoheader
configure:1263: checking for working makeinfo
configure:1283: checking for gnutar
configure:1283: checking for gtar
configure:1283: checking for tar
configure:1355: checking configure arguments
configure:2532: checking for a BSD compatible install
configure:2665: checking for cc
configure:2707: checking for ar
configure:2757: checking for Cygwin environment
configure:2773: cc -c -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure: In function `main':
configure:2769: error: `__CYGWIN32__' undeclared (first use in this function)
configure:2769: error: (Each undeclared identifier is reported only once
configure:2769: error: for each function it appears in.)
configure: failed program was:
#line 2762 "configure"
#include "confdefs.h"


int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2789: checking for mingw32 environment
configure:2801: cc -c -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure: In function `main':
configure:2797: error: `__MINGW32__' undeclared (first use in this function)
configure:2797: error: (Each undeclared identifier is reported only once
configure:2797: error: for each function it appears in.)
configure: failed program was:
#line 2794 "configure"
#include "confdefs.h"


int main() {
return __MINGW32__;
; return 0; }
configure:2817: checking for EMX OS/2 environment
configure:2829: cc -c -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure: In function `main':
configure:2825: error: `__EMX__' undeclared (first use in this function)
configure:2825: error: (Each undeclared identifier is reported only once
configure:2825: error: for each function it appears in.)
configure: failed program was:
#line 2822 "configure"
#include "confdefs.h"


int main() {
return __EMX__;
; return 0; }
configure:2845: checking how to run the C preprocessor
configure:2866: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:2950: checking for gcc
configure:3063: checking whether the C compiler (cc -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib) works
configure:3079: cc -o conftest -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
configure:3105: checking whether the C compiler (cc -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib) is a cross-compiler
configure:3110: checking whether we are using GNU C
configure:3119: cc -E conftest.c
configure:3138: checking whether cc accepts -g
configure:3181: checking for ld used by GCC
configure:3249: checking if the linker (/usr/ccs/bin/ld) is GNU ld
configure:3266: checking for /usr/ccs/bin/ld option to reload object files
configure:3278: checking for BSD-compatible nm
configure:3316: checking for a sed that does not truncate output
configure:3400: checking whether ln -s works
configure:3421: checking how to recognise dependent libraries
configure:3611: checking for object suffix
configure:3617: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:3638: checking for executable suffix
configure:3648: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
configure:3679: checking command to parse /usr/ccs/bin/nm -p output
configure:3762: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:3765: /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:3816: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c conftstm.o 1>&5
configure:3865: checking for dlfcn.h
configure:3875: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:4044: checking for ranlib
configure:4111: checking for strip
configure:4626: checking for objdir
configure:4653: checking for cc option to produce PIC
configure:4805: checking if cc PIC flag -fPIC works
configure:4819: cc -c -g -O2 -fPIC -DPIC -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:4871: checking if cc static flag -static works
configure:4886: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -static conftest.c 1>&5
configure:4913: checking if cc supports -c -o file.o
configure:4932: cc -c -g -O2 -o out/conftest2.o -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:4961: checking if cc supports -c -o file.lo
configure:4979: cc -c -g -O2 -c -o conftest.lo -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:5029: checking if cc supports -fno-rtti -fno-exceptions
configure:5042: cc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:5069: checking whether the linker (/usr/ccs/bin/ld) supports shared libraries
configure:5774: checking how to hardcode library paths into programs
configure:5802: checking whether stripping libraries is possible
configure:5816: checking dynamic linker characteristics
configure:6238: checking if libtool supports shared libraries
configure:6242: checking whether to build shared libraries
configure:6265: checking whether to build static libraries
configure:6306: checking for dllload
configure:6335: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
Undefined first referenced
symbol in file
dllload /var/tmp//ccOL6iY9.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 6311 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char dllload(); 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 dllload();
char (*f)();


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_dllload) || defined (__stub___dllload)
choke me
#else
f = dllload;
#endif

; return 0; }
configure:6353: checking for shl_load
configure:6382: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
Undefined first referenced
symbol in file
shl_load /var/tmp//ccAwU9IF.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 6358 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char shl_load(); 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 shl_load();
char (*f)();


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_shl_load) || defined (__stub___shl_load)
choke me
#else
f = shl_load;
#endif

; return 0; }
configure:6400: checking for shl_load in -ldld
configure:6419: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldld 1>&5
ld: fatal: library -ldld: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 6408 "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 shl_load();


int main() {
shl_load()
; return 0; }
configure:6438: checking for dlopen
configure:6467: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
Undefined first referenced
symbol in file
dlopen /var/tmp//cc6fHoHf.o (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 6443 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char dlopen(); 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 dlopen();
char (*f)();


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_dlopen) || defined (__stub___dlopen)
choke me
#else
f = dlopen;
#endif

; return 0; }
configure:6485: checking for dlopen in -ldl
configure:6504: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldl 1>&5
configure:6639: checking whether a program can dlopen itself
configure:6710: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -DHAVE_DLFCN_H -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldl 1>&5
configure:6733: checking whether a statically linked program can dlopen itself
configure:6804: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -DHAVE_DLFCN_H -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -static conftest.c -ldl 1>&5
ld: fatal: library -ldl: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:7460: checking whether ln works
configure:7483: checking whether ln -s works
configure:7562: checking how to run the C preprocessor
configure:7644: checking for Cygwin environment
configure:7676: checking for mingw32 environment
configure:7707: checking for executable suffix
configure:7738: checking for object suffix
configure:7768: checking for be_app in -lbe
configure:7787: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lbe -lroot -lnet 1>&5
ld: fatal: library -lbe: not found
ld: fatal: library -lroot: not found
ld: fatal: library -lnet: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 7776 "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 be_app();


int main() {
be_app()
; return 0; }
configure:7813: checking for cc option to accept ANSI C
configure:7867: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:7901: checking for cc depend flag
configure:7911: cc -M conftest.c
configure:7944: checking for afopen in -ls
configure:7963: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ls 1>&5
ld: fatal: library -ls: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 7952 "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 afopen();


int main() {
afopen()
; return 0; }
configure:8118: checking for EBCDIC
configure:8133: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8127:38: __ASCII__/generate_error.h: No such file or directory
configure: failed program was:
#line 8124 "configure"
#include "confdefs.h"


#if !('M' == 0xd4)
#include <__ASCII__/generate_error.h>
#endif

configure:8157: checking for ANSI C header files
configure:8170: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8244: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
configure:8278: checking for dirent.h that defines DIR
configure:8291: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:8316: checking for opendir in -ldir
configure:8335: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib 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 8324 "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:8399: checking for sys/wait.h that is POSIX.1 compatible
configure:8420: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:8441: checking POSIX termios
configure:8456: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
configure:8472: checking whether use of TIOCGWINSZ requires sys/ioctl.h
configure:8589: checking for arpa/inet.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for arpa/nameser.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for assert.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for bits/types.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:24: bits/types.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <bits/types.h>
configure:8589: checking for conio.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:19: conio.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <conio.h>
configure:8589: checking for crypt.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for direct.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:20: direct.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <direct.h>
configure:8589: checking for errno.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for fcntl.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for filio.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:19: filio.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <filio.h>
configure:8589: checking for getopt.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:20: getopt.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <getopt.h>
configure:8589: checking for grp.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for io.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:16: io.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <io.h>
configure:8589: checking for libutil.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:21: libutil.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <libutil.h>
configure:8589: checking for limits.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for locale.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for netinet/tcp.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for malloc.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for memory.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for psap.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:18: psap.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <psap.h>
configure:8589: checking for pwd.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for process.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:21: process.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <process.h>
configure:8589: checking for resolv.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sgtty.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for shadow.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for stddef.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for string.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for strings.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sysexits.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/file.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/filio.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/errno.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/ioctl.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/param.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/resource.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/select.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/socket.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/stat.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/syslog.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/time.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/types.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for sys/ucred.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:23: sys/ucred.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <sys/ucred.h>
configure:8589: checking for sys/uio.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for syslog.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for termios.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for unistd.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8589: checking for winsock.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:21: winsock.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <winsock.h>
configure:8589: checking for winsock2.h
configure:8599: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:8595:22: winsock2.h: No such file or directory
configure: failed program was:
#line 8594 "configure"
#include "confdefs.h"
#include <winsock2.h>
configure:8629: checking for sigset in -lV3
configure:8648: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lV3 1>&5
ld: fatal: library -lV3: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 8637 "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 sigset();


int main() {
sigset()
; return 0; }
configure:8737: checking for socket
configure:8766: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c 1>&5
Undefined first referenced
symbol in file
socket /var/tmp//ccO3mrrQ.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 8742 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char socket(); 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 socket();
char (*f)();


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_socket) || defined (__stub___socket)
choke me
#else
f = socket;
#endif

; return 0; }
configure:8785: checking for main in -lsocket
configure:8800: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lsocket 1>&5
configure:8828: checking for main in -lnet
configure:8843: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lnet -lsocket 1>&5
ld: fatal: library -lnet: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 8836 "configure"
#include "confdefs.h"


int main() {
main()
; return 0; }
configure:8871: checking for main in -lnsl_s
configure:8886: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lnsl_s -lsocket 1>&5
ld: fatal: library -lnsl_s: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 8879 "configure"
#include "confdefs.h"


int main() {
main()
; return 0; }
configure:8914: checking for main in -lnsl
configure:8929: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lnsl -lsocket 1>&5
configure:8957: checking for socket in -linet
configure:8976: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -linet -lnsl -lsocket 1>&5
ld: fatal: library -linet: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 8965 "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 socket();


int main() {
socket()
; return 0; }
configure:9004: checking for main in -lgen
configure:9019: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lgen -lnsl -lsocket 1>&5
configure:9051: checking for select
configure:9080: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lgen -lnsl -lsocket 1>&5
configure:9103: checking types of arguments for select()
configure:9136: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:9181: checking for regex.h
configure:9191: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:9222: checking for library containing regfree
configure:9240: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lgen -lnsl -lsocket 1>&5
configure:9285: checking for compatible POSIX regex
configure:9320: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lgen -lnsl -lsocket 1>&5
configure:9346: checking for sys/uuid.h
configure:9356: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:9352:22: sys/uuid.h: No such file or directory
configure: failed program was:
#line 9351 "configure"
#include "confdefs.h"
#include <sys/uuid.h>
configure:9461: checking to see if -lrpcrt4 is needed for win32 UUID support
configure:9478: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lgen -lnsl -lsocket -lrpcrt4 1>&5
configure:9467: error: parse error before "UuidCreate"
configure:9467: warning: data definition has no type or storage class
configure:9468: error: parse error before "UuidToStringA"
configure:9468: warning: data definition has no type or storage class
configure: failed program was:
#line 9465 "configure"
#include "confdefs.h"


		int __stdcall UuidCreate(void *);
		int __stdcall UuidToStringA(void *,void **);
		
int main() {

UuidCreate(0);
UuidToStringA(0,0);

; return 0; }
configure:9497: checking for res_query
configure:9526: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
res_query /var/tmp//ccGi63pE.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 9502 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char res_query(); 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 res_query();
char (*f)();


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_res_query) || defined (__stub___res_query)
choke me
#else
f = res_query;
#endif

; return 0; }
configure:9547: checking for __res_query
configure:9576: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
__res_query /var/tmp//ccWKk9sb.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 9552 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char __res_query(); 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 __res_query();
char (*f)();


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___res_query) || defined (__stub_____res_query)
choke me
#else
f = __res_query;
#endif

; return 0; }
configure:9600: checking for res_query in -lbind
configure:9619: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lbind -lgen -lnsl -lsocket 1>&5
ld: fatal: library -lbind: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 9608 "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 res_query();


int main() {
res_query()
; return 0; }
configure:9651: checking for __res_query in -lbind
configure:9670: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lbind -lgen -lnsl -lsocket 1>&5
ld: fatal: library -lbind: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 9659 "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 __res_query();


int main() {
__res_query()
; return 0; }
configure:9702: checking for res_query in -lresolv
configure:9721: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:9871: checking for getaddrinfo
configure:9900: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:9871: checking for getnameinfo
configure:9900: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:9871: checking for gai_strerror
configure:9900: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:9871: checking for inet_ntop
configure:9900: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:9932: checking INET6_ADDRSTRLEN
configure:9963: checking struct sockaddr_storage
configure:9981: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:10012: checking for sys/un.h
configure:10022: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:10661: checking for openssl/ssl.h
configure:10671: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:10661: checking for ssl.h
configure:10671: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:10667:17: ssl.h: No such file or directory
configure: failed program was:
#line 10666 "configure"
#include "confdefs.h"
#include <ssl.h>
configure:10701: checking for SSLeay_add_ssl_algorithms in -lssl
configure:10720: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lssl -lcrypto -lresolv -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
SSLeay_add_ssl_algorithms /var/tmp//ccyyJ0BM.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 10709 "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 SSLeay_add_ssl_algorithms();


int main() {
SSLeay_add_ssl_algorithms()
; return 0; }
configure:10745: checking for SSL_library_init in -lssl
configure:10764: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lssl -lcrypto -lresolv -lgen -lnsl -lsocket 1>&5
configure:10893: checking for _beginthread
configure:10922: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
_beginthread /var/tmp//ccOXCXX1.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 10898 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _beginthread(); 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 _beginthread();
char (*f)();


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__beginthread) || defined (__stub____beginthread)
choke me
#else
f = _beginthread;
#endif

; return 0; }
configure:10978: checking for pthread.h
configure:10988: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:11017: checking POSIX thread version
configure:11034: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:11134: checking for LinuxThreads pthread.h
configure:11166: checking for GNU Pth pthread.h
configure:11200: checking for sched.h
configure:11210: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:11240: checking for pthread_create in default libraries
configure:11398: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure: failed program was:
#line 11326 "configure"
#include "confdefs.h"
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif


static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv) int argc; char **argv; {

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

configure:11423: checking for pthread link with -kthread
configure:11585: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -kthread -lresolv -lgen -lnsl -lsocket 1>&5
cc: unrecognized option `-kthread'
configure: failed program was:
#line 11513 "configure"
#include "confdefs.h"
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif


static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv) int argc; char **argv; {

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

configure:11615: checking for pthread link with -pthread
configure:11777: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthread -lresolv -lgen -lnsl -lsocket 1>&5
cc: unrecognized option `-pthread'
configure: failed program was:
#line 11705 "configure"
#include "confdefs.h"
/* pthread test headers */
#include <pthread.h>
#if HAVE_PTHREADS < 7
#include <errno.h>
#endif
#ifndef NULL
#define NULL (void*)0
#endif


static void *task(p)
	void *p;
{
	return (void *) (p == NULL);
}


int main(argc, argv) int argc; char **argv; {

	/* pthread test function */
#ifndef PTHREAD_CREATE_DETACHED
#define	PTHREAD_CREATE_DETACHED	1
#endif
	pthread_t t;
	int status;
	int detach = PTHREAD_CREATE_DETACHED;

#if HAVE_PTHREADS > 4
	/* Final pthreads */
	pthread_attr_t attr;

	status = pthread_attr_init(&attr);
	if( status ) return status;

#if HAVE_PTHREADS < 7
	status = pthread_attr_setdetachstate(&attr, &detach);
	if( status < 0 ) status = errno;
#else
	status = pthread_attr_setdetachstate(&attr, detach);
#endif
	if( status ) return status;
	status = pthread_create( &t, &attr, task, NULL );
#if HAVE_PTHREADS < 7
	if( status < 0 ) status = errno;
#endif
	if( status ) return status;
#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return errno;

	/* give thread a chance to complete */
	/* it should remain joinable and hence detachable */
	sleep( 1 );

	status = pthread_detach( &t );
	if( status ) return errno;
#endif

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

configure:11807: checking for pthread link with -pthreads
configure:11969: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14316: checking for sched_yield
configure:14345: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
sched_yield /var/tmp//ccq06syv.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 14321 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sched_yield(); 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 sched_yield();
char (*f)();


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_sched_yield) || defined (__stub___sched_yield)
choke me
#else
f = sched_yield;
#endif

; return 0; }
configure:14316: checking for pthread_yield
configure:14345: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
pthread_yield /var/tmp//ccQXExQV.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 14321 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_yield(); 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 pthread_yield();
char (*f)();


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_pthread_yield) || defined (__stub___pthread_yield)
choke me
#else
f = pthread_yield;
#endif

; return 0; }
configure:14316: checking for thr_yield
configure:14345: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14429: checking for pthread_kill
configure:14458: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14429: checking for pthread_rwlock_destroy
configure:14458: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14484: checking for pthread_detach with <pthread.h>
configure:14502: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14534: checking for pthread_setconcurrency
configure:14563: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14534: checking for pthread_getconcurrency
configure:14563: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14534: checking for thr_setconcurrency
configure:14563: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14534: checking for thr_getconcurrency
configure:14563: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14592: checking for pthread_kill_other_threads_np
configure:14621: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
pthread_kill_other_threads_np /var/tmp//cca9IJrV.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 14597 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_kill_other_threads_np(); 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 pthread_kill_other_threads_np();
char (*f)();


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_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
choke me
#else
f = pthread_kill_other_threads_np;
#endif


; return 0; }
configure:14646: checking for LinuxThreads implementation
configure:14659: checking for LinuxThreads consistency
configure:14684: checking if pthread_create() works
configure:14765: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:14787: checking if select yields when using pthreads
configure:14873: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure: failed program was:
#line 14796 "configure"
#include "confdefs.h"


#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#ifndef NULL
#define NULL (void*) 0
#endif

static int fildes[2];

static void *task(p)
	void *p;
{
	int i;
	struct timeval tv;

	fd_set rfds;

	tv.tv_sec=10;
	tv.tv_usec=0;

	FD_ZERO(&rfds);
	FD_SET(fildes[0], &rfds);

	/* we're not interested in any fds */
	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);

	if(i < 0) {
		perror("select");
		exit(10);
	}

	exit(0); /* if we exit here, the select blocked the whole process */
}

int main(argc, argv)
	int argc;
	char **argv;
{
	pthread_t t;

	/* create a pipe to select */
	if(pipe(&fildes[0])) {
		perror("select");
		exit(1);
	}

#ifdef HAVE_PTHREAD_SETCONCURRENCY
	(void) pthread_setconcurrency(2);
#else
#ifdef HAVE_THR_SETCONCURRENCY
	/* Set Solaris LWP concurrency to 2 */
	thr_setconcurrency(2);
#endif
#endif

#if HAVE_PTHREADS < 6
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

	/* make sure task runs first */
#if HAVE_THR_YIELD
	thr_yield();
#elif defined( HAVE_SCHED_YIELD )
	sched_yield();
#elif defined( HAVE_PTHREAD_YIELD )
	pthread_yield();
#endif

exit(2);
}
configure:15782: checking for thread specific errno
configure:15795: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:15811: checking for thread specific h_errno
configure:15824: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:15877: checking for ctime_r
configure:15906: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:15877: checking for gethostbyname_r
configure:15906: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:15877: checking for gethostbyaddr_r
configure:15906: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -lresolv -lgen -lnsl -lsocket 1>&5
configure:15935: checking number of arguments of ctime_r
configure:15947: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:15966: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure: In function `main':
configure:15962: error: too few arguments to function `ctime_r'
configure: failed program was:
#line 15959 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
time_t ti; char *buffer; ctime_r(&ti,buffer);
; return 0; }
configure:16006: checking number of arguments of gethostbyname_r
configure:16025: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:16052: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure: In function `main':
configure:16048: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type
configure:16048: error: too many arguments to function `gethostbyname_r'
configure: failed program was:
#line 16037 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#define BUFSIZE (sizeof(struct hostent)+10)
int main() {
struct hostent hent;struct hostent *rhent;
char buffer[BUFSIZE];
int bufsize=BUFSIZE;int h_errno;
(void)gethostbyname_r("localhost", &hent, buffer, bufsize,
&rhent, &h_errno);
; return 0; }
configure:16093: checking number of arguments of gethostbyaddr_r
configure:16114: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure:16144: cc -c -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c 1>&5
configure: In function `main':
configure:16140: warning: passing arg 7 of `gethostbyaddr_r' from incompatible pointer type
configure:16140: error: too many arguments to function `gethostbyaddr_r'
configure: failed program was:
#line 16126 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#define BUFSIZE (sizeof(struct hostent)+10)
int main() {
struct hostent hent;
struct hostent *rhent; char buffer[BUFSIZE];
struct in_addr add;
size_t alen=sizeof(struct in_addr);
int bufsize=BUFSIZE;int h_errno;
(void)gethostbyaddr_r( (void *)&(add.s_addr),
alen, AF_INET, &hent, buffer, bufsize,
&rhent, &h_errno);
; return 0; }
configure:17744: checking for db.h
configure:17754: cc -E -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include conftest.c >/dev/null 2>conftest.out
configure:17784: checking for Berkeley DB link (default)
configure:17841: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
db_version /var/tmp//ccOcDMKP.o
db_env_create /var/tmp//ccOcDMKP.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 17794 "configure"
#include "confdefs.h"


#ifdef HAVE_DB_185_H
# include <db_185.h>
#else
# include <db.h>
#endif

#ifndef DB_VERSION_MAJOR
# define DB_VERSION_MAJOR 1
#endif

#ifndef NULL
#define NULL ((void*)0)
#endif

int main() {

#if DB_VERSION_MAJOR > 1
	{
		char *version;
		int major, minor, patch;

		version = db_version( &major, &minor, &patch );

		if( major != DB_VERSION_MAJOR ||
			minor < DB_VERSION_MINOR )
		{
			printf("Berkeley DB version mismatch\n"
				"\texpected: %s\n\tgot: %s\n",
				DB_VERSION_STRING, version);
			return 1;
		}
	}
#endif

#if DB_VERSION_MAJOR > 2
	db_env_create( NULL, 0 );
#elif DB_VERSION_MAJOR > 1
	db_appexit( NULL );
#else
	(void) dbopen( NULL, 0, 0, 0, NULL);
#endif

; return 0; }
configure:17865: checking for Berkeley DB link (-ldb42)
configure:17922: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldb42 -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
ld: fatal: library -ldb42: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 17875 "configure"
#include "confdefs.h"


#ifdef HAVE_DB_185_H
# include <db_185.h>
#else
# include <db.h>
#endif

#ifndef DB_VERSION_MAJOR
# define DB_VERSION_MAJOR 1
#endif

#ifndef NULL
#define NULL ((void*)0)
#endif

int main() {

#if DB_VERSION_MAJOR > 1
	{
		char *version;
		int major, minor, patch;

		version = db_version( &major, &minor, &patch );

		if( major != DB_VERSION_MAJOR ||
			minor < DB_VERSION_MINOR )
		{
			printf("Berkeley DB version mismatch\n"
				"\texpected: %s\n\tgot: %s\n",
				DB_VERSION_STRING, version);
			return 1;
		}
	}
#endif

#if DB_VERSION_MAJOR > 2
	db_env_create( NULL, 0 );
#elif DB_VERSION_MAJOR > 1
	db_appexit( NULL );
#else
	(void) dbopen( NULL, 0, 0, 0, NULL);
#endif

; return 0; }
configure:17946: checking for Berkeley DB link (-ldb-42)
configure:18003: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldb-42 -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
ld: fatal: library -ldb-42: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 17956 "configure"
#include "confdefs.h"


#ifdef HAVE_DB_185_H
# include <db_185.h>
#else
# include <db.h>
#endif

#ifndef DB_VERSION_MAJOR
# define DB_VERSION_MAJOR 1
#endif

#ifndef NULL
#define NULL ((void*)0)
#endif

int main() {

#if DB_VERSION_MAJOR > 1
	{
		char *version;
		int major, minor, patch;

		version = db_version( &major, &minor, &patch );

		if( major != DB_VERSION_MAJOR ||
			minor < DB_VERSION_MINOR )
		{
			printf("Berkeley DB version mismatch\n"
				"\texpected: %s\n\tgot: %s\n",
				DB_VERSION_STRING, version);
			return 1;
		}
	}
#endif

#if DB_VERSION_MAJOR > 2
	db_env_create( NULL, 0 );
#elif DB_VERSION_MAJOR > 1
	db_appexit( NULL );
#else
	(void) dbopen( NULL, 0, 0, 0, NULL);
#endif

; return 0; }
configure:18027: checking for Berkeley DB link (-ldb-4.2)
configure:18084: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldb-4.2 -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure:19244: checking for Berkeley DB version match
configure:19292: cc -o conftest -g -O2 -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib conftest.c -ldb-4.2 -pthreads -lresolv -lgen -lnsl -lsocket 1>&5
configure: failed program was:
#line 19259 "configure"
#include "confdefs.h"


#ifdef HAVE_DB_185_H
	choke me;
#else
#include <db.h>
#endif
#ifndef DB_VERSION_MAJOR
# define DB_VERSION_MAJOR 1
#endif
#ifndef NULL
#define NULL ((void *)0)
#endif
main()
{
#if DB_VERSION_MAJOR > 1
	char *version;
	int major, minor, patch;

	version = db_version( &major, &minor, &patch );

	if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
		printf("Berkeley DB version mismatch\n"
			"\texpected: %s\n\tgot: %s\n",
			DB_VERSION_STRING, version);
		return 1;
	}
#endif

	return 0;
}





Hi all,

when doing a configure for openldap i get the error:

checking for Berkeley DB version match... no
configure: error: Berkeley DB version mismatch

I've googled around and but I can't seem to find a solution.

BerkeleyDB4.2 is installed (with the two supplied patches)

I'm using openldap 2.2.15 on solaris 8.

environment variables are set:

# echo $LDFLAGS
-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
# echo $CPPFLAGS
-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include
#


Can anybody help?

Cameron