unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: guile-2.0.pc misses a few dependency libraries
Date: Mon, 30 Jan 2012 00:19:40 +0100	[thread overview]
Message-ID: <87mx96m703.fsf@gnu.org> (raw)
In-Reply-To: 83mx98xedm.fsf@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

Hi Eli,

Eli Zaretskii <eliz@gnu.org> 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’.


[-- Attachment #2: Type: text/x-patch, Size: 1189 bytes --]

commit 58f86505d658359508732c8f187bc37d010074d0 (HEAD, refs/remotes/origin/stable-2.0, refs/heads/stable-2.0)
Author: Ludovic Courtès <ludo@gnu.org>
Date:   Mon Jan 30 00:17:34 2012 +0100

    Augment `Libs.private' with for non-GNU platforms.
    
    Reported by Eli Zaretskii <eliz@gnu.org>.
    
    * 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@


  reply	other threads:[~2012-01-29 23:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-28 11:20 guile-2.0.pc misses a few dependency libraries Eli Zaretskii
2012-01-29 23:19 ` Ludovic Courtès [this message]
2012-01-30 17:02   ` Mark H Weaver
2012-01-30 17:10     ` Ludovic Courtès
2012-01-31 16:57   ` Eli Zaretskii
2012-01-31 17:56     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mx96m703.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).