ports/94598: Port security/clamav cannot be build with -lc_r thread library

Alex Samorukov samm at os2.kiev.ua
Fri Mar 17 09:50:15 UTC 2006


>Number:         94598
>Category:       ports
>Synopsis:       Port security/clamav cannot be build with -lc_r thread library
>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:   Fri Mar 17 09:50:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alex Samorukov
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
Shevchenko Didkovskiy and Partners 
>Environment:


System: FreeBSD 6.0-RELEASE #1: Wed Feb  8 23:30:22 EET 2006
    root at samm.local:/usr/obj/usr/src/sys/SAMMKRNL



>Description:


Clamd failed to link when using -lc_r library instaed of -pthread


>How-To-Repeat:


1) # cd /usr/ports/security/clamav
2) # make PTHREAD_CFLAGS=-D_THREAD_SAFE PTHREAD_LIBS=-lc_r all

build will fail with many errors like "undefined reference to `pthread..."

Proposed fix is to use patched libtool instead of system one. After this all will work as designed


>Fix:


--- ../clamav/Makefile  Thu Feb 23 12:38:52 2006
+++ Makefile    Fri Mar 17 11:39:33 2006
@@ -27,7 +27,7 @@
                LIBUNRAR "Support for external Unrar library" Off
 
 USE_REINPLACE= yes
-USE_AUTOTOOLS= libtool:15
+HAS_CONFIGURE= yes
 CONFIGURE_TARGET=      --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 INSTALLS_SHLIB=        yes
 USE_RC_SUBR=   yes



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list