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

Infinite loop in read_cdata in ucgendat.c (ITS#1916)



Full_Name: Richard Shaffer
Version: 2.1.2
OS: Linux (Red Hat 7)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (64.174.237.130)


During the "make" process, the command "./ucgendat $(srcdir)/UnicodeData.txt -x
$(srcdir)/CompositionExclusions.txt" is run (in libraries/liblunicode).  On my
system, a very vanilla version of RedHat 7, this program goes into an infinite
loop when the read_cdata function reaches the end of the UnicodeData.txt file. 
The reason is that the call to fscanf at line 807 of ucgendat.c returns 0 when
the end of the file is reached, instead of EOF.  I am using gcc version 2.96 as
the compiler, and glibc version 2.1.92.

To work around this problem, I used feof() to determine an end of file condition
instead of relying on the return value from fscanf.  Following is a copy of the
patch I used to work around the problem, and the config.log from running the
configure script.

----------Start Patch----------
--- ucgendat.c  Fri Jun 28 10:04:48 2002
+++ ucgendat.unpatched  Fri Jun 28 10:05:58 2002
@@ -804,7 +804,8 @@
     char line[512], *s, *e;

     lineno = skip = 0;
-    while (fscanf(in, "%[^\n]\n", line) != EOF) {
+    while (!feof(in)) {
+        fscanf(in, "%[^\n]\n", line);
         lineno++;

         /*
-----------End Patch-----------





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

configure:879: checking host system type
configure:920: checking target system type
configure:960: checking build system type
configure:1037: checking for a BSD compatible install
configure:1094: checking whether build environment is sane
configure:1155: checking for mawk
configure:1185: checking whether make sets ${MAKE}
configure:1225: checking for working aclocal
configure:1238: checking for working autoconf
configure:1251: checking for working automake
configure:1264: checking for working autoheader
configure:1277: checking for working makeinfo
configure:1297: checking for gnutar
configure:1297: checking for gtar
configure:1365: checking configure arguments
configure:2905: checking for a BSD compatible install
configure:3038: checking for cc
configure:3076: checking for ar
configure:3126: checking for Cygwin environment
configure:3142: cc -c   conftest.c 1>&5
configure: In function `main':
configure:3138: `__CYGWIN32__' undeclared (first use in this function)
configure:3138: (Each undeclared identifier is reported only once
configure:3138: for each function it appears in.)
configure: failed program was:
#line 3131 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:3158: checking for mingw32 environment
configure:3170: cc -c   conftest.c 1>&5
configure: In function `main':
configure:3166: `__MINGW32__' undeclared (first use in this function)
configure:3166: (Each undeclared identifier is reported only once
configure:3166: for each function it appears in.)
configure: failed program was:
#line 3163 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:3186: checking for EMX OS/2 environment
configure:3198: cc -c   conftest.c 1>&5
configure: In function `main':
configure:3194: `__EMX__' undeclared (first use in this function)
configure:3194: (Each undeclared identifier is reported only once
configure:3194: for each function it appears in.)
configure: failed program was:
#line 3191 "configure"
#include "confdefs.h"

int main() {
return __EMX__;
; return 0; }
configure:3214: checking how to run the C preprocessor
configure:3235: cc -E  conftest.c >/dev/null 2>conftest.out
configure:3319: checking for gcc
configure:3432: checking whether the C compiler (cc   ) works
configure:3448: cc -o conftest    conftest.c  1>&5
configure:3474: checking whether the C compiler (cc   ) is a cross-compiler
configure:3479: checking whether we are using GNU C
configure:3488: cc -E conftest.c
configure:3507: checking whether cc accepts -g
configure:3550: checking for ld used by GCC
configure:3618: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.10.90 (with BFD 2.10.0.18)
configure:3635: checking for /usr/bin/ld option to reload object files
configure:3647: checking for BSD-compatible nm
configure:3685: checking whether ln -s works
configure:3706: checking how to recognise dependant libraries
configure:3889: checking for object suffix
configure:3895: cc -c -g -O2  conftest.c 1>&5
configure:3916: checking for executable suffix
configure:3926: cc -o conftest -g -O2   conftest.c  1>&5
configure:3957: checking command to parse /usr/bin/nm -B output
configure:4037: cc -c -g -O2  conftest.c 1>&5
configure:4040: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[
]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'
> conftest.nm
configure:4091: cc -o conftest -g -O2   conftest.c conftstm.o 1>&5
configure:4140: checking for dlfcn.h
configure:4150: cc -E  conftest.c >/dev/null 2>conftest.out
configure:4318: checking for ranlib
configure:4385: checking for strip
configure:4900: checking for objdir
configure:4927: checking for cc option to produce PIC
configure:5079: checking if cc PIC flag -fPIC works
configure:5093: cc -c -g -O2 -fPIC -DPIC  conftest.c 1>&5
configure:5145: checking if cc static flag -static works
configure:5160: cc -o conftest -g -O2   -static conftest.c  1>&5
configure:5187: checking if cc supports -c -o file.o
configure:5206: cc -c -g -O2 -o out/conftest2.o  conftest.c 1>&5
configure:5235: checking if cc supports -c -o file.lo
configure:5253: cc -c -g -O2 -c -o conftest.lo  conftest.c 1>&5
configure:5303: checking if cc supports -fno-rtti -fno-exceptions
configure:5316: cc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c
1>&5
configure:5343: checking whether the linker (/usr/bin/ld) supports shared
libraries
configure:6027: checking how to hardcode library paths into programs
configure:6055: checking whether stripping libraries is possible
configure:6069: checking dynamic linker characteristics
configure:6466: checking if libtool supports shared libraries
configure:6470: checking whether to build shared libraries
configure:6493: checking whether to build static libraries
configure:6534: checking for shl_load
configure:6563: cc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccBKb2yr.o: In function `main':
/root/openldap-2.1.2/configure:6557: undefined reference to `shl_load'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6539 "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:6581: checking for shl_load in -ldld
configure:6600: cc -o conftest -g -O2   conftest.c -ldld   1>&5
/usr/bin/ld: cannot find -ldld
collect2: ld returned 1 exit status
configure: failed program was:
#line 6589 "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:6619: checking for dlopen
configure:6648: cc -o conftest -g -O2   conftest.c  1>&5
/tmp/cc6tLFF7.o: In function `main':
/root/openldap-2.1.2/configure:6642: undefined reference to `dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6624 "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:6666: checking for dlopen in -ldl
configure:6685: cc -o conftest -g -O2   conftest.c -ldl   1>&5
configure:6817: checking whether a program can dlopen itself
configure:6888: cc -o conftest -g -O2  -DHAVE_DLFCN_H  -Wl,--export-dynamic
conftest.c -ldl  1>&5
configure:6911: checking whether a statically linked program can dlopen itself
configure:6982: cc -o conftest -g -O2  -DHAVE_DLFCN_H  -Wl,--export-dynamic
-static conftest.c -ldl  1>&5
configure:7031: checking whether -lc should be explicitly linked in
configure:7038: cc -c -g -O2  conftest.c 1>&5
configure:7051: cc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest
2>&1 | grep  -lc  >/dev/null 2>&1
configure:7638: checking for mawk
configure:7669: checking whether ln works
configure:7692: checking whether ln -s works
configure:7716: checking for sendmail
configure:7752: checking for vi
configure:7842: checking how to run the C preprocessor
configure:7936: checking for Cygwin environment
configure:7968: checking for mingw32 environment
configure:7999: checking for executable suffix
configure:8030: checking for object suffix
configure:8060: checking for be_app in -lbe
configure:8079: cc -o conftest -g -O2   conftest.c -lbe -lroot -lnet  1>&5
/usr/bin/ld: cannot find -lbe
collect2: ld returned 1 exit status
configure: failed program was:
#line 8068 "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:8105: checking for cc option to accept ANSI C
configure:8159: cc  -c -g -O2  conftest.c 1>&5
configure:8193: checking for cc depend flag
configure:8203: cc -M conftest.c
configure:8236: checking for afopen in -ls
configure:8255: cc -o conftest -g -O2   conftest.c -ls   1>&5
/usr/bin/ld: cannot find -ls
collect2: ld returned 1 exit status
configure: failed program was:
#line 8244 "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:8397: checking for EBCDIC
configure:8412: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8406:38: __ASCII__/generate_error.h: No such file or directory
configure: failed program was:
#line 8403 "configure"
#include "confdefs.h"

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

configure:8436: checking for ANSI C header files
configure:8449: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8523: cc -o conftest -g -O2   conftest.c  1>&5
configure:8557: checking for dirent.h that defines DIR
configure:8570: cc -c -g -O2  conftest.c 1>&5
configure:8595: checking for opendir in -ldir
configure:8614: cc -o conftest -g -O2   conftest.c -ldir   1>&5
/usr/bin/ld: cannot find -ldir
collect2: ld returned 1 exit status
configure: failed program was:
#line 8603 "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:8678: checking for sys/wait.h that is POSIX.1 compatible
configure:8699: cc -c -g -O2  conftest.c 1>&5
configure:8720: checking POSIX termios
configure:8735: cc -o conftest -g -O2   conftest.c  1>&5
configure:8751: checking whether use of TIOCGWINSZ requires sys/ioctl.h
configure:8864: checking for arpa/inet.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for arpa/nameser.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for assert.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for conio.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:19: conio.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <conio.h>
configure:8864: checking for crypt.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for direct.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:20: direct.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <direct.h>
configure:8864: checking for errno.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for fcntl.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for filio.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:19: filio.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <filio.h>
configure:8864: checking for getopt.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for grp.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for io.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:16: io.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <io.h>
configure:8864: checking for libutil.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:21: libutil.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <libutil.h>
configure:8864: checking for limits.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for locale.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for netinet/tcp.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for malloc.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for memory.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for psap.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:18: psap.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <psap.h>
configure:8864: checking for pwd.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for process.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:21: process.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <process.h>
configure:8864: checking for resolv.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sgtty.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for shadow.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for stddef.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for string.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for strings.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sysexits.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/file.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/filio.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:23: sys/filio.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <sys/filio.h>
configure:8864: checking for sys/errno.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/ioctl.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/param.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/resource.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/select.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/socket.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/syslog.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/time.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for sys/types.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for syslog.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for termios.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for unistd.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8864: checking for winsock.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:21: winsock.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <winsock.h>
configure:8864: checking for winsock2.h
configure:8874: cc -E  conftest.c >/dev/null 2>conftest.out
configure:8870:22: winsock2.h: No such file or directory
configure: failed program was:
#line 8869 "configure"
#include "confdefs.h"
#include <winsock2.h>
configure:8904: checking for dlopen
configure:8951: checking for dlopen in -ldl
configure:9001: checking for sigset in -lV3
configure:9020: cc -o conftest -g -O2   conftest.c -lV3  -ldl  1>&5
/usr/bin/ld: cannot find -lV3
collect2: ld returned 1 exit status
configure: failed program was:
#line 9009 "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:9049: checking for winsock
configure:9071: cc -o conftest -g -O2   conftest.c -ldl  -lws2_32 1>&5
/tmp/ccGrxIst.s: Assembler messages:
/tmp/ccGrxIst.s:41: Error: bad reloc specifier in expression
/tmp/ccGrxIst.s:41: Error: ignoring junk `12' after expression
/tmp/ccGrxIst.s:44: Error: bad reloc specifier in expression
/tmp/ccGrxIst.s:44: Error: ignoring junk `20' after expression
/tmp/ccGrxIst.s:47: Error: bad reloc specifier in expression
/tmp/ccGrxIst.s:47: Error: ignoring junk `4' after expression
/tmp/ccGrxIst.s:50: Error: bad reloc specifier in expression
/tmp/ccGrxIst.s:50: Error: ignoring junk `8' after expression
configure: failed program was:
#line 9054 "configure"
#include "confdefs.h"

			char socket@12();
			char select@20();
			char closesocket@4();
			char gethostname@8();
			
int main() {

			socket@12();
			select@20();
			closesocket@4();
			gethostname@8();
			
; return 0; }
configure:9071: cc -o conftest -g -O2   conftest.c -ldl  -lwsock32 1>&5
/tmp/ccKhoFfA.s: Assembler messages:
/tmp/ccKhoFfA.s:41: Error: bad reloc specifier in expression
/tmp/ccKhoFfA.s:41: Error: ignoring junk `12' after expression
/tmp/ccKhoFfA.s:44: Error: bad reloc specifier in expression
/tmp/ccKhoFfA.s:44: Error: ignoring junk `20' after expression
/tmp/ccKhoFfA.s:47: Error: bad reloc specifier in expression
/tmp/ccKhoFfA.s:47: Error: ignoring junk `4' after expression
/tmp/ccKhoFfA.s:50: Error: bad reloc specifier in expression
/tmp/ccKhoFfA.s:50: Error: ignoring junk `8' after expression
configure: failed program was:
#line 9054 "configure"
#include "confdefs.h"

			char socket@12();
			char select@20();
			char closesocket@4();
			char gethostname@8();
			
int main() {

			socket@12();
			select@20();
			closesocket@4();
			gethostname@8();
			
; return 0; }
configure:9106: checking for socket
configure:9135: cc -o conftest -g -O2   conftest.c -ldl  1>&5
configure:9420: checking for select
configure:9449: cc -o conftest -g -O2   conftest.c -ldl  1>&5
configure:9472: checking types of arguments for select()
configure:9505: cc -c -g -O2  conftest.c 1>&5
configure:9550: checking for regex.h
configure:9560: cc -E  conftest.c >/dev/null 2>conftest.out
configure:9591: checking for library containing regfree
configure:9609: cc -o conftest -g -O2   conftest.c -ldl  1>&5
configure:9654: checking for compatible POSIX regex
configure:9689: cc -o conftest -g -O2   conftest.c -ldl  1>&5
configure:9715: checking for sys/uuid.h
configure:9725: cc -E  conftest.c >/dev/null 2>conftest.out
configure:9721:22: sys/uuid.h: No such file or directory
configure: failed program was:
#line 9720 "configure"
#include "confdefs.h"
#include <sys/uuid.h>
configure:9830: checking to see if -lrpcrt4 is needed for win32 UUID support
configure:9847: cc -o conftest -g -O2   conftest.c -ldl  -lrpcrt4 1>&5
/tmp/cciIa9fo.s: Assembler messages:
/tmp/cciIa9fo.s:41: Error: bad reloc specifier in expression
/tmp/cciIa9fo.s:41: Error: ignoring junk `4' after expression
/tmp/cciIa9fo.s:44: Error: bad reloc specifier in expression
/tmp/cciIa9fo.s:44: Error: ignoring junk `8' after expression
configure: failed program was:
#line 9834 "configure"
#include "confdefs.h"

		char UuidCreate@4();
		char UuidToStringA@8();
		
int main() {

		UuidCreate@4();
		UuidToStringA@8();
		
; return 0; }
configure:9866: checking for res_query
configure:9895: cc -o conftest -g -O2   conftest.c -ldl  1>&5
/tmp/ccPuMLFh.o: In function `main':
/root/openldap-2.1.2/configure:9889: undefined reference to `res_query'
collect2: ld returned 1 exit status
configure: failed program was:
#line 9871 "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:9916: checking for __res_query
configure:9945: cc -o conftest -g -O2   conftest.c -ldl  1>&5
/tmp/ccQvoeRE.o: In function `main':
/root/openldap-2.1.2/configure:9939: undefined reference to `__res_query'
collect2: ld returned 1 exit status
configure: failed program was:
#line 9921 "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:9969: checking for res_query in -lbind
configure:9988: cc -o conftest -g -O2   conftest.c -lbind  -ldl  1>&5
/usr/bin/ld: cannot find -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 9977 "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:10020: checking for __res_query in -lbind
configure:10039: cc -o conftest -g -O2   conftest.c -lbind  -ldl  1>&5
/usr/bin/ld: cannot find -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 10028 "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:10071: checking for res_query in -lresolv
configure:10090: cc -o conftest -g -O2   conftest.c -lresolv  -ldl  1>&5
configure:10189: checking for getaddrinfo
configure:10218: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:10189: checking for gai_strerror
configure:10218: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:10189: checking for inet_ntop
configure:10218: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:10250: checking INET6_ADDRSTRLEN
configure:10291: checking for sys/un.h
configure:10301: cc -E  conftest.c >/dev/null 2>conftest.out
configure:10949: checking for openssl/ssl.h
configure:10959: cc -E  conftest.c >/dev/null 2>conftest.out
configure:10949: checking for ssl.h
configure:10959: cc -E  conftest.c >/dev/null 2>conftest.out
configure:10955:17: ssl.h: No such file or directory
configure: failed program was:
#line 10954 "configure"
#include "confdefs.h"
#include <ssl.h>
configure:10988: checking for SSLeay_add_ssl_algorithms in -lssl
configure:11007: cc -o conftest -g -O2   conftest.c -lssl -lcrypto -lresolv -ldl
 1>&5
/tmp/ccbeplTb.o: In function `main':
/root/openldap-2.1.2/configure:11003: undefined reference to
`SSLeay_add_ssl_algorithms'
collect2: ld returned 1 exit status
configure: failed program was:
#line 10996 "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:11032: checking for SSL_library_init in -lssl
configure:11051: cc -o conftest -g -O2   conftest.c -lssl -lcrypto -lresolv -ldl
 1>&5
configure:11177: checking for ctime_r
configure:11206: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:11177: checking for gethostbyname_r
configure:11206: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:11177: checking for gethostbyaddr_r
configure:11206: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:11235: checking number of arguments of ctime_r
configure:11247: cc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:11243: too many arguments to function `ctime_r'
configure: failed program was:
#line 11240 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
time_t ti; char *buffer; ctime_r(&ti,buffer,32);
; return 0; }
configure:11266: cc -c -g -O2  conftest.c 1>&5
configure:11306: checking number of arguments of gethostbyname_r
configure:11325: cc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:11321: warning: passing arg 5 of `gethostbyname_r' from incompatible
pointer type
configure:11321: too few arguments to function `gethostbyname_r'
configure: failed program was:
#line 11311 "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; char buffer[BUFSIZE];
		int bufsize=BUFSIZE;int h_errno;
		(void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
			buffer, bufsize, &h_errno);
; return 0; }
configure:11352: cc -c -g -O2  conftest.c 1>&5
configure:11393: checking number of arguments of gethostbyaddr_r
configure:11414: cc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:11410: warning: passing arg 7 of `gethostbyaddr_r' from incompatible
pointer type
configure:11410: too few arguments to function `gethostbyaddr_r'
configure: failed program was:
#line 11398 "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; 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, &h_errno);
; return 0; }
configure:11444: cc -c -g -O2  conftest.c 1>&5
configure:11507: checking for _beginthread
configure:11536: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/ccLMzht2.o: In function `main':
/root/openldap-2.1.2/configure:11530: undefined reference to `_beginthread'
collect2: ld returned 1 exit status
configure: failed program was:
#line 11512 "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:11592: checking for pthread.h
configure:11602: cc -E  conftest.c >/dev/null 2>conftest.out
configure:11631: checking POSIX thread version
configure:11712: checking for LinuxThreads pthread.h
configure:11744: checking for GNU Pth pthread.h
configure:11778: checking for sched.h
configure:11788: cc -E  conftest.c >/dev/null 2>conftest.out
configure:11818: checking for pthread_create in default libraries
configure:12004: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/cc2VFkgn.o: In function `main':
/root/openldap-2.1.2/configure:11965: undefined reference to `pthread_create'
/root/openldap-2.1.2/configure:11995: undefined reference to
`pthread_kill_other_threads_np'
collect2: ld returned 1 exit status
configure: failed program was:
#line 11918 "configure"
#include "confdefs.h"
/* pthread test headers */
#include <pthread.h>
#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 */
	pthread_t t;
	int status;
	int detach = 1;

#ifdef HAVE_PTHREADS_FINAL
	/* Final pthreads */
	pthread_attr_t attr;

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

#if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
	if( !detach ) {
#if defined( PTHREAD_CREATE_JOINABLE )
		status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
#else
		status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
#endif

#ifdef PTHREAD_CREATE_DETACHED
	} else {
		status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
#endif
	}
	if( status ) return status;
#endif

	status = pthread_create( &t, &attr, task, NULL );
	if( status ) return status;

#if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
	if( detach ) {
		/* give thread a chance to complete */
		/* it should remain joinable and hence detachable */
		sleep( 1 );

		status = pthread_detach( t );
		if( status ) return status;
	}
#endif

#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return status;

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

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

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

configure:12029: checking for pthread link with -kthread
configure:12219: cc -o conftest -g -O2   conftest.c -kthread -lresolv -ldl 
1>&5
cc: unrecognized option `-kthread'
/tmp/cc9YgifN.o: In function `main':
/root/openldap-2.1.2/configure:12180: undefined reference to `pthread_create'
/root/openldap-2.1.2/configure:12210: undefined reference to
`pthread_kill_other_threads_np'
collect2: ld returned 1 exit status
configure: failed program was:
#line 12133 "configure"
#include "confdefs.h"
/* pthread test headers */
#include <pthread.h>
#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 */
	pthread_t t;
	int status;
	int detach = 1;

#ifdef HAVE_PTHREADS_FINAL
	/* Final pthreads */
	pthread_attr_t attr;

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

#if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
	if( !detach ) {
#if defined( PTHREAD_CREATE_JOINABLE )
		status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
#else
		status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
#endif

#ifdef PTHREAD_CREATE_DETACHED
	} else {
		status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
#endif
	}
	if( status ) return status;
#endif

	status = pthread_create( &t, &attr, task, NULL );
	if( status ) return status;

#if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
	if( detach ) {
		/* give thread a chance to complete */
		/* it should remain joinable and hence detachable */
		sleep( 1 );

		status = pthread_detach( t );
		if( status ) return status;
	}
#endif

#else
	/* Draft 4 pthreads */
	status = pthread_create( &t, pthread_attr_default, task, NULL );
	if( status ) return status;

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

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

#ifdef HAVE_LINUX_THREADS
	pthread_kill_other_threads_np();
#endif

	return 0;

}

configure:12249: checking for pthread link with -pthread
configure:12439: cc -o conftest -g -O2   conftest.c -pthread -lresolv -ldl 
1>&5
configure:15347: checking for sched_yield
configure:15376: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15347: checking for pthread_yield
configure:15376: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15518: checking for pthread_kill
configure:15547: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15518: checking for pthread_rwlock_destroy
configure:15547: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15573: checking for pthread_detach with <pthread.h>
configure:15591: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure: In function `main':
configure:15587: warning: passing arg 1 of `pthread_detach' makes integer from
pointer without a cast
configure:15623: checking for pthread_setconcurrency
configure:15652: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15623: checking for pthread_getconcurrency
configure:15652: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15623: checking for thr_setconcurrency
configure:15652: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
/tmp/cc5QVe70.o: In function `main':
/root/openldap-2.1.2/configure:15646: undefined reference to
`thr_setconcurrency'
collect2: ld returned 1 exit status
configure: failed program was:
#line 15628 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char thr_setconcurrency(); 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 thr_setconcurrency();
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_thr_setconcurrency) || defined
(__stub___thr_setconcurrency)
choke me
#else
f = thr_setconcurrency;
#endif

; return 0; }
configure:15623: checking for thr_getconcurrency
configure:15652: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
/tmp/ccisJVku.o: In function `main':
/root/openldap-2.1.2/configure:15646: undefined reference to
`thr_getconcurrency'
collect2: ld returned 1 exit status
configure: failed program was:
#line 15628 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char thr_getconcurrency(); 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 thr_getconcurrency();
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_thr_getconcurrency) || defined
(__stub___thr_getconcurrency)
choke me
#else
f = thr_getconcurrency;
#endif

; return 0; }
configure:15681: checking for pthread_kill_other_threads_np
configure:15710: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15735: checking for LinuxThreads implementation
configure:15748: checking for LinuxThreads consistency
configure:15773: checking if pthread_create() works
configure:15868: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure:15890: checking if select yields when using pthreads
configure:15975: cc -o conftest -g -O2   conftest.c  -pthread -lresolv -ldl 
1>&5
configure: failed program was:
#line 15899 "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_D4
	pthread_create(&t, pthread_attr_default, task, NULL);
#else
	pthread_create(&t, NULL, task, NULL);
#endif

#if HAVE_SCHED_YIELD
	sched_yield();	/* make sure task runs first */
#else
#ifdef HAVE_PTHREAD_YIELD
	pthread_yield();	/* make sure task runs first */
#endif
#endif

	exit(2);
}
configure:16884: checking for thread specific errno
configure:16897: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:16913: checking for thread specific h_errno
configure:16926: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:17562: checking for db.h
configure:17572: cc -E  conftest.c >/dev/null 2>conftest.out
configure:17602: checking for Berkeley DB link (default)
configure:17659: cc -o conftest -g -O2   conftest.c  -lresolv -ldl  1>&5
/tmp/cczhDs11.o: In function `main':
/root/openldap-2.1.2/configure:17635: undefined reference to `db_version'
/root/openldap-2.1.2/configure:17649: undefined reference to `db_env_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 17612 "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:17683: checking for Berkeley DB link (-ldb4)
configure:17740: cc -o conftest -g -O2   conftest.c -ldb4 -lresolv -ldl  1>&5
configure:18090: checking for Berkeley DB thread support
configure:18171: cc -o conftest -g -O2   conftest.c -ldb4 1>&5
configure:18232: checking Berkeley DB version for BDB backend
configure:19003: checking for openlog
configure:19032: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:19163: checking for termcap.h
configure:19173: cc -E  conftest.c >/dev/null 2>conftest.out
configure:19163: checking for ncurses.h
configure:19173: cc -E  conftest.c >/dev/null 2>conftest.out
configure:19202: checking for tputs in -ltermcap
configure:19221: cc -o conftest -g -O2   conftest.c -ltermcap  -lresolv -ldl 
1>&5
configure:19319: checking for sasl/sasl.h
configure:19329: cc -E  conftest.c >/dev/null 2>conftest.out
configure:19325:23: sasl/sasl.h: No such file or directory
configure: failed program was:
#line 19324 "configure"
#include "confdefs.h"
#include <sasl/sasl.h>
configure:19319: checking for sasl.h
configure:19329: cc -E  conftest.c >/dev/null 2>conftest.out
configure:19358: checking for sasl_client_init in -lsasl2
configure:19377: cc -o conftest -g -O2   conftest.c -lsasl2  -lresolv -ldl 
1>&5
/usr/bin/ld: cannot find -lsasl2
collect2: ld returned 1 exit status
configure: failed program was:
#line 19366 "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 sasl_client_init();

int main() {
sasl_client_init()
; return 0; }
configure:19396: checking for sasl_client_init in -lsasl
configure:19415: cc -o conftest -g -O2   conftest.c -lsasl  -lresolv -ldl  1>&5
configure:19451: checking Cyrus SASL library version
configure:19540: checking fetch(3) library
configure:19556: cc -o conftest -g -O2   conftest.c -lfetch -lcom_err -lresolv
-ldl  1>&5
configure:19550:19: fetch.h: No such file or directory
configure: failed program was:
#line 19546 "configure"
#include "confdefs.h"

#include <sys/param.h>
#include <stdio.h>
#include <fetch.h>
int main() {
struct url *u = fetchParseURL("file:///"); 
; return 0; }
configure:19594: checking for readline/readline.h
configure:19604: cc -E  conftest.c >/dev/null 2>conftest.out
configure:19594: checking for readline/history.h
configure:19604: cc -E  conftest.c >/dev/null 2>conftest.out
configure:19635: checking for readline in -lreadline
configure:19654: cc -o conftest -g -O2   conftest.c -lreadline  -ltermcap
-lresolv -ldl  1>&5
configure:19806: checking for setproctitle
configure:19835: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/cc3iI4Kk.o: In function `main':
/root/openldap-2.1.2/configure:19829: undefined reference to `setproctitle'
collect2: ld returned 1 exit status
configure: failed program was:
#line 19811 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setproctitle(); 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 setproctitle();
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_setproctitle) || defined (__stub___setproctitle)
choke me
#else
f = setproctitle;
#endif

; return 0; }
configure:19854: checking for setproctitle in -lutil
configure:19873: cc -o conftest -g -O2   conftest.c -lutil  -lresolv -ldl  1>&5
/tmp/ccQyPBhl.o: In function `main':
/root/openldap-2.1.2/configure:19869: undefined reference to `setproctitle'
collect2: ld returned 1 exit status
configure: failed program was:
#line 19862 "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 setproctitle();

int main() {
setproctitle()
; return 0; }
configure:20006: checking for ANSI C header files
configure:20117: checking for mode_t
configure:20153: checking for off_t
configure:20189: checking for pid_t
configure:20225: checking for ptrdiff_t
configure:20237: cc -c -g -O2  conftest.c 1>&5
configure:20258: checking return type of signal handlers
configure:20280: cc -c -g -O2  conftest.c 1>&5
configure:20299: checking for size_t
configure:20336: checking for ssize_t
configure:20372: checking for caddr_t
configure:20409: checking for socklen_t
configure:20428: cc -c -g -O2  conftest.c 1>&5
configure:20449: checking for member st_blksize in aggregate type struct stat
configure:20462: cc -c -g -O2  conftest.c 1>&5
configure:20484: checking whether time.h and sys/time.h may both be included
configure:20498: cc -c -g -O2  conftest.c 1>&5
configure:20519: checking whether struct tm is in sys/time.h or time.h
configure:20532: cc -c -g -O2  conftest.c 1>&5
configure:20553: checking for uid_t in sys/types.h
configure:20587: checking for sig_atomic_t
configure:20599: cc -c -g -O2  conftest.c 1>&5
configure:20623: checking struct passwd for pw_gecos
configure:20639: cc -c -g -O2  conftest.c 1>&5
configure:20661: checking struct passwd for pw_passwd
configure:20677: cc -c -g -O2  conftest.c 1>&5
configure:20699: checking if toupper() requires islower()
configure:20720: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:20743: checking for working const
configure:20797: cc -c -g -O2  conftest.c 1>&5
configure:20818: checking if compiler understands volatile
configure:20832: cc -c -g -O2  conftest.c 1>&5
configure:20862: checking whether byte ordering is bigendian
configure:20880: cc -c -g -O2  conftest.c 1>&5
configure:20895: cc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:20890: `not' undeclared (first use in this function)
configure:20890: (Each undeclared identifier is reported only once
configure:20890: for each function it appears in.)
configure:20890: parse error before `big'
configure: failed program was:
#line 20884 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
configure:20954: checking size of short
configure:20970: cc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:20966: dupicate case value
configure: failed program was:
#line 20960 "configure"
#include "confdefs.h"
#include "confdefs.h" 
#include <sys/types.h> 
 

int main() {
switch (0) case 0: case (sizeof (short) == 4):;
; return 0; }
configure:20970: cc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:20966: dupicate case value
configure: failed program was:
#line 20960 "configure"
#include "confdefs.h"
#include "confdefs.h" 
#include <sys/types.h> 
 

int main() {
switch (0) case 0: case (sizeof (short) == 8):;
; return 0; }
configure:20970: cc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:20966: dupicate case value
configure: failed program was:
#line 20960 "configure"
#include "confdefs.h"
#include "confdefs.h" 
#include <sys/types.h> 
 

int main() {
switch (0) case 0: case (sizeof (short) == 1):;
; return 0; }
configure:20970: cc -c -g -O2  conftest.c 1>&5
configure:20993: checking size of int
configure:21009: cc -c -g -O2  conftest.c 1>&5
configure:21032: checking size of long
configure:21048: cc -c -g -O2  conftest.c 1>&5
configure:21099: checking for 8-bit clean memcmp
configure:21117: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21135: checking for strftime
configure:21164: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21233: checking for inet_aton()
configure:21260: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21282: checking for _spawnlp
configure:21311: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/ccgYiObt.o: In function `main':
/root/openldap-2.1.2/configure:21305: undefined reference to `_spawnlp'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21287 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _spawnlp(); 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 _spawnlp();
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__spawnlp) || defined (__stub____spawnlp)
choke me
#else
f = _spawnlp;
#endif

; return 0; }
configure:21335: checking for _snprintf
configure:21364: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/cczsnzgS.o: In function `main':
/root/openldap-2.1.2/configure:21358: undefined reference to `_snprintf'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21340 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _snprintf(); 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 _snprintf();
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__snprintf) || defined (__stub____snprintf)
choke me
#else
f = _snprintf;
#endif

; return 0; }
configure:21390: checking for _vsnprintf
configure:21419: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/ccSKeQdj.o: In function `main':
/root/openldap-2.1.2/configure:21413: undefined reference to `_vsnprintf'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21395 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _vsnprintf(); 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 _vsnprintf();
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__vsnprintf) || defined (__stub____vsnprintf)
choke me
#else
f = _vsnprintf;
#endif

; return 0; }
configure:21445: checking for vprintf
configure:21474: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21556: checking for vsnprintf
configure:21585: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21556: checking for vsprintf
configure:21585: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for bcopy
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for closesocket
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/cc75s3J2.o: In function `main':
/root/openldap-2.1.2/configure:21690: undefined reference to `closesocket'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21672 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char closesocket(); 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 closesocket();
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_closesocket) || defined (__stub___closesocket)
choke me
#else
f = closesocket;
#endif

; return 0; }
configure:21667: checking for chroot
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for endgrent
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for endpwent
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for fcntl
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for flock
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for getdtablesize
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for getgrgid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for gethostname
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for getpass
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for getpassphrase
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/cchAi768.o: In function `main':
/root/openldap-2.1.2/configure:21690: undefined reference to `getpassphrase'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21672 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getpassphrase(); 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 getpassphrase();
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_getpassphrase) || defined (__stub___getpassphrase)
choke me
#else
f = getpassphrase;
#endif

; return 0; }
configure:21667: checking for getpwuid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for getpwnam
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for getspnam
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for gettimeofday
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for initgroups
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for lockf
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for memcpy
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21679: warning: conflicting types for built-in function `memcpy'
configure:21667: checking for memmove
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for mkstemp
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for mktemp
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for pipe
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for read
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for recv
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for recvfrom
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for recvmsg
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for setpwfile
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
/tmp/ccAhmEVE.o: In function `main':
/root/openldap-2.1.2/configure:21690: undefined reference to `setpwfile'
collect2: ld returned 1 exit status
configure: failed program was:
#line 21672 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char setpwfile(); 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 setpwfile();
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_setpwfile) || defined (__stub___setpwfile)
choke me
#else
f = setpwfile;
#endif

; return 0; }
configure:21667: checking for setgid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for setegid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for setsid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for setuid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for seteuid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for sigaction
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for signal
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for sigset
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strdup
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strerror
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strpbrk
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strrchr
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strsep
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strstr
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strtol
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strtoul
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for strspn
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for sysconf
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for usleep
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for waitpid
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for wait4
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for write
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for send
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21667: checking for sendto
configure:21696: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21724: checking for getopt
configure:21753: cc -o conftest -g -O2   conftest.c -lresolv -ldl  1>&5
configure:21786: checking declaration of sys_errlist
configure:21805: cc -c -g -O2  conftest.c 1>&5
--------End config.log---------