Forum: GNU Radio mblock linking error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
141689c528c5212754cbead4acd52b46?d=identicon&s=25 Josh Blum (Guest)
on 2007-02-27 17:05
(Received via mailing list)
I just checked out the trunk rev 4659, did a bootstrap, configure, it
fails
on the make.
I am running ubuntu edgy. Is this an issue with the new
linking/integrating
mblock?

-Josh


/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall
-Woverloaded-virtual -pthread   -o test_mblock  test_mblock.o
libmblock-qa.la libmblock.la
g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o .libs/test_mblock
test_mblock.o  ./.libs/libmblock-qa.so ./.libs/libmblock.so -Wl,--rpath
-Wl,/usr/local/lib
./.libs/libmblock-qa.so: undefined reference to
`pmt_list3(boost::shared_ptr<pmt_base>, boost::shared_ptr<pmt_base>,
boost::shared_ptr<pmt_base>)'
./.libs/libmblock-qa.so: undefined reference to
`pmt_list1(boost::shared_ptr<pmt_base>)'
./.libs/libmblock-qa.so: undefined reference to
`pmt_list2(boost::shared_ptr<pmt_base>, boost::shared_ptr<pmt_base>)'
collect2: ld returned 1 exit status
make[4]: *** [test_mblock] Error 1
make[4]: Leaving directory `/usr/src/gnuradio_trunk/mblock/src/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/gnuradio_trunk/mblock/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/gnuradio_trunk/mblock'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnuradio_trunk'
make: *** [all] Error 2
D8567cd44ef4d0816c00b81ccf7656ff?d=identicon&s=25 Roshan Baliga (Guest)
on 2007-02-28 02:20
(Received via mailing list)
I've run into the same problem on Ubuntu 6.06 (Dapper Drake) at trunk
rev 4662 (current). The trunk tree built fine for me on the same box a
month ago. (I already tried make distclean and bootstrap.)

-Roshan
141689c528c5212754cbead4acd52b46?d=identicon&s=25 Josh Blum (Guest)
on 2007-02-28 02:56
(Received via mailing list)
The same problem occurs on cygwin. I know cygwin is a lower priority,
but the issue may not be ubuntu specific. -josh
Cec0a4bf0e0575f3a3171892e6097e59?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-02-28 03:45
(Received via mailing list)
Josh Blum wrote:

> The same problem occurs on cygwin. I know cygwin is a lower priority,
> but the issue may not be ubuntu specific. -josh
>
> Roshan Baliga wrote:
>> I've run into the same problem on Ubuntu 6.06 (Dapper Drake) at trunk
>> rev 4662 (current). The trunk tree built fine for me on the same box a
>> month ago. (I already tried make distclean and bootstrap.)

Could you gentlemen please update and retry?

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
E16be4811324adf8f26be26d77e9d29d?d=identicon&s=25 Robert McGwier (Guest)
on 2007-02-28 16:04
(Received via mailing list)
This problem is understood.   There is a change in libtool in the
Debian/Ubuntu community.  I believed this was fixed here by finding out
some shell changes but it is not.

If you cannot build mblock,   you need to install pmt,  which alway
builds first.  Go into the pmt directory and make install or sudo make
install depending on your situation.


Then when you go back to the base directory and do make,  the mblock
(and the rest of the)  make will complete quickly.

There are a couple of really aggravating things in Ubuntu 6.1 (maybe
earlier) and libtool and link of sh to dash are at the top of my list.
I could not understand what in the world was going on with these shells
which had


#!/bin/sh

at the top from IBM for the Cell SDK (for example), and others,  not
working and really bombing badly.   Ubuntu has placed /bin/dash,  their
step towards a posix compliant sh,  in the symbolic link.   Shell script
authors have used sh in their scripts when they probably wanted the bash
extensions and should have used bash.  It is still a bit ugly to drop
this on us without warning and to break so many shell scripts in the
process.

Bob



Johnathan Corgan wrote:
>>> month ago. (I already tried make distclean and bootstrap.)
>>>
>
> Could you gentlemen please update and retry?
>
>


--
AMSAT Director and VP Engineering. Member: ARRL, AMSAT-DL,
TAPR, Packrats, NJQRP, QRP ARCI, QCWA, FRC. ARRL SDR WG Chair
"Taking fun as simply fun and earnestness in earnest shows
how thoroughly thou none of the two discernest." - Piet Hine
141689c528c5212754cbead4acd52b46?d=identicon&s=25 Josh Blum (Guest)
on 2007-02-28 17:45
(Received via mailing list)
So I manually installed pmt. The make stops a new error with omnithread.
Going into the omnithread directory and make install doesnt fix this
one. So is ubuntu just megaborked for gnuradio? I should seek a new OS
(like fedora?) -Josh

creating libmblock-qa.la
(cd .libs && rm -f libmblock-qa.la && ln -s ../libmblock-qa.la
libmblock-qa.la)
if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib     -g -O2 -Wall
-Woverloaded-virtual -pthread -MT test_mblock.o -MD -MP -MF
".deps/test_mblock.Tpo" -c -o test_mblock.o test_mblock.cc; \
        then mv -f ".deps/test_mblock.Tpo" ".deps/test_mblock.Po"; else
rm -f ".deps/test_mblock.Tpo"; exit 1; fi
/bin/bash ../../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall
-Woverloaded-virtual -pthread   -o test_mblock  test_mblock.o
libmblock-qa.la
g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o .libs/test_mblock
test_mblock.o  ./.libs/libmblock-qa.so -Wl,--rpath -Wl,/usr/local/lib
./.libs/libmblock-qa.so: undefined reference to
`omni_thread::init_t::init_t()'
./.libs/libmblock-qa.so: undefined reference to
`omni_thread::init_t::~init_t()'
./.libs/libmblock-qa.so: undefined reference to
`mb_mblock_impl::component(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
./.libs/libmblock-qa.so: undefined reference to `mb_mblock::fullname()
const'
collect2: ld returned 1 exit status
make[4]: *** [test_mblock] Error 1
make[4]: Leaving directory `/usr/src/gnuradio_trunk/mblock/src/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/gnuradio_trunk/mblock/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/gnuradio_trunk/mblock'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnuradio_trunk'
make: *** [all] Error 2
Cec0a4bf0e0575f3a3171892e6097e59?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-02-28 18:17
(Received via mailing list)
Robert McGwier wrote:

> This problem is understood.   There is a change in libtool in the
> Debian/Ubuntu community.  I believed this was fixed here by finding
> out some shell changes but it is not.

Just FYI, my main development machine is Ubuntu 6.10.  I have never had
this issue with libtool/rpath that you describe.  I have the default
build installed which does indeed have the /bin/sh -> /bin/dash symlink.
So there is something else going on here.

> If you cannot build mblock,   you need to install pmt,  which alway
> builds first.  Go into the pmt directory and make install or sudo
> make install depending on your situation.

In this particular case, I believe that the specific mblock build
failure that was seen was a problem with the Makefile.am that was fixed
on the trunk yesterday evening.  I'm still waiting confirmation of a fix
or not.

> There are a couple of really aggravating things in Ubuntu 6.1 (maybe
> earlier) and libtool and link of sh to dash are at the top of my
> list. I could not understand what in the world was going on with
> these shells which had

Again, there must be something else going on as neither of these are a
problem for me.

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
Cec0a4bf0e0575f3a3171892e6097e59?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-02-28 18:19
(Received via mailing list)
Josh Blum wrote:

> So I manually installed pmt. The make stops a new error with omnithread.
> Going into the omnithread directory and make install doesnt fix this
> one. So is ubuntu just megaborked for gnuradio? I should seek a new OS
> (like fedora?) -Josh

Was this after doing an 'svn update' to get the Makefile.am fix I posted
last night?

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
93bcc40cd07916689fe7de8afde22af1?d=identicon&s=25 Tim Meehan (Guest)
on 2007-02-28 21:08
(Received via mailing list)
Hi Johnathan,

Just to give you another data point, I get the same errors Josh does
when trying to do a fresh build.

svn update (4669)

./bootstrap
./configure
make

When I disable mblock (./configure -disable-mblock) the rest of 4669
builds fine.

I am running Debian stable with updated python, swig ...

Tim
5e81c66258333eb8e665cc4814d0a6d5?d=identicon&s=25 Greg Troxel (Guest)
on 2007-02-28 21:20
(Received via mailing list)
I am able to build svn head on NetBSD, including mblock.  It seems to
be using the new .la references for pmt and omnithread.

(I have up-to-date auto* and swig and gcc 4.1.2.)


Making all in src
gmake[1]: Entering directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock/src'
Making all in lib
gmake[2]: Entering directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock/src/lib'
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_connection.lo -MD -MP -MF .deps/mb_connection.Tpo -c -o
mb_connection.lo mb_connection.cc
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_connection.lo -MD -MP -MF
.deps/mb_connection.Tpo -c mb_connection.cc  -fPIC -DPIC -o
.libs/mb_connection.o
mv -f .deps/mb_connection.Tpo .deps/mb_connection.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_endpoint.lo -MD -MP -MF .deps/mb_endpoint.Tpo -c -o mb_endpoint.lo
mb_endpoint.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_endpoint.lo -MD -MP -MF
.deps/mb_endpoint.Tpo -c mb_endpoint.cc  -fPIC -DPIC -o
.libs/mb_endpoint.o
mv -f .deps/mb_endpoint.Tpo .deps/mb_endpoint.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_exception.lo -MD -MP -MF .deps/mb_exception.Tpo -c -o mb_exception.lo
mb_exception.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_exception.lo -MD -MP -MF
.deps/mb_exception.Tpo -c mb_exception.cc  -fPIC -DPIC -o
.libs/mb_exception.o
mv -f .deps/mb_exception.Tpo .deps/mb_exception.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_mblock.lo -MD -MP -MF .deps/mb_mblock.Tpo -c -o mb_mblock.lo
mb_mblock.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_mblock.lo -MD -MP -MF
.deps/mb_mblock.Tpo -c mb_mblock.cc  -fPIC -DPIC -o .libs/mb_mblock.o
mv -f .deps/mb_mblock.Tpo .deps/mb_mblock.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_mblock_impl.lo -MD -MP -MF .deps/mb_mblock_impl.Tpo -c -o
mb_mblock_impl.lo mb_mblock_impl.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_mblock_impl.lo -MD -MP -MF
.deps/mb_mblock_impl.Tpo -c mb_mblock_impl.cc  -fPIC -DPIC -o
.libs/mb_mblock_impl.o
mv -f .deps/mb_mblock_impl.Tpo .deps/mb_mblock_impl.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_message.lo -MD -MP -MF .deps/mb_message.Tpo -c -o mb_message.lo
mb_message.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_message.lo -MD -MP -MF
.deps/mb_message.Tpo -c mb_message.cc  -fPIC -DPIC -o .libs/mb_message.o
mv -f .deps/mb_message.Tpo .deps/mb_message.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_msg_accepter.lo -MD -MP -MF .deps/mb_msg_accepter.Tpo -c -o
mb_msg_accepter.lo mb_msg_accepter.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_msg_accepter.lo -MD -MP -MF
.deps/mb_msg_accepter.Tpo -c mb_msg_accepter.cc  -fPIC -DPIC -o
.libs/mb_msg_accepter.o
mv -f .deps/mb_msg_accepter.Tpo .deps/mb_msg_accepter.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_msg_accepter_smp.lo -MD -MP -MF .deps/mb_msg_accepter_smp.Tpo -c -o
mb_msg_accepter_smp.lo mb_msg_accepter_smp.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_msg_accepter_smp.lo -MD -MP -MF
.deps/mb_msg_accepter_smp.Tpo -c mb_msg_accepter_smp.cc  -fPIC -DPIC -o
.libs/mb_msg_accepter_smp.o
mv -f .deps/mb_msg_accepter_smp.Tpo .deps/mb_msg_accepter_smp.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_msg_queue.lo -MD -MP -MF .deps/mb_msg_queue.Tpo -c -o mb_msg_queue.lo
mb_msg_queue.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_msg_queue.lo -MD -MP -MF
.deps/mb_msg_queue.Tpo -c mb_msg_queue.cc  -fPIC -DPIC -o
.libs/mb_msg_queue.o
mv -f .deps/mb_msg_queue.Tpo .deps/mb_msg_queue.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_port.lo -MD -MP -MF .deps/mb_port.Tpo -c -o mb_port.lo mb_port.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_port.lo -MD -MP -MF
.deps/mb_port.Tpo -c mb_port.cc  -fPIC -DPIC -o .libs/mb_port.o
mv -f .deps/mb_port.Tpo .deps/mb_port.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_port_simple.lo -MD -MP -MF .deps/mb_port_simple.Tpo -c -o
mb_port_simple.lo mb_port_simple.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_port_simple.lo -MD -MP -MF
.deps/mb_port_simple.Tpo -c mb_port_simple.cc  -fPIC -DPIC -o
.libs/mb_port_simple.o
mv -f .deps/mb_port_simple.Tpo .deps/mb_port_simple.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_protocol_class.lo -MD -MP -MF .deps/mb_protocol_class.Tpo -c -o
mb_protocol_class.lo mb_protocol_class.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_protocol_class.lo -MD -MP -MF
.deps/mb_protocol_class.Tpo -c mb_protocol_class.cc  -fPIC -DPIC -o
.libs/mb_protocol_class.o
mv -f .deps/mb_protocol_class.Tpo .deps/mb_protocol_class.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_runtime.lo -MD -MP -MF .deps/mb_runtime.Tpo -c -o mb_runtime.lo
mb_runtime.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_runtime.lo -MD -MP -MF
.deps/mb_runtime.Tpo -c mb_runtime.cc  -fPIC -DPIC -o .libs/mb_runtime.o
mv -f .deps/mb_runtime.Tpo .deps/mb_runtime.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_runtime_single_threaded.lo -MD -MP -MF
.deps/mb_runtime_single_threaded.Tpo -c -o mb_runtime_single_threaded.lo
mb_runtime_single_threaded.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_runtime_single_threaded.lo -MD -MP
-MF .deps/mb_runtime_single_threaded.Tpo -c
mb_runtime_single_threaded.cc  -fPIC -DPIC -o
.libs/mb_runtime_single_threaded.o
mv -f .deps/mb_runtime_single_threaded.Tpo
.deps/mb_runtime_single_threaded.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
mb_util.lo -MD -MP -MF .deps/mb_util.Tpo -c -o mb_util.lo mb_util.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT mb_util.lo -MD -MP -MF
.deps/mb_util.Tpo -c mb_util.cc  -fPIC -DPIC -o .libs/mb_util.o
mv -f .deps/mb_util.Tpo .deps/mb_util.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=link g++ -g -O2 -Wall
-Woverloaded-virtual -pthread  -avoid-version -L/usr/pkg/lib
-R/usr/pkg/lib -L/usr/adroit/lib -R/usr/adroit/lib -o libmblock.la
-rpath /usr/adroit/lib mb_connection.lo mb_endpoint.lo mb_exception.lo
mb_mblock.lo mb_mblock_impl.lo mb_message.lo mb_msg_accepter.lo
mb_msg_accepter_smp.lo mb_msg_queue.lo mb_port.lo mb_port_simple.lo
mb_protocol_class.lo mb_runtime.lo mb_runtime_single_threaded.lo
mb_util.lo ../../../omnithread/libgromnithread.la
../../../pmt/src/lib/libpmt.la -lstdc++       -lossaudio
g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o
.libs/mb_connection.o .libs/mb_endpoint.o .libs/mb_exception.o
.libs/mb_mblock.o .libs/mb_mblock_impl.o .libs/mb_message.o
.libs/mb_msg_accepter.o .libs/mb_msg_accepter_smp.o .libs/mb_msg_queue.o
.libs/mb_port.o .libs/mb_port_simple.o .libs/mb_protocol_class.o
.libs/mb_runtime.o .libs/mb_runtime_single_threaded.o .libs/mb_util.o
-Wl,--rpath -Wl,/usr/home/gdt/ADROIT-public/gnuradio/omnithread/.libs
-Wl,--rpath -Wl,/usr/home/gdt/ADROIT-public/gnuradio/pmt/src/lib/.libs
-Wl,--rpath -Wl,/usr/adroit/lib -Wl,--rpath -Wl,/usr/pkg/lib
-L/usr/pkg/lib -L/usr/adroit/lib
../../../omnithread/.libs/libgromnithread.so
../../../pmt/src/lib/.libs/libpmt.so -lossaudio -lstdc++ -lm -lgcc_s
-lgcc_pic /usr/lib/crtendS.o /usr/lib/crtn.o  -pthread -Wl,-soname
-Wl,libmblock.so -o .libs/libmblock.so
creating libmblock.la
(cd .libs && rm -f libmblock.la && ln -s ../libmblock.la libmblock.la)
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
qa_mblock.lo -MD -MP -MF .deps/qa_mblock.Tpo -c -o qa_mblock.lo
qa_mblock.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT qa_mblock.lo -MD -MP -MF
.deps/qa_mblock.Tpo -c qa_mblock.cc  -fPIC -DPIC -o .libs/qa_mblock.o
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h:17: warning:
'class CppUnit::TestFixtureFactory' has virtual functions but
non-virtual destructor
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h: In
instantiation of 'CppUnit::ConcretTestFixtureFactory<qa_mblock_prims>':
./qa_mblock_prims.h:36:   instantiated from here
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h:30: warning:
'class CppUnit::ConcretTestFixtureFactory<qa_mblock_prims>' has virtual
functions but non-virtual destructor
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h: In
instantiation of 'CppUnit::ConcretTestFixtureFactory<qa_mblock_send>':
./qa_mblock_send.h:34:   instantiated from here
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h:30: warning:
'class CppUnit::ConcretTestFixtureFactory<qa_mblock_send>' has virtual
functions but non-virtual destructor
mv -f .deps/qa_mblock.Tpo .deps/qa_mblock.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
qa_mblock_prims.lo -MD -MP -MF .deps/qa_mblock_prims.Tpo -c -o
qa_mblock_prims.lo qa_mblock_prims.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT qa_mblock_prims.lo -MD -MP -MF
.deps/qa_mblock_prims.Tpo -c qa_mblock_prims.cc  -fPIC -DPIC -o
.libs/qa_mblock_prims.o
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h:17: warning:
'class CppUnit::TestFixtureFactory' has virtual functions but
non-virtual destructor
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h: In
instantiation of 'CppUnit::ConcretTestFixtureFactory<qa_mblock_prims>':
./qa_mblock_prims.h:36:   instantiated from here
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h:30: warning:
'class CppUnit::ConcretTestFixtureFactory<qa_mblock_prims>' has virtual
functions but non-virtual destructor
mv -f .deps/qa_mblock_prims.Tpo .deps/qa_mblock_prims.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../.. -DOMNITHREAD_POSIX=1 -I../../../omnithread
-I../../../pmt/src/lib  -I/usr/pkg/include  -I/usr/pkg/include
-I/usr/adroit/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
qa_mblock_send.lo -MD -MP -MF .deps/qa_mblock_send.Tpo -c -o
qa_mblock_send.lo qa_mblock_send.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT qa_mblock_send.lo -MD -MP -MF
.deps/qa_mblock_send.Tpo -c qa_mblock_send.cc  -fPIC -DPIC -o
.libs/qa_mblock_send.o
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h:17: warning:
'class CppUnit::TestFixtureFactory' has virtual functions but
non-virtual destructor
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h: In
instantiation of 'CppUnit::ConcretTestFixtureFactory<qa_mblock_send>':
./qa_mblock_send.h:34:   instantiated from here
/usr/pkg/include/cppunit/extensions/TestFixtureFactory.h:30: warning:
'class CppUnit::ConcretTestFixtureFactory<qa_mblock_send>' has virtual
functions but non-virtual destructor
mv -f .deps/qa_mblock_send.Tpo .deps/qa_mblock_send.Plo
/bin/ksh ../../../libtool --tag=CXX   --mode=link g++ -g -O2 -Wall
-Woverloaded-virtual -pthread  -avoid-version -L/usr/pkg/lib
-R/usr/pkg/lib -L/usr/adroit/lib -R/usr/adroit/lib -o libmblock-qa.la
-rpath /usr/adroit/lib qa_mblock.lo qa_mblock_prims.lo qa_mblock_send.lo
libmblock.la -L/usr/pkg/lib -lcppunit -lstdc++       -lossaudio
g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o
.libs/qa_mblock.o .libs/qa_mblock_prims.o .libs/qa_mblock_send.o
-Wl,--rpath
-Wl,/usr/home/gdt/ADROIT-public/gnuradio/mblock/src/lib/.libs
-Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/adroit/lib -Wl,--rpath
-Wl,/usr/pkg/lib -L/usr/pkg/lib -L/usr/adroit/lib ./.libs/libmblock.so
-L/usr/home/gdt/ADROIT-public/gnuradio/omnithread/.libs
-L/usr/home/gdt/ADROIT-public/gnuradio/pmt/src/lib/.libs
/usr/pkg/lib/libcppunit.so -lossaudio -lstdc++ -lm -lgcc_s -lgcc_pic
/usr/lib/crtendS.o /usr/lib/crtn.o  -pthread -Wl,-soname
-Wl,libmblock-qa.so -o .libs/libmblock-qa.so
creating libmblock-qa.la
(cd .libs && rm -f libmblock-qa.la && ln -s ../libmblock-qa.la
libmblock-qa.la)
g++ -DHAVE_CONFIG_H -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib  -I/usr/pkg/include
-I/usr/pkg/include -I/usr/adroit/include -g -O2 -Wall
-Woverloaded-virtual -pthread -MT test_mblock.o -MD -MP -MF
.deps/test_mblock.Tpo -c -o test_mblock.o test_mblock.cc
/usr/pkg/include/cppunit/TestRunner.h:95: warning: 'virtual void
CppUnit::TestRunner::run(CppUnit::TestResult&, const std::string&)' was
hidden
/usr/pkg/include/cppunit/ui/text/TextTestRunner.h:73: warning:   by
'bool CppUnit::TextTestRunner::run(std::string, bool, bool, bool)'
mv -f .deps/test_mblock.Tpo .deps/test_mblock.Po
/bin/ksh ../../../libtool --tag=CXX   --mode=link g++ -g -O2 -Wall
-Woverloaded-virtual -pthread  -L/usr/pkg/lib -R/usr/pkg/lib
-L/usr/adroit/lib -R/usr/adroit/lib -o test_mblock test_mblock.o
libmblock-qa.la -lossaudio
g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o .libs/test_mblock
test_mblock.o  -L/usr/pkg/lib -L/usr/adroit/lib ./.libs/libmblock-qa.so
/usr/home/gdt/ADROIT-public/gnuradio/mblock/src/lib/.libs/libmblock.so
/usr/home/gdt/ADROIT-public/gnuradio/omnithread/.libs/libgromnithread.so
/usr/home/gdt/ADROIT-public/gnuradio/pmt/src/lib/.libs/libpmt.so
/usr/pkg/lib/libcppunit.so -lossaudio -Wl,--rpath -Wl,/usr/adroit/lib
-Wl,--rpath -Wl,/usr/pkg/lib
creating test_mblock
gmake[2]: Leaving directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock/src/lib'
gmake[2]: Entering directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock/src'
gmake[2]: Nothing to be done for `all-am'.
gmake[2]: Leaving directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock/src'
gmake[1]: Leaving directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock/src'
gmake[1]: Entering directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock'
gmake[1]: Nothing to be done for `all-am'.
gmake[1]: Leaving directory
`/usr/home/gdt/ADROIT-public/gnuradio/mblock'
D0072e69d706bb3ca211d33a1b536e2c?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-02-28 21:44
(Received via mailing list)
Greg Troxel wrote:

> I am able to build svn head on NetBSD, including mblock.  It seems to
> be using the new .la references for pmt and omnithread.
>
> (I have up-to-date auto* and swig and gcc 4.1.2.)

This is useful, thanks.

Tim Meehan wrote:

> Just to give you another data point, I get the same errors Josh does
> when trying to do a fresh build.
>
> svn update (4669)
>
> ./bootstrap
> ./configure
> make

Can you 'make clean' first, just make sure it's actually trying to
relink everything?

> When I disable mblock (./configure -disable-mblock) the rest of 4669
> builds fine.

This is an appropriate work around if you still run into problems.  The
'mblock' component on the trunk is a work-in-progress and nothing
depends upon it yet.

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-02-28 21:56
(Received via mailing list)
On Wed, Feb 28, 2007 at 12:43:27PM -0800, Johnathan Corgan wrote:
>
> Can you 'make clean' first, just make sure it's actually trying to
> relink everything?
>
> > When I disable mblock (./configure -disable-mblock) the rest of 4669
> > builds fine.
>
> This is an appropriate work around if you still run into problems.  The
> 'mblock' component on the trunk is a work-in-progress and nothing
> depends upon it yet.

It would be nice to get to the bottom of this problem.

It seem odd that only a small subset of users are seeing it.

Eric
93bcc40cd07916689fe7de8afde22af1?d=identicon&s=25 Tim Meehan (Guest)
on 2007-02-28 22:55
(Received via mailing list)
Hi Johnathan,

make clean
./bootstrap
./configure
make

also fails.  See below

If there is something I can do to help you figure this out let me
know, but don't sweat it on my account.  For the moment I will just
run without mblock and when I get some time I will dig into it.

creating libmblock-qa.la
(cd .libs && rm -f libmblock-qa.la && ln -s ../libmblock-qa.la
libmblock-qa.la)
if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -DOMNITHREAD_POSIX=1
-I../../../omnithread -I../../../pmt/src/lib     -g -O2 -Wall
-Woverloaded-virtual -pthread -MT test_mblock.o -MD -MP -MF
".deps/test_mblock.Tpo" -c -o test_mblock.o test_mblock.cc; \
then mv -f ".deps/test_mblock.Tpo" ".deps/test_mblock.Po"; else rm -f
".deps/test_mblock.Tpo"; exit 1; fi
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -Wall
-Woverloaded-virtual -pthread   -o test_mblock  test_mblock.o
libmblock-qa.la
g++ -g -O2 -Wall -Woverloaded-virtual -o .libs/test_mblock
test_mblock.o  -pthread ./.libs/libmblock-qa.so -Wl,--rpath
-Wl,/usr/local/lib
./.libs/libmblock-qa.so: undefined reference to
`mb_mblock::handle_message(boost::shared_ptr<mb_message>)'
./.libs/libmblock-qa.so: undefined reference to
`omni_thread::init_t::init_t[in-charge]()'
./.libs/libmblock-qa.so: undefined reference to
`mb_mblock_impl::make_accepter(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >)'

.....
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-01 03:58
(Received via mailing list)
On Wed, Feb 28, 2007 at 04:54:14PM -0500, Tim Meehan wrote:
> know, but don't sweat it on my account.  For the moment I will just
> ".deps/test_mblock.Tpo"; exit 1; fi
> ./.libs/libmblock-qa.so: undefined reference to
> `mb_mblock_impl::make_accepter(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >)'


Tim and Johnathan, can you please post the contents of your
/etc/ld.so.conf?

Thanks,
Eric
93bcc40cd07916689fe7de8afde22af1?d=identicon&s=25 Tim Meehan (Guest)
on 2007-03-01 12:03
(Received via mailing list)
tim /etc/ld.so.conf

/usr/X11R6/lib
/usr/lib/atlas

/usr/lib/libc5-compat
/lib/libc5-compat
/usr/i486-linuxlibc1/lib


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

results in

./.libs/libmblock-qa.so: undefined reference to
`mb_mblock::handle_message(boost
::shared_ptr<mb_message>)'
...

this symbol,  `mb_mblock::handle_message(boost::shared_ptr<mb_message>)'

is in .libs/mb_mblock.o

but it is not clear to me where g++ was told to find it from the command
above.
D0072e69d706bb3ca211d33a1b536e2c?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-03-01 16:01
(Received via mailing list)
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
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-01 16:35
(Received via mailing list)
On Thu, Mar 01, 2007 at 07:00:37AM -0800, Johnathan Corgan wrote:
>
> > 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


I recall something in a Debian or Ubuntu bug report about them
changing whether or not they use --rpath based on whether the
destination directory was listed in /etc/ld.so.conf.  It appears that
they are still doing this, and that this could account for the
difference in behavior.  (Seems a bit fragile...)

Tim and Johnathan, can you each perform another experiment for me?
First off do a "make uninstall" to ensure that the install path is
empty.

Then, Tim, please add /usr/local/bin to /etc/ld.so.conf and try

  ./bootstrap
  ./configure
  make
  make check

Johnathan, try the opposite: remove /usr/local/lib from /etc/ld.so.conf
then

  ./bootstrap
  ./configure
  make
  make check


Thanks for your assistance on this.  We may be honing in on the
fundamental libtool change that was made in Debian and/or Ubuntu.

Eric
93bcc40cd07916689fe7de8afde22af1?d=identicon&s=25 Tim Meehan (Guest)
on 2007-03-01 18:13
(Received via mailing list)
Hi Johnathan

I think I am beginning to understand  now.  I am no expert with the gnu
linker

when I run

$g++ -g -O2 -Wall -Woverloaded-virtual -o .libs/test_mblock
test_mblock.o  -pthread ./.libs/libmblock-qa.so  .libs/libmblock.so
-Wl,--rpath -Wl,/usr/local/lib

I do not get an error

NOTE the addition of .libs/libmblock.so to the g++ line

Also if I run

$g++ -g -O2 -Wall -Woverloaded-virtual -o .libs/test_mblock
test_mblock.o  -pthread ./.libs/libmblock-qa.so   -Wl

Note here I do not inlude .libs/libmblock.so but I remove the --rpath
-Wl,/usr/local/lib

I guess the `--rpath ....'  steps on whatever RPATH is in
libmblock-qa.so


I have included the dumps you requested below.

I am rebuilding with /etc/ld.so.conf mod that Eric requested.

$ grep dependency libmblock-qa.la
dependency_libs='
/home/meehan/workspace/gnuradio/mblock/src/lib/libmblock.la
/home/meehan/workspace/gnuradio/omnithread/libgromnithread.la -lrt
/home/meehan/workspace/gnuradio/pmt/src/lib/libpmt.la
/usr/lib/gcc-lib/i486-linux/3.3.5/../../..//libcppunit.la -ldl '

$ objdump -x .libs/libmblock-qa.so | grep NEEDED
  NEEDED      libmblock.so
  NEEDED      libcppunit-1.10.so.0
  NEEDED      libdl.so.2
  NEEDED      libstdc++.so.5
  NEEDED      libm.so.6
  NEEDED      libc.so.6
  NEEDED      libgcc_s.so.1


$objdump -x .libs/libmblock-qa.so   | grep RPATH
  RPATH
/home/meehan/workspace/gnuradio/mblock/src/lib/.libs:/usr/local/lib

$ grep dependency libmblock.la
dependency_libs='
/home/meehan/workspace/gnuradio/omnithread/libgromnithread.la -lrt
/home/meehan/workspace/gnuradio/pmt/src/lib/libpmt.la  '

$ objdump -x .libs/libmblock.so | grep NEEDED
  NEEDED      libgromnithread.so
  NEEDED      libpmt.so
  NEEDED      libstdc++.so.5
  NEEDED      libm.so.6
  NEEDED      libc.so.6
  NEEDED      libgcc_s.so.1

$ objdump -x .libs/libmblock.so | grep RPATH
  RPATH
/home/meehan/workspace/gnuradio/omnithread/.libs:/home/meehan/workspace/gnuradio/pmt/src/lib/.libs:/usr/local/lib
93bcc40cd07916689fe7de8afde22af1?d=identicon&s=25 Tim Meehan (Guest)
on 2007-03-01 18:51
(Received via mailing list)
Eric,

When I added /usr/local/lib to ld.so.conf

The build was sucessful

Tim
D0072e69d706bb3ca211d33a1b536e2c?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-03-01 19:08
(Received via mailing list)
Tim Meehan wrote:

> When I added /usr/local/lib to ld.so.conf
>
> The build was sucessful

Great!

But--when I took out the /usr/local/lib from my ld.so.conf, it still
compiled and linked okay, *and* it switched to using the rpath like your
used to.

Progress, I suppose :-)

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-01 22:03
(Received via mailing list)
On Thu, Mar 01, 2007 at 12:50:20PM -0500, Tim Meehan wrote:
> Eric,
>
> When I added /usr/local/lib to ld.so.conf
>
> The build was sucessful
>
> Tim

Thanks.  That's good to know.  I don't think it should be necessary,
but it's better to know.

Eric
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-01 22:05
(Received via mailing list)
On Thu, Mar 01, 2007 at 10:06:46AM -0800, Johnathan Corgan wrote:
> used to.
>
> Progress, I suppose :-)

Did you have GNU Radio stuff installed in /usr/local/lib when you ran
the test?

Also, we may need to run

  # ldconfig

after editing /etc/ld.so.conf to update the dynamic loader's cache.

Eric
D0072e69d706bb3ca211d33a1b536e2c?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-03-02 03:29
(Received via mailing list)
Eric Blossom wrote:

>> Progress, I suppose :-)
>
> Did you have GNU Radio stuff installed in /usr/local/lib when you ran
> the test?
>
> Also, we may need to run
>
>   # ldconfig
>
> after editing /etc/ld.so.conf to update the dynamic loader's cache.

I just verified:

- no /usr/local/lib in ld.so.conf
- no GNU Radio files in /usr/local/*
- ldconfig was run

make, make check, and make distcheck passed.

The linker now puts the rpath /usr/local/lib argument.

Checking the created .so files inside the tree, the embedded RPATH
values are the same as before, except they have /usr/local/lib appended
to them.

So we're still not there yet.  Tim's fix was to add /usr/local/lib to
his ld.so.conf.  My system doesn't need it.

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-02 03:34
(Received via mailing list)
On Thu, Mar 01, 2007 at 06:27:54PM -0800, Johnathan Corgan wrote:
> >
> The linker now puts the rpath /usr/local/lib argument.
>
> Checking the created .so files inside the tree, the embedded RPATH
> values are the same as before, except they have /usr/local/lib appended
> to them.
>
> So we're still not there yet.  Tim's fix was to add /usr/local/lib to
> his ld.so.conf.  My system doesn't need it.

Thanks for the info.  Strange...

Eric
D8567cd44ef4d0816c00b81ccf7656ff?d=identicon&s=25 Roshan Baliga (Guest)
on 2007-03-05 23:54
(Received via mailing list)
Johnathan Corgan wrote:
> Robert McGwier wrote:
>
>> This problem is understood.   There is a change in libtool in the
>> Debian/Ubuntu community.  I believed this was fixed here by finding
>> out some shell changes but it is not.
>
> Just FYI, my main development machine is Ubuntu 6.10.  I have never had
> this issue with libtool/rpath that you describe.  I have the default
> build installed which does indeed have the /bin/sh -> /bin/dash symlink.
> So there is something else going on here.

I'm running Ubuntu 6.06, and /bin/sh links to /bin/bash, not dash.

>> If you cannot build mblock,   you need to install pmt,  which alway
>> builds first.  Go into the pmt directory and make install or sudo
>> make install depending on your situation.
>
> In this particular case, I believe that the specific mblock build
> failure that was seen was a problem with the Makefile.am that was fixed
> on the trunk yesterday evening.  I'm still waiting confirmation of a fix
> or not.

The updated Makefile didn't fix the problem. I'm now using the 4717
revision. Doing:

make distclean
./bootstrap
./configure
make

fails in the 'boost' section of mblock, while doing the same thing but
compiling pmt first results in a failure in the omnithread section of
mblock (as Josh Blum saw).

-Roshan
93bcc40cd07916689fe7de8afde22af1?d=identicon&s=25 Tim Meehan (Guest)
on 2007-03-06 00:07
(Received via mailing list)
Hello Roshan,

Out of curiosity did you try adding
/usr/local/lib
to your
/etc/ld.so.conf
file

This worked for me on my Debian distribution.

Tim
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-06 00:08
(Received via mailing list)
On Mon, Mar 05, 2007 at 02:53:04PM -0800, Roshan Baliga wrote:
> >So there is something else going on here.
> >or not.
> compiling pmt first results in a failure in the omnithread section of
> >problem for me.
Try this work around for Ubuntu brokenness:

  Add /usr/local/lib to /etc/ld.so.conf then run
  # ldconfig

Eric
3dfb724cefc1eddbade1e8bd1ee6131f?d=identicon&s=25 Dan Halperin (Guest)
on 2007-03-06 00:28
(Received via mailing list)
Eric Blossom wrote:
> Try this work around for Ubuntu brokenness:
>
>   Add /usr/local/lib to /etc/ld.so.conf then run
>   # ldconfig

I added this to the Wiki (UbuntuInstall). Are we just supposed to use
the guest account?

-Dan
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-06 01:17
(Received via mailing list)
On Mon, Mar 05, 2007 at 03:25:52PM -0800, Dan Halperin wrote:
> Eric Blossom wrote:
> > Try this work around for Ubuntu brokenness:
> >
> >   Add /usr/local/lib to /etc/ld.so.conf then run
> >   # ldconfig
>
> I added this to the Wiki (UbuntuInstall). Are we just supposed to use
> the guest account?

That works.

Eric
821c1adf3f4be2f2aa6fbc89cce4c69a?d=identicon&s=25 Michael Dickens (Guest)
on 2007-03-06 02:16
(Received via mailing list)
FWIW: I just did a fresh install of the latest GNU Radio trunk on
fresh install of Ubuntu 6.10 over the weekend, and it went without a
hitch from start to finish.  I actually wrote down what I did, so
it's even repeatable (in theory).  Admittedly, this was on a VM, so
an "indirect" piece of hardware - but I didn't have to tweak /etc/
ld.so.conf or any related files ... it reads:

include /etc/ld.so.conf.d/*.conf
/usr/X11R6/lib

There are no *.conf files in /etc/ld.so.conf.d/. - MLD
3dfb724cefc1eddbade1e8bd1ee6131f?d=identicon&s=25 Dan Halperin (Guest)
on 2007-03-06 02:22
(Received via mailing list)
Michael Dickens wrote:
> weekend, and it went without a hitch from start to finish.  I actually
> wrote down what I did, so it's even repeatable (in theory).

I put my gnuradio install script up on the Wiki (UbuntuInstall); it
would be great if you would compare it to yours and make any useful
changes. I used it in early January, before a bunch of the recent
changes went in (like splitting the swig_python file).

-Dan
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-06 02:30
(Received via mailing list)
On Mon, Mar 05, 2007 at 08:15:05PM -0500, Michael Dickens wrote:
> There are no *.conf files in /etc/ld.so.conf.d/. - MLD
Thanks for the data point.  The mystery continues!

Eric
821c1adf3f4be2f2aa6fbc89cce4c69a?d=identicon&s=25 Michael Dickens (Guest)
on 2007-03-06 03:29
(Received via mailing list)
On Mar 5, 2007, at 8:21 PM, Dan Halperin wrote:
> I put my gnuradio install script up on the Wiki (UbuntuInstall); it
> would be great if you would compare it to yours and make any useful
> changes. I used it in early January, before a bunch of the recent
> changes went in (like splitting the swig_python file).

I've edited that page < http://www.gnuradio.org/trac/wiki/
UbuntuInstall >; cleaned it up a bit.  Feel free to revert more
"personal" areas if you want; add in your known working version of
Ubuntu (I'm using 6.10 on a VM running on an Intel-Mac, and it gets
32 MB/s!).  I like your overall script, and will try to create one
that can be attached to this page for downloading by other users so-
as to "just do it" (much like my OSX script, which one day might even
make it into the Wiki ;) . - MLD
Ece5687b72805e8b87ee702bd003280c?d=identicon&s=25 Daniel Garcia (Guest)
on 2007-03-12 05:45
(Received via mailing list)
--- Eric Blossom <eb@comsec.com> wrote:
>
> Eric
>

I ran in to this error today. I modified one of the
iir filter files and tried to rebuild the tree; it
failed. I tried the /etc/ld.so.conf, didn't work for
me. make uninstall, then tried again failed. Finally
removed gnuradio by hand, checkout into new directory,
everything works fine now.

>From the looks of the mblock linking errors I was
getting it looked like a previous version of the
library was getting loaded instead of the one from the
compile tree (but I'm not a build guru).

-Daniel




____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
D0072e69d706bb3ca211d33a1b536e2c?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-03-12 18:58
(Received via mailing list)
Daniel Garcia wrote:

> I ran in to this error today. I modified one of the iir filter files
> and tried to rebuild the tree; it failed. I tried the
> /etc/ld.so.conf, didn't work for me. make uninstall, then tried again
>  failed. Finally removed gnuradio by hand, checkout into new
> directory, everything works fine now.
>
> From the looks of the mblock linking errors I was getting it looked
> like a previous version of the library was getting loaded instead of
> the one from the compile tree (but I'm not a build guru).

It does appear that "accidentally" linking in an already installed
library vs. one that was just compiled within the tree is still haunting
us somewhere.  A big change went into the trunk and release 3.0.3
regarding linking that appeared to fix all this, but I guess not.

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-12 20:19
(Received via mailing list)
On Sun, Mar 11, 2007 at 09:44:35PM -0700, Daniel Garcia wrote:
> >
> everything works fine now.
>
> >From the looks of the mblock linking errors I was
> getting it looked like a previous version of the
> library was getting loaded instead of the one from the
> compile tree (but I'm not a build guru).
>
> -Daniel

Folks,

When reporting problems, symptoms, etc., PLEASE tell us what version
of GNU Radio you are using, whether or not you're building from svn or a
tarball, and what OS, distribution and architecture you are using.

Eric
D8567cd44ef4d0816c00b81ccf7656ff?d=identicon&s=25 Roshan Baliga (Guest)
on 2007-09-25 23:05
(Received via mailing list)
Yup, adding /usr/local/lib to my ld.so.conf file did indeed fix the
problem. 4718 now builds cleanly. Thanks for the tip.

Roshan
This topic is locked and can not be replied to.