From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 20 08:10:09 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 148E316A41F for ; Thu, 20 Oct 2005 08:10:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F77843D69 for ; Thu, 20 Oct 2005 08:10:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9K8A8hM069968 for ; Thu, 20 Oct 2005 08:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9K8A8O8069967; Thu, 20 Oct 2005 08:10:08 GMT (envelope-from gnats) Resent-Date: Thu, 20 Oct 2005 08:10:08 GMT Resent-Message-Id: <200510200810.j9K8A8O8069967@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rajkumar S Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25AC616A41F for ; Thu, 20 Oct 2005 08:05:51 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E112843D6A for ; Thu, 20 Oct 2005 08:05:50 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9K85oMM047017 for ; Thu, 20 Oct 2005 08:05:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j9K85ovU047016; Thu, 20 Oct 2005 08:05:50 GMT (envelope-from nobody) Message-Id: <200510200805.j9K85ovU047016@www.freebsd.org> Date: Thu, 20 Oct 2005 08:05:50 GMT From: Rajkumar S To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/87707: pthread error when linking with clamav lib X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 08:10:09 -0000 >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: