From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 26 14:50:12 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D4E716A41F for ; Tue, 26 Jul 2005 14:50:12 +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 2D9A143D53 for ; Tue, 26 Jul 2005 14:50:11 +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 j6QEoAsg008936 for ; Tue, 26 Jul 2005 14:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6QEoAD9008934; Tue, 26 Jul 2005 14:50:10 GMT (envelope-from gnats) Resent-Date: Tue, 26 Jul 2005 14:50:10 GMT Resent-Message-Id: <200507261450.j6QEoAD9008934@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thorolf Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E109516A41F for ; Tue, 26 Jul 2005 14:46:00 +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 A277B43D49 for ; Tue, 26 Jul 2005 14:46:00 +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 j6QEk07Y024105 for ; Tue, 26 Jul 2005 14:46:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j6QEk0I0024104; Tue, 26 Jul 2005 14:46:00 GMT (envelope-from nobody) Message-Id: <200507261446.j6QEk0I0024104@www.freebsd.org> Date: Tue, 26 Jul 2005 14:46:00 GMT From: Thorolf To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/84131: clamav build errors on FreeBSD 5.2.1-RELEASE-p13 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 14:50:12 -0000 >Number: 84131 >Category: ports >Synopsis: clamav build errors on FreeBSD 5.2.1-RELEASE-p13 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 26 14:50:10 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Thorolf >Release: 5.2.1-RELEASE-p13 >Organization: >Environment: FreeBSD himinbjorg.xxx 5.2.1-RELEASE-p13 FreeBSD 5.2.1-RELEASE-p13 #0: Fri Dec 10 16:21:30 CET 2004 root@himinbjorg.xxx:/usr/obj/usr/src/sys/HIMINBJORG i386 >Description: When I try to build clamav-0.86.2 on this system (OSVERSION 502010) I got errors like: /bin/sh /usr/local/bin/libtool15 --mode=link cc -O -pipe -mcpu=pentiumpro -L/usr/local/lib -lc_r -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 mkdir .libs 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 -lz -lbz2 -lgmp -Wl,--rpath -Wl,/usr/local/lib ./libclamav/.libs/libclamav.so: undefined reference to `pthread_cleanup_pop' ./libclamav/.libs/libclamav.so: undefined reference to `pthread_cleanup_push' *** Error code 1 The problem is that we need to compile this version of clamav with -pthread I know 5.2.1 Is not supported anymore (I'm workin on upgrades;-). Best Regards >How-To-Repeat: Try to build clamav on such system. >Fix: This fix the build problems on my systems (tested on two machines) --- Makefile.org Mon Jul 25 15:43:33 2005 +++ Makefile Tue Jul 26 16:36:23 2005 @@ -95,6 +95,10 @@ .include +.if ${OSVERSION} == 502010 +PTHREAD_LIBS= -pthread +.endif + .if defined(WITH_MILTER) SUB_FILES+= clamav-milter.sh .if !defined(WITHOUT_LDAP) && exists(${LOCALBASE}/lib/libldap.so) >Release-Note: >Audit-Trail: >Unformatted: