This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: link errors with simple c++ prog on hpux10/11/a couple others
- To: "'John David Anglin'" <dave at hiauly1 dot hia dot nrc dot ca>, gcc-bugs at gcc dot gnu dot org
- Subject: RE: link errors with simple c++ prog on hpux10/11/a couple others
- From: "Neulinger, Nathan R." <nneul at umr dot edu>
- Date: Tue, 11 Jul 2000 11:41:15 -0500
Here is the linker output when trying to link the simple program. I even
went so far as to pull one of the .o files out of libgcc.a. It sure looks to
me like the code is there, but somehow the linker isn't finding it.
+ LDOPTS=-v
+ export LDOPTS
+ /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/software/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.96/../../..
-L/afs/umr.edu/software/egcs2/hpux10/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/.
./../.. hello.o -lstdc++ -lm -lgcc -lc -lgcc opvnew.o
/usr/bin/ld -v -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/software/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.96/../../..
-L/afs/umr.edu/software/egcs2/hpux10/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/.
./../.. hello.o -lstdc++ -lm -lgcc -lc -lgcc opvnew.o
LPATH is : /usr/lib:/opt/langtools/lib
Loading /usr/ccs/lib/crt0.o:
Loading hello.o:
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a:
WARNING: LIBRARY
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a HAS
OVERFLOW SYMBOLS; USE CLEANRL
Selecting stdstreams.o to resolve cout
referenced from hello.o
Selecting iostream.o to resolve ostream::operator<<(char const *)
referenced from hello.o
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstreams
.o):
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a:
Selecting streambuf.o to resolve streambuf::ignore(int)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting isgetline.o to resolve istream::get(char *, int, char)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting isgetline.o to resolve istream::getline(char *, int, char)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting stdstrbufs.o to resolve _IO_stdout_
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstreams
.o)
Selecting isscan.o to resolve istream::scan(char const *,...)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting ioseekpos.o to resolve _IO_seekpos
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting stdstrbufs.o to resolve _IO_stdin_
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstreams
.o)
Selecting outfloat.o to resolve _IO_outfloat
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting stdstrbufs.o to resolve _IO_stderr_buf
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstreams
.o)
Selecting ioseekoff.o to resolve _IO_seekoff
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting iopadn.o to resolve _IO_padn
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting stdstrbufs.o to resolve _IO_stderr_
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstreams
.o)
Selecting iogetc.o to resolve _IO_getc
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting genops.o to resolve __underflow
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting genops.o to resolve _IO_sgetn
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting streambuf.o to resolve streambuf::sungetc(void)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting stdstrbufs.o to resolve _IO_stdin_buf
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstreams
.o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(streambuf.
o):ios type_info node
Selecting ioassign.o to resolve _IO_istream_withassign::operator=(istream
&)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting ioassign.o to resolve _IO_ostream_withassign::operator=(ostream
&)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting streambuf.o to resolve streambuf::sputbackc(char)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting ioputc.o to resolve _IO_putc
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting filebuf.o to resolve filebuf::close(void)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting stdstrbufs.o to resolve _IO_stdout_buf
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstreams
.o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(genops.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iopadn.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(ioseekoff.
o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(ioseekpos.
o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(outfloat.o
):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iogetc.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(ioputc.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
:
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(ioassign.o
):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(isgetline.
o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(isscan.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(stdstrbufs
.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(streambuf.
o):
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a:
Selecting fileops.o to resolve _IO_file_underflow
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_xsputn
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_write
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_seekoff
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting sbscan.o to resolve streambuf::vscan(char const *, void *, ios
*)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(isscan.o)
Selecting fileops.o to resolve _IO_file_seek
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_attach
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_fopen
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_sync
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_close_it
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting floatconv.o to resolve _IO_dtoa
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(outfloat.o
)
Selecting fileops.o to resolve _IO_file_overflow
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting iogetline.o to resolve _IO_getline_info
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(isgetline.
o)
Selecting filedoalloc.o to resolve _IO_file_doallocate
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_setbuf
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_stat
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_init
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_close
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_file_read
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting fileops.o to resolve _IO_do_write
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filedoallo
c.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(floatconv.
o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(fileops.o)
:
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iogetline.
o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(sbscan.o):
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a:
Selecting cleanup.o to resolve _IO_cleanup_registration_needed
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filedoallo
c.o)
Selecting iovfscanf.o to resolve _IO_vfscanf
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(sbscan.o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iovfscanf.
o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(cleanup.o)
:
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a:
Selecting ioungetc.o to resolve _IO_ungetc
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iovfscanf.
o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(ioungetc.o
):
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a:
Searching library /lib/pa1.1/libm.a:
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a:
WARNING: LIBRARY
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a HAS OVERFLOW
SYMBOLS; USE CLEANRL
Selecting _eh.o to resolve __sjthrow
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting tinfo.o to resolve __rtti_user
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(streambuf.
o)
Selecting _eh.o to resolve __terminate
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting tinfo.o to resolve __rtti_si
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(streambuf.
o)
Selecting tinfo.o to resolve __rtti_class
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting _umoddi3.o to resolve __umoddi3
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting _eh.o to resolve __get_eh_context
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
Selecting _udivdi3.o to resolve __udivdi3
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting __main.o to resolve __main
referenced from hello.o
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_udivdi3.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_umoddi3.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(__main.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_eh.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(tinfo.o):
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a:
Selecting _ctors.o to resolve __DTOR_LIST__
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(__main.o)
Selecting exception.o to resolve exception::what(void) const
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(tinfo.o)
Selecting _ctors.o to resolve __CTOR_LIST__
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(__main.o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(exception.o):
exception type_info node
Selecting lib2funcs.o to resolve __gcc_plt_call
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(__main.o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_ctors.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(lib2funcs.o):
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(exception.o):
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a:
Selecting tinfo2.o to resolve __throw_type_match_rtti_2
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(exception.o)
Selecting tinfo2.o to resolve __is_pointer(void *)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(exception.o)
Loading
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(tinfo2.o):
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a:
Searching library /usr/lib/libdld.1:
Searching library /usr/lib/libc.sl:
Searching library
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a:
WARNING: LIBRARY
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a HAS OVERFLOW
SYMBOLS; USE CLEANRL
Loading opvnew.o:
Searching library /usr/lib/milli.a:
Selecting div_const.o to resolve $$divI_10
referenced from /usr/ccs/lib/crt0.o
Selecting dyncallU.o to resolve $$dyncall
referenced from /usr/ccs/lib/crt0.o
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(tinfo2.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(exception.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(tinfo.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_eh.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(__main.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iovfscanf.
o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(fileops.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filedoallo
c.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(streambuf.
o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(filebuf.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(outfloat.o
)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(ioseekpos.
o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(ioseekoff.
o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iopadn.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(genops.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(iostream.o
)
Selecting divU.o to resolve $$divU
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(floatconv.
o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_umoddi3.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_udivdi3.o)
Selecting remI.o to resolve $$remI
referenced from /usr/ccs/lib/crt0.o
Loading /usr/lib/milli.a(errnet.o):errno
Selecting remU.o to resolve $$remU
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libstdc++.a(fileops.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_umoddi3.o)
referenced from
/umr/testbin/../lib/gcc-lib/hppa2.0-hp-hpux10.20/2.96/libgcc.a(_udivdi3.o)
Loading /usr/lib/milli.a(div_const.o):
Loading /usr/lib/milli.a(divU.o):
Loading /usr/lib/milli.a(remI.o):
Loading /usr/lib/milli.a(remU.o):
Loading /usr/lib/milli.a(dyncallU.o):
Searching library /usr/lib/milli.a:
/usr/bin/ld: Unsatisfied symbols:
__builtin_delete (code)
bad_typeid virtual table(data)
__builtin_new (code)
ios virtual table(data)
type_info type_info function(code)
stdiobuf virtual table(data)
type_info virtual table(data)
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)
exception type_info function(code)
exception virtual table(data)
bad_cast::~bad_cast(void)(code)
bad_typeid type_info function(code)
__builtin_vec_delete (code)
__builtin_vec_new (code)
__user_type_info type_info function(code)
/usr/bin/ld: (Warning) Linker features were used that may not be supported
in future releases. The +vallcompatwarnings option can be used to display
more details, and the ld(1) man page contains additional information. This
warning can be suppressed with the +vnocompatwarnings option.
collect2: ld returned 1 exit status
> -----Original Message-----
> From: John David Anglin [mailto:dave@hiauly1.hia.nrc.ca]
> Sent: Monday, July 10, 2000 3:48 PM
> To: gcc-bugs@gcc.gnu.org
> Cc: nneul@umr.edu
> Subject: RE: link errors with simple c++ prog on hpux10/11/a couple
> others
>
>
> > Did you have any ideas on what might be causing the
> goofiness with libgcc.a
> > on hpux-10.20?
>
> The problem is that g++ is not exporting artificial functions (see
> <http://gcc.gnu.org/ml/gcc-bugs/2000-06/msg00763.html>). The enclosed
> patch is not yet installed in the current CVS. Maybe
> somebody will review
> it for installation?
>
> There was also a recent patch to som.h that affects the exporting of
> weak data symbols for the PA port. Make certain that you
> have this patch
> as you need it to link C++ programs successfully. The latest binutils
> release supports weak symbols and the compiler will automatically try
> to use weak symbols if it finds the assembler supports them.
>
> Dave
> --
> J. David Anglin dave.anglin@nrc.ca
> National Research Council of Canada (613)
> 990-0752 (FAX: 952-6605)
>