This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Installing snapshot on HP-UX
- To: Marco dot Franzen at thyron dot com
- Subject: Re: Installing snapshot on HP-UX
- From: law at redhat dot com
- Date: Fri, 10 Nov 2000 11:05:08 -0700
- cc: gcc-help at gcc dot gnu dot org
- Reply-To: law at redhat dot com
In message <00102416103100.00520@maidavale>you write:
> The symptom is undefined symbols (for entirely newly compiled code; no old
> objects being linked against): [This is from 1009. I tried 1016 first and
> did a make install from the 1009 compilation directory afterwards. The
> type of failure was the same.]
>
> bash-2.03$ cat > world.cpp
> #include <iostream>
> int main() { cout << "Hello world\n"; return 0; }
> bash-2.03$ ~/gnu/bin/g++ -v world.cpp -o world
> Reading specs from /home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/s
> pecs
> Configured with: --prefix=/home/marcof/gnu --with-gnu-as
> gcc version 2.97 20001009 (experimental)
> /home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/cpp0 -lang-c++ -D__
> GNUG__=2 -v -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -Dhppa
> -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9
> 000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hp
> pa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem(unix) -Asyst
> em(hpux) -Acpu(hppa) -Amachine(hppa) -D__STDC_HOSTED__=1 -D_PA_RISC1_1 -D__
> hp9000s700 -D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__ world.cpp /var/tmp/
> ccmNmTwB.ii
> GNU CPP version 2.97 20001009 (experimental) (cpplib) (hppa)
> #include "..." search starts here:
> #include <...> search starts here:
> /home/marcof/gnu/include/g++-3
> /usr/local/include
> /home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/include
> /home/marcof/gnu/hppa1.1-hp-hpux10.20/include
> /usr/include
> End of search list.
> /home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/cc1plus -lang-c++ /
> var/tmp/ccmNmTwB.ii -quiet -dumpbase world.cpp -version -o /var/tmp/cc4Ctod
> E.s
> GNU C++ version 2.97 20001009 (experimental) (hppa1.1-hp-hpux10.20) compile
> d by GNU C version 2.97 20001009 (experimental).
> /home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/../../../../hppa1.1
> -hp-hpux10.20/bin/as -o /var/tmp/ccfWeoVh.o /var/tmp/cc4CtodE.s
> /home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/collect2 -L/lib/pa1
> .1 -L/usr/lib/pa1.1 -z -u main -o world /usr/ccs/lib/crt0.o -L/home/marcof/
> gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97 -L/usr/ccs/bin -L/usr/ccs/lib -L/
> opt/langtools/lib -L/home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/
> ../../.. /var/tmp/ccfWeoVh.o -lstdc++ -lm -lgcc -lc -lgcc
> /usr/ccs/bin/ld: Unsatisfied symbols:
> bad_typeid virtual table(data)
> ios virtual table(data)
> type_info type_info function(code)
> stdiobuf virtual table(data)
> type_info virtual table(data)
> bad_alloc::~bad_alloc(void)(code)
> bad_cast virtual table(data)
> bad_typeid::~bad_typeid(void)(code)
> bad_cast type_info function(code)
> filebuf virtual table(data)
> bad_alloc type_info function(code)
> ios type_info function(code)
> bad_alloc virtual table(data)
> exception type_info function(code)
> exception virtual table(data)
> bad_cast::~bad_cast(void)(code)
> bad_typeid type_info function(code)
> __user_type_info type_info function(code)
> collect2: ld returned 1 exit status
THe first thing I would recommend doing is finding what what version of gas
is being used by the compiler:
/home/marcof/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.97/../../../../hppa1.1-hp-h
pux10.20/bin/as -v
Ought to give you that tidbit.
Then I would do an nm on your libgcc.a
Also, did you configure with --enable-shared?
My best guess is you're running into some kind of weak symbol problem.
jeff