Date: Mon, 27 Jun 2005 18:29:38 +0200 From: bsd <bsd@todoo.biz> To: Liste FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Pthread Problem building clamav-0.86.1 Message-ID: <C0809F4A-5BFE-446F-AA28-FC7BDD3F626F@todoo.biz> In-Reply-To: <200506261943.31248.ckleski@mbc.edu> References: <61826D9F-6CF6-4FFF-A8C0-09E324C9F323@todoo.biz> <200506261943.31248.ckleski@mbc.edu>
index | next in thread | previous in thread | raw e-mail
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@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe@freebsd.org"
>>
>
> Possible solution: alter the Makefile LDFLAGS by adding "-lpthread"
> Then try the build again.
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe@freebsd.org"
>
>
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C0809F4A-5BFE-446F-AA28-FC7BDD3F626F>
