Pthread Problem building clamav-0.86.1

Craig Kleski ckleski at mbc.edu
Sun Jun 26 23:41:43 GMT 2005


On Sunday 26 June 2005 09:45 pm, bsd wrote:
> Hello,
>
> I have built on my test machine the latest version of clamav and I am
> facing a pthread build problem.
>
> My system is FreeBSD 5.2.1 //
>
> I ain't no C programmer (unfortunately) so any help will be welcome.
>
> Another question is how can I get back to the previous version that
> was installed (and working) on the system ?
>
>
> Sincerly yours;
>
>
>
> ===>  Building for clamav-0.86.1
> make  all-recursive
> Making all in libclamav
> Making all in clamscan
> /bin/sh /usr/local/bin/libtool15 --mode=link cc  -O -pipe -
> mcpu=pentiumpro   -L/usr/local/lib  -lc_r -lldap -o clamscan
> output.o getopt.o  memory.o cfgparser.o misc.o  clamscan.o options.o
> others.o  manager.o treewalk.o  ../libclamav/libclamav.la
> cc -O -pipe -mcpu=pentiumpro -o .libs/clamscan output.o getopt.o
> memory.o cfgparser.o misc.o clamscan.o options.o others.o manager.o
> treewalk.o  -L/usr/local/lib ../libclamav/.libs/libclamav.so -lldap -
> lbz2 -lgmp -lcurl -lssl -lcrypto -lz -Wl,--rpath -Wl,/usr/local/lib
> ../libclamav/.libs/libclamav.so: undefined reference to
> `pthread_cleanup_pop'
> ../libclamav/.libs/libclamav.so: undefined reference to
> `pthread_create' ../libclamav/.libs/libclamav.so: undefined reference
> to
> `pthread_cleanup_push'
> ../libclamav/.libs/libclamav.so: undefined reference to
> `pthread_join' *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.86.1/clamscan.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav.
>
>
> ________________________________________________
> «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Gregober ---> PGP ID --> 0x1BA3C2FD
> bsd @at@ todoo.biz
> ________________________________________________
> «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
> ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"

Possible solution: alter the Makefile LDFLAGS by adding "-lpthread"  
Then try the build again.



More information about the freebsd-questions mailing list