gcc'ing the Aqua example

New Message Reply Date view Thread view Subject view Author view

From: tlvogl++at++collins.rockwell.com
Date: 01/26/2000 14:07:28


Hello:

I can compile Performer applications in C with GCC 2.8.1 and other C++ apps with
gcc on an Onyx2, Irix 6.5.3, but when I tried compiling Aqua and some other C++
Performer apps I get the messages/errors shown below.

I modified the makefile that came with the Aqua example by removing the -xansi
and -Opt:Olimit=3500, and used libmpc.a instead of lmpc.

I tried adding a -v option the link line in the makefile, but didn't see any
difference in the link or the messages associated with the link.

What should I do to get this to compile? Thanks.

--Tom

Here's the output of the failed make:

/usr/freeware/bin/gcc aqua.o keybd.o sub.o bubbles.o torp.o gstatemod.o -all
-ignore_unresolved -L/usr/lib32 -L/usr/lib32/libpfdb -L/lib32 -lpf_ogl
-lpfdu_ogl -lpfutil_ogl /usr/lib32/mips4/libmpc.a -limage -lGLU -lGL -lXext
-lfpe -lXmu -lX11 -lm -lmalloc -lC -o aqua
ld32: WARNING 131: Multiply defined weak symbol:(__vc__6pfVec3i) in aqua.o and
keybd.o (2nd definition ignored).
ld32: WARNING 131: Multiply defined weak symbol:(__as__7pfCoordRC7pfCoord) in
aqua.o and sub.o (2nd definition ignored).
ld32: WARNING 131: Multiply defined weak symbol:(__7pfCoord) in aqua.o and sub.o
 (2nd definition ignored).
ld32: WARNING 131: Multiply defined weak symbol:(__8pfMatrix) in aqua.o and
sub.o (2nd definition ignored).
ld32: WARNING 131: Multiply defined weak symbol:(__as__6pfVec3RC6pfVec3) in
aqua.o and sub.o (2nd definition ignored).
ld32: WARNING 131: Multiply defined weak symbol:(__vc__C6pfVec3i) in aqua.o and
sub.o (2nd definition ignored).
ld32: WARNING 131: Multiply defined weak symbol:(__vc__6pfVec3i) in aqua.o and
sub.o (2nd definition ignored).

---snip more Multiply defined weak symbols ---

ld32: WARNING 84: /usr/lib32/mips4/libmpc.a is not used for resolving any
symbol.
ld32: WARNING 84: /usr/lib32/libfpe.so is not used for resolving any symbol.
ld32: WARNING 85: definition of __throw in
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/libgcc.a(_eh.o) preempts that
definition in /usr/lib32/libC.so.
ld32: WARNING 85: definition of _calloc in /usr/lib32/libmalloc.so preempts that
 definition in /usr/lib32/libc.so.
ld32: WARNING 134: weak definition of cfree in /usr/lib32/libmalloc.so preempts
that weak definition in /usr/lib32/libc.so.
ld32: WARNING 85: definition of _cfree in /usr/lib32/libmalloc.so preempts that
definition in /usr/lib32/libc.so.
ld32: WARNING 85: definition of __checktraps in /usr/lib32/libfpe.so preempts
that definition in /usr/lib32/libc.so.
ld32: WARNING 85: definition of _malloc in /usr/lib32/libmalloc.so preempts that
 definition in /usr/lib32/libc.so.
ld32: WARNING 85: definition of _realloc in /usr/lib32/libmalloc.so preempts
that definition in /usr/lib32/libc.so.
ld32: WARNING 85: definition of _free in /usr/lib32/libmalloc.so preempts that
definition in /usr/lib32/libc.so.
ld32: WARNING 134: weak definition of calloc in /usr/lib32/libmalloc.so preempts
 that weak definition in /usr/lib32/libc.so.
ld32: WARNING 134: weak definition of memalign in /usr/lib32/libmalloc.so
preempts that weak definition in /usr/lib32/libc.so.
ld32: WARNING 134: weak definition of malloc in /usr/lib32/libmalloc.so preempts
 that weak definition in /usr/lib32/libc.so.
ld32: WARNING 134: weak definition of realloc in /usr/lib32/libmalloc.so
preempts that weak definition in /usr/lib32/libc.so.
ld32: Giving up after printing 50 warnings. Use -wall to print all warnings.
ld32: ERROR 33: Unresolved text symbol "malloc__8pfMemoryUiPv" -- 1st referenced
 by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: ERROR 33: Unresolved text symbol "__nw__8pfObjectUiPv" -- 1st referenced
by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: ERROR 33: Unresolved text symbol "__13pfCycleBufferUi" -- 1st referenced
by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: ERROR 33: Unresolved text symbol "init__13pfCycleBufferPv" -- 1st
referenced by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: ERROR 33: Unresolved text symbol "__nw__11pfUpdatableUi" -- 1st referenced
 by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: ERROR 33: Unresolved text symbol "__12pfPipeWindowP6pfPipe" -- 1st
referenced by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: ERROR 33: Unresolved text symbol "setName__12pfPipeWindowPCc" -- 1st
referenced by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: ERROR 33: Unresolved text symbol "setWinType__12pfPipeWindowUi" -- 1st
referenced by aqua.o.
     Use linker option -v to see when and which objects, archives and dsos are
loaded.

-- snip many more apparently all performer unresolved text symbol errors --

ld32: INFO 152: Output file removed because of error.
*** Error code 1 (bu21)


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jan 26 2000 - 14:13:48 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.