manu@... wrote:
> Matt Kettler <mkettler@...> wrote:
>
>> configure:5329: result: no
>> configure:5241: checking for vsyslog
>> configure:5298: gcc -o conftest -g -O2 -Wall -I/usr/lib//include/bind
>> -I/usr/lib//include -L/usr/lib//lib -Wl,--rpath=/usr/lib//lib conftest.c
>> -lbind >&5
>> /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbind.so: undefined
>> reference to `pthread_getspecific'
>
> So that fails at yours?
> test.c:
> int main(void) { return 0; }
>
> cc -o test -lbind test.c
Yep.
$ cc -o test -lbind test.c
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbind.so: undefined
reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbind.so: undefined
reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbind.so: undefined
reference to `pthread_setspecific'
collect2: ld returned 1 exit status
$
>
>
> And that works?
> cc -o test -lpthread -lbind test.c
Yep:
$ cc -o test -lpthread -lbind test.c
$
> Of course, the easy fix is to use --with-libpthread, but I have to agree
> the vsyslog error is meaningless.
Strangely, that alone does not fix it. Configure still calls the vsyslog test
with -lbind, but no -lpthread.
From config.log:
It was created by milter-greylist configure 3.0rc3, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --enable-dnsrbl --with-libbind=/usr/lib/ --with-libpthread
<snip>
configure:5298: gcc -o conftest -g -O2 -Wall -Iyes/include
-I/usr/lib//include/bind -I/usr/lib//include -Lyes/lib -Wl,--rpath=yes/lib
-L/usr/lib//lib -Wl,--rpath=/usr/lib//lib conftest.c -lbind >&5
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbind.so: undefined
reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbind.so: undefined
reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbind.so: undefined
reference to `pthread_setspecific'
collect2: ld returned 1 exit statusMessage
Re: [milter-greylist] milter-greylist 3.0 rc5 is out - vsyslog
2006-10-17 by Matt Kettler
Attachments
- No local attachments were found for this message.