From: Brian P. <br...@va...> - 2001-05-30 20:06:26
|
Patrick Hartling wrote: > > I am trying to upgrade to Mesa 3D 3.4.2 on Solaris 7 (x86), but when I > run 'make check', the first application fails to link. This is being > done with a snapshot of GCC from May 14, 2001 (gcc version 3.0 20010514). > The linker errors begin as follows: > > gcc -g -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -o aaindex aaindex.o ../src-glut/.libs/libglut.so ../src-glu/.libs/libGLU.so ../src/.libs/libGL.so -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm -Wl,--rpath -Wl,/usr/local/tmp/Mesa-3.4.2/src-glut/.libs -Wl,--rpath -Wl,/usr/local/tmp/Mesa-3.4.2/src-glu/.libs -Wl,--rpath -Wl,/usr/local/tmp/Mesa-3.4.2/src/.libs -Wl,--rpath -Wl,/usr/local/lib > aaindex.o: In function `display': > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:81: undefined reference to `glClear' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:83: undefined reference to `glIndexi' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:84: undefined reference to `glPushMatrix' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:85: undefined reference to `glRotatef' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:86: undefined reference to `glBegin' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:87: undefined reference to `glVertex2f'/usr/local/tmp/Mesa-3.4.2/book/aaindex.c:88: undefined reference to `glVertex2f'/usr/local/tmp/Mesa-3.4.2/book/aaindex.c:89: undefined reference to `glEnd' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:90: undefined reference to `glPopMatrix' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:92: undefined reference to `glIndexi' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:93: undefined reference to `glPushMatrix' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:94: undefined reference to `glRotatef' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:95: undefined reference to `glBegin' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:96: undefined reference to `glVertex2f'/usr/local/tmp/Mesa-3.4.2/book/aaindex.c:97: undefined reference to `glVertex2f'/usr/local/tmp/Mesa-3.4.2/book/aaindex.c:98: undefined reference to `glEnd' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:99: undefined reference to `glPopMatrix' > aaindex.o: In function `reshape': > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:106: undefined reference to `glViewport' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:107: undefined reference to `glMatrixMode' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:108: undefined reference to `glLoadIdentity' > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:115: undefined reference to `glMatrixMode' > aaindex.o: In function `display': > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:101: undefined reference to `glFlush' > aaindex.o: In function `reshape': > /usr/local/tmp/Mesa-3.4.2/book/aaindex.c:116: undefined reference to `glLoadIdentity' > ../src/.libs/libGL.so: undefined reference to `glTexSubImage3D' > ../src/.libs/libGL.so: undefined reference to `__glapi_fallback_StencilFunc' > ../src/.libs/libGL.so: undefined reference to `__glapi_fallback_Materialiv' > ../src/.libs/libGL.so: undefined reference to `gl_3dnow_transform_points1_perspective_masked' > ../src/.libs/libGL.so: undefined reference to `glDrawElements' > ../src/.libs/libGL.so: undefined reference to `__glapi_fallback_Vertex4i' > ../src/.libs/libGL.so: undefined reference to `__glapi_fallback_TexEnvi' > ../src/.libs/libGL.so: undefined reference to `__glapi_fallback_MultiTexCoord2iARB' > > There are about 1300 more linker errors in libGL.so following this, but I > have not included them for the sake of space. run 'nm' on libGL and see if those symbols are defined: nm /usr/local/tmp/Mesa-3.4.2/src/.libs/libGL.so | grep glClear If glClear isn't defined, then something went wrong during the compilation of the GL library. > I am guessing that my use of a GCC 3.0 snapshot is the cause of the problem, > but I am certainly willing to do what is necessary to get Mesa 3D working > properly with this GCC on my Solaris installation. Is there somewhere > specific that I should start in trying to correct this? If necessary, I > can revert back to an earlier snapshot version of GCC, but I needed to > upgrade it from the December 25, 2000, snapshot for updated C++ STL > support. I haven't used GCC 3.0 or Solaris so I don't know if anything there might be the problem. -Brian |