From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 1 19:10:19 2007 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 [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A64DC16A4CD for ; Thu, 1 Feb 2007 19:10:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 88CDD13C442 for ; Thu, 1 Feb 2007 19:10:19 +0000 (UTC) (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 l11JAJgQ015772 for ; Thu, 1 Feb 2007 19:10:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l11JAJUH015771; Thu, 1 Feb 2007 19:10:19 GMT (envelope-from gnats) Resent-Date: Thu, 1 Feb 2007 19:10:19 GMT Resent-Message-Id: <200702011910.l11JAJUH015771@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, Sergey Zaharchenko Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DB10C16A4CB for ; Thu, 1 Feb 2007 19:09:19 +0000 (UTC) (envelope-from doublef-ctm@yandex.ru) Received: from smtp3.yandex.ru (smtp3.yandex.ru [213.180.200.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3E10E13C4DB for ; Thu, 1 Feb 2007 19:09:18 +0000 (UTC) (envelope-from doublef-ctm@yandex.ru) Received: from [85.172.94.146] ([85.172.94.146]:15317 "EHLO shark" smtp-auth: "doublef-ctm" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S3596508AbXBAS7C (ORCPT ); Thu, 1 Feb 2007 21:59:02 +0300 Received: by shark (Postfix, from userid 1000) id 4956A172DE; Thu, 1 Feb 2007 21:59:00 +0300 (MSK) Message-Id: <20070201185900.4956A172DE@shark> Date: Thu, 1 Feb 2007 21:59:00 +0300 (MSK) From: Sergey Zaharchenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/108664: [PATCH] devel/fnccheck: linking fails if library is stripped X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sergey Zaharchenko List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 19:10:19 -0000 >Number: 108664 >Category: ports >Synopsis: [PATCH] devel/fnccheck: linking fails if library is stripped >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: Thu Feb 01 19:10:18 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Sergey Zaharchenko >Release: FreeBSD 7.0-CURRENT i386 >Organization: Volgograd state technical university >Environment: System: FreeBSD shark.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Fri Jan 12 16:30:54 MSK 2007 root@shark.localdomain:/var/obj/src/usr.src/sys/GENERIC.USB_DEBUG i386 >Description: The devel/fnccheck port strips its shared library when installing. This causes attepts to link against the library to fail. >How-To-Repeat: Install the port, take a C program and attept to link it against libfnccheck.so. You should get the following output: $ gcc -o foo -finstrument-functions -g foo.c -L/usr/local/lib -lfnccheck -lm /var/tmp//cc0RFVU1.o(.text+0x29): In function `main': /home/df/fnccheck/foo.c:3: undefined reference to `__cyg_profile_func_enter' /var/tmp//cc0RFVU1.o(.text+0x41):/home/df/fnccheck/foo.c:5: undefined reference to `__cyg_profile_func_exit' *** Error code 1 >Fix: The minimal way to fix this is to apply the following patch: --- devel/fnccheck/Makefile.ctm Sun Sep 3 11:35:48 2006 +++ devel/fnccheck/Makefile Thu Feb 1 21:47:08 2007 @@ -22,6 +22,8 @@ doc/fncdump.info doc/html/fncdump_toc.html \ doc/html/fncdump.html +STRIP= + do-install: .for B in fncdump fncaverage ${INSTALL_PROGRAM} ${WRKSRC}/bin/$B ${PREFIX}/bin It will also make the two executable files not be stripped, but they are small, so that doesn't make much difference. >Release-Note: >Audit-Trail: >Unformatted: