bug-libtool
[Top][All Lists]
Advanced

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

Re: build check in AIX 5.2 / 5.3 / 6.1 - gcc/g++


From: Rainer Tammer
Subject: Re: build check in AIX 5.2 / 5.3 / 6.1 - gcc/g++
Date: Sat, 12 Jan 2008 11:06:29 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7

Hello Ralf,
sorry for the delayed answer...

with branch-1.5 (20080111)

The following tests passes now (gcc):
PASS: demo-make.test
PASS: demo-exec.test
PASS: demo-inst.test

The following tests fail as expected (gccc):
FAIL: tagdemo-make.test
FAIL: tagdemo-make.test
FAIL: tagdemo-make.test


Ralf Wildenhues wrote:
Indeed:

/bin/sh ./libtool --tag=CXX   --mode=link g++  -g -O2  -Wl,-brtl -o tagdemo 
main.o libbaz.la
g++ -g -O2 -Wl,-brtl -o tagdemo main.o  ./.libs/libbaz.a
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< 
<std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& 
std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)
ld: 0711-317 ERROR: Undefined symbol: vtable for 
__cxxabiv1::__si_class_type_info
ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> 
>::operator<<(double)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> 
>::operator<<(unsigned long)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> 
>::operator<<(long)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
gmake[3]: *** [tagdemo] Error 1

Can you try these and show output?
  cd tagdemo
  /bin/sh ./libtool --tag=CXX --mode=link g++ -v -g -O2 -Wl,-brtl -o tagdemo 
main.o libbaz.la
g++ -v -g -O2 -Wl,-brtl -o .libs/tagdemo main.o -L./.libs -lbaz -Wl,-blibpath:/daten/source/libtool/branch-1-5/libtool/tests/_inst/lib:/opt/freeware/li
b/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0
/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/collect2 -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -bexport:/usr/lib/libg.exp -o .lib s/tagdemo /lib/crt0.o -L./.libs -L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0 -L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../.. -brtl main.o -lbaz -blibpath:/daten/source/libtool/branch-1-5/libtool/tests/_inst/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/ powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib -lstdc++ -lm -lgcc_s /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/libgcc.a -lg -lc -lgcc_s /opt
/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/libgcc.a
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<ch
ar, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<cha
r, std::char_traits<char> >&)
ld: 0711-317 ERROR: Undefined symbol: vtable for foobar_derived
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long)
ld: 0711-317 ERROR: Undefined symbol: vtable for barbaz_derived
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(long) ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

  /bin/sh ./libtool --tag=CXX --mode=link g++ -v -g -O2 -Wl,-brtl -o tagdemo 
main.o libbaz.la -lstdc++ -lm

g++ -v -g -O2 -Wl,-brtl -o .libs/tagdemo main.o -L./.libs -lbaz -lstdc++ -lm -Wl,-blibpath:/daten/source/libtool/branch-1-5/libtool/tests/_inst/lib:/op
t/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0
/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/collect2 -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -bexport:/usr/lib/libg.exp -o .lib s/tagdemo /lib/crt0.o -L./.libs -L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0 -L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../.. -brtl main.o -lbaz -lstdc++ -blibpath:/daten/source/libtool/branch-1-5/libtool/tests/_inst/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware /lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib -lstdc++ -lm -lgcc_s /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/libgcc.a -lg -lc -lg
cc_s /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/libgcc.a
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<ch
ar, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<cha
r, std::char_traits<char> >&)
ld: 0711-317 ERROR: Undefined symbol: vtable for foobar_derived
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long)
ld: 0711-317 ERROR: Undefined symbol: vtable for barbaz_derived
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(long) ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

Please also show
  ./libtool --tag=CXX --config | grep -E '^(pre|post)dep'


predep_objects=""
postdep_objects=""
predeps=""
postdeps=""
predep_objects=""
postdep_objects=""
predeps=""
postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s"



Somehow it seems '-lstdc++ -lm' does not find its way into CXX postdeps.

Thanks,
Ralf


Bye
 Rainer






reply via email to

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