Author Topic: PS on SuSE 9.2 x86_64  (Read 1299 times)

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
PS on SuSE 9.2 x86_64
« on: February 22, 2005, 03:12:14 am »
I have a nice new machine and found a wonderful game,
but they wont come together!

Im sick of switching to an 32bit OS (win2k) just for playing that cool game in 32bit mode... argh!
I want PS to run on my AMD64 under Linux x86_64 in real 64bit mode!

So, here comes the details:
I followed instructions on http://laanx.fragnetics.com/index.php?page=build_gentoo,
as far as they concern me, and i read the others too.

as far as i see i have any demanded piece of software that is needed and their dev-packages.

Cal3d - ok

CS has its issues with:
LinkPlugin ie3ds.so
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64/lib3ds.a(file.o): relocation R_X86_64_32 against `a local symbol\' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64/lib3ds.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
    g++  -o ie3ds.so  ./out/linux/debug/plugins/mesh/impexp/3ds/ie3ds.o   ./out/linux/debug/libs/cstool/libcstool.a ./out/linux/debug/libs/csgfx/libcsgfx.a ./out/linux/debug/libs/csgeom/libcsgeom.a ./out/linux/debug/libs/csutil/libcsutil.a  -lm -ldl -lnsl -L/usr/local/lib -Wl,-E -g3 -shared -lpthread -lz -l3ds -lm  \\
      -Wl,-soname,ie3ds.so
...failed LinkPlugin ie3ds.so...

CEL - ok

and finaly PS
first run of jam delivers lots of
src/client/pscal3dcallback.h:24:32: cal3d/animcallback.h: Datei oder Verzeichnis nicht gefunden
file not founds
workaround is to copy ~/cal3d/src/cal3d to ~/planeshift/cal3d
a second run of jam leaves me at least this
LinkPlugin pssound.so
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: ./out/linux/debug/src/client/sound/pssoundmngr.o: relocation R_X86_64_32 against `csArray, csArrayMemoryAllocator >::DefaultCompare(iBase** const&, iBase** const&)\' can not be used when making a shared object; recompile with -fPIC
./out/linux/debug/src/client/sound/pssoundmngr.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
    g++  -o pssound.so  ./out/linux/debug/src/client/sound/pssoundmngr.o   ./out/linux/debug/src/common/util/libpsutil.a   -g3 -L/home/ralph/bin/CS/./out/linux/debug/libs/csutil -L/home/ralph/bin/CS/./out/linux/debug/libs/cstool -L/home/ralph/bin/CS/./out/linux/debug/libs/csgfx -L/home/ralph/bin/CS/./out/linux/debug/libs/csgeom -L/home/ralph/bin/CS/./out/linux/debug/libs/csws -lcstool  -lcsgfx -lcsgeom -lcsutil -lpthread -lz  -lm -ldl -lnsl -L/usr/local/lib -Wl,-E -g3   -shared  \\
      -Wl,-soname,pssound.so
...failed LinkPlugin pssound.so...

and this is it!
i cant start PS!
Why the f*** is that?

any help welcome

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
PS output
« Reply #1 on: February 22, 2005, 08:25:41 pm »
ok, what u might have waited for...
after compiling PS with the above errors i can run the updater, run pssetup but psclient fails with the following message:

> ./psclient
crystalspace.maploader: Could not get sound driver
crystalspace.maploader: Could not get model converter
crystalspace.maploader: Could not get model crossbuilder
DLERROR (/home/ralph/bin/planeshift/pssound.csplugin): /home/ralph/bin/planeshift/pssound.so: Kann die Shared-Object-Datei nicht ?ffnen: Datei oder Verzeichnis nicht gefunden
WARNING: could not load plugin \'planeshift.sound.soundmanager\'

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version (direct renderer)
  Visual ID: 24, 16bit TrueColor
  R5:G6:B5:A0,
  level 0, double buffered

crystalspace.canvas.openglcommon.driverdb:
  Applied: GeForce FX 5xxx: Slow VBO
  Applied: GeForce FX 5xxx: Broken \'Inverted fog\'

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce FX 5700/AGP/SSE2 (vendor: NVIDIA Corporation)
  version 1.5.1 NVIDIA 61.11
  Using windowed mode at resolution 1024x768.
  Pixel format: Color: 16 Alpha: 0 Depth: 24 Stencil: 8 AccumColor: 16
  AccumAlpha: 0 MultiSamples: 0
  WARNING! Crystal Space performs better in 24 or 32 bit display mode!
  Multisample: disabled

planeshift.application.client:
  PlaneShift Crystal Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
  No iSoundManager plugin!
  Failed to init app!

no matter what sound is selected in setup, and no mater if i commented out all sound related stuff in PS.cfg.

Hope for help,
Ralph

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #2 on: February 22, 2005, 08:35:16 pm »
Quote
Originally posted by RalphMW
DLERROR (/home/ralph/bin/planeshift/pssound.csplugin): /home/ralph/bin/planeshift/pssound.so: Kann die Shared-Object-Datei nicht ?ffnen: Datei oder Verzeichnis nicht gefunden
WARNING: could not load plugin \'planeshift.sound.soundmanager\'


Here is your problem. Was pssound.so not compiled because of a compile error or because you forgot it? ;)


Back to Planeshift again \\o/

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #3 on: February 22, 2005, 10:50:45 pm »
Ok, when doing the ./configure bit, make sure you have CFLAGS=-fPIC in it. So it\'ll look something like this:

./configure CFLAGS=-fPIC --enable-debug etc. etc.

Make sure you have the latest cvs of Crystal Space, because there\'s been some 64-bit fixes in the last day or so.

Also, beware that the 64-bit version is still \"unstable\". So the game does crash every so often due to a few nasty bugs remaining :)
« Last Edit: February 22, 2005, 10:55:11 pm by Xordan »

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
Yeah, its running!
« Reply #4 on: February 24, 2005, 12:34:17 pm »
THX to Xordan, configuring with CFLAGS=-fPIC finally did the job!
I can start the psclient now and walk around!

guess i have to configure and rebuild CS with that flag too to get rid of the ie3ds issue...

I also noticed lightning probs! the character selection page showed just the model (spinning round, which is not in the win client?), no background and the output says something with -relight.

As walktest -relight helped the CS test to the same prob,
so i started psclient -relight but that broke up somewhen.

now the Character selection page is just fine, but i still don\'t see anything in the PS world except the models and labels.

Stay tuned,
more precise report tonight.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #5 on: February 24, 2005, 03:17:19 pm »
Make sure you have the latest CS, and then you can ignore any lighting messages for now. :)

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
CVS of CS broken
« Reply #6 on: February 24, 2005, 10:00:48 pm »
well, i updated CVS of CS but that seemed to be brocken...
i get lots of
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libstdc++.so when searching for -lstdc++

and even walktest won\'t start...

however enough for today, switching to win 2 play... :-(

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #7 on: February 24, 2005, 11:31:49 pm »
Yeah, keep updating it until it works :)

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
PS today
« Reply #8 on: February 26, 2005, 08:27:16 pm »
Hi,

today i tried to compile all hat stuff to get a running client again.

CS compiles OK, walktest and csdemo run fine.

But today PS has its issues.
C++ ./out/linux/debug/src/common/paws/pawsobjectview.o
src/common/paws/pawsobjectview.cpp: In constructor `
   pawsObjectView::pawsObjectView(PawsManager*)\':
src/common/paws/pawsobjectview.cpp:40: Warnung: converting to `int\' from `float
   \'
src/common/paws/pawsobjectview.cpp: In member function `bool
   pawsObjectView::LoadMap(const char*, const char*)\':
src/common/paws/pawsobjectview.cpp:114: error: `SetAttenuation\' undeclared
   (first use this function)
src/common/paws/pawsobjectview.cpp:114: error: (Each undeclared identifier is
   reported only once for each function it appears in.)
src/common/paws/pawsobjectview.cpp: In member function `bool
   pawsObjectView::CreateMap()\':
src/common/paws/pawsobjectview.cpp:183: error: `SetAttenuation\' undeclared
   (first use this function)
src/common/paws/pawsobjectview.cpp: In member function `virtual bool
   pawsObjectView::OnMouseUp(int, int, int, int)\':
src/common/paws/pawsobjectview.cpp:430: Warnung: converting to `int\' from `
   float\'
src/common/paws/pawsobjectview.cpp: In member function `virtual bool
   pawsObjectView::OnMouseExit()\':
src/common/paws/pawsobjectview.cpp:441: Warnung: converting to `int\' from `
   float\'
    g++  -c -o ./out/linux/debug/src/common/paws/pawsobjectview.o   -fPIC   -DCS_DEBUG -g3 -I/home/ralph/ps-2005-02-26/CS/include      -I/home/ralph/ps-2005-02-26/cel/include -fexceptions   -I. -I./include -I./src/common -I./src/client -I./src/server  src/common/paws/pawsobjectview.cpp
...failed C++ ./out/linux/debug/src/common/paws/pawsobjectview.o...

...skipped libpaws.a for lack of libpaws.a(pawsobjectview.o)...

and 6 more skipped because of libpaws.a is lacking!

So far,
Ralph.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #9 on: February 26, 2005, 09:29:20 pm »
ok, if CS and cel work fine, don\'t touch them. Try updating PS and compiling again tomorrow. Then try the day after that etc. until it works. Then don\'t update until you get told you\'re running the wrong version by the server.

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
updating from CVS
« Reply #10 on: February 27, 2005, 01:41:56 pm »
OK, i keep the successfully compiled Cal3d, CS, CEL.

what is the best way to update from CVS?
jam clean
cvs update (or cvs update -d -P?)
./autogen.sh
./configure ...
jam -a

btw, i updated PS from CVS today there was some *paws* updates. but same errors as before occured while compiling.

so i keep reporting and trying.

Ralph.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #11 on: February 28, 2005, 12:15:15 am »
I just do: cvs -z9 update in PlaneShift, because I don\'t want the art folders updated from the CVS. For cal3d, CS and cel I do cvs -z9 update -dP.

Make sure you \'jam clean\' before \'jam\'  when recompiling.

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
PS runs! :-)
« Reply #12 on: February 28, 2005, 08:36:42 pm »
Hey Folks,

I\'m a lucky man again! :-)

THX Xordan for your patience!

Updated PS from CVS today and it works fine!

See in-game :-)
Ralph.

Edit: I guess i have to report lots of bugs!
After walking a while around trying to sell to harnquist psclient crashed. And now it doesn\'t start anymore...

Xordan how can i be of service to report bugs?
how to run psclient with dbg? where to report?

Edit2: ok, i updated from cvs, recompiled.
PS started and suddenly crashed.
Last lines are:
SetTrait:
  Failed to set trait(2): mesh=Head, mat=fynnwn_face_1,
  tex=/planeshift/models/fynnwn/fynnwn_head.png
Speicherzugriffsfehler

the psengine.cpp /SetTrait thing has let crashed the client before too.

btw: when i started PS on x86_64 first time i was in magicshop, went outside and was /digin for gold. That worked just fine...
« Last Edit: February 28, 2005, 11:53:27 pm by RalphMW »

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
running PS through gdb
« Reply #13 on: March 01, 2005, 08:12:58 pm »
so, i was just playing around a bit.

i updated from cvs, compiled.

./psclient crashed:
SetTrait:
  Failed to set trait(4): mesh=Head, mat=ynnwnm_face_2,
  tex=/planeshift/models/ynnwnm/ynnwnm_head_2.png

now the gdb psclient is:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182906324160 (LWP 25804)]
0x0000002a95f5b300 in strlen () from /lib64/tls/libc.so.6

Backtrace is:
#0  0x0000002a95f5b300 in strlen () from /lib64/tls/libc.so.6
#1  0x00000000006fa4f5 in ap_vformatter (flush_func=0x6fae4a , vbuff=0x7fbfffcae0,
    fmt=0x2a99bee66b \"s:  %s\\n\", ap=0x7fbfffcb70) at snprintf.cpp:948
#2  0x00000000006fb015 in cs_vsnprintf (buf=0x52bc100 \"\", len=513, format=0x2a99bee66a \"%s:  %s\\n\", ap=0x7fbfffcb70)
    at snprintf.cpp:1237
#3  0x00000000006ea14f in csString::FormatV (this=0x7fbfffccf0, format=0x2a99bee66a \"%s:  %s\\n\", args=0x7fbfffcb70)
    at csstring.cpp:445
#4  0x00000000006ea267 in csString::Format (this=0x7fbfffccf0, format=0x2a99bee66a \"%s:  %s\\n\") at csstring.cpp:459
#5  0x0000002a99be153e in csReporterListener::Report (this=0x98b600, severity=1,
    msgID=0x7fbfffcef0 \" BuildAppearance\",
    description=0x90f8b0 \"Failed to set trait #6  0x0000002a99be503f in csReporterListener::ReporterListener::Report (this=0x98b710, reporter=0x98ae10, severity=1,
    msgId=0x7fbfffcef0 \" BuildAppearance\",
    description=0x90f8b0 \"Failed to set trait #7  0x0000002a99abeda7 in csReporter::ReportV (this=0x98ae10, severity=1,
    msgId=0x7fbfffcef0 \" BuildAppearance\",
    description=0x7339d0 \"Failed to set trait %s for mesh.\", arg=0x7fbfffe290) at reporter.cpp:150
#8  0x000000000052e840 in csReporterHelper::ReportV (reg=0x906080, severity=1,
    msgId=0x7fbfffcef0 \" BuildAppearance\",
    description=0x7339d0 \"Failed to set trait %s for mesh.\", args=0x7fbfffe290) at reporter.h:331
#9  0x000000000061f7ae in pslog::LogMessage (file=0x732cc8 \"src/client/psengine.cpp\", line=1449,
    function=0x7339a0 \"BuildAppearance\", severity=1, type=0, msg=0x7339d0 \"Failed to set trait %s for mesh.\")
    at log.cpp:127
#10 0x0000000000526e34 in psEngine::BuildAppearance (this=0xb50730, mesh=0x4c13448,
    xmlString=0x4c20bd0 \"<\"...) at psengine.cpp:1449
#11 0x0000000000556766 in GEMClientActor::InitCharData (this=0x4c20560,
    textParts=0x4c20bd0 \"<\"..., equipment=0x7430fb0 \"\") at pscelclient.cpp:1070
#12 0x0000000000554f21 in GEMClientActor (this=0x4c20560, cel=0xc67d60, mesg=@0x7fbfffe770) at pscelclient.cpp:850
#13 0x0000000000551939 in psCelClient::HandleActor (this=0xc67d60, me=0x8152600) at pscelclient.cpp:261
#14 0x0000000000552962 in psCelClient::HandleMessage (this=0xc67d60, me=0x8152600) at pscelclient.cpp:486
#15 0x000000000051a864 in psClientNetSubscriber::HandleMessage (this=0xc67da0, msg=0x8152600) at cmdbase.h:72
#16 0x000000000060aeeb in MsgHandler::Publish (this=0xc62930, me=0x8152600) at msghandler.cpp:97
#17 0x00000000005e60bf in psClientMsgHandler::HandleEvent (this=0xc62930, ev=@0x9302a0) at clientmsghandler.cpp:92
#18 0x00000000005e63ed in psClientMsgHandler::EventHandler::HandleEvent (this=0xc63b10, e=@0x9302a0)
    at clientmsghandler.h:84
#19 0x000000000070c63a in csEventQueue::Notify (this=0x95fa00, pseudo_event=8) at cseventq.cpp:219
#20 0x000000000070c672 in csEventQueue::Process (this=0x95fa00) at cseventq.cpp:226
#21 0x000000000072696b in csDefaultRunLoop (r=0x906080) at runloop.cpp:81
#22 0x0000000000529afc in main (argc=1, argv=0x7fbfffedb8) at psengine.cpp:1892

is this kind of info useful for devs?
By, Ralph.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #14 on: March 08, 2005, 06:00:35 pm »
The bug is fixed. Get the latest CVS and recompile everything. Works smooth for me now.