| Summary: | [PATCH] devel/fnccheck: linking fails if library is stripped | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Sergey Zaharchenko <doublef-ctm> |
| Component: | Individual Port(s) | Assignee: | Alejandro Pulver <alepulver> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-ports-bugs->alepulver I'll take it. 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"
State Changed From-To: open->closed Committed. Thanks! |
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