Crystal Space
Welcome, Guest. Please login or register.
October 30, 2014, 06:49:33 pm

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8886 Members
Latest Member: Bulcaokandis
* 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 1970 times)
davewb
Newbie
*
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

LinkPlugin sprcal3d.so
./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 sprcal3d.so ./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 \
      -Wl,-soname,sprcal3d.so
 
...failed LinkPlugin sprcal3d.so ...


btw, its the 64-bit version, gcc 4.1.2.
« Last Edit: July 12, 2007, 05:26:07 pm by davewb » Logged
davewb
Newbie
*
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.
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


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

Moved to Crystal Space bug tracker:
http://www.crystalspace3d.org/trac/CS/ticket/355
Logged
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 5.277 seconds with 15 queries.