From owner-freebsd-ports@FreeBSD.ORG Mon May 23 10:29:47 2011 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9B6C1065675 for ; Mon, 23 May 2011 10:29:47 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id A8E698FC17 for ; Mon, 23 May 2011 10:29:47 +0000 (UTC) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtps (TLSv1:AES128-SHA:128) (Exim 4.54 (FreeBSD)) id 1QORsm-000OJj-KJ; Mon, 23 May 2011 13:57:04 +0400 From: Boris Samorodov To: "Julian H. Stacey" References: <201105211937.p4LJbL1M091406@fire.js.berklix.net> Date: Mon, 23 May 2011 13:57:04 +0400 In-Reply-To: <201105211937.p4LJbL1M091406@fire.js.berklix.net> (Julian H. Stacey's message of "Sat, 21 May 2011 21:37:21 +0200") Message-ID: <25652319@bb.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ports@FreeBSD.org Subject: Re: ports/comms/gammu breaks on ld: cannot find -lglib-2.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 10:29:48 -0000 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