[openamq-dev] Help on OpenAMQ Shared Libraries
Jonathan Schultz
jonathan at imatix.com
Fri Jul 13 05:20:35 CEST 2007
Hi Malinga,
This isn't really my part of the project but I am in the right timezone
so I'll give you something to try. I don't have access to a 64 bit
Linux box to try it on either so you'll just have to give it a go.
My feeling is that CFLAG is specific to someone else's build
environment. We use an environment variable called CCDEFINES.
Try something like
export CCDEFINES="$CCDEFINES -fPIC"
then building.
Good luck.
Jonathan
Malinga wrote:
>
> Hi,
>
> Pls im having a big issue of accessing OpenAMQ C libraries via JNI. I
> did that thing on 32 bit windows and it worked fine and even in the 32
> bit linux. but now we migrated to 64 bit dual core linux (ubuntu). so in
> there when im going to compile it it gave me a compilation error saying.
>
> "amq_exchange.o: relocation R_X86_64_32 against `a local symbol' can not
> be used when making a shared object; recompile with -fPIC"
>
> So when i google it for while, i noticed that it required -fPIC flag.
> and they recomd us to set the CFLAG (export CFALG=-fPIC) and compile it.
> i did it with the before building OpenAMQ with the source. But still
> giving me the same error. Can you lps help me on this because we are on
> a tight deadline schedule.
>
> Dev Env :
>
> Ubuntu 64 bit on Intel 64
> Eclipse 3.2 CDT
>
> -Malinga
>
> ------------------------------------------------------------------------
> Ready for the edge of your seat? Check out tonight's top picks
> <http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/> on Yahoo! TV.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
More information about the openamq-dev
mailing list