This prevent the installation of kdebase, see bug 164 http://bugs.gentoo.org/show_bug.cgi?id=164 I look in my installation of Redhat and found that the libGL.la was from Mesa with all the rest of libGL.* from the NVIDIA driver. The installation of media-gfx/nvidia removes the Mesa install of libGL.la but does not replace it :-(. Can we generate one vith libtool(ltmain.sh)? If not, here is a fake one that works: ---------------------- libGL.la --------------------------- # Names of this library. library_names='libGL.so.1.0.2313
This prevent the installation of kdebase, see bug 164 http://bugs.gentoo.org/show_bug.cgi?id=164 I look in my installation of Redhat and found that the libGL.la was from Mesa with all the rest of libGL.* from the NVIDIA driver. The installation of media-gfx/nvidia removes the Mesa install of libGL.la but does not replace it :-(. Can we generate one vith libtool(ltmain.sh)? If not, here is a fake one that works: ---------------------- libGL.la --------------------------- # Names of this library. library_names='libGL.so.1.0.2313 ยด libGL.so.1 libGL.so' # The name of the static archive. -- no static lib old_library='' # Libraries that this one depends upon. dependency_libs=' -lm -lXext -lX11 -ldl' # Version information for libGL. current=1 age=0 revision=2113 # Is this an already installed library? installed=yes # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/lib' -------------------- end libGL.la ------------------------- Next problem is libGLU.la that will load /usr/lib/libMesaOS.so and Mesa's libGL.la got a lot of missing _mesa_* from the linking kdebase quik fix: edit /usr/lib/libGLU.la --- from # Libraries that this one depends upon. dependency_libs=' -L/var/tmp/portage/mesa-glu-3.5/work/Mesa-3.5/src /usr/lib/libGL.la /usr/lib/libMesaOS.la -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread' --- to # Libraries that this one depends upon. dependency_libs=' /usr/lib/libGL.la -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread' ---- and it linked. libMesaOS.so is new in Mesa-3.5 and can be disable by --disable-osmesa and use libGL.so from Mesa. Should Mesa not be update to 4.01? I think we need a USE option for NVIDIA openGL: opengl-nv and add to Mesa-glu-3.5: if [ "`use opengl-nv`" ] then myconf="${myconf} --disable-osmesa" fi
Should media-gfx/nvidia ebuild do a: PROVIDE="virtual/opengl" I am testing the mesa-glu/opengl-nv on media-libs/mesa-glu-4.0.1
Mesa-glu needs 2 macros: #define GLAPI #define GLAPIENTRY This patch needs to be added to media-gfx/nvidia *** /usr/include/GL/gl.h~ 2002-01-21 01:11:38.000000000 +0100 --- /usr/include/GL/gl.h 2002-01-21 02:22:14.000000000 +0100 *************** *** 27,32 **** --- 27,33 ---- # define GLAPI __stdcall # else # define GLAPI + # define GLAPIENTRY # endif # define __DEFINED_GLAPI #endif *************** *** 2713,2719 **** #ifdef __DEFINED_GLAPI - # undef GLAPI # undef __DEFINED_GLAPI #endif --- 2714,2719 ----
Fixed the problem: I do not use "use opengl-nv" in mesa-glu but exclude the build of libMesaOS.so by adding --disable-osmesa to the configuration command. I can't upload the files as attachment :-( So I uuencode it in this comment as fixbug245-nvidia-mesa-glu.tar.gz It includes: media-gfx/nvidia/nvidia-1.0.2313-r1.ebuild media-gfx/nvidia/files/libGL.la-1.0.2313 media-gfx/nvidia/files/nvidia-1.0.2313.diff media-libs/mesa-glu/mesa-glu-4.0.1.ebuild media-gfx/nvidia/files/digest-nvidia-1.0.2313-r1 media-libs/mesa-glu/files/digest-mesa-glu-4.0.1 To build mesa-glu-3.5 rename mesa-glu-4.0.1.ebuild to mesa-glu-3.5-r1.ebuild mesa-glu is currently build against mesa GL and install without it. The best solution is to build mesa-glu aginst the native libGL.so. This should be a new bug report! begin 644 fixbug245-nvidia-mesa-glu.tar.gz M'XL("%&63#P"`V9I>&)U9S(T-2UN=FED:6$M;65S82UG;'4N=&%R`.T::W/; M."Y?K5^!=3*;-AN]_4S7M]>IW333O"9)<]W9[;BR2-F<R*)'DAV[V?RK^X$' MBI)?>32]7K-S,\0T%A\@`!(@"!(=4L(\O1],S6C"L)A_=-NP#,>U73VV#=H; MLY!L_-=@V995JU0V+`GKWTK=<3:L>L5QK7JU4JDB?JU:=3;`VG@&&">I%P-L MQ)RGC^%]K?__%#;A#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7?^A4@WB71!\:`QI[66>B@>QM>> MX0UC_;[T4,_TH2ZY'*)W*;GQ03YXV<:.J(N]G+>Y2Y.0*07\2V0F005"*OZ; M'Y8K5\#5D_.'O/\X>?SGU%S+=K/[7UW]_Y_GN__9I%X3>9AFT"2>TR"D5L4[ MN6\Y%;]6)Z0!BX!`AD]Y0`"-NE.I-+*[7Z-7<6V[Z00UN^8''J6V4W,J7KU" MK5[/=B0-$92L4K"KM4JM[BC_HT"!`@4*%"A0H$"!`@4*%"A0H$"!`@4*%"A0 >H$"!`@4*%"A0H$"!`@4*%"A0\%3X#W,H<?L`4``` ` end
oops, added wrong address - sorry! drobbins, please remove dabarmak@gentoo.org. (I assume you need to be the bug asignee to add/view/remove cc's).
GLU/glut program test: Tuxracer locks up the screen .-( bzflag is OK :-). I will try to downgrade to mesa 3.4.2 because I think this problen are related to 3.5(dev)-4.0(stable) that are base on new GLU 1.3 version. This version was include a week ago when the problems started. Red hat and Mandrake are using mesa 3.4.x what Nvidia dirvers are normaly is used against and application are normaly build with Mesa 3.4.x. Maybe media-gfx/nvidia shall include a GLU/glut as media-gfx/nvidia-glu?
The lockup problem is completely different issue entirely. If you have an Athlon/Duron, try passing the "mem=nopentium" option to your kernel (just as you pass "root=/dev/hda?" to your kernel using GRUB) and see if this problem goes away. The .la issue should *only* affect building things, not stability. tuxracer uses libsdl which is multithreaded. nvidia+Athlon/Duron+multithreaded opengl seems to cause instant lock-ups on 2.4.18-pre3 systems. Best Regards,
I was not thinking on Athlon bug. I am running Athlon with the 2.4.16 kernel + nopentium Tuxracer hanging by "Loading,Plase wait". A ctl+alt+backspace kills the xserver. Nvidia fix is ok and it needs a updated mesa 3.5 or 4.1 with "--disable-osmesa" to build kde.
I know it is a long build, but try XFree86-4.2.0-r4 (masked). It includes GL and GLU. Just remove the Mesa* stuff first (with all related .la files). I have it like this, and everything seems to be working fine with the nvidia drivers (even tuxracer). Even media-libs/{glut,gle} builds and work fine.
XFree86-4.2.0-r4 GL/GLU is base on Mesa 3.4.2. I will try it. I will also needed to rebuild all of the package that depend on openGL/GLU:-(. If this works the bug should be closed. PS: bzflag use GLU but is missing the dependency on virtual/glu in ebuild (new bug).
XFree86-4.2.0-r4 looks good but it have a problem: no libGLU.la It can't build things that uses libtool to find libs: gnome-python /bin/sh ./libtool --mode=link gcc -mcpu=i686 -march=i686 -O3 -pipe -o _gtkglmodule.la -rpath /usr/lib/python2.2/site-packages -module -avoid-version gtkglmodule.lo -lgtkgl -lGLU -lGL -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl -lXi -lXext -lX11 -lm grep: /usr/lib/libGLU.la: No such file or directory sed: can't read /usr/lib/libGLU.la: No such file or directory libtool: link: `/usr/lib/libGLU.la' is not a valid libtool archive We need /usr/lib/libGL.la for nvidia and for GLU we need /usr/X11R6/lib/libGLU.la To fix this bug: For nvidia update the ebuild with: media-gfx/nvidia/nvidia-1.0.2313-r1.ebuild media-gfx/nvidia/files/libGL.la-1.0.2313 media-gfx/nvidia/files/nvidia-1.0.2313.diff from my uuencode tarfile no update to media-libs/mesa-glu (obsolete) Make XFree86-4.2.0-rX include GL/GLU (that is OK) and add libGL.la/libGLU.la to the installation! After that the user shall only install x11-base/xfree and media-gfx/nvidia to get full GL/GLU support (maybe also add media-libs/glut).
Assigning to Azarah 'cause he's the man! :)
With he new XFree86-4.2.0-r5 you only need to install media-gfx/nvidia to get GL and GLU and it install the libGL* in /usr/X11R6/lib is good! Martin, you have change media-gfx/nvidia/nvidia-1.0.2313.ebuild without change the revision to leave mesa libGL.la --- that is bad, becuase I don't upgrade/recompile my kernel too often ;-). NVIDIA can't use the libGLU.la from Mesa >=3.5 and the gl.h from nvidia don't define GLAPI and GLAPIENTRY that is needed for Mesa glu.h >= 3.5! Using libGL.la from Mesa is a workaround not a fix of the problem! Martin please update media-gfx/nvidia with what I suggested. Can nvidia and Xfree-4.2 provide "virtual/opengl" at the same time?
mesa >=3.5 have been mask the same should be done for mesa-glu-3.5.
I have install XFree-4.2.0-r5 I need to recompile all because the libGLU.la has moved to /usr/X11R6/lib We need a symlink from /usr/lib/libGL.* to /usr/X11R6/lib/libGL.* in the nvidia ebuild, so that libtool can find /usr/X11R6/lib/libGL.{so,la}.
Nope .. just remerge everything linked against Mesa .. had the same problems, then relinked gtkglarea .. works without symlinks now. Seems to be fine here .. gnome-python, tuxracer, etc works fine :)
Yes, this can be close! This problem was related to mesa and mesa-glu version 3.5 and newer. The XFree-4.2.0-r5 solve the problem because it is base on Mesa 3.4.2 and includes libGL.la. So uninstall mesa and/or mesa-glu and install XFree-4.2.0-r5 and then remerge media-gfx/nvidia. Note: recompile all packages that uses libtool and provides lib's based on libGL/libGLU.la.