From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 17 09:50:15 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2A9E16A41F for ; Fri, 17 Mar 2006 09:50:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1201C43D4C for ; Fri, 17 Mar 2006 09:50:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2H9oEQP053192 for ; Fri, 17 Mar 2006 09:50:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2H9oE8P053191; Fri, 17 Mar 2006 09:50:14 GMT (envelope-from gnats) Resent-Date: Fri, 17 Mar 2006 09:50:14 GMT Resent-Message-Id: <200603170950.k2H9oE8P053191@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Alex Samorukov" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6233C16A420 for ; Fri, 17 Mar 2006 09:42:43 +0000 (UTC) (envelope-from samm@os2.kiev.ua) Received: from el.volia.net (el.volia.net [82.144.192.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBEA343D55 for ; Fri, 17 Mar 2006 09:42:42 +0000 (GMT) (envelope-from samm@os2.kiev.ua) Received: from ip.85.202.203.234.dyn.sub-4.broadband.voliacable.com ([85.202.203.234] helo=samm.local) by el.volia.net with esmtp (Exim 4.43 (FreeBSD)) id 1FKBTk-000N64-Q9 for FreeBSD-gnats-submit@freebsd.org; Fri, 17 Mar 2006 11:42:41 +0200 Message-Id: <1142588562.12112@samm.local> Date: Fri, 17 Mar 2006 11:42:42 +0200 From: "Alex Samorukov" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.6 Cc: Subject: ports/94598: Port security/clamav cannot be build with -lc_r thread library X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2006 09:50:15 -0000 >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: