Date: Sat, 17 Feb 2007 09:22:34 -0500 (EST) From: Michael Scheidell <scheidell@secnap.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: garga@FreeBSD.org Subject: ports/109257: clamav won't link on fbsd4.11 Message-ID: <20070217142234.248F21CCF5@scanner.secnap.net> Resent-Message-ID: <200702171430.l1HEU61w036532@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109257 >Category: ports >Synopsis: clamav won't link on fbsd4.11 >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: Sat Feb 17 14:30:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: FreeBSD 4.11 i386 >Organization: SECNAP >Environment: 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #2: Fri Aug 19 05:36:40 MST 2005 admin@smtp.sherwoodfoods.com:/usr/obj/usr/src/sys/HACKERTRAP_750 i386 >Description: Clamav .90 won't link on fbsd 4.11, depite ..Mk/ and all ports updates My original patch for .90 included a BROKEN line Reason I raise this to high/serious is that clamav .87 is now considered a security vulnerability >How-To-Repeat: on 4.11 system: you get this: Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib -pthread /usr/local/lib/libiconv.so -lz -lbz2 /usr/local/lib/libgmp.so -lpthread -march=pentiumpro -pthread -pthread -pthread -Wl,-soname -Wl,libclamav.so.1 -o .libs/libclamav.so.1 /usr/libexec/elf/ld: cannot find -lpthread *** Error code 1 Stop in /usr/ports/security/clamav/work/clamav-0.90/libclamav. *** Error code 1 Stop in /usr/ports/security/clamav/work/clamav-0.90. *** Error code 1 Stop in /usr/ports/security/clamav/work/clamav-0.90. *** Error code 1 Stop in /usr/ports/security/clamav. make >Fix: MAYBE install pthread ports (not safe on 4.x), MAYBE include that as dependency, MAYBE ../Mk needs to be updated to NOT include pthread library on 4.xx systems. at least this patch will warn the user until fixes applied. --- Makefile.orig Fri Feb 16 06:20:24 2007 +++ Makefile Sat Feb 17 09:18:15 2007 @@ -7,7 +7,7 @@ PORTNAME= clamav PORTVERSION= 0.90 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF @@ -101,6 +101,8 @@ .if ${OSVERSION} == 502010 PTHREAD_LIBS= -pthread +.elif ${OSVERSION} < 500000 +BROKEN= Won't compile on 4.x. without pthreads and pthreads not safe on 4.x .endif .if defined(WITH_MILTER) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070217142234.248F21CCF5>