Well... you may also have to rip out the -O2 stuff, based on THAT message...

Anyway, the ntop stuff is working.  The test:

AC_CHECK_LIB(pthread, pthread_create, , [
    AC_CHECK_LIB(pthreads, pthread_create, , [
        AC_CHECK_LIB(c_r, pthread_create)
    ])
])

succeeds and successfully adds the -lc_r to LIBS:

System Libs             : -lxml2 -lc_r -lc -lcrypt -lssl -lcrypto -lpcap 
-lgdbm -lgd -lpng -lz

So something is wrong with your linkage setup or some such. 

Nothing much jumps out - the usual steps are to make sure it's a clean
checkout, delete any leftover (old) libraries, etc.  You might check the
FreeBSD lists, see if there are any problems with POSIX threads...


-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
David Brodbeck
Sent: Friday, June 17, 2005 11:21 AM
To: [email protected]
Subject: Re: [Ntop] RE: Can't compile CVS on FreeBSD 4.11-RELEASE

Burton Strauss wrote:
> Yeah.  Weird it doesn't have -lpthread or some such.  Look in 
> config.log for the test for pthread_create and see what was used for LIBS
there...

Looks like it finds it in -lc_r:

configure:37482: checking for pthread_create in -lc_r
configure:37512: gcc -o conftest -g -O2 -I/usr/local/include -Wshadow
-Wpointer
cc1: warning:
***
***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
***
/usr/lib/libc.so: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using
mkst
/usr/lib/libc.so: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider using
mkst
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is not
recomme
/usr/lib/libc.so: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using
mks
configure:37518: $? = 0
configure:37522: test -z
                          || test ! -s conftest.err
configure:37525: $? = 0
configure:37528: test -s conftest
configure:37531: $? = 0
configure:37544: result: yes
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to