[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] mblock linking error
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] mblock linking error |
Date: |
Thu, 01 Mar 2007 07:00:37 -0800 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070103) |
Tim Meehan wrote:
> tim /etc/ld.so.conf
>
> /usr/X11R6/lib
> /usr/lib/atlas
>
> /usr/lib/libc5-compat
> /lib/libc5-compat
> /usr/i486-linuxlibc1/lib
Here is mine:
/usr/local/lib
/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu
/usr/X11R6/lib
I don't recall if the first line is something I added or if it is the
stock configuration.
> Some more possibly usefull infromation
>
> g++ -g -O2 -Wall -Woverloaded-virtual -o .libs/test_mblock
> test_mblock.o -pthread ./.libs/libmblock-qa.so -Wl,--rpath
> -Wl,/usr/local/lib
On my Ubuntu 6.10 system:
g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o .libs/test_mblock
test_mblock.o ./.libs/libmblock-qa.so
This is the key difference, as I think was worked out by Bob McGwier
some weeks ago--your libtool has the '-Wl,--rpath -Wl,/usr/local/lib'
arguments appended, mine does not. I have 1.5.22-4.
On my system, in the build tree, this results in:
$ grep dependency libmblock-qa.la
dependency_libs='
/home/jcorgan/gnuradio/trunk/mblock/src/lib/libmblock.la
/home/jcorgan/gnuradio/trunk/omnithread/libgromnithread.la -lrt
/home/jcorgan/gnuradio/trunk/pmt/src/lib/libpmt.la
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../..//libcppunit.la -ldl '
$ objdump -x libmblock-qa.so | grep NEEDED
NEEDED libmblock.so
NEEDED libcppunit-1.10.so.2
NEEDED libdl.so.2
NEEDED libstdc++.so.6
NEEDED libm.so.6
NEEDED libc.so.6
NEEDED libgcc_s.so.1
$ objdump -x libmblock-qa.so | grep RPATH
RPATH /home/jcorgan/gnuradio/trunk/mblock/src/lib/.libs
$ grep dependency libmblock.la
dependency_libs='
/home/jcorgan/gnuradio/trunk/omnithread/libgromnithread.la -lrt
/home/jcorgan/gnuradio/trunk/pmt/src/lib/libpmt.la '
$ objdump -x libmblock.so | grep NEEDED
NEEDED libgromnithread.so
NEEDED libpmt.so
NEEDED libstdc++.so.6
NEEDED libm.so.6
NEEDED libc.so.6
NEEDED libgcc_s.so.1
$ objdump -x libmblock.so | grep RPATH
RPATH
/home/jcorgan/gnuradio/trunk/omnithread/.libs:/home/jcorgan/gnuradio/trunk/pmt/src/lib/.libs
So the net of all this is that in the correctly completed build, both
the .la files and the .so files have all the information needed to
resolve all the interlibrary dependencies from within the build tree.
Can you compare the above to what you see in your tree?
--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
- Re: [Discuss-gnuradio] mblock linking error, Tim Meehan, 2007/03/01
- Re: [Discuss-gnuradio] mblock linking error,
Johnathan Corgan <=
- Re: [Discuss-gnuradio] mblock linking error, Eric Blossom, 2007/03/01
- Re: [Discuss-gnuradio] mblock linking error, Tim Meehan, 2007/03/01
- Re: [Discuss-gnuradio] mblock linking error, Johnathan Corgan, 2007/03/01
- Re: [Discuss-gnuradio] mblock linking error, Eric Blossom, 2007/03/01
- Re: [Discuss-gnuradio] mblock linking error, Johnathan Corgan, 2007/03/01
- Re: [Discuss-gnuradio] mblock linking error, Eric Blossom, 2007/03/01
- Re: [Discuss-gnuradio] mblock linking error, Eric Blossom, 2007/03/01
Re: [Discuss-gnuradio] mblock linking error, Tim Meehan, 2007/03/01