Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 5:36 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: erreur avec make (-fPIC)
PostPosted: Thu Jul 16, 2009 7:08 pm 
Offline

Joined: Tue Jul 22, 2008 1:52 pm
Posts: 82
Bonjour
Voila j'ai voulut mettre a jour raydium avec raydium_nightly_svn.tar.gz
mais quand je compile il me dit
Code:
File created: libraydium.a.0.0                                                 
/usr/bin/ld: raydium/compile/background.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC                   


J'ai trouver ce poste qui en parle
viewtopic.php?f=7&t=923&view=next

mais j'ai pas tout comprit vu mon niveau en anglais

si j'ai bien comprit s'est une histoire avec la double déclaration dans
/usr/include/X11/Xmd.h:135: error: conflicting types for 'INT32'
/usr/include/jmorecfg.h:161: error: previous declaration of 'INT32' was here

que j'avais corriger en commentent un des define (pas très propre mais sa marchait)

j'ai tester en ajoutent -fPIC dans COMPILE_OPTIONS mais sa fait une autre erreur
Code:
File created: libraydium.a.0.0
/usr/bin/ld: raydium/php/libs/libphp5.a(lt30-main.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC


Il y a une solution?


Top
 Profile  
 
PostPosted: Thu Jul 16, 2009 7:20 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Tu utilises aussi de l'amd64 ?

Pour le reste, si tu lit attentivement le post que tu cites, tu trouvera la solution (point 2) qui consiste à modifier le configure pour donner l'argument --with-pic à PHP. Note qu'il te faudra probablement effacer le répertoire "raydium/php/" s'il existe déjà, pour effacer les précédentes tentatives de compilation de PHP.


Top
 Profile  
 
PostPosted: Thu Jul 16, 2009 9:35 pm 
Offline

Joined: Tue Jul 22, 2008 1:52 pm
Posts: 82
oui je suit en 64bit j'ai oublié de préciser
et merci sa marche


Top
 Profile  
 
PostPosted: Fri Jul 17, 2009 7:32 am 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
OK. Je veux bien que tu postes le résultat d'un "uname -a", pour savoir précisément sur quelle plateforme tu es.


Top
 Profile  
 
PostPosted: Thu Aug 13, 2009 11:48 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
I've got the same error (If I readed french properly). Today I've change my system to an AMD64.
$ uname -a
Linux vicente-desktop-64 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 01:19:55 UTC 2009 x86_64 GNU/Linux

I reverted the possible changes, then make. (I also re-did the configure in previous tests)
$svn revert --recursive * && make clean && make

Code:
Omitiendo 'configure.log'
rm -r raydium/compile/   || true
rm libraydium.so*   || true
rm: no se puede borrar «libraydium.so*»: No existe el fichero ó directorio
rm libraydium.a*   || true
rm: no se puede borrar «libraydium.a*»: No existe el fichero ó directorio
Creating: raydium/compile/background.o
Creating: raydium/compile/callback.o
Creating: raydium/compile/camera.o
Creating: raydium/compile/capture.o
Creating: raydium/compile/clear.o
Creating: raydium/compile/console.o
Creating: raydium/compile/file.o
Creating: raydium/compile/file_tri.o
Creating: raydium/compile/fog.o
Creating: raydium/compile/init.o
Creating: raydium/compile/cli.o
Creating: raydium/compile/internal.o
Creating: raydium/compile/joy.o
Creating: raydium/compile/key.o
Creating: raydium/compile/land.o
Creating: raydium/compile/light.o
Creating: raydium/compile/log.o
Creating: raydium/compile/main.o
Creating: raydium/compile/mouse.o
Creating: raydium/compile/network.o
Creating: raydium/compile/normal.o
Creating: raydium/compile/object.o
Creating: raydium/compile/ode.o
Creating: raydium/compile/osd.o
Creating: raydium/compile/parser.o
Creating: raydium/compile/particle2.o
Creating: raydium/compile/php.o
Creating: raydium/compile/profile.o
Creating: raydium/compile/random.o
Creating: raydium/compile/rayphp.o
Creating: raydium/compile/register.o
Creating: raydium/compile/render.o
Creating: raydium/compile/signal.o
Creating: raydium/compile/sky.o
Creating: raydium/compile/sound.o
Creating: raydium/compile/texture.o
Creating: raydium/compile/timecall.o
Creating: raydium/compile/math.o
Creating: raydium/compile/vertex.o
Creating: raydium/compile/window.o
Creating: raydium/compile/reg_api.o
Creating: raydium/compile/gui.o
Creating: raydium/compile/live.o
Creating: raydium/compile/video.o
Creating: raydium/compile/shadow.o
Creating: raydium/compile/myglut.o
In file included from /usr/include/X11/extensions/dpms.h:50,
                 from raydium/myglut-x11.c:25,
                 from raydium/myglut.c:35:
/usr/include/X11/Xmd.h:135: error: tipos en conflicto para ‘INT32’
/usr/include/jmorecfg.h:161: error: la declaración previa de ‘INT32’ estaba aquí
make: *** [raydium/compile/myglut.o] Error 1


updated: It works.
I found this thread with a workaround.
viewtopic.php?f=7&t=1922&hilit=amd64


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 25 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group