Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simgear-2.8.0-r1 Fehler beim linken
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
JoHo42
l33t
l33t


Joined: 14 Feb 2004
Posts: 956
Location: Germany

PostPosted: Tue Oct 16, 2012 7:45 pm    Post subject: Simgear-2.8.0-r1 Fehler beim linken Reply with quote

Hallo Leute,

ich bekomme folgende Fehlermeldung beim mergen von simgear:

e_group.cxx.o CMakeFiles/SimGearScene.dir/sound/sample_openal.cxx.o CMakeFiles/SimGearScene.dir/sound/sample_queue.cxx.o CMakeFiles/SimGearScene.dir/sound/soundmgr_openal.cxx.o CMakeFiles/SimGearScene.dir/sound/xmlsound.cxx.o libSimGearCore.so.2.8.0 -lz -Wl,-Bstatic -losgText -losgSim -losgDB -losgParticle -losgUtil -losg -Wl,-Bdynamic -lOpenThreads -lopenal -lalut -lGLU -lGL -lSM -lICE -lX11 -lXext -ljpeg -lrt -lexpat -lpthread -L/usr/lib64 -lapr-1 -lsvn_client-1 -lsvn_subr-1 -lsvn_ra-1 -Wl,-rpath,/var/tmp/portage/dev-games/simgear-2.8.0-r1/work/simgear-2.8.0_build/simgear:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libosgText.a(String.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libosgText.a: could not read symbols: Bad value
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [simgear/libSimGearScene.so.2.8.0] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/dev-games/simgear-2.8.0-r1/work/simgear-2.8.0_build'
make[1]: *** [simgear/CMakeFiles/SimGearScene.dir/all] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/dev-games/simgear-2.8.0-r1/work/simgear-2.8.0_build'
make: *** [all] Fehler 2

Der hat wohl probleme mit libsogText.a irgendwie soll da wohl Useflag -fPIC rein.
Ich finde dieses Useflag nicht und ich weiss auch nicht woran der sich da stört.

Gruss Jörg
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Wed Oct 17, 2012 12:40 pm    Post subject: Reply with quote

Brauchst du USE="static-libs" für openscenegraph? Wenn nicht -> USE="-static-libs" emerge -1 openscenegraph && emerge simgear
(Sollte klar sein, dass das USE-Flag für openscenegraph noch ordentlich in eine conf wandert!)

Alternativ:
fPIC ist kein USE-Flag. Du wirst da höflich gebeten, -fPIC zu deinen CFLAGS hinzuzufügen. Wenn du das wirklich machen willst mach es explizit für simgear!
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Wed Oct 17, 2012 1:44 pm    Post subject: Reply with quote

franzf wrote:

fPIC ist kein USE-Flag. Du wirst da höflich gebeten, -fPIC zu deinen CFLAGS hinzuzufügen. Wenn du das wirklich machen willst mach es explizit für simgear!

nicht für simgear sondern für openscenegraph ;)
Denn die Fehlermeldung kommt für libosgText.a
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum