You are not logged in.

#1 2005-11-14 20:01:29

Machiavelli
Member
Registered: 2005-08-24
Posts: 92

Solution (?) to segfaulting Loki Games

I wanted to run Heavy Metal FAKK 2 under Arch Linux, but sadly, it segfaulted. Appearantly it does so with any zlib younger than 1.1.4. To solve this I've used an ugly hack I saw somewhere on the web, and installed zlib 1.1.4 in /usr/local/games/oldlibs. The result is loki-compatibility, which really just is a package with zlib 1.1.4 in /usr/local/games/oldlibs and a profile.d script that pretty much says:

#!/bin/sh

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/games/oldlibs

This seems to work! big_smile

Just wanted to see how "pretty" this solution would be considered to be. You can check the PKGBUILD out here. Any spontaneous thoughts?

Offline

#2 2005-11-15 21:58:33

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Solution (?) to segfaulting Loki Games

You don't want an old zlib library linked in by default for other binaries. Zlib is a quite important lib. Installing this old leaky version on your system would mean every service that uses it will be vulnerable.

I would suggest making wrapper scripts for these loki games, not adding a LD_LIBRARY_PATH to the global profile.d directory.

Offline

#3 2005-11-16 19:25:58

Machiavelli
Member
Registered: 2005-08-24
Posts: 92

Re: Solution (?) to segfaulting Loki Games

Thanks for the reply, I was suspecting as much. :oops:

How is the old zlib "leaky"?

Offline

#4 2005-11-17 12:14:07

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Solution (?) to segfaulting Loki Games

Security vulnerabilities are found in zlib now and then. Since it is a very common used library, it's dangerous to have old old versions of this lib on your system in a default library path. Every application that uses zlib is vulnerable for the bugs in it.

Offline

#5 2005-11-17 16:38:03

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Solution (?) to segfaulting Loki Games

How about ln -s the newer zlib to the old file name.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

Board footer

Powered by FluxBB