Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Nope,

The simple answer is to compile clamav with the "disable-pthreads" =20
option. Modify the configure args of the Makefile using these =20
attributes :

CONFIGURE_ARGS=3D --with-dbdir=3D${DBDIR} \
                 --with-zlib=3D/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 =E0 21:43, Craig Kleski a =E9crit :

> 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;
>>
>>
>>
>> =3D=3D=3D>  Building for clamav-0.86.1
>> make  all-recursive
>> Making all in libclamav
>> Making all in clamscan
>> /bin/sh /usr/local/bin/libtool15 --mode=3Dlink cc  -O -pipe -
>> mcpu=3Dpentiumpro   -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=3Dpentiumpro -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.
>>
>>
>> ________________________________________________
>> =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB=
?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7
>> =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF
>> Gregober ---> PGP ID --> 0x1BA3C2FD
>> bsd @at@ todoo.biz
>> ________________________________________________
>> =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB=
?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7
>> =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF
>>
>>
>>
>> _______________________________________________
>> 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-=20
> unsubscribe@freebsd.org"
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C0809F4A-5BFE-446F-AA28-FC7BDD3F626F>