From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0.pc misses a few dependency libraries Date: Tue, 31 Jan 2012 18:57:14 +0200 Message-ID: <837h07res5.fsf@gnu.org> References: <83mx98xedm.fsf@gnu.org> <87mx96m703.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1328029195 28582 80.91.229.3 (31 Jan 2012 16:59:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2012 16:59:55 +0000 (UTC) Cc: guile-user@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 31 17:59:54 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 1RsH3h-0008Bc-MD for guile-user@m.gmane.org; Tue, 31 Jan 2012 17:59:53 +0100 Original-Received: from localhost ([::1]:60026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsH3h-0002iX-AN for guile-user@m.gmane.org; Tue, 31 Jan 2012 11:59:53 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsH3Y-0002Yp-9R for guile-user@gnu.org; Tue, 31 Jan 2012 11:59:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsH3M-0001Cy-8I for guile-user@gnu.org; Tue, 31 Jan 2012 11:59:44 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:35495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsH3M-0001C8-0u; Tue, 31 Jan 2012 11:59:32 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LYO00C009BP8G00@a-mtaout22.012.net.il>; Tue, 31 Jan 2012 18:59:13 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.55.250]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYO00CWM9UO9Q10@a-mtaout22.012.net.il>; Tue, 31 Jan 2012 18:59:13 +0200 (IST) In-reply-to: <87mx96m703.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:9228 Archived-At: > From: ludo@gnu.org (Ludovic Court=C3=A8s) > Date: Mon, 30 Jan 2012 00:19:40 +0100 >=20 > > I finally traced that to the contents of guile-2.0.pc file: > > > > Libs: -L${libdir} -lguile-2.0 -Ld:/usr/lib -lgc =20 > > 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=20 > > > > However, libguile-2.0.la shows more dependency libraries: > > > > dependency_libs=3D' -lgc -lffi -lunistring -liconv -lregex -lin= tl -liconv -lgmp -ltdl -lregex -lintl -lwsock32 -lole32 -luuid -lmsvc= p60 -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 lin= k > > command line. >=20 > Commit 58f86505d658359508732c8f187bc37d010074d0 (see below) should = solve > most of that, but not all It solves all of them, thanks. > I don=E2=80=99t know where -lole32, and -lregex come from, for exam= ple. "-lregex" is needed by regex-posix.c (naturally ;-), since the defaul= t Windows libraries do not include regcomp, regexec, etc. There's a test in configure that first check the standard library link, then "-lregex" and "-lrx". However, @GUILE_LIBS@ already gets edited to include -lregex, so there's no problems here. "-lole32" (and a few others) come from libregex.la. However, the standard link command for the program I'm building (GNU Make, btw) already includes these libraries even without Guile, so using your modified guile-2.0.pc.in, I was able to link the program successfully with no unresolved externals. Btw, shouldn't guile-2.0-uninstalled.pc.in get the same changes? Thanks!