ports/183331: [patch] security/clamav: fix for build on 10.0 and HEAD
Rainer Hurling
rhurlin at gwdg.de
Sat Oct 26 12:00:01 UTC 2013
>Number: 183331
>Category: ports
>Synopsis: [patch] security/clamav: fix for build on 10.0 and HEAD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Oct 26 12:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Rainer Hurling
>Release: 11.0-CURRENT amd64 (clang)
>Organization:
>Environment:
FreeBSD xxx.xxx.xxx 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r257111: Fri Oct 25 15:03:34 CEST 2013 xxx at xxx.xxx.xxx:/usr/obj/usr/src/sys/XXX amd64
>Description:
On recent 10.0 and HEAD security/clamav stops building and complains about missing libtinfo.so.
[..snip..]
Making all in clamdtop
gmake[4]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98/clamdtop'
CC optparser.o
CC getopt.o
CC misc.o
CC clamdtop.o
CCLD clamdtop
/usr/local/bin/ld: clamdtop.o: undefined reference to symbol 'keypad'
/usr/local/bin/ld: note: 'keypad' is defined in DSO //usr/local/lib/libtinfo.so.5.9 so try adding it to the linker command line
//usr/local/lib/libtinfo.so.5.9: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
gmake[4]: *** [clamdtop] Fehler 1
gmake[4]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98/clamdtop'
gmake[3]: *** [all-recursive] Fehler 1
gmake[3]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98'
gmake[2]: *** [all] Fehler 2
gmake[2]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/security/clamav
>How-To-Repeat:
Try to build security/clamav on recent 10.0 ord HEAD.
>Fix:
The attached patch should fix the build.
Patch attached with submission follows:
--- Makefile.orig 2013-10-15 16:39:03.000000000 +0200
+++ Makefile 2013-10-26 13:45:48.000000000 +0200
@@ -70,7 +70,7 @@
--enable-clamdtop
CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib \
+LDFLAGS+= -L${LOCALBASE}/lib -ltinfo \
${PTHREAD_LIBS}
# This port has a problem with -pthread,
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list