How-to bugfix segfault with ringed planets, Mandrake 9.0

Report bugs, bug fixes and workarounds here.
Topic author
Cro Maat

How-to bugfix segfault with ringed planets, Mandrake 9.0

Post #1by Cro Maat » 06.10.2002, 09:13

Well my graphic card is an ATI Rage 128 but I think this might happen with other cards...

Fist of all what I did was to go to http://www.rpmfind.net and download the latest
celestia-1.2.4-4mdk.src.rpm

I installed it ans did:
su
mv /celestia.spec /usr/src/RPM/SPECS
mv celestia* /usr/src/RPM/SOURCES

then inside celestia-1.2.4.tar.bz2 with emacs I edited the file src/celengine/render.cpp, line:
_________________________________________________________________
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB,(GLint*) &nSimultaneousTextures);

I added the line:

nSimultaneousTextures = 1;

right underneath
__________________________________________________________________

then I removed the backup render.cpp~

and recompressed to celestia-1.2.4.tar.bz2

I also modified the celestia.spec, line %configure, and replaced --enable-gtk by --without-gtk, because the gtk GUI makes my navigation spasmodic like.

then I rebuilt the whole thing

rpm -ba celestia.spec and it works fine :mrgreen:

Cheers,

M.E.

Topic author
Cro Maat

No need to deactivate gtk gui after all

Post #2by Cro Maat » 06.10.2002, 11:03

Sorry, gtk gui works fine now. I think it was some kind of xfree temporary instability. I restarted xfree and that solved it. :oops:

By the way I realised I made a typing mistake in my last post. So of course read:

mv /celestia* /usr/src/RPM/SOURCES

and NOT mv celestia* /usr/src/RPM/SOURCES

Cheers !

M.E.

Guest

Post #3by Guest » 08.10.2002, 07:16

This fix works for all Linuxes having this problem I think, not just Mandrake.


Return to “Bugs”