From edwin@mavetju.org  Thu Mar 18 05:25:39 2004
Return-Path: <edwin@mavetju.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 44A1A16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Mar 2004 05:25:39 -0800 (PST)
Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 929C643D39
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Mar 2004 05:25:36 -0800 (PST)
	(envelope-from edwin@mavetju.org)
Received: by mailout2.barnet.com.au (Postfix, from userid 27)
	id 3B974AA6218; Fri, 19 Mar 2004 00:25:34 +1100 (EST)
Received: from mail2-auth.barnet.com.au (localhost [127.0.0.1])
	by mail2.barnet.com.au (Postfix) with ESMTP id 280ACB29D10
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Mar 2004 00:25:29 +1100 (EST)
Received: from k7.mavetju (unknown [10.10.12.2])
	by mail2-auth.barnet.com.au (Postfix) with ESMTP id ADE351956E
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Mar 2004 00:25:28 +1100 (EST)
Received: by k7.mavetju (Postfix, from userid 1001)
	id 9E03E619F; Fri, 19 Mar 2004 00:25:26 +1100 (EST)
Message-Id: <20040318132526.9E03E619F@k7.mavetju>
Date: Fri, 19 Mar 2004 00:25:26 +1100 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: net/openldap22-client (2.2.5 / 2.2.6) fails to compile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64419
>Category:       ports
>Synopsis:       net/openldap22-client (2.2.5 / 2.2.6) fails to compile
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    eik
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 18 05:30:10 PST 2004
>Closed-Date:    Thu Mar 18 16:39:13 PST 2004
>Last-Modified:  Thu Mar 18 16:39:13 PST 2004
>Originator:     Edwin Groothuis
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD test.biab.barnet.com.au 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr  3 10:53:38 GMT 2003     root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC  i386

>Description:

net/openldap22-client fails to compile:

(cd .libs && rm -f libldap.la && ln -s ../libldap.la libldap.la)
cc -O -pipe -I../../include -I../../include   -D_THREAD_SAFE  -I/usr/local/include  -c apitest.c
/bin/sh /usr/local/libexec/libtool14/libtool --mode=link  cc  -O -pipe  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib   -o apitest apitest.o libldap.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a   -lssl -lcrypto  -lfetch -lcom_err -pthread 
cc -O -pipe -rpath=/usr/lib:/usr/local/lib -o .libs/apitest apitest.o -pthread  -L/usr/local/lib ./.libs/libldap.so /usr/ports/net/openldap22-client/work/openldap-2.2.6/libraries/liblber/.libs/liblber.so ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a -lssl -lcrypto -lfetch -lcom_err -Wl,--rpath -Wl,/usr/local/lib
./.libs/libldap.so: undefined reference to `__h_errno'
*** Error code 1

Stop in /usr/ports/net/openldap22-client/work/openldap-2.2.6/libraries/libldap.
*** Error code 1

It both fails for 2.2.5 and 2.2.6 with the same error.

>How-To-Repeat:
>Fix:

Suggestions?
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->eik  
Responsible-Changed-By: krion 
Responsible-Changed-When: Thu Mar 18 05:44:47 PST 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64419 
State-Changed-From-To: open->feedback 
State-Changed-By: eik 
State-Changed-When: Thu Mar 18 15:30:53 CET 2004 
State-Changed-Why:  
asked some questions 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64419 

From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
To: Edwin Groothuis <edwin@mavetju.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/64419: net/openldap22-client (2.2.5 / 2.2.6) fails to compile
Date: Thu, 18 Mar 2004 15:29:59 +0100

 Edwin Groothuis wrote:
 
 > net/openldap22-client fails to compile:
 > 
 > [...]
 > ./.libs/libldap.so: undefined reference to `__h_errno'
 > *** Error code 1
 
 Sigh. config.log? Full build log? Can you compile
 
 #include <netdb.h>
 int main() {h_errno = 0; return 0;}
 
 with -pthread? what does ldd a.out give you? Try
 
   strings /usr/lib/libc_r.so | grep h_errno
 
   ldd `make -VWRKSRC`/libraries/libldap/.libs/libldap.so
 
   strings `make -VWRKSRC`/libraries/libldap/.libs/libldap.so | grep h_errno
 
 -Oliver

From: Edwin Groothuis <edwin@mavetju.org>
To: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/64419: net/openldap22-client (2.2.5 / 2.2.6) fails to compile
Date: Fri, 19 Mar 2004 08:35:21 +1100

 --8P1HSweYDcXXzwPJ
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Thu, Mar 18, 2004 at 03:29:59PM +0100, Oliver Eikemeier wrote:
 > Edwin Groothuis wrote:
 > 
 > >net/openldap22-client fails to compile:
 > >
 > >[...]
 > >./.libs/libldap.so: undefined reference to `__h_errno'
 > >*** Error code 1
 > 
 > Sigh. config.log? Full build log? Can you compile
 
 config.log is attached.
 
 > #include <netdb.h>
 > int main() {h_errno = 0; return 0;}
 > 
 > with -pthread? what does ldd a.out give you? Try
 
 [~] root@test>cat a.c
 #include <netdb.h>
 int main() {h_errno = 0; return 0;}
 [~] root@test>gcc -pthread -o a a.c
 [~] root@test>./a
 [~] root@test>ldd a
 a:
         libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28066000)
 
 >  strings /usr/lib/libc_r.so | grep h_errno
 
 [~] root@test>strings /usr/lib/libc_r.so | grep h_errno
 h_errno
 
 nm /usr/lib/libc_r.a | grep h_errno
 [~] root@test>nm /usr/lib/libc_r.a | grep h_errno
          U h_errno
 	 U h_errno
 00000004 C h_errno
 	 U h_errno
 	 [...]
 
 >  ldd `make -VWRKSRC`/libraries/libldap/.libs/libldap.so
 
 [/usr/ports/net/openldap22-client] root@test>ldd `make -VWRKSRC`/libraries/libldap/.libs/libldap.so
 /usr/ports/net/openldap22-client/work/openldap-2.2.6/libraries/libldap/.libs/libldap.so:
         liblber.so.202 => /usr/ports/net/openldap22-client/work/openldap-2.2.6/libraries/liblber/.libs/liblber.so.202 (0x2812e000)
 	libssl.so.3 => /usr/lib/libssl.so.3 (0x28139000)
 	libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x28168000)
 
 >  strings `make -VWRKSRC`/libraries/libldap/.libs/libldap.so | grep h_errno
 
 [/usr/ports/net/openldap22-client] root@test>strings `make -VWRKSRC`/libraries/libldap/.libs/libldap.so | grep h_errno
 __h_errno
 [/usr/ports/net/openldap22-client] root@test>nm `make -VWRKSRC`/libraries/libldap/.libs/libldap.so | grep h_errno
          U __h_errno
 
 Edwin
 --
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/
 
 --8P1HSweYDcXXzwPJ
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="config.log"
 
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
 configure:888: checking host system type
 configure:929: checking target system type
 configure:969: checking build system type
 configure:1046: checking for a BSD compatible install
 configure:1103: checking whether build environment is sane
 configure:1164: checking for mawk
 configure:1164: checking for gawk
 configure:1164: checking for nawk
 configure:1194: checking whether make sets ${MAKE}
 configure:1234: checking for working aclocal
 configure:1247: checking for working autoconf
 configure:1260: checking for working automake
 configure:1273: checking for working autoheader
 configure:1286: checking for working makeinfo
 configure:1306: checking for gnutar
 configure:1306: checking for gtar
 configure:1306: checking for tar
 configure:1376: checking configure arguments
 configure:2920: checking for a BSD compatible install
 configure:3095: checking for ar
 configure:3145: checking for Cygwin environment
 configure:3161: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:3157: `__CYGWIN32__' undeclared (first use in this function)
 configure:3157: (Each undeclared identifier is reported only once
 configure:3157: for each function it appears in.)
 configure: failed program was:
 #line 3150 "configure"
 #include "confdefs.h"
 
 int main() {
 
 #ifndef __CYGWIN__
 #define __CYGWIN__ __CYGWIN32__
 #endif
 return __CYGWIN__;
 ; return 0; }
 configure:3177: checking for mingw32 environment
 configure:3189: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:3185: `__MINGW32__' undeclared (first use in this function)
 configure:3185: (Each undeclared identifier is reported only once
 configure:3185: for each function it appears in.)
 configure: failed program was:
 #line 3182 "configure"
 #include "confdefs.h"
 
 int main() {
 return __MINGW32__;
 ; return 0; }
 configure:3205: checking for EMX OS/2 environment
 configure:3217: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:3213: `__EMX__' undeclared (first use in this function)
 configure:3213: (Each undeclared identifier is reported only once
 configure:3213: for each function it appears in.)
 configure: failed program was:
 #line 3210 "configure"
 #include "confdefs.h"
 
 int main() {
 return __EMX__;
 ; return 0; }
 configure:3233: checking how to run the C preprocessor
 configure:3254: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:3338: checking for gcc
 configure:3451: checking whether the C compiler (cc -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib) works
 configure:3467: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:3493: checking whether the C compiler (cc -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib) is a cross-compiler
 configure:3498: checking whether we are using GNU C
 configure:3507: cc -E conftest.c
 configure:3526: checking whether cc accepts -g
 configure:3569: checking for ld used by GCC
 configure:3637: checking if the linker (/usr/libexec/elf/ld) is GNU ld
 GNU ld version 2.12.1 [FreeBSD] 2002-07-20
 configure:3654: checking for /usr/libexec/elf/ld option to reload object files
 configure:3666: checking for BSD-compatible nm
 configure:3704: checking for a sed that does not truncate output
 configure:3788: checking whether ln -s works
 configure:3809: checking how to recognise dependent libraries
 configure:3999: checking for object suffix
 configure:4005: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:4026: checking for executable suffix
 configure:4036: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:4067: checking command to parse /usr/bin/nm -B output
 configure:4150: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:4153: /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:4204: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c conftstm.o 1>&5
 configure:4253: checking for dlfcn.h
 configure:4263: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:4432: checking for i386-unknown-freebsd4.8-ranlib
 configure:4464: checking for ranlib
 configure:4499: checking for i386-unknown-freebsd4.8-strip
 configure:4531: checking for strip
 configure:5014: checking for objdir
 configure:5041: checking for cc option to produce PIC
 configure:5193: checking if cc PIC flag -fPIC works
 configure:5207: cc -c -O -pipe  -fPIC -DPIC -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:5259: checking if cc static flag -static works
 configure:5274: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib -static conftest.c  1>&5
 configure:5301: checking if cc supports -c -o file.o
 configure:5320: cc -c -O -pipe  -o out/conftest2.o -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:5349: checking if cc supports -c -o file.lo
 configure:5367: cc -c -O -pipe  -c -o conftest.lo -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:5417: checking if cc supports -fno-rtti -fno-exceptions
 configure:5430: cc -c -O -pipe  -fno-rtti -fno-exceptions -c conftest.c -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:5457: checking whether the linker (/usr/libexec/elf/ld) supports shared libraries
 configure:6162: checking how to hardcode library paths into programs
 configure:6190: checking whether stripping libraries is possible
 configure:6204: checking dynamic linker characteristics
 configure:6626: checking if libtool supports shared libraries
 configure:6630: checking whether to build shared libraries
 configure:6653: checking whether to build static libraries
 configure:6694: checking for dllload
 configure:6723: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 /tmp/ccnUpFhQ.o: In function `main':
 /tmp/ccnUpFhQ.o(.text+0x9): undefined reference to `dllload'
 configure: failed program was:
 #line 6699 "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:6741: checking for shl_load
 configure:6770: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 /tmp/ccBXZnAe.o: In function `main':
 /tmp/ccBXZnAe.o(.text+0x9): undefined reference to `shl_load'
 configure: failed program was:
 #line 6746 "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:6788: checking for shl_load in -ldld
 configure:6807: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -ldld   1>&5
 /usr/libexec/elf/ld: cannot find -ldld
 configure: failed program was:
 #line 6796 "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:6826: checking for dlopen
 configure:6855: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:7027: checking whether a program can dlopen itself
 configure:7098: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include -DHAVE_DLFCN_H  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib -Wl,--export-dynamic conftest.c   1>&5
 configure:7121: checking whether a statically linked program can dlopen itself
 configure:7192: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include -DHAVE_DLFCN_H  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib -Wl,--export-dynamic -static conftest.c   1>&5
 configure:7241: checking whether -lc should be explicitly linked in
 configure:7248: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:7261: cc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2>&1 | grep  -lc  >/dev/null 2>&1
 configure:7848: checking whether ln works
 configure:7871: checking whether ln -s works
 configure:7950: checking how to run the C preprocessor
 configure:8044: checking for Cygwin environment
 configure:8076: checking for mingw32 environment
 configure:8107: checking for executable suffix
 configure:8138: checking for object suffix
 configure:8168: checking for be_app in -lbe
 configure:8187: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -lbe -lroot -lnet  1>&5
 /usr/libexec/elf/ld: cannot find -lbe
 configure: failed program was:
 #line 8176 "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:8213: checking for cc option to accept ANSI C
 configure:8267: cc  -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:8301: checking for cc depend flag
 configure:8311: cc -M conftest.c
 configure:8344: checking for afopen in -ls
 configure:8363: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -ls   1>&5
 /usr/libexec/elf/ld: cannot find -ls
 configure: failed program was:
 #line 8352 "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:8523: checking for EBCDIC
 configure:8538: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8532: __ASCII__/generate_error.h: No such file or directory
 configure: failed program was:
 #line 8529 "configure"
 #include "confdefs.h"
 
 #if !('M' == 0xd4)
 #include <__ASCII__/generate_error.h>
 #endif
 
 configure:8562: checking for ANSI C header files
 configure:8575: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8649: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:8683: checking for dirent.h that defines DIR
 configure:8696: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:8721: checking for opendir in -ldir
 configure:8740: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -ldir   1>&5
 /usr/libexec/elf/ld: cannot find -ldir
 configure: failed program was:
 #line 8729 "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:8804: checking for sys/wait.h that is POSIX.1 compatible
 configure:8825: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:8846: checking POSIX termios
 configure:8861: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:8877: checking whether use of TIOCGWINSZ requires sys/ioctl.h
 configure:8994: checking for arpa/inet.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for arpa/nameser.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for assert.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for bits/types.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: bits/types.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <bits/types.h>
 configure:8994: checking for conio.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: conio.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <conio.h>
 configure:8994: checking for crypt.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: crypt.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <crypt.h>
 configure:8994: checking for direct.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: direct.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <direct.h>
 configure:8994: checking for errno.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for fcntl.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for filio.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: filio.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <filio.h>
 configure:8994: checking for getopt.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for grp.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for io.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: io.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <io.h>
 configure:8994: checking for libutil.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for limits.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for locale.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for netinet/tcp.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for malloc.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 In file included from configure:9000:
 /usr/include/malloc.h:2: warning: #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead"
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <malloc.h>
 configure:8994: checking for memory.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for psap.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: psap.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <psap.h>
 configure:8994: checking for pwd.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for process.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: process.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <process.h>
 configure:8994: checking for resolv.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sgtty.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for shadow.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: shadow.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <shadow.h>
 configure:8994: checking for stddef.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for string.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for strings.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sysexits.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/file.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/filio.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/errno.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/ioctl.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/param.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/resource.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/select.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/socket.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/stat.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/syslog.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/time.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/types.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/ucred.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for sys/uio.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for syslog.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for termios.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for unistd.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:8994: checking for winsock.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: winsock.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <winsock.h>
 configure:8994: checking for winsock2.h
 configure:9004: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9000: winsock2.h: No such file or directory
 configure: failed program was:
 #line 8999 "configure"
 #include "confdefs.h"
 #include <winsock2.h>
 configure:9034: checking for sigset in -lV3
 configure:9053: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -lV3   1>&5
 /usr/libexec/elf/ld: cannot find -lV3
 configure: failed program was:
 #line 9042 "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:9142: checking for socket
 configure:9171: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:9456: checking for select
 configure:9485: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:9508: checking types of arguments for select()
 configure:9541: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:9586: checking for regex.h
 configure:9596: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9627: checking for library containing regfree
 configure:9645: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:9690: checking for compatible POSIX regex
 configure:9725: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:9751: checking for sys/uuid.h
 configure:9761: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:9757: sys/uuid.h: No such file or directory
 configure: failed program was:
 #line 9756 "configure"
 #include "confdefs.h"
 #include <sys/uuid.h>
 configure:9866: checking to see if -lrpcrt4 is needed for win32 UUID support
 configure:9883: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -lrpcrt4 1>&5
 configure:9872: syntax error before `UuidCreate'
 configure:9873: syntax error before `UuidToStringA'
 configure: failed program was:
 #line 9870 "configure"
 #include "confdefs.h"
 
 		int __stdcall UuidCreate(void *);
 		int __stdcall UuidToStringA(void *,void **);
 		
 int main() {
 
 		UuidCreate(0);
 		UuidToStringA(0,0);
 		
 ; return 0; }
 configure:9902: checking for res_query
 configure:9931: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:10225: checking for getaddrinfo
 configure:10254: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:10225: checking for getnameinfo
 configure:10254: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:10225: checking for gai_strerror
 configure:10254: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:10225: checking for inet_ntop
 configure:10254: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:10286: checking INET6_ADDRSTRLEN
 configure:10317: checking struct sockaddr_storage
 configure:10335: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:10366: checking for sys/un.h
 configure:10376: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:11024: checking for openssl/ssl.h
 configure:11034: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:11024: checking for ssl.h
 configure:11034: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:11030: ssl.h: No such file or directory
 configure: failed program was:
 #line 11029 "configure"
 #include "confdefs.h"
 #include <ssl.h>
 configure:11064: checking for SSLeay_add_ssl_algorithms in -lssl
 configure:11083: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -lssl -lcrypto  1>&5
 /tmp/ccbwup8H.o: In function `main':
 /tmp/ccbwup8H.o(.text+0x7): undefined reference to `SSLeay_add_ssl_algorithms'
 configure: failed program was:
 #line 11072 "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:11108: checking for SSL_library_init in -lssl
 configure:11127: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -lssl -lcrypto  1>&5
 configure:11256: checking for _beginthread
 configure:11285: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 /tmp/ccESPjaH.o: In function `main':
 /tmp/ccESPjaH.o(.text+0x9): undefined reference to `_beginthread'
 configure: failed program was:
 #line 11261 "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:11341: checking for pthread.h
 configure:11351: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:11380: checking POSIX thread version
 configure:11397: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:11497: checking for LinuxThreads pthread.h
 configure:11529: checking for GNU Pth pthread.h
 configure:11563: checking for sched.h
 configure:11573: cc -E -D_THREAD_SAFE  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
 configure:11603: checking for pthread_create in default libraries
 configure:11761: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 /tmp/ccTZ3vbA.o: In function `main':
 /tmp/ccTZ3vbA.o(.text+0x22): undefined reference to `pthread_attr_init'
 /tmp/ccTZ3vbA.o(.text+0x37): undefined reference to `pthread_attr_setdetachstate'
 /tmp/ccTZ3vbA.o(.text+0x52): undefined reference to `pthread_create'
 configure: failed program was:
 #line 11689 "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:11786: checking for pthread link with -kthread
 configure:11948: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -kthread  1>&5
 cc: unrecognized option `-kthread'
 /tmp/ccN0ITpG.o: In function `main':
 /tmp/ccN0ITpG.o(.text+0x22): undefined reference to `pthread_attr_init'
 /tmp/ccN0ITpG.o(.text+0x37): undefined reference to `pthread_attr_setdetachstate'
 /tmp/ccN0ITpG.o(.text+0x52): undefined reference to `pthread_create'
 configure: failed program was:
 #line 11876 "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:11978: checking for pthread link with -pthread
 configure:12140: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -pthread  1>&5
 configure:14679: checking for sched_yield
 configure:14708: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:14679: checking for pthread_yield
 configure:14708: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:14679: checking for thr_yield
 configure:14708: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/cch9F8em.o: In function `main':
 /tmp/cch9F8em.o(.text+0x9): undefined reference to `thr_yield'
 configure: failed program was:
 #line 14684 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char thr_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 thr_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_thr_yield) || defined (__stub___thr_yield)
 choke me
 #else
 f = thr_yield;
 #endif
 
 ; return 0; }
 configure:14792: checking for pthread_kill
 configure:14821: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:14792: checking for pthread_rwlock_destroy
 configure:14821: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:14847: checking for pthread_detach with <pthread.h>
 configure:14865: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:14897: checking for pthread_setconcurrency
 configure:14926: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccEomDgF.o: In function `main':
 /tmp/ccEomDgF.o(.text+0x9): undefined reference to `pthread_setconcurrency'
 configure: failed program was:
 #line 14902 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char pthread_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 pthread_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_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
 choke me
 #else
 f = pthread_setconcurrency;
 #endif
 
 ; return 0; }
 configure:14897: checking for pthread_getconcurrency
 configure:14926: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/cciYH0He.o: In function `main':
 /tmp/cciYH0He.o(.text+0x9): undefined reference to `pthread_getconcurrency'
 configure: failed program was:
 #line 14902 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char pthread_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 pthread_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_pthread_getconcurrency) || defined (__stub___pthread_getconcurrency)
 choke me
 #else
 f = pthread_getconcurrency;
 #endif
 
 ; return 0; }
 configure:14897: checking for thr_setconcurrency
 configure:14926: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccFwyqQ4.o: In function `main':
 /tmp/ccFwyqQ4.o(.text+0x9): undefined reference to `thr_setconcurrency'
 configure: failed program was:
 #line 14902 "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:14897: checking for thr_getconcurrency
 configure:14926: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/cchaKGFa.o: In function `main':
 /tmp/cchaKGFa.o(.text+0x9): undefined reference to `thr_getconcurrency'
 configure: failed program was:
 #line 14902 "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:14955: checking for pthread_kill_other_threads_np
 configure:14984: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccZuf2se.o: In function `main':
 /tmp/ccZuf2se.o(.text+0x9): undefined reference to `pthread_kill_other_threads_np'
 configure: failed program was:
 #line 14960 "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:15009: checking for LinuxThreads implementation
 configure:15022: checking for LinuxThreads consistency
 configure:15047: checking if pthread_create() works
 configure:15128: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:15150: checking if select yields when using pthreads
 configure:15236: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure: failed program was:
 #line 15159 "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:16145: checking for thread specific errno
 configure:16158: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 configure:16174: checking for thread specific h_errno
 configure:16187: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  1>&5
 /tmp/ccrstyun.o: In function `main':
 /tmp/ccrstyun.o(.text+0x7): undefined reference to `__h_errno'
 configure: failed program was:
 #line 16180 "configure"
 #include "confdefs.h"
 #include <netdb.h>
 int main() {
 h_errno = 0;
 ; return 0; }
 configure:16240: checking for ctime_r
 configure:16269: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:16240: checking for gethostbyname_r
 configure:16269: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/cctGFwzh.o: In function `main':
 /tmp/cctGFwzh.o(.text+0x9): undefined reference to `gethostbyname_r'
 configure: failed program was:
 #line 16245 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char gethostbyname_r(); below.  */
 #include <assert.h>
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
 char gethostbyname_r();
 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_gethostbyname_r) || defined (__stub___gethostbyname_r)
 choke me
 #else
 f = gethostbyname_r;
 #endif
 
 ; return 0; }
 configure:16240: checking for gethostbyaddr_r
 configure:16269: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:16298: checking number of arguments of ctime_r
 configure:16310: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:16306: too many arguments to function `ctime_r'
 configure: failed program was:
 #line 16303 "configure"
 #include "confdefs.h"
 #include <time.h>
 int main() {
 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
 ; return 0; }
 configure:16329: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:16456: checking number of arguments of gethostbyaddr_r
 configure:16477: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:16507: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:16503: warning: passing arg 7 of `gethostbyaddr_r' from incompatible pointer type
 configure:16503: too many arguments to function `gethostbyaddr_r'
 configure: failed program was:
 #line 16489 "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:20531: checking for openlog
 configure:20560: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:21011: checking fetch(3) library
 configure:21027: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c -lfetch -lcom_err  -pthread  1>&5
 configure:21177: checking for setproctitle
 configure:21206: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:21378: checking long long
 configure:21391: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:21412: checking for ANSI C header files
 configure:21523: checking for mode_t
 configure:21559: checking for off_t
 configure:21595: checking for pid_t
 configure:21631: checking for ptrdiff_t
 configure:21643: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:21664: checking return type of signal handlers
 configure:21686: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:21705: checking for size_t
 configure:21742: checking for ssize_t
 configure:21778: checking for caddr_t
 configure:21815: checking for socklen_t
 configure:21834: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:21855: checking for member st_blksize in aggregate type struct stat
 configure:21868: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:21890: checking whether time.h and sys/time.h may both be included
 configure:21904: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:21925: checking whether struct tm is in sys/time.h or time.h
 configure:21938: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:21959: checking for uid_t in sys/types.h
 configure:21993: checking for sig_atomic_t
 configure:22005: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22029: checking struct passwd for pw_gecos
 configure:22045: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22067: checking struct passwd for pw_passwd
 configure:22083: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22105: checking if toupper() requires islower()
 configure:22126: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:22149: checking for working const
 configure:22203: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22224: checking if compiler understands volatile
 configure:22238: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22268: checking whether byte ordering is bigendian
 configure:22286: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22301: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:22296: syntax error before `big'
 configure: failed program was:
 #line 22290 "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:22360: checking size of short
 configure:22376: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:22372: duplicate case value
 configure:22372: this is the first entry for that value
 configure: failed program was:
 #line 22366 "configure"
 #include "confdefs.h"
 #include "confdefs.h" 
 #include <sys/types.h> 
  
 
 int main() {
 switch (0) case 0: case (sizeof (short) == 4):;
 ; return 0; }
 configure:22376: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:22372: duplicate case value
 configure:22372: this is the first entry for that value
 configure: failed program was:
 #line 22366 "configure"
 #include "confdefs.h"
 #include "confdefs.h" 
 #include <sys/types.h> 
  
 
 int main() {
 switch (0) case 0: case (sizeof (short) == 8):;
 ; return 0; }
 configure:22376: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure: In function `main':
 configure:22372: duplicate case value
 configure:22372: this is the first entry for that value
 configure: failed program was:
 #line 22366 "configure"
 #include "confdefs.h"
 #include "confdefs.h" 
 #include <sys/types.h> 
  
 
 int main() {
 switch (0) case 0: case (sizeof (short) == 1):;
 ; return 0; }
 configure:22376: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22399: checking size of int
 configure:22415: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22438: checking size of long
 configure:22454: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 configure:22505: checking for 8-bit clean memcmp
 configure:22523: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:22541: checking for strftime
 configure:22570: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:22639: checking for inet_aton()
 configure:22666: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:22688: checking for _spawnlp
 configure:22717: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccCnuWTx.o: In function `main':
 /tmp/ccCnuWTx.o(.text+0x9): undefined reference to `_spawnlp'
 configure: failed program was:
 #line 22693 "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:22741: checking for _snprintf
 configure:22770: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/cciShTO8.o: In function `main':
 /tmp/cciShTO8.o(.text+0x9): undefined reference to `_snprintf'
 configure: failed program was:
 #line 22746 "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:22796: checking for _vsnprintf
 configure:22825: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccBHq3G4.o: In function `main':
 /tmp/ccBHq3G4.o(.text+0x9): undefined reference to `_vsnprintf'
 configure: failed program was:
 #line 22801 "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:22851: checking for vprintf
 configure:22880: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:22962: checking for snprintf
 configure:22991: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:22962: checking for vsnprintf
 configure:22991: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for bcopy
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for closesocket
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccszxeoG.o: In function `main':
 /tmp/ccszxeoG.o(.text+0x9): undefined reference to `closesocket'
 configure: failed program was:
 #line 23082 "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:23077: checking for chroot
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for endgrent
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for endpwent
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for fcntl
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for flock
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for fstat
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for getdtablesize
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for getgrgid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for gethostname
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for getpass
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for getpassphrase
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccXdCreP.o: In function `main':
 /tmp/ccXdCreP.o(.text+0x9): undefined reference to `getpassphrase'
 configure: failed program was:
 #line 23082 "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:23077: checking for getpwuid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for getpwnam
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for getspnam
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccGA8WM2.o: In function `main':
 /tmp/ccGA8WM2.o(.text+0x9): undefined reference to `getspnam'
 configure: failed program was:
 #line 23082 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char getspnam(); 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 getspnam();
 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_getspnam) || defined (__stub___getspnam)
 choke me
 #else
 f = getspnam;
 #endif
 
 ; return 0; }
 configure:23077: checking for gettimeofday
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for initgroups
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for lockf
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for memcpy
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23089: warning: conflicting types for built-in function `memcpy'
 configure:23077: checking for memmove
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for mkstemp
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for mktemp
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccWoBrZk.o: In function `main':
 /tmp/ccWoBrZk.o(.text+0x9): warning: mktemp() possibly used unsafely; consider using mkstemp()
 configure:23077: checking for pipe
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for read
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for recv
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for recvfrom
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for setpwfile
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/ccvV6qfX.o: In function `main':
 /tmp/ccvV6qfX.o(.text+0x9): undefined reference to `setpwfile'
 configure: failed program was:
 #line 23082 "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:23077: checking for setgid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for setegid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for setsid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for setuid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for seteuid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for sigaction
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for signal
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for sigset
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 /tmp/cc76sRty.o: In function `main':
 /tmp/cc76sRty.o(.text+0x9): undefined reference to `sigset'
 configure: failed program was:
 #line 23082 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char sigset(); 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 sigset();
 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_sigset) || defined (__stub___sigset)
 choke me
 #else
 f = sigset;
 #endif
 
 ; return 0; }
 configure:23077: checking for strdup
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strerror
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strpbrk
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strrchr
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strsep
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strstr
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strtol
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strtoul
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strtoq
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strtouq
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strtoll
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for strspn
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for sysconf
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for usleep
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for waitpid
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for wait4
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for write
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for send
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for sendmsg
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23077: checking for sendto
 configure:23106: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23134: checking for getopt
 configure:23163: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23134: checking for getpeereid
 configure:23163: cc -o conftest -O -pipe  -D_THREAD_SAFE  -I/usr/local/include  -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib conftest.c  -pthread  1>&5
 configure:23247: checking declaration of sys_errlist
 configure:23266: cc -c -O -pipe  -D_THREAD_SAFE  -I/usr/local/include conftest.c 1>&5
 
 --8P1HSweYDcXXzwPJ--

From: Edwin Groothuis <edwin@mavetju.org>
To: freebsd-gnats-submit@FreeBSD.org, edwin@mavetju.org
Cc:  
Subject: Re: Re: ports/64419: net/openldap22-client (2.2.5 / 2.2.6) fails to compile
Date: Fri, 19 Mar 2004 11:10:13 +1100

 It's tracked down due to the bindX_overwrite_base port, which
 replaced /usr/include/netdb.h
 
 I have it compiling now, after un-replacing netdb.h from the original
 sources.
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/
State-Changed-From-To: feedback->closed 
State-Changed-By: eik 
State-Changed-When: Fri Mar 19 01:38:22 CET 2004 
State-Changed-Why:  
Temporarily disabled compilation until I can fix the problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64419 
>Unformatted:
