From: Dieter <Die...@ha...> - 2001-05-23 13:59:38
|
> Woohoo! (See subject) > > My last apt-get upgrade left me with the following versions: > autoconf (GNU Autoconf) 2.50 > automake (GNU automake) 1.4-p1 > ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) O.K. I'll try that. But I get a compilation error with ./configure --prefix=/opt/Mesa --without-svga --without-pic --enable-fast-install (--without-glide) "make check" "make -f Makefile.X11 linux-x86" is fine -Dieter [-] mkdir .libs gcc -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 -fschedule-insns2 -fexpensive-optimizations -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -o .libs/aaindex aaindex.o ../src-glut/.libs/libglut.so -L../si-glu -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 ../si-glu/.libs/libGLU.so -L../src -lGL ../src/.libs/libGL.so -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm -Wl,--rpath -Wl,/opt/Mesa/lib ../src-glut/.libs/libglut.so: undefined reference to `glXBindChannelToWindowSGIX' ../src-glut/.libs/libglut.so: undefined reference to `glXCreateContextWithConfigSGIX' ../src-glut/.libs/libglut.so: undefined reference to `glXGetFBConfigAttribSGIX' ../src-glut/.libs/libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'../src-glut/.libs/libglut.so: undefined reference to `glXChannelRectSyncSGIX' ../src-glut/.libs/libglut.so: undefined reference to `glXChannelRectSGIX' ../src-glut/.libs/libglut.so: undefined reference to `glXQueryChannelRectSGIX' ../src-glut/.libs/libglut.so: undefined reference to `glXGetFBConfigFromVisualSGIX' collect2: ld returned 1 exit status make[2]: *** [aaindex] Error 1 make[2]: Leaving directory `/opt/Mesa/book' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/opt/Mesa/book' make: *** [check-recursive] Error 1 |
From: Brian P. <br...@va...> - 2001-05-23 15:37:17
|
Dieter Nützel wrote: > > > Woohoo! (See subject) > > > > My last apt-get upgrade left me with the following versions: > > autoconf (GNU Autoconf) 2.50 > > automake (GNU automake) 1.4-p1 > > ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) > > O.K. I'll try that. > > But I get a compilation error with > ./configure --prefix=/opt/Mesa --without-svga --without-pic > --enable-fast-install (--without-glide) > "make check" > > "make -f Makefile.X11 linux-x86" is fine > > -Dieter > > [-] > mkdir .libs > gcc -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 > -fschedule-insns2 -fexpensive-optimizations -Wall -fomit-frame-pointer > -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 > -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -o .libs/aaindex > aaindex.o ../src-glut/.libs/libglut.so -L../si-glu -L/usr/X11R6/lib -lSM > -lICE -lXmu -lXext -lXi -lX11 ../si-glu/.libs/libGLU.so -L../src -lGL > ../src/.libs/libGL.so -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > -Wl,--rpath -Wl,/opt/Mesa/lib > ../src-glut/.libs/libglut.so: undefined reference to > `glXBindChannelToWindowSGIX' > ../src-glut/.libs/libglut.so: undefined reference to > `glXCreateContextWithConfigSGIX' > ../src-glut/.libs/libglut.so: undefined reference to > `glXGetFBConfigAttribSGIX' > ../src-glut/.libs/libglut.so: undefined reference to > `glXQueryChannelDeltasSGIX'../src-glut/.libs/libglut.so: undefined reference > to `glXChannelRectSyncSGIX' > ../src-glut/.libs/libglut.so: undefined reference to `glXChannelRectSGIX' > ../src-glut/.libs/libglut.so: undefined reference to `glXQueryChannelRectSGIX' > ../src-glut/.libs/libglut.so: undefined reference to > `glXGetFBConfigFromVisualSGIX' > collect2: ld returned 1 exit status > make[2]: *** [aaindex] Error 1 > make[2]: Leaving directory `/opt/Mesa/book' > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory `/opt/Mesa/book' > make: *** [check-recursive] Error 1 Those undefined functions are part of the SGIX_video_resize extension. They're referenced in src-glut/glut_vidresize.c. Mesa has stubs for these functions so I don't know why you're getting 'undefined reference'. Personally, compilation is failing for me on demos/osdemo because it's not getting linked with libOSMesa.so: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../util -I./src/X86 -g -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c osdemo.c osdemo.c:179: warning: `write_ppm' defined but not used /bin/sh ../libtool --mode=link 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 osdemo osdemo.o ../si-glu/libGLU.la -lglut ../src/libGL.la -lm 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 .libs/osdemo osdemo.o ../si-glu/.libs/libGLU.so -L../src -lGL -lglut ../src/.libs/libGL.so -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm -Wl,--rpath -Wl,/tmp/Mesa/lib osdemo.o: In function `main': /home/brian/5/demos/osdemo.c:231: undefined reference to `OSMesaCreateContextExt' /home/brian/5/demos/osdemo.c:248: undefined reference to `OSMesaMakeCurrent' /home/brian/5/demos/osdemo.c:277: undefined reference to `OSMesaDestroyContext' collect2: ld returned 1 exit status -Brian |
From: Sven M. H. <pe...@gm...> - 2001-05-23 16:38:08
|
On Wed, May 23, 2001 at 09:40:49AM -0600, Brian Paul wrote: > > mkdir .libs > > gcc -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 > > -fschedule-insns2 -fexpensive-optimizations -Wall -fomit-frame-pointer > > -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 > > -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -o .libs/aaindex > > aaindex.o ../src-glut/.libs/libglut.so -L../si-glu -L/usr/X11R6/lib -lSM > > -lICE -lXmu -lXext -lXi -lX11 ../si-glu/.libs/libGLU.so -L../src -lGL > > ../src/.libs/libGL.so -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > > -Wl,--rpath -Wl,/opt/Mesa/lib > > ../src-glut/.libs/libglut.so: undefined reference to > > `glXBindChannelToWindowSGIX' > > ../src-glut/.libs/libglut.so: undefined reference to > > `glXCreateContextWithConfigSGIX' > > ../src-glut/.libs/libglut.so: undefined reference to > > `glXGetFBConfigAttribSGIX' > > ../src-glut/.libs/libglut.so: undefined reference to > > `glXQueryChannelDeltasSGIX'../src-glut/.libs/libglut.so: undefined reference > > to `glXChannelRectSyncSGIX' > > ../src-glut/.libs/libglut.so: undefined reference to `glXChannelRectSGIX' > > ../src-glut/.libs/libglut.so: undefined reference to `glXQueryChannelRectSGIX' > > ../src-glut/.libs/libglut.so: undefined reference to > > `glXGetFBConfigFromVisualSGIX' > > collect2: ld returned 1 exit status > > make[2]: *** [aaindex] Error 1 > > make[2]: Leaving directory `/opt/Mesa/book' > > make[1]: *** [check-am] Error 2 > > make[1]: Leaving directory `/opt/Mesa/book' > > make: *** [check-recursive] Error 1 > > Those undefined functions are part of the SGIX_video_resize extension. > They're referenced in src-glut/glut_vidresize.c. Mesa has stubs for > these functions so I don't know why you're getting 'undefined reference'. Strange, this works fine for me, too. However, in my compilation command, the order of the libraries is different, namely libGL.so comes before any others. Maybe that's the cause. > Personally, compilation is failing for me on demos/osdemo because > it's not getting linked with libOSMesa.so: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../util -I./src/X86 -g -O2 -Wall > -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing > -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c osdemo.c > osdemo.c:179: warning: `write_ppm' defined but not used > /bin/sh ../libtool --mode=link 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 osdemo osdemo.o ../si-glu/libGLU.la > -lglut ../src/libGL.la -lm > 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 .libs/osdemo osdemo.o ../si-glu/.libs/libGLU.so -L../src -lGL -lglut > ../src/.libs/libGL.so -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > -Wl,--rpath -Wl,/tmp/Mesa/lib > osdemo.o: In function `main': > /home/brian/5/demos/osdemo.c:231: undefined reference to `OSMesaCreateContextExt' > /home/brian/5/demos/osdemo.c:248: undefined reference to `OSMesaMakeCurrent' > /home/brian/5/demos/osdemo.c:277: undefined reference to `OSMesaDestroyContext' > collect2: ld returned 1 exit status Hm.. src/OSMesa/Makefile.am builds a convenience library, not a shared one. Should this be different? -- "Would the All-Seeing Eye please look in my direction?" [ KeyID........: 0xC297FEAB ] [ Fingerprint..: FEA5 0F93 7320 3F39 66A5 AED3 073F 2D5F C297 FEAB ] |
From: Brian P. <br...@va...> - 2001-05-23 16:47:56
|
"Sven M. Hallberg" wrote: > > On Wed, May 23, 2001 at 09:40:49AM -0600, Brian Paul wrote: > > > mkdir .libs > > > gcc -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 > > > -fschedule-insns2 -fexpensive-optimizations -Wall -fomit-frame-pointer > > > -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 > > > -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -o .libs/aaindex > > > aaindex.o ../src-glut/.libs/libglut.so -L../si-glu -L/usr/X11R6/lib -lSM > > > -lICE -lXmu -lXext -lXi -lX11 ../si-glu/.libs/libGLU.so -L../src -lGL > > > ../src/.libs/libGL.so -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > > > -Wl,--rpath -Wl,/opt/Mesa/lib > > > ../src-glut/.libs/libglut.so: undefined reference to > > > `glXBindChannelToWindowSGIX' > > > ../src-glut/.libs/libglut.so: undefined reference to > > > `glXCreateContextWithConfigSGIX' > > > ../src-glut/.libs/libglut.so: undefined reference to > > > `glXGetFBConfigAttribSGIX' > > > ../src-glut/.libs/libglut.so: undefined reference to > > > `glXQueryChannelDeltasSGIX'../src-glut/.libs/libglut.so: undefined reference > > > to `glXChannelRectSyncSGIX' > > > ../src-glut/.libs/libglut.so: undefined reference to `glXChannelRectSGIX' > > > ../src-glut/.libs/libglut.so: undefined reference to `glXQueryChannelRectSGIX' > > > ../src-glut/.libs/libglut.so: undefined reference to > > > `glXGetFBConfigFromVisualSGIX' > > > collect2: ld returned 1 exit status > > > make[2]: *** [aaindex] Error 1 > > > make[2]: Leaving directory `/opt/Mesa/book' > > > make[1]: *** [check-am] Error 2 > > > make[1]: Leaving directory `/opt/Mesa/book' > > > make: *** [check-recursive] Error 1 > > > > Those undefined functions are part of the SGIX_video_resize extension. > > They're referenced in src-glut/glut_vidresize.c. Mesa has stubs for > > these functions so I don't know why you're getting 'undefined reference'. > > Strange, this works fine for me, too. However, in my compilation command, the > order of the libraries is different, namely libGL.so comes before any others. > Maybe that's the cause. I wonder if Dieter has another older libGL somewhere on his system that doesn't have the video_resize functions. If that libGL is getting picked up instead of the local version that could explain things. > > Personally, compilation is failing for me on demos/osdemo because > > it's not getting linked with libOSMesa.so: > > > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../util -I./src/X86 -g -O2 -Wall > > -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing > > -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c osdemo.c > > osdemo.c:179: warning: `write_ppm' defined but not used > > /bin/sh ../libtool --mode=link 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 osdemo osdemo.o ../si-glu/libGLU.la > > -lglut ../src/libGL.la -lm > > 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 .libs/osdemo osdemo.o ../si-glu/.libs/libGLU.so -L../src -lGL -lglut > > ../src/.libs/libGL.so -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > > -Wl,--rpath -Wl,/tmp/Mesa/lib > > osdemo.o: In function `main': > > /home/brian/5/demos/osdemo.c:231: undefined reference to `OSMesaCreateContextExt' > > /home/brian/5/demos/osdemo.c:248: undefined reference to `OSMesaMakeCurrent' > > /home/brian/5/demos/osdemo.c:277: undefined reference to `OSMesaDestroyContext' > > collect2: ld returned 1 exit status > > Hm.. src/OSMesa/Makefile.am builds a convenience library, not a shared one. > Should this be different? What's a convenience library? There should be a libOSMesa.so library. Using the Makefile.X11 process, I'm making a libOSMesa.so.3.5.030500 The reason for this new, separate library has to do with XFree86. The XFree86 libGL knows nothing about the OSMesa interface. Instead, the OSMesa interface (and renderer) are a separate library. I want to do the same thing with stand-alone Mesa for consistancy. -Brian |
From: Sven M. H. <pe...@gm...> - 2001-05-24 06:32:57
|
On Wed, May 23, 2001 at 10:51:22AM -0600, Brian Paul wrote: > "Sven M. Hallberg" wrote: > > > Those undefined functions are part of the SGIX_video_resize extension. > > > They're referenced in src-glut/glut_vidresize.c. Mesa has stubs for > > > these functions so I don't know why you're getting 'undefined reference'. > > > > Strange, this works fine for me, too. However, in my compilation command, the > > order of the libraries is different, namely libGL.so comes before any others. > > Maybe that's the cause. > > I wonder if Dieter has another older libGL somewhere on his system > that doesn't have the video_resize functions. If that libGL is > getting picked up instead of the local version that could explain > things. Could be... > > > Personally, compilation is failing for me on demos/osdemo because > > > it's not getting linked with libOSMesa.so: > > > > > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../util -I./src/X86 -g -O2 -Wall > > > -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing > > > -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c osdemo.c > > > osdemo.c:179: warning: `write_ppm' defined but not used > > > /bin/sh ../libtool --mode=link 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 osdemo osdemo.o ../si-glu/libGLU.la > > > -lglut ../src/libGL.la -lm > > > 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 .libs/osdemo osdemo.o ../si-glu/.libs/libGLU.so -L../src -lGL -lglut > > > ../src/.libs/libGL.so -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > > > -Wl,--rpath -Wl,/tmp/Mesa/lib > > > osdemo.o: In function `main': > > > /home/brian/5/demos/osdemo.c:231: undefined reference to `OSMesaCreateContextExt' > > > /home/brian/5/demos/osdemo.c:248: undefined reference to `OSMesaMakeCurrent' > > > /home/brian/5/demos/osdemo.c:277: undefined reference to `OSMesaDestroyContext' > > > collect2: ld returned 1 exit status > > > > Hm.. src/OSMesa/Makefile.am builds a convenience library, not a shared one. > > Should this be different? > > What's a convenience library? > > There should be a libOSMesa.so library. Using the Makefile.X11 > process, I'm making a libOSMesa.so.3.5.030500 > > The reason for this new, separate library has to do with XFree86. > The XFree86 libGL knows nothing about the OSMesa interface. Instead, > the OSMesa interface (and renderer) are a separate library. I want > to do the same thing with stand-alone Mesa for consistancy. OIC, a "libtool convenience library" is a static library which is not to be installed but only used within a package. The Makefile.am's don't reflect what you say, yet. I'll change it anytime. Just tell me, what version-info do I use, now?? -Sven -- "Would the All-Seeing Eye please look in my direction?" [ KeyID........: 0xC297FEAB ] [ Fingerprint..: FEA5 0F93 7320 3F39 66A5 AED3 073F 2D5F C297 FEAB ] |
From: Brian P. <br...@va...> - 2001-06-06 18:53:51
|
Picking up this thread again from two weeks ago... > > > > Personally, compilation is failing for me on demos/osdemo because > > > > it's not getting linked with libOSMesa.so: > > > > > > > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../util -I./src/X86 -g -O2 -Wall > > > > -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing > > > > -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c osdemo.c > > > > osdemo.c:179: warning: `write_ppm' defined but not used > > > > /bin/sh ../libtool --mode=link 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 osdemo osdemo.o ../si-glu/libGLU.la > > > > -lglut ../src/libGL.la -lm > > > > 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 .libs/osdemo osdemo.o ../si-glu/.libs/libGLU.so -L../src -lGL -lglut > > > > ../src/.libs/libGL.so -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > > > > -Wl,--rpath -Wl,/tmp/Mesa/lib > > > > osdemo.o: In function `main': > > > > /home/brian/5/demos/osdemo.c:231: undefined reference to `OSMesaCreateContextExt' > > > > /home/brian/5/demos/osdemo.c:248: undefined reference to `OSMesaMakeCurrent' > > > > /home/brian/5/demos/osdemo.c:277: undefined reference to `OSMesaDestroyContext' > > > > collect2: ld returned 1 exit status > > > > > > Hm.. src/OSMesa/Makefile.am builds a convenience library, not a shared one. > > > Should this be different? > > > > What's a convenience library? > > > > There should be a libOSMesa.so library. Using the Makefile.X11 > > process, I'm making a libOSMesa.so.3.5.030500 > > > > The reason for this new, separate library has to do with XFree86. > > The XFree86 libGL knows nothing about the OSMesa interface. Instead, > > the OSMesa interface (and renderer) are a separate library. I want > > to do the same thing with stand-alone Mesa for consistancy. > > OIC, a "libtool convenience library" is a static library which is not to be > installed but only used within a package. > > The Makefile.am's don't reflect what you say, yet. I'll change it anytime. > Just tell me, what version-info do I use, now?? As I said, there should be a libOSMesa.so.3.5.030500 or libOSMesa.so.3.5 library. The SONAME should probably be "libOSMesa.so.3". Can you do this? -Brian |
From: Sven M. H. <pe...@gm...> - 2001-06-07 10:29:12
|
On Wed, Jun 06, 2001 at 12:56:40PM -0600, Brian Paul wrote: > > Picking up this thread again from two weeks ago... > > [ ... snip ... ] > > > > Hm.. src/OSMesa/Makefile.am builds a convenience library, not a shared one. > > > > Should this be different? > > > > > > What's a convenience library? > > > > > > There should be a libOSMesa.so library. Using the Makefile.X11 > > > process, I'm making a libOSMesa.so.3.5.030500 > > > > > > The reason for this new, separate library has to do with XFree86. > > > The XFree86 libGL knows nothing about the OSMesa interface. Instead, > > > the OSMesa interface (and renderer) are a separate library. I want > > > to do the same thing with stand-alone Mesa for consistancy. > > > > OIC, a "libtool convenience library" is a static library which is not to be > > installed but only used within a package. > > > > The Makefile.am's don't reflect what you say, yet. I'll change it anytime. > > Just tell me, what version-info do I use, now?? > > > As I said, there should be a libOSMesa.so.3.5.030500 or libOSMesa.so.3.5 > library. The SONAME should probably be "libOSMesa.so.3". > > Can you do this? No problem, done. I used the same formula to make a libtool version-info as with libGL and friends. Note, that I still have to use libOSMesa.so.3.5.305. Sven -- "Would the All-Seeing Eye please look in my direction?" [ KeyID........: 0xC297FEAB ] [ Fingerprint..: FEA5 0F93 7320 3F39 66A5 AED3 073F 2D5F C297 FEAB ] |