misc/87707: pthread error when linking with clamav lib
Rajkumar S
raj at linuxense.com
Thu Oct 20 01:10:09 PDT 2005
>Number: 87707
>Category: misc
>Synopsis: pthread error when linking with clamav lib
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 20 08:10:07 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Rajkumar S
>Release: FreeBSD 5.4-RELEASE #0
>Organization:
Linuxense Information Systems
>Environment:
FreeBSD daemon.linuxense.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I am trying to build havp (http://www.server-side.de/) and it requires clamav, So I installed clamav, but when linking, I get this error:
/bin/sh ../libtool --silent --mode=link --tag=CXX c++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -O2 -O -pipe -fno-exceptions -fno-check-new -o havp -L/usr/local/lib filehandler.o helper.o proxyhandler.o logfile.o clamlibscanner.o scannerfilehandler.o genericscanner.o connectiontoserver.o connectiontobrowser.o httphandler.o sockethandler.o havp.o -lclamav
/usr/local/lib/libclamav.so: undefined reference to `pthread_create'
/usr/local/lib/libclamav.so: undefined reference to `pthread_join'
I added devel/pth and compiled clamav, but the error persists.
>How-To-Repeat:
1. Download Havp Version 0.64 from http://www.server-side.de/download.htm
2. Download the freebsd patch
3. Untar havp
4. cd into the havp directory
5. patch patch -p1 < ../havp-free.diff
6. run ./configure --with-extra-includes=/usr/local/include/ --with-extra-libs=/usr/local/lib
7. run make
>Fix:
I added a --disable-pthread and compiled clamav and it's gone
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list