Bug 108664 - [PATCH] devel/fnccheck: linking fails if library is stripped
Summary: [PATCH] devel/fnccheck: linking fails if library is stripped
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alejandro Pulver
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 19:10 UTC by Sergey Zaharchenko
Modified: 2007-02-07 04:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Zaharchenko 2007-02-01 19:10:18 UTC
	The devel/fnccheck port strips its shared library when
	installing. This causes attepts to link against the library
	to fail.

Fix: The minimal way to fix this is to apply the following patch:



It will also make the two executable files not be stripped, but they are
small, so that doesn't make much difference.--sSoqnvXzBmH9SNihZtLrAYyOnrUAVXhQ4EA4tDfk02rtrIwr
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
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
Comment 1 Alejandro Pulver freebsd_committer freebsd_triage 2007-02-05 17:07:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->alepulver

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-02-07 04:34:48 UTC
alepulver    2007-02-07 04:34:18 UTC

  FreeBSD ports repository

  Modified files:
    devel/fnccheck       Makefile 
  Log:
  - Do not strip the library to make linking a program with it not to fail.
  
  PR:             ports/108664
  Submitted by:   Sergey Zaharchenko <doublef-ctm@yandex.ru>
  
  Revision  Changes    Path
  1.7       +2 -0      ports/devel/fnccheck/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Alejandro Pulver freebsd_committer freebsd_triage 2007-02-07 04:34:52 UTC
State Changed
From-To: open->closed

Committed. Thanks!