Author Topic: 4.0 issues on x64  (Read 2938 times)

Pirx

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
4.0 issues on x64
« on: March 01, 2008, 10:26:29 pm »
Hello,

i believe there are some issues with 4.0:
First: the scripts, for instance psclient:

#!/bin/bash
 
R=$PWD/$0
# this concats the current directory with the path of the script, resulting in something like
# /home/Pirx//opt/Planeshift/psclient
# this should probably read R=$0

R=${R%/*}
# this strips the last component of the path, now we are getting
# /home/Pirx//opt/Planeshift
# it think that should read "/opt/Planshift", one could also use $(dirname $0)

cd $R
# this obviously fails. it works if you do R=$0 above, or cd $(dirname $0)

chmod 770 psclient.bin
# this should not work for ordinary users, because the user playing the game
# should not have write access to the install directory
# the file should be made executable by the installer

export LD_LIBRARY_PATH=libs/:\$LD_LIBRARY_PATH
# ok, i would prefer that the game would use the system libraries,
# but that it should work this way too

exec ./psclient.bin $@
# ok

after fixing the scripts as described above i get:
$ /opt/PlaneShift/psclient
Your configuration files are in... /home/Pirx/.PlaneShift
DEBUG: Sound System Software Renderer Initializing...

planeshift.application.client:
  PlaneShift Steel Blue (0.4.00)
  This game uses Crystal Space Engine created by Jorrit and others
  1.2.0 [Unix-x86-GCC]
     315) LOG_ANY flag deactivated with no filter.
 ...
     319) All LOGS are off.
Mounting skin: /this/art/skins/default.zip
     432) <src/common/paws/pawsimagedrawable.cpp:56 PreparePixmap>
Speicherzugriffsfehler

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: 4.0 issues on x64
« Reply #1 on: March 01, 2008, 10:34:08 pm »
Okay, I'll fix that script.

The game can't use the system libraries because there's no guarantee they'll be there, or ABI compatible.

I assume that last line means "Segmentation Fault"?

Jonerian

  • Hydlaa Resident
  • *
  • Posts: 102
  • Jonerian Cruentis
    • View Profile
Re: 4.0 issues on x64
« Reply #2 on: March 01, 2008, 10:35:49 pm »
Yes it does.

EDIT:
Well, at least this is what is printed on a german version when it would be Segmentation Fault otherwise.

Pirx

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
Re: 4.0 issues on x64
« Reply #3 on: March 01, 2008, 10:41:49 pm »
yes, segmentation fault. sorry.

i made the install directory writable to the user, and the game started (the login-screen anyway). It created  file "errorlog.txt". It probably segfaults if i cannot create that file. so i removed write access again, only left errorlog.txt writable an it still works.

the errorlog.txt should be create in ~./.PlaneShift

Thanks for moving the configuration to the user-dir anyway.

And thanks for the fast replay

there should probably be better checking of return codes of file operations...

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: 4.0 issues on x64
« Reply #4 on: March 01, 2008, 11:03:12 pm »
Okay, I'll look at that now also.

Edit: The code which does that is very old and will need some rewriting to fix properly. I'll make a bug report and hopefully it'll get done soon.
« Last Edit: March 01, 2008, 11:13:02 pm by Xordan »

Mythryndel

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 605
    • View Profile
Re: 4.0 issues on x64
« Reply #5 on: March 02, 2008, 01:00:55 am »
I am having similar issues. I modified the startup scripts as described, but I am getting a crash after the splash screen displays and I only get the following error message:

./psclient.bin: symbol lookup error: libs/libvorbisfile.so.3: undefined symbol: vorbis_synthesis_idheader

I have tried disabling sound using pssetup, but I still error out here.

I am running Fedora 7 with the latest 0.4.00 client downloaded today. I was running 0.3.020 previously with no issues. I have tried completely wiping that install and installing clean with 0.4.00 and still have the same issue.

Mythryndel

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 605
    • View Profile
Re: 4.0 issues on x64
« Reply #6 on: March 02, 2008, 01:06:06 am »
I just read on another forum about replacing that file with the .so from my system. That works great.

miadon

  • Hydlaa Notable
  • *
  • Posts: 934
    • View Profile
Re: 4.0 issues on x64
« Reply #7 on: March 02, 2008, 01:09:58 am »
I just read on another forum about replacing that file with the .so from my system. That works great.

yep that is pretty much what I did to fix it.
- MiadonCam (Refresh page to see live in game Miadon Action!!)

Jonerian

  • Hydlaa Resident
  • *
  • Posts: 102
  • Jonerian Cruentis
    • View Profile
Re: 4.0 issues on x64
« Reply #8 on: March 02, 2008, 05:37:33 am »
Okay, the issue with the broken shellscript where fixed with the updater and will work for most people I guess, but not for me.
Code: [Select]
cd ${dirname $0}
I copy the scripts to /usr/bin so I have them in my path automatically (the Arch Linux PKGBUILD does that). So they are not at the orginal place. Why can't the script be like they were in 0.3.020, just changing direct to the directory (/opt/Planeshift normally)? That worked quite well with the last version.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: 4.0 issues on x64
« Reply #9 on: March 02, 2008, 06:12:41 am »
Because that means I can't update them. If you want them in your path then just install as root and select the option which will do that for you...

Jonerian

  • Hydlaa Resident
  • *
  • Posts: 102
  • Jonerian Cruentis
    • View Profile
Re: 4.0 issues on x64
« Reply #10 on: March 02, 2008, 06:44:25 am »
Okay I already figured with the update problem since I did all the updates in the last minutes *g*.

But there is a reason why I move files to /usr/bin. I don't see the installer copy any files to $prefix/usr/bin. Am I missing something? I am using the option "--syswide yes" and also tried the GUI installer, just in case it can do something the CL version can't.

EDIT:
I actually thought the wrapper script ARE psclient pssetup and psupdater. These are the ones I copied to /usr/bin since they won't with the installation.

EDIT:
Could it be possible, that the installer doesn't follow the $prefix consequent? If so, this is somewhat of an issue because the prefix is very important to build packages for linux distributions and therefore a clean way to install and uninstall the game through the normal package management. I tested it now with a prefix in my user directory and before with fakeroot and a prefix. Neither way I got any /usr/bin files.
« Last Edit: March 02, 2008, 06:57:04 am by Jonerian »

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: 4.0 issues on x64
« Reply #11 on: March 02, 2008, 06:58:22 am »
It could be that I broke the installer bit which does this and I didn't realise.. I'll look at it for next release.

Jonerian

  • Hydlaa Resident
  • *
  • Posts: 102
  • Jonerian Cruentis
    • View Profile
Re: 4.0 issues on x64
« Reply #12 on: March 02, 2008, 07:05:51 am »
Thank you. It's no showstopper now, so there are more important things to fix, but it would be nice to have a nice way to build packages again.

citizen

  • Hydlaa Resident
  • *
  • Posts: 132
    • View Profile
Re: 4.0 issues on x64
« Reply #13 on: March 03, 2008, 11:56:22 am »
I am having similar issues. I modified the startup scripts as described, but I am getting a crash after the splash screen displays and I only get the following error message:

./psclient.bin: symbol lookup error: libs/libvorbisfile.so.3: undefined symbol: vorbis_synthesis_idheader

I have tried disabling sound using pssetup, but I still error out here.

I am running Fedora 7 with the latest 0.4.00 client downloaded today. I was running 0.3.020 previously with no issues. I have tried completely wiping that install and installing clean with 0.4.00 and still have the same issue.

I have the same problem but on a 32bit system with 32 bit version. Will try to copy there the appropriate lib from my system.

update: It solved my problem, i made a symlink to the appropriate version.
« Last Edit: March 03, 2008, 12:39:14 pm by citizen »

Jonerian

  • Hydlaa Resident
  • *
  • Posts: 102
  • Jonerian Cruentis
    • View Profile
Re: 4.0 issues on x64
« Reply #14 on: March 03, 2008, 08:20:24 pm »
Actually there was an update already with a new libvorbis.so. Did you do that update? (sudo psupdater, in game directory)