[New] Can't compile gps-1.004 on AIX5.2

Hi,

I tried to compile with the new gcc-3.4.4 (producing 64-bit executables),
and got the following erros:

gcc -maix64 -Wl,-bnolibpath -O9 -maix64 -maltivec -mabi=altivec -s -o gps config
reader.o db.o main.o read.o cfg.o dbdefs.o wlcacheddb.o -L/usr/local/lib -ldbi
-lm -Wl,-brtl -Wl,-blibpath:/usr/local/lib:/usr/local/lib/gcc/powerpc-ibm-aix5.2
.0.0/3.4.4/ppc64:/usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.4:/usr/local/lib/
gcc/powerpc-ibm-aix5.2.0.0/3.4.4/../../../ppc64:/usr/local/lib/gcc/powerpc-ibm-a
ix5.2.0.0/3.4.4/../../..:/usr/lib:/lib
ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__si_class_type_inf
o
ld: 0711-317 ERROR: Undefined symbol: typeinfo for std::logic_error
ld: 0711-317 ERROR: Undefined symbol: std::logic_error::what() const
ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info
ld: 0711-317 ERROR: Undefined symbol: __cxa_pure_virtual
ld: 0711-317 ERROR: Undefined symbol: typeinfo for std::exception
ld: 0711-317 ERROR: Undefined symbol: typeinfo for std::bad_alloc
ld: 0711-317 ERROR: Undefined symbol: typeinfo for std::runtime_error
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-317 ERROR: Undefined symbol: .std::logic_error::~logic_error()
ld: 0711-317 ERROR: Undefined symbol: .operator delete(void*)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: std::basic_string

Forums: 

I have tried compiling something else with gcc-3.4 recently. This was on debian so I am not sure how much help this is. In the README it says that 3.4. is not binary compatible with 3.3 !! So ALL libraries need to be recompiled with gcc-3.4!! The errors you have above therefore I assume are from libstc++ being compiled (prebuilt) with 3.3

Hi,

I finally managed to link gps with the following command:

gcc -maix64 -Wl,-bnolibpath -O9 -maix64 -maltivec -mabi=altivec -s -o gps configreader.o db.o main.o read.o cfg.o dbdefs.o wlcacheddb.o -L/usr/local/lib -ldbi -lm -Wl,-brtl -Wl,-blibpath:/usr/local/li:/usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.4/ppc64:/usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.4:/usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.4/../../../ppc64:/usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.4/../../..:/usr/lib:/lib
-lstdc++

I added the "-lstdc++" manually after the first link failure, changed to src and exced the link command by hand.

When I inserted "-lstdc++" in src/Makefile.in, "-lstdc++" appeared at the wrong
place in the command line (maybe among other bad things) and the link failed, too.

Lothar