Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2006 11:42:42 +0200
From:      "Alex Samorukov" <samm@os2.kiev.ua>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/94598: Port security/clamav cannot be build with -lc_r thread library
Message-ID:  <1142588562.12112@samm.local>
Resent-Message-ID: <200603170950.k2H9oE8P053191@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1142588562.12112>