unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Linking statically with libguile on Debian
@ 2002-05-08 23:28 David Allouche
  2002-05-10 21:32 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 2+ messages in thread
From: David Allouche @ 2002-05-08 23:28 UTC (permalink / raw)


Hello, I am new on this mailing list.

I am a TeXmacs developper and I currently have problems with statically 
linking a binary against libguile 1.4 on Debian.

The problem is that:
david@nemesis david$ guile-config link
-L/usr/lib -lguile -lqthreads -lpthread -lm

But at link time, I get the following error:
/usr/local/guile-1.4/lib/libguile.a(dynl.o): In function 
`sysdep_dynl_link':
/home/david/Desktop/guile-core-1.4/libguile/dynl.c:243: undefined 
reference to `lt_dlopenext'

The link command being:
c++  Objects/basic_group.o [...] Objects/std_widget_group.o -Wl,-Bstatic 
-L /home/david/Desktop/TeXmacs/TeXmacs-src/TeXmacs-1.0.0.4/lib -lm 
-Wl,-rpath, -L/usr/X11R6/lib -lXext -lX11 -L/usr/local/guile-1.4/lib 
-lguile -lm -ldl -o 
/home/david/Desktop/TeXmacs/TeXmacs-src/TeXmacs-1.0.0.4/bin/texmacs.bin

That problem is fixed if I add -lltdl to the link command.

That problem do not appear on a Mandrake box on which it tested the 
compilation. I noticed that, on that system, libguile was compiled 
without thread support:
[david@stefp TeXmacs-src]$ guile-config link
-L/usr/lib -lguile -lm

So I compiled the debianized guile-core package without thread and tried 
recompiling my program against that new version (by adding 
/usr/local/guile-1.4/bin at the beginning of my PATH), but the problem 
persisted.

You may notice that the error messages I provided were produced using 
that thread-disabled guile installation.

I also tried to compile the upstream guile-1.4 package, but compilation 
failed. 

Can someone clue me at what is wrong?
-- 

                                  -- David --

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linking statically with libguile on Debian
  2002-05-08 23:28 Linking statically with libguile on Debian David Allouche
@ 2002-05-10 21:32 ` Thien-Thi Nguyen
  0 siblings, 0 replies; 2+ messages in thread
From: Thien-Thi Nguyen @ 2002-05-10 21:32 UTC (permalink / raw)
  Cc: guile-user

   From: David Allouche <me@davidallouche.net>
   Date: Thu, 9 May 2002 01:28:08 +0200

   I am a TeXmacs developper and I currently have problems with
   statically linking a binary against libguile 1.4 on Debian.

probably you mean the libguile that was shipped w/ guile-1.4 (which on
my system turns out to be libguile.so.9.0.0 -- can you confirm?).

   /usr/local/guile-1.4/lib/libguile.a(dynl.o): In function 
   `sysdep_dynl_link':
   /home/david/Desktop/guile-core-1.4/libguile/dynl.c:243: undefined 
   reference to `lt_dlopenext'

   That problem is fixed if I add -lltdl to the link command.

libguile depends on libltdl, so it seems to me "-lltdl" should be added
to the "guile-config link" output.  historically, libltdl was embedded
(no longer the case w/ guile-1.4.1, guile-1.5.x, and later), so this was
not necessary.

   I also tried to compile the upstream guile-1.4 package, but
   compilation failed.

yes, guile-1.4 is known to be slightly broken.  if you are adventurous,
i would recommend playing w/ guile-1.4.1 (in cvs -- see script below).
fwiw, my setup is reproducible via:

  checkout-hack -a
  cd hack/core-1-4
  sh -x autogen.sh
  mkdir ../core-1-4.b ; cd ../core-1-4.b           # b for "build"
  ../core-1-4/configure -C --enable-maintainer-mode --with-threads
  make
  make check

which all depends on automake-1.5, autoconf-2.53, libtool-1.4.2
(installed under /usr/local).  w/ this i am working (slowly but maybe
faster w/ some help) towards guile-1.4.1 release.

see hack/core-1-4/NEWS, also available online:

  http://www.glug.org/snap/guile-core-1.4/NEWS
  http://www.glug.org/snap/	(generally)

for more info.

thi


______________________________________
#! /bin/sh -x
# Usage: checkout-hack
#        checkout-hack -a       # "all" includes branches
#
# Env var: CVSROOT

CVSROOT=${CVSROOT-':pserver:anoncvs@subversions.gnu.org:/cvsroot/guile'}
export CVSROOT

branches="1-4 1-6"

cvs co hack

if [ x"$1" = x-a ] ; then
    cd hack
    for branch in $branches ; do
        cvs co -d core-$branch -r branch_release-$branch core
    done
fi

# checkout-hack ends here

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-10 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-08 23:28 Linking statically with libguile on Debian David Allouche
2002-05-10 21:32 ` Thien-Thi Nguyen

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).