[Gridflow-dev] error when compiling rblti

Mathieu Bouchard matju at artengine.ca
Sun Jun 25 00:30:35 EDT 2006


On Fri, 23 Jun 2006, Alexandre Castonguay wrote:

> I get this error during the compilation of rblti on a 64 bit system. I'm using
> gcc  4.0.
> g++ -shared -o rblti.so rblti_wrap.o /usr/local/lib/ltilib/libltir.a -lpng
> -ljpeg -lstdc++
> /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
> rblti_wrap.o: relocation R_X86_64_32 against `a local symbol' can not be used
> when making a shared object; recompile with -fPIC
> rblti_wrap.o: ne peut lire les symboles: Mauvaise valeur
> collect2: ld returned 1 exit status
> make: *** [rblti.so] Erreur 1

This is because rblti.so is produced without $(CFLAGS). The Makefile ought 
to state that producing rblti.so should use $(CFLAGS). Either that or a 
split solution using CFLAGS options for compilation and LDFLAGS for 
linking. (?)

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada


More information about the Gridflow-dev mailing list