Crystal Space
Welcome, Guest. Please login or register.
October 24, 2017, 03:23:02 am

Login with username, password and session length
Search:     Advanced search
9063 Posts in 2051 Topics by 77929 Members
Latest Member: Joankaarduin782
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Ubuntu Feisty Fawn has broken my CS
« previous next »
Pages: [1] Print
Author Topic: Ubuntu Feisty Fawn has broken my CS  (Read 2430 times)
Posts: 9

View Profile Email
« on: July 11, 2007, 10:26:42 pm »

Hi, Ive been building CS on Ubuntu Edgy for some time for the Planeshift game.

But then I did the Ubuntu online upgrade to Feisty Fawn, and now I cannot build CS (r26888) plugins, as the link fails as follows. I am not familiar with the CS code; I just kinda expected it all to just work after the upgrade. Any ideas? Thanks, Dave

./out/linux/debug/plugins/mesh/sprcal3d/object/sprcal3d.o: In function `CS::Plugin::SprCal3d::csCal3dSkeletonBone::Initialize()':
/home/dave/projects/planeshift-dev/cs/plugins/mesh/sprcal3d/object/sprcal3d.cpp:2411: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const'
/usr/bin/ld: ./out/linux/debug/plugins/mesh/sprcal3d/object/sprcal3d.o: relocation R_X86_64_PC32 against `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

    g++ -Wl,--as-needed -o ./out/linux/debug/plugins/mesh/sprcal3d/object/sprcal3d.o  -lm -ldl -lnsl -L/usr/local/lib -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,-E -g3 -shared ./out/linux/debug/libs/libcrystalspace-1.1.a -lpthread -lpthread -lz -L/home/dave/projects/planeshift-dev/cal3d/lib -lcal3d -lm -ldl -lnsl -L/usr/local/lib -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,-E -g3 \
...failed LinkPlugin ...

btw, its the 64-bit version, gcc 4.1.2.
« Last Edit: July 12, 2007, 05:26:07 pm by davewb » Logged
Posts: 9

View Profile Email
« Reply #1 on: July 12, 2007, 09:10:25 pm »

Removing the following from Jamconfig helps...

COMPILER.C++FLAGS += "-fvisibility-inlines-hidden" ;
COMPILER.CFLAGS += "-fvisibility=hidden" ;

I dont know if thats the correct solution, but it works for me.
Sr. Member
Posts: 295

View Profile
« Reply #2 on: July 17, 2007, 02:26:14 pm »

Moved to Crystal Space bug tracker:
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.133 seconds with 15 queries.