From: Angus Dorbie (dorbie++at++sgi.com)
Date: 01/26/2000 17:17:42
-woff 131 :-)
Maybe make the globals in those modules static if that's appropriate.
The problem may be globals in sub.h being included in both, so you'd
want to extern variables when included in one of the modules but not in
the other using some #ifdef #else #endif combination in the header file
and defining the key in question in only one of the modules.
Cheers,Angus.
tlvogl++at++collins.rockwell.com wrote:
>
> 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)
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
--
"It takes a vision to beat a vision."
-Thomas Sowell
This archive was generated by hypermail 2b29 : Wed Jan 26 2000 - 17:18:05 PST