Subject: pkg/30604: clamav-0.86.1 build problems
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 06/26/2005 01:04:00
>Number:         30604
>Category:       pkg
>Synopsis:       clamav-0.86.1 build problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 26 01:04:00 +0000 2005
>Release:        NetBSD 2.0.2
System: NetBSD 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005 i386
Architecture: i386
Machine: i386
	attempting to build clamav with milter fails due to 
	attempting to link to wrong libmilter

	cc -O2 -I/usr/pkgsrc/mail/clamav/work/.buildlink/include -Wl,-R/usr/pkg/lib -o .libs/clamav-milter cfgparser.o getopt.o memory.o misc.o clamav-milter.o  -L/usr/pkgsrc/mail/clamav/work/.buildlink/lib ../libclamav/.libs/ -lbz2 /usr/pkgsrc/mail/clamav/work/.buildlink/lib/ /usr/pkgsrc/mail/clamav/work/.buildlink/lib/ /usr/pkgsrc/mail/clamav/work/.buildlink/lib/ -lssl -lcrypto -lz -lmilter -lpthread -lwrap -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkgsrc/mail/clamav/work/.buildlink/lib
	clamav-milter.o(.text+0xb90): In function `main':
	: undefined reference to `smfi_opensocket'
	*** Error code 1

	make: stopped in /usr/pkgsrc/mail/clamav/work/clamav-0.86.1/clamav-milter
	*** Error code 1

	build clamav with milter enabled from current CVS
	I did this ugly hack which got it to work, but this
	is not right!

83  mv /usr/lib/libmilter.a /usr/lib/_libmilter.a
84  mv /usr/include/libmilter /usr/include/_libmilter

This doesn't seem to be a problem on NBSD 1.6.2, just 2.0.x