Article View: gnu.gcc.help
Article #50869Strange behaviour with G++ on RS6000
From: Rob MacKinnon
Date: Wed, 21 Jul 1993 14:08
Date: Wed, 21 Jul 1993 14:08
82 lines
4273 bytes
4273 bytes
I am encountering a very strange bug with gcc when compiling C++ code. Has
anyone else seen this behaviour below and might be able to tell me how to
fix it?
Environment: IBM RISC System/6000, AIX 3.2.3e, gcc 2.4.5, g++ library 2.3.1
the assembler on these systems are properly fixed.
Symptom:
/usr/local/bin/gcc -D__ANSI_CPP__ -DAIXV3 -DAIX -Dvsyslog=syslog -DSYS_FCHOWN=1 -DSYS_FCHMOD=1 -I. -I../port/aix32 -I../util -I../libtiff -g -o faxinfo faxinfo.c ../util/libfaxutil.a ../libtiff/libtiff.a ../iv/libivhack.a -lg++ -liberty
0706-317 ERROR: Unresolved or undefined symbols detected:
Symbols in error (followed by references) are
dumped to the load map.
The -bloadmap:<filename> option will create a load map.
.realloc__FPvUl
.malloc__FUl
.memmove__FPvPCvUl
.atoi__FPCc
.atof__FPCc
.fprintf__FP4FILEPCce
.abort__Fv
.vfprintf__FP4FILEPCcPc
.isspace__Fi
.sprintf__FPcPCce
.fopen__FPCcT0
.fgets__FPciP4FILE
.strchr__FPCci
.strtoul__FPCcPPci
.strdup__FPc
.tolower__Fi
.memset__FPviUl
.isupper__Fi
.islower__Fi
.free__FPv
collect: ld returned 8 exit status
The error code from the last failed command is 1.
Here is some more information from /usr/bin/nm:
$ nm -C -f StackBuffer.o
Symbols from StackBuffer.o:
Name Value Class Type Size Line Section
realloc__FPvUl | 0|extern| | | |
.realloc__FPvUl | 0|extern| | | |
strlen | 0|extern| | | |
.strlen | 0|extern| | | |
__builtin_delete | 0|extern| | | |
.__builtin_delete | 0|extern| | | |
malloc__FUl | 0|extern| | | |
.malloc__FUl | 0|extern| | | |
memcpy | 0|extern| | | |
.memcpy | 0|extern| | | |
.
.
<output truncated for brevity>
$ nm -f StackBuffer.o
Symbols from StackBuffer.o:
Name Value Class Type Size Line Section
realloc(void*,unsigned long)| 0|extern| | | |
.realloc(void*,unsigned long)| 0|extern| | | |
strlen | 0|extern| | | |
.strlen | 0|extern| | | |
__builtin_delete | 0|extern| | | |
.__builtin_delete | 0|extern| | | |
malloc(unsigned long)| 0|extern| | | |
.malloc(unsigned long)| 0|extern| | | |
memcpy | 0|extern| | | |
.memcpy | 0|extern| | | |
.
.
<output truncated for brevity>
--
Robert MacKinnon, UNIX Support | Internet/Email: robmack@bsc.no
Bergen Environmental Sciences and | robmack at bergen
Solution Centre, Bergen, NORWAY | Phone: +47-5-544618
********************************************************************************
p'ch'zarni'chiwkov: the nasty little sound of a sword being unsheathed right
behind one at just the point when one thought one had disposed of one's enemies.
********************************************************************************
Technical Details
Message-ID:
<9307211404.AA113162@killroy>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!bsc.NO!Rob.MacKinnonShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,1a3cf34436f5f68c,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-21 07:28:12 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!bsc.NO!Rob.MacKinnon From: Rob.MacKinnon@bsc.NO (Rob MacKinnon) Newsgroups: gnu.gcc.help Subject: Strange behaviour with G++ on RS6000 Date: 21 Jul 1993 10:08:50 -0400 Organization: GNUs Not Usenet Lines: 82 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9307211404.AA113162@killroy>