Boost logo

Boost :

From: Maxim Yegorushkin (e-maxim_at_[hidden])
Date: 2005-03-24 07:14:56


Hi,

I upgraded today to boost-1.32.0-5.fc3.i386.rpm and my projects stoped
linking complaining about libboost_unit_test_framework.so: undefined
reference to `init_unit_test_suite(int, char**)'. I'm not a linker expert
but it seems like libboost_unit_test_framework library does not have a
weak symbol init_unit_test_suite anymore. I had to rollback to
boost-1.32.0-3.i386.rpm.

I'd like to know is that my problem or ...?

Here are the details:

[max_at_my text-rpc]$ rpm -qa | grep boost
boost-1.32.0-5.fc3
boost-devel-1.32.0-5.fc3

[max_at_my text-rpc]$ scons -c
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Cleaning targets ...
...
scons: done cleaning targets.

[max_at_my text-rpc]$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
...
g++ -o bin/maind obj/debug/text_rpc.o obj/debug/bison_parser.o
obj/debug/parser_callback.o obj/debug/pdu.yy.o obj/debug/pdu.ll.o
obj/debug/main.o -lboost_unit_test_framework
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libboost_unit_test_framework.so:
undefined reference to `init_unit_test_suite(int, char**)'
Collect2: ld returned 1 exit status
scons: *** [bin/maind] Error 1
scons: building terminated because of errors.

[max_at_my text-rpc]$ sudo rpm -e $(rpm -qa | grep boost)

[max_at_my text-rpc]$ rpm -qa | grep boost

[max_at_my text-rpc]$ ls ~/downloads/boost-*
/home/max/downloads/boost-1.32.0-3.i386.rpm
/home/max/downloads/boost-devel-1.32.0-3.i386.rpm

[max_at_my text-rpc]$ sudo rpm -Uvh ~/downloads/boost*
warning: /home/max/downloads/boost-1.32.0-3.i386.rpm: V3 DSA signature:
NOKEY, key ID 30c9ecf8
Preparing... ###########################################
[100%]
    1:boost ###########################################
[ 50%]
    2:boost-devel ###########################################
[100%]

[max_at_my text-rpc]$ rpm -qa | grep boost
boost-1.32.0-3
boost-devel-1.32.0-3

[max_at_my text-rpc]$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o bin/maind obj/debug/text_rpc.o obj/debug/bison_parser.o
obj/debug/parser_callback.o obj/debug/pdu.yy.o obj/debug/pdu.ll.o
obj/debug/main.o -lboost_unit_test_framework
g++ -fmessage-length=0 -Wall -Wextra -ggdb -Iinclude -c -o
obj/debug/unit_test.o src/unit_test.cpp
g++ -o bin/unit_testd obj/debug/text_rpc.o obj/debug/bison_parser.o
obj/debug/parser_callback.o obj/debug/pdu.yy.o obj/debug/pdu.ll.o
obj/debug/unit_test.o -lboost_unit_test_framework
ar r lib/libtext_rpcd.a obj/debug/text_rpc.o obj/debug/bison_parser.o
obj/debug/parser_callback.o obj/debug/pdu.yy.o obj/debug/pdu.ll.o
ranlib lib/libtext_rpcd.a
ar: creating lib/libtext_rpcd.a
scons: done building targets.

-- 
Maxim Yegorushkin

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk