Pthread Problem building clamav-0.86.1
bsd
bsd at todoo.biz
Mon Jun 27 16:29:48 GMT 2005
Nope,
The simple answer is to compile clamav with the "disable-pthreads"
option. Modify the configure args of the Makefile using these
attributes :
CONFIGURE_ARGS= --with-dbdir=${DBDIR} \
--with-zlib=/usr \
--disable-zlib-vcheck \
--disable-clamuko \
--disable-clamav \
--enable-bigstack \
--disable-gethostbyname_r \
--enable-readdir_r \
--disable-dependency-tracking \
--disable-pthreads
It'll compile smoothly.
Thanks to Matt Fretwell from clamav Mailing List //
Le 26 juin 05 à 21:43, Craig Kleski a écrit :
> 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.
>
> _______________________________________________
> 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"
>
>
More information about the freebsd-questions
mailing list