← Back to team overview

yade-dev team mailing list archive

Re: General assistance

 

Hmm. I reinstalled the external plugin, by changing its ./configure script.  Added -fPIC to its CFLAGS, CXXFLAGS and FFFLAGS.  It looks something like that:
CFLAGS = -g -O2 -fPIC

Then it appears in the makefile.  I deleted the old libopt.a, and ran 'make install' to create it again.  But YADE still gives me the same error.  Do you know what I should do?  I am really lost.


Yours,

Boon

----------------------------------------
> From: eudoxos@xxxxxxxx
> To: yade-dev@xxxxxxxxxxxxxxxxxxx
> Date: Thu, 1 Apr 2010 07:38:08 +0200
> Subject: Re: [Yade-dev] General assistance
>
>
>> Just an additional note on the previous message. I noticed '-fPIC' is already is in the SHCCFLAGS. I added '-fPIC' to CXXFLAGS too. But I still got the error.
>>
>> Previous message:
>> But then I got this error:
>> /usr/bin/ld: /usr/local/lib/libopt.a(NLP2.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
>> /usr/local/lib/libopt.a: could not read symbols: Bad value
>> collect2: ld returned 1 exit status
>> scons: *** [/home/chiab/yadeNew/build-b6/extra/libCWBoonPlugin2.so] Error 1
>> scons: building terminated because of errors.
> That error really concerns libopt.a. You're trying to link static
> library (libopt.a) into dynamically-loaded (yourPLugin.so) library,
> which will not work (IIRC) unless (a) the .a is recompiled with -fPIC,
> or (b) you compile shared library libopt.so (that will be compiled with
> -fPIC, too), which will be loaded by your plugin at runtime.
>
> Cheers, vaclav
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help : https://help.launchpad.net/ListHelp
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969


Follow ups

References