From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0.pc misses a few dependency libraries Date: Mon, 30 Jan 2012 00:19:40 +0100 Message-ID: <87mx96m703.fsf@gnu.org> References: <83mx98xedm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1327934914 13719 80.91.229.3 (30 Jan 2012 14:48:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2012 14:48:34 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 30 15:48:33 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrsX2-000536-H9 for guile-user@m.gmane.org; Mon, 30 Jan 2012 15:48:32 +0100 Original-Received: from localhost ([::1]:49232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrsX2-0005Wv-5O for guile-user@m.gmane.org; Mon, 30 Jan 2012 09:48:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rre2M-0006H4-Lw for guile-user@gnu.org; Sun, 29 Jan 2012 18:19:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rre2L-0000z3-0G for guile-user@gnu.org; Sun, 29 Jan 2012 18:19:54 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:41555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rre2K-0000yx-RP for guile-user@gnu.org; Sun, 29 Jan 2012 18:19:52 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rre2H-0008Ly-9V for guile-user@gnu.org; Mon, 30 Jan 2012 00:19:49 +0100 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Jan 2012 00:19:49 +0100 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Jan 2012 00:19:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 70 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?iso-8859-1?Q?Pluvi=F4se?= an 220 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:z3aeVkHk1DAMtC8MORkYiNxBDHk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-Mailman-Approved-At: Mon, 30 Jan 2012 09:48:28 -0500 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9218 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Eli, Eli Zaretskii skribis: > When statically linking programs against libguile-2.0.a, I get > unresolved externals. This is on MS-Windows, but I don't think this > is related to the problem. > > I finally traced that to the contents of guile-2.0.pc file: > > Libs: -L${libdir} -lguile-2.0 -Ld:/usr/lib -lgc > Libs.private: d:/usr/lib/libgmp.dll.a -Ld:/usr/lib d:/usr/lib/libltdl.dll.a -Ld:/usr/lib -lffi -lregex -lcrypt -lws2_32 -lm > > However, libguile-2.0.la shows more dependency libraries: > > dependency_libs=' -lgc -lffi -lunistring -liconv -lregex -lintl -liconv -lgmp -ltdl -lregex -lintl -lwsock32 -lole32 -luuid -lmsvcp60 -lcrypt -lws2_32' > > As you see, quite a few libraries are missing from guile-2.0.pc, and > also a several libraries need to appear more than once in the link > command line. Commit 58f86505d658359508732c8f187bc37d010074d0 (see below) should solve most of that, but not all, since I don’t know where -lole32, and -lregex come from, for example. Can you try it and report back? Thanks! Ludo’. --=-=-= Content-Type: text/x-patch; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit commit 58f86505d658359508732c8f187bc37d010074d0 (HEAD, refs/remotes/origin/stable-2.0, refs/heads/stable-2.0) Author: Ludovic Courtès Date: Mon Jan 30 00:17:34 2012 +0100 Augment `Libs.private' with for non-GNU platforms. Reported by Eli Zaretskii . * meta/guile-2.0.pc.in (Libs.private): Add all the optional libraries that may be pulled via Gnulib on non-GNU platforms. Modified meta/guile-2.0.pc.in diff --git a/meta/guile-2.0.pc.in b/meta/guile-2.0.pc.in index ecca778..1bda734 100644 --- a/meta/guile-2.0.pc.in +++ b/meta/guile-2.0.pc.in @@ -15,5 +15,8 @@ Name: GNU Guile Description: GNU's Ubiquitous Intelligent Language for Extension Version: @GUILE_VERSION@ Libs: -L${libdir} -lguile-@GUILE_EFFECTIVE_VERSION@ @BDW_GC_LIBS@ -Libs.private: @LIB_CLOCK_GETTIME@ @LIBGMP@ @LIBLTDL@ @LIBFFI_LIBS@ @GUILE_LIBS@ +Libs.private: @LIB_CLOCK_GETTIME@ @LIBGMP@ @LIBLTDL@ @LIBFFI_LIBS@ \ + @LIBUNISTRING@ @GUILE_LIBS@ @LIBICONV@ @LIBINTL@ @LIBSOCKET@ \ + @SERVENT_LIB@ @HOSTENT_LIB@ @GETADDRINFO_LIB@ @INET_NTOP_LIB@ \ + @INET_PTON_LIB@ Cflags: -I${pkgincludedir}/@GUILE_EFFECTIVE_VERSION@ @GUILE_CFLAGS@ @BDW_GC_CFLAGS@ --=-=-=--