Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2011 13:57:04 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        "Julian H. Stacey" <jhs@berklix.com>
Cc:        ports@FreeBSD.org
Subject:   Re: ports/comms/gammu breaks on ld: cannot find -lglib-2.0
Message-ID:  <25652319@bb.ipt.ru>
In-Reply-To: <201105211937.p4LJbL1M091406@fire.js.berklix.net> (Julian H. Stacey's message of "Sat, 21 May 2011 21:37:21 %2B0200")
References:  <201105211937.p4LJbL1M091406@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25652319>