I've been working on a Motif/OpenGL app at work where the Makefile
generates two executables, one linked with the SGI OpenGL libs
and the other linked with Mesa so that we can display it on
This was run an SGI Onyx running IRIX 5.3 using both cc and gcc
and everything worked fine. The system was upgraded recently
to IRIX 6.2 and I have been having a few problems.
The main problem is with the linking stage of the app linked
with Mesa. Linking with OpenGL works fine. Linking with the Mesa
libs work fine but I get a huge number of warnings for every single
function in the GL, GLU and GLX libraries that I am using.
The warnings are of the following form:
ld: WARNING 85: definition of glBegin in
/usr/people/michp/Mesa-2.2/lib/libMesaGL.a (api.o) preempts that
definition in /usr/lib/libGL.so
From this I presume it is trying to link in the standard OpenGL lib
in /usr/lib and you get a each function being defined twice even
though I only specified the Mesa libs on the link line.
Going through the ld man pages, mentions about looking in standard
directories such as /usr/lib to look for libraries, but I couldn't
figure how to solve this problem so as not to get all the error
messages as in IRIX 5.3.
Any one have any ideas how to fix this?
Your help is much appreciated.