This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FYI: [Shaleh <shaleh@livenet.net>] library staticly linked even though compiled w/-lc?




Topics:
   Re: library staticly linked even though compiled w/-lc?


----------------------------------------------------------------------

Date: Fri, 21 Aug 1998 12:26:21 -0400
From: Shaleh <shaleh@livenet.net>
To: "Karl M. Hegbloom" <karlheg@inetarena.com>
CC: "Debian Developers' Forum" <debian-devel@lists.debian.org>
Subject: Re: library staticly linked even though compiled w/-lc?
Message-ID: <35DD9FAD.FBF52B4C@livenet.net>
References: <87lnoi72ru.fsf@bittersweet.inetarena.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Karl, that is libtool biting you in the rump.  Do the following:

libtoolize --copy --force
aclocal
automake
autoconf

Then go on your merry way (-:  Jim PIck and I had the same problem w/
GNOME and Imlib.

Karl M. Hegbloom wrote:
> 
>  I need a hand.  I thought that I was linking libguile.so.3.0.0 against
>  -lc, but `ldd' says it's staticly linked.
> 
>  What is wrong here?  What's the cure?  How do I fix it?
> 
> /bin/sh ../libtool --mode=link gcc -g -O2 -Wall  -fPIC -D_REENTRANT -Wall -Wpointer-arith -Wmissing-prototypes  -o libguile.la -rpath /usr/lib -version-info 3:0 -export-dynamic alist.lo arbiters.lo async.lo boolean.lo chars.lo continuations.lo dynl.lo dynwind.lo eq.lo error.lo eval.lo feature.lo filesys.lo fports.lo gc.lo gdbint.lo genio.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io.lo gh_list.lo gh_predicates.lo gsubr.lo hash.lo hashtab.lo init.lo ioext.lo kw.lo list.lo load.lo mallocs.lo markers.lo net_db.lo numbers.lo objects.lo objprop.lo options.lo pairs.lo ports.lo posix.lo print.lo procprop.lo procs.lo ramap.lo read.lo readline.lo root.lo scmsigs.lo script.lo simpos.lo smob.lo socket.lo stackchk.lo stime.lo strings.lo strop.lo strorder.lo strports.lo struct.lo symbols.lo tag.lo throw.lo unif.lo variable.lo vectors.lo version.lo vports.lo weaks.lo fluids.lo regex-posix.lo backtrace.lo stacks.lo debug.lo srcprop.lo threads.lo iselect.lo -ldl -lreadline -lm -lc
> mkdir .libs
> gcc -shared -Wl,-soname -Wl,libguile.so.3 -o .libs/libguile.so.3.0.0 alist.lo arbiters.lo async.lo boolean.lo chars.lo continuations.lo dynl.lo dynwind.lo eq.lo error.lo eval.lo feature.lo filesys.lo fports.lo gc.lo gdbint.lo genio.lo gh_data.lo gh_eval.lo gh_funcs.lo gh_init.lo gh_io.lo gh_list.lo gh_predicates.lo gsubr.lo hash.lo hashtab.lo init.lo ioext.lo kw.lo list.lo load.lo mallocs.lo markers.lo net_db.lo numbers.lo objects.lo objprop.lo options.lo pairs.lo ports.lo posix.lo print.lo procprop.lo procs.lo ramap.lo read.lo readline.lo root.lo scmsigs.lo script.lo simpos.lo smob.lo socket.lo stackchk.lo stime.lo strings.lo strop.lo strorder.lo strports.lo struct.lo symbols.lo tag.lo throw.lo unif.lo variable.lo vectors.lo version.lo vports.lo weaks.lo fluids.lo regex-posix.lo backtrace.lo stacks.lo debug.lo srcprop.lo threads.lo iselect.lo
> (cd .libs && ln -s libguile.so.3.0.0 libguile.so.3)
> (cd .libs && ln -s libguile.so.3.0.0 libguile.so)
> ar cru .libs/libguile.a alist.o arbiters.o async.o boolean.o chars.o continuations.o dynl.o dynwind.o eq.o error.o eval.o feature.o filesys.o fports.o gc.o gdbint.o genio.o gh_data.o gh_eval.o gh_funcs.o gh_init.o gh_io.o gh_list.o gh_predicates.o gsubr.o hash.o hashtab.o init.o ioext.o kw.o list.o load.o mallocs.o markers.o net_db.o numbers.o objects.o objprop.o options.o pairs.o ports.o posix.o print.o procprop.o procs.o ramap.o read.o readline.o root.o scmsigs.o script.o simpos.o smob.o socket.o stackchk.o stime.o strings.o strop.o strorder.o strports.o struct.o symbols.o tag.o throw.o unif.o variable.o vectors.o version.o vports.o weaks.o fluids.o regex-posix.o backtrace.o stacks.o debug.o srcprop.o threads.o iselect.o
> ranlib .libs/libguile.a
> creating libguile.la
> (cd .libs && ln -s ../libguile.la libguile.la)
> 
> ldd $scm/Guile/guile-core/debian/libguile3/usr/lib/libguile.so.3.0.0
>         statically linked
> 
> objdump -T $scm/Guile/guile-core/debian/libguile3/usr/lib/libguile.so.3.0.0
> 
> /usr/local/src/Scheme/Guile/guile-core/debian/libguile3/usr/lib/libguile.so.3.0.0:     file format elf32-i386
> 
> DYNAMIC SYMBOL TABLE:
> 0006c48c g    DO *ABS*  00000000 _DYNAMIC
> 0006ada0 g    DO *ABS*  00000000 _GLOBAL_OFFSET_TABLE_
> 00000000  w   D  *UND*  00000000 __gmon_start__
> 00010d70 g    DF .init  00000000 _init
> 00064440 g    DF .fini  00000000 _fini
> 00013730 g    DF .text  00000083 scm_acons
> 00068ecc g    DO .data  00000004 scm_freelist
>  (abridged)
> 0006dd28 g    DO .bss   00000004 coop_global_curr
> 0004cc30 g    DF .text  00000017 scm_stack_size
> 00015a80 g    DF .text  000000e0 scm_dynthrow
> 00000000      D  *UND*  00000000 _IO_stderr_
> 00000000      D  *UND*  00000000 fputs
> 00000000      D  *UND*  00000000 longjmp
>  (abridged)
> 00015b60 g    DF .text  000000c6 scm_call_continuation
> 00064020 g    DF .text  00000104 coop_wait_for_runnable_thread_now
> 00000000      D  *UND*  00000000 ___brk_addr
> 00000000      D  *UND*  00000000 __environ
> 00000000      D  *UND*  00000000 atexit
> 0006443c g    DO *ABS*  00000000 _etext
> 0006c50c g    DO *ABS*  00000000 _edata
> 0006c50c g    DO *ABS*  00000000 __bss_start
> 0006e128 g    DO *ABS*  00000000 _end
> 
> --
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

- - 
=====
Linux, because I'd like to *get there* today


------------------------------

End of forwardHOBmfY Digest
***************************