ports/comms/gammu breaks on ld: cannot find -lglib-2.0
Boris Samorodov
bsam at ipt.ru
Mon May 23 10:29:48 UTC 2011
Hi Julian and All,
On Sat, 21 May 2011 21:37:21 +0200 Julian H. Stacey wrote:
> Can someone else please breakage on ports/comms/gammu ? or suggest
> a solution ?; Is this just my hosts & environment, or general ?
> cd /usr/ports/comms/gammu ; make clean ; make
> [ 70%] Building C object gammu-detect/CMakeFiles/gammu-detect.dir/main.o
> Linking C executable gammu-detect
> /usr/bin/ld: cannot find -lglib-2.0
> I have previously installed /usr/ports/devel/glib20 & run ldconfig -R
> cd /usr/local/lib ; ls -l libglib*
> -rw-r--r-- 1 root wheel 354168 Mar 7 08:38 libglib-12.a
> lrwxr-xr-x 1 root wheel 15 Mar 7 08:38 libglib-12.so@ -> libglib-12.so.3
> -rwxr-xr-x 1 root wheel 214412 Mar 7 08:38 libglib-12.so.3*
> -rw-r--r-- 1 root wheel 1632410 May 20 12:33 libglib-2.0.a
> -rwxr-xr-x 1 root wheel 1059 May 20 12:33 libglib-2.0.la*
> lrwxr-xr-x 1 root wheel 16 May 20 12:33 libglib-2.0.so@ -> libglib-2.0.so.0
> -rwxr-xr-x 1 root wheel 999596 May 20 12:33 libglib-2.0.so.0*
When I committed the update of the port to verstion 1.29.0
I've got a message from a user with just the same error.
Some digging showed that this was caused by the port which
"auto-detects" the presence of glib and tries (unfortunately
without success) to connect the library to the build.
The patch was tested and committed to Makefile at rev. 1.59.
Particulary adding USE_GNOME=glib20 helped here.
The strange thing is that now I can't reproduce the error by removing
this dependency (switch back to USE_GNOME=pkgconfig).
> uname -a
> FreeBSD blak.js.berklix.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0:
> Thu May 19 13:49:29 CEST 2011
> jhs at blak.js.berklix.net:/ad6s4/release/8.2-RELEASE/src/sys/amd64/compile/BLAK.small
> amd64
> Breaks just the same on i386 & amd64 % on 8.2-REL ports & current ports
Sorry but I can't reproduce the error with current ports tree.
> printenv
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin
> TERM=xterm
> /etc/make.conf Empty
--
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
More information about the freebsd-ports
mailing list