Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 08:05:50 GMT
From:      Rajkumar S <raj@linuxense.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/87707: pthread error when linking with clamav lib
Message-ID:  <200510200805.j9K85ovU047016@www.freebsd.org>
Resent-Message-ID: <200510200810.j9K8A8O8069967@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510200805.j9K85ovU047016>