Subject: linux emul with Sim City 3000
To: None <netbsd-users@netbsd.org>
From: Philippe St-Jacques <eukaryote@sympatico.ca>
List: netbsd-users
Date: 08/22/2003 13:03:42
Hi all. I have this Sim City 3000 Unlimited for linux made by Lokigames[tm] . 
So I did the setup as if it was on my debian system. mount the cd and run the 
setup executable "setup.data/bin/Linux/x86/setup" . The setup asked a few 
questions about what I want on my hard drive and such. The game then started 
to copy files in /usr/pkg/emul/linux/usr/local/games/SC3U . 

But I realized It was missing some files [even the game executable] . So I 
deleted the SC3U folder and went on the cd folder and ran the "FreeBSD 
executable" [setup.data/bin/FreeBSD/x86/setup]. The game and binaries are for 
Linux. I suppose they made a FreeBSD setup to make clean installations on 
non-linux systems of people that plan to run the game in linux emulation.

That worked perfectly, in the way that every files were correctly installed in 
/usr/local/games/SC3U (note that it is not  in /usr/pkg/emul/linux anymore, 
but it is ok I think again). When I run the game I get the error inserted at 
the bottom of the e-mail. 

I'm not experimented with netbsd emulation of other OS'es and I don't find 
possible documentation about userland tools / methods to manage linux 
binaries for example. I'm no sure if it is well documented. Any help 
suggestion would be nice :) It looks like it is related with SDL but here is 
the error message! Thanks !

phil@p3:~/->sc3u
Creating Loki preferences directory: /home/phil/.loki/
Creating sc3u preferences directory: /home/phil/.loki/sc3u

BUG! (Segmentation Fault)  Going down hard...
Sim City 3000 Unlimited 2.0.955
Built with glibc-2.1
Stack dump:
{
        sc3u(sdl_SnapShot+0x231) [0x8479fad]
        /lib/libpthread.so.0(pthread_kill+0x174) [0x48605bc4]
        [0xbfbfffbf]
        sc3u(_dlerror_run+0xc9) [0x853f9d5]
        sc3u(__dlopen_check+0x25) [0x853f695]
        sc3u(Load__13cGZCOMLibrary+0x7ac) [0x8360de4]
        sc3u(UpdateClassRegistry__6cGZCOMR13cGZCOMLibrary+0x20) [0x8362838]
        sc3u(AddLibrary__6cGZCOMRC10cIGZString+0x1c1) [0x8361a25]
        sc3u(__11SimSettings+0x7e8) [0x8161174]
        
sc3u(EnumEntries__10cRZIniFileRC9cRZStringPFRC9cRZStringRC9cRZStringPvPv+0x759) 
[0x83a0ead]
        sc3u(AddDynamicLibrariesHere__7cSC3App+0x63e) [0x8161c86]
        sc3u(sInit__12cGZFrameWorkR10cRZCmdLineb+0x13a) [0x835c80a]
        sc3u(Main__12cGZFrameWorkR10cRZCmdLineb+0x26) [0x835ce62]
        sc3u(main+0x45) [0x8158521]
        /lib/libc.so.6(__libc_start_main+0xbe) [0x486517ee]
        sc3u(_start+0x21) [0x8149f41]
}
Please send a full bug report,
along with the contents of autosave to: support@lokigames.com