link errors with simple c++ prog on hpux10/11/a couple others
Nathan Neulinger
nneul@umr.edu
Wed Jul 5 09:29:00 GMT 2000
This is with the latest cvs's over the past couple weeks.
gcc bootstraps just fine. Looks like everything works, however, when
linking a g++ program, it gets undefined symbols that should probably be
in libstdc++. This does not occur on a linux build. gcc works just fine
on all the platforms.
Also, is libstdc++-v3 supposed to be supported on other than just glibc
based systems? Cause it's got stuff wired in _G_config.h that causes the
build to fail on other platforms.
The program below is just a simple hello world type program.
-- Nathan
troot-cosmos(20)> g++ -v -o hello hello.cpp
Reading specs from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/specs
gcc version 2.96 20000702 (experimental)
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/cpp -lang-c++ -v
-iprefix
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/ -D__GNUC__=2
-D__GNUG__=
2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__cplusplus -Dhppa
-Dhp9000s800
-D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__
-D__hp900
0s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa
-D__hp9000s800 -D__hp
9k8 -D__PWB -D__hpux -D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa)
-Amachin
e(hppa) -D__EXCEPTIONS -D_PA_RISC1_1 -D__hp9000s700 -D_HPUX_SOURCE
-D_HIUX_SOURC
E -D__STDC_EXT__ hello.cpp /var/tmp/cc39qcqh.ii
GNU CPP version 2.96 20000702 (experimental) (cpplib)
(hppa)
ignoring nonexistent directory `/umr/hppa2.0-hp-hpux10.20/include'
#include "..." search starts here:
#include <...> search starts here:
/umr/include/g++-3
/umr/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/include
/afs/umr.edu/software/egcs2/hpux10/include/g++-3
/afs/umr.edu/software/egcs2/hpux10/include
/afs/umr.edu/software/egcs2/hpux10/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/includ
e
/afs/umr.edu/software/egcs2/hpux10/hppa2.0-hp-hpux10.20/include
/usr/include
End of search list.
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/cc1plus
/var/tmp/cc39qcqh
.ii -quiet -dumpbase hello.cc -version -o /var/tmp/ccL03iYv.s
GNU C++ version 2.96 20000702 (experimental) (hppa2.0-hp-hpux10.20)
compiled by
GNU C version 2.96 20000702 (experimental).
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/../../../../hppa2.0-hp-hp
ux10.20/bin/as -o /var/tmp/cc0we6iV.o /var/tmp/ccL03iYv.s
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/collect2
-L/lib/pa1.1 -L/
usr/lib/pa1.1 -z -u main -o hello /usr/ccs/lib/crt0.o
-L/umr/testbin/../lib/gcc-
lib/hppa2.0-hp-hpux10.20/2.96 -L/umr/testbin/../lib/gcc-lib
-L/afs/umr.edu/softw
are/egcs2/hpux10/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96 -L/usr/ccs/bin
-L/usr/ccs
/lib -L/opt/langtools/lib
-L/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.9
6/../../..
-L/afs/umr.edu/software/egcs2/hpux10/lib/gcc-lib/hppa2.0-hp-hpux10.20
/2.96/../../.. /var/tmp/cc0we6iV.o -lstdc++ -lm -lgcc -lc -lgcc
/usr/ccs/bin/ld: Unsatisfied symbols:
__builtin_delete (code)
__rtti_user (data)
__rtti_si (data)
ios virtual table(data)
stdiobuf virtual table(data)
__rtti_class (data)
filebuf virtual table(data)
ios type_info function(data)
__builtin_vec_delete (code)
__builtin_vec_new (code)
collect2: ld returned 1 exit status
--
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
More information about the Gcc-bugs
mailing list