libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: link_all_deplibs


From: Christoph Wellner
Subject: Re: link_all_deplibs
Date: Tue, 18 Jan 2005 09:46:31 +0100
User-agent: Opera M2/7.54u1 (Linux, build 892)

On Mon, 17 Jan 2005 16:03:46 +0100, Ralf Wildenhues <address@hidden> wrote:

...

This is all not helpful.  Please read[1].

Please provide a small recipe how we can reproduce what you are doing,
or at least post the rules you use to create your libraries and
programs, i.e., Makefile or Makefile.am snippets.

Your description lacks way to much information -- post real information,
cut and paste rather than copy by hand, be concise, report your system
(you have only revealed the operating system, not the architecture),
read [1] again, cut and paste the *exact* commands that fail, together
with their output.

Regards,
Ralf

[1] http://www.lecb.ncifcrf.gov/~toms/bugs.html

Ok,

so when I start my application, I get the following:


/home/chwellner/nmm2_sarge/apps/clic/.libs/lt-clic: error while loading shared libraries: libnmmutils.so.0: cannot open shared object file: No such file or directory

ldd says: ldd .libs/lt-clic
        ...
        libc.so.6 => /lib/tls/libc.so.6 (0x4075d000)
        libnmmutils.so.0 => not found
        ...
        libnmmnetutils.so.0 => not found
libnmmrtp.so.0 => /home/chwellner/nmm2_sarge/nmm/base/proxy/rtp/.libs/libnmmrtp.so.0 (0x40893000) libnmmutils.so.0 => /home/chwellner/nmm2_sarge/nmm/utils/.libs/libnmmutils.so.0 (0x408d4000)
        ...

The linking-part of the Makefile.am is this (snippet)
        $(top_builddir)/nmm/utils/gdparse/libnmmgdparse.la \
      $(top_builddir)/nmm/base/libnmmbase.la \
      $(top_builddir)/nmm/base/graph/libnmmgraphmgr.la \
        ...

So, clic is linked against libnmmbase. And the Makefile.am of libnmmbase :
        $(top_builddir)/nmm/utils/libnmmutils.la \
        $(top_builddir)/nmm/utils/thread/libnmmutilsthread.la \
        $(top_builddir)/nmm/base/registry/libnmmregistry.la \
        ...

So libnmmutils is linked against libnmmbase, wich is linked against the application clic.

libnmmbase is linked using this command:
/bin/sh ../../libtool --mode=link g++ -g -O0 -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-check-new -fexceptions -o libnmmbase.la -rpath /usr/local/lib/nmm --version-info 0:0:0 connect.lo ConnectorAcceptor.lo ConnectorAddress.lo Node.lo GenericNode.lo GenericSourceNode.lo GenericProcessorNode.lo GenericSinkNode.lo GenericMultiplexerNode.lo GenericDemultiplexerNode.lo GenericMuxDemuxNode.lo GenericConverterNode.lo GenericFilterNode.lo Jack.lo InputJack.lo OutputJack.lo StdNamedObject.lo QueuedInputJack.lo QueuedOutputJack.lo JackGroup.lo ThreadedNode.lo StreamQueue.lo Event.lo EventDispatcher.lo Message.lo NMMObject.lo CommunicationChannel.lo OutOfBandChannel.lo InstreamChannel.lo TransportStrategy.lo Interface.lo InterfaceFactory.lo TSFactory.lo NMMApplication.lo BaseExceptions.lo ProxyObject.lo ProxyApplication.lo ObjectAcceptor.lo GenericProducer.lo ReferenceCount.lo ConnectionManager.lo FormatStrategyMap.lo CompositeStrategy.lo ../../nmm/base/proxy/rtp/libnmmrtp.la ../../nmm/utils/libnmmutils.la ../../nmm/utils/thread/libnmmutilsthread.la ../../nmm/base/registry/libnmmregistry.la ../../nmm/base/serialize/libnmmserialize.la ../../nmm/base/serialize/net/libnmmnetstream.la ../../nmm/base/format/libnmmformat.la ../../nmm/base/resourcemgr/libnmmresourcemgr.la ../../nmm/base/memorymgr/libnmmmemorymgr.la ../../nmm/base/graph/libnmmcompositenode.la ../../nmm/base/sync/libnmmsync.la ../../nmm/base/proxy/tcp/libnmmtcp.la ../../nmm/base/proxy/udp/libnmmudp.la ../../nmm/interfaces/base/libnmmibase.la ../../nmm/interfaces/audio/libnmmiaudio.la ../../nmm/interfaces/net/libnmminet.la


and the command for clic:
/bin/sh ../../libtool --mode=link g++ -g -O0 -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-check-new -fexceptions -o clic ClicApplication.o ../../nmm/utils/gdparse/libnmmgdparse.la ../../nmm/base/libnmmbase.la ../../nmm/base/graph/libnmmgraphmgr.la ../../nmm/interfaces/file/libnmmifile.la ../../nmm/interfaces/base/sync/libnmmisync.la ../../nmm/interfaces/video/display/libnmmidisplay.la ../../nmm/base/registry/libnmmregistry.la ../../nmm/misc/timer/libnmmtimer.la




This is now a lot of text (sorry for that) and I hope, the information is enough. The clic-application also uses functions from libnmmutils.

Christoph

--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]