ports/185263: ports: graphics/gts libm is not linked when pkg-config is used
Tatsuki Makino
tatsuki_makino at hotmail.com
Sun Dec 29 09:30:01 UTC 2013
>Number: 185263
>Category: ports
>Synopsis: ports: graphics/gts libm is not linked when pkg-config is used
>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: Sun Dec 29 09:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Tatsuki Makino
>Release: FreeBSD 8.4-STABLE i386
>Organization:
>Environment:
FreeBSD T2.test 8.4-STABLE FreeBSD 8.4-STABLE #0 r257875M: Sat Nov 9 02:12:22 UTC 2013 root at T2.test:/usr/obj/usr/src/sys/GENERIC i386
>Description:
-lm is not included in result of pkg-config --libs gts.
Some functions of libm become undefined reference.
>How-To-Repeat:
% cc -xc /dev/null `pkg-config --libs gts`
/usr/lib/crt1.o(.text+0x9d): In function `_start1':
: undefined reference to `main'
/usr/local/lib/libgts.so: undefined reference to `log'
/usr/local/lib/libgts.so: undefined reference to `ceil'
/usr/local/lib/libgts.so: undefined reference to `cos'
/usr/local/lib/libgts.so: undefined reference to `sin'
/usr/local/lib/libgts.so: undefined reference to `atan2'
/usr/local/lib/libgts.so: undefined reference to `exp'
Exit 1
%
>Fix:
fix gts.pc.in or use latest version source.
Patch attached with submission follows:
Index: files/patch-gts.pc.in
===================================================================
--- files/patch-gts.pc.in (revision 0)
+++ files/patch-gts.pc.in (working copy)
@@ -0,0 +1,10 @@
+--- ./gts.pc.in.orig 2005-01-19 04:48:19.000000000 +0000
++++ ./gts.pc.in 2013-12-29 08:54:18.000000000 +0000
+@@ -6,6 +6,6 @@
+ Name: GTS
+ Description: GNU Triangulated Surface Library
+ Version: @VERSION@
+ Requires: glib-2.0,gthread-2.0,gmodule-2.0
+-Libs: -L${libdir} @LIBS@ -lgts
++Libs: -L${libdir} @LIBS@ -lgts -lm
+ Cflags: -I${includedir}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list