ports/84131: clamav build errors on FreeBSD 5.2.1-RELEASE-p13
Thorolf
thorolf at grid.einherjar.de
Tue Jul 26 14:50:12 UTC 2005
>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 at 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 <bsd.port.pre.mk>
+.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:
More information about the freebsd-ports-bugs
mailing list