[openamq-dev] openamq-dev Digest, Vol 5, Issue 2

Malinga malingajava at yahoo.com
Mon Jul 16 07:23:32 CEST 2007


Hi,

    Thanks Mr. Jonathan with your kind reply and the information i able to build the OpenAMQ with the  -fPIC falg. and i managed to create the shared library which  i can use with the  JNI. But when im going to load the shared library via Java 1.5.0_12. it gave me a error something like "libSilver.so : Can't load AMD 64-bit .so on a AMD 64-bit platform"

so and you ps tell me whats wrong with this. 

Thanks in adavance
-Malinga

----- Original Message ----
From: "openamq-dev-request at lists.openamq.org" <openamq-dev-request at lists.openamq.org>
To: openamq-dev at lists.openamq.org
Sent: Friday, July 13, 2007 3:30:01 PM
Subject: openamq-dev Digest, Vol 5, Issue 2

Send openamq-dev mailing list submissions to
    openamq-dev at lists.openamq.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.openamq.org/mailman/listinfo/openamq-dev
or, via email, send a message with subject or body 'help' to
    openamq-dev-request at lists.openamq.org

You can reach the person managing the list at
    openamq-dev-owner at lists.openamq.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of openamq-dev digest..."


Today's Topics:

   1. Re: openamq-dev Digest, Vol 5, Issue 1 (Malinga)
   2. Re: Help on OpenAMQ Shared Libraries (Jonathan Schultz)


----------------------------------------------------------------------

Message: 1
Date: Thu, 12 Jul 2007 20:12:04 -0700 (PDT)
From: Malinga <malingajava at yahoo.com>
Subject: Re: [openamq-dev] openamq-dev Digest, Vol 5, Issue 1
To: openamq-dev at lists.openamq.org
Message-ID: <940903.26639.qm at web30906.mail.mud.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Hey can you pls help me on this im really stuck.

----- Original Message ----
From: "openamq-dev-request at lists.openamq.org" <openamq-dev-request at lists.openamq.org>
To: openamq-dev at lists.openamq.org
Sent: Thursday, July 12, 2007 3:30:02 PM
Subject: openamq-dev Digest, Vol 5, Issue 1

Send openamq-dev mailing list submissions to
    openamq-dev at lists.openamq.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.openamq.org/mailman/listinfo/openamq-dev
or, via email, send a message with subject or body 'help' to
    openamq-dev-request at lists.openamq.org

You can reach the person managing the list at
    openamq-dev-owner at lists.openamq.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of openamq-dev digest..."


Today's Topics:

   1. Help on OpenAMQ Shared Libraries (Malinga)


----------------------------------------------------------------------

Message: 1
Date: Wed, 11 Jul 2007 23:14:04 -0700 (PDT)
From: Malinga <malingajava at yahoo.com>
Subject: [openamq-dev] Help on OpenAMQ Shared Libraries
To: openamq-dev at lists.openamq.org
Message-ID: <231733.35447.qm at web30905.mail.mud.yahoo.com>
Content-Type: text/plain; charset="us-ascii"



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



       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20070711/b56311a2/attachment-0001.htm 

------------------------------

_______________________________________________
openamq-dev mailing list
openamq-dev at lists.openamq.org
http://lists.openamq.org/mailman/listinfo/openamq-dev


End of openamq-dev Digest, Vol 5, Issue 1
*****************************************







 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20070712/9f0104a5/attachment-0001.htm 

------------------------------

Message: 2
Date: Fri, 13 Jul 2007 13:20:35 +1000
From: Jonathan Schultz <jonathan at imatix.com>
Subject: Re: [openamq-dev] Help on OpenAMQ Shared Libraries
To: "OpenAMQ development discussion, bug reports,    support"
    <openamq-dev at lists.openamq.org>
Message-ID: <4696EF83.2000104 at imatix.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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


------------------------------

_______________________________________________
openamq-dev mailing list
openamq-dev at lists.openamq.org
http://lists.openamq.org/mailman/listinfo/openamq-dev


End of openamq-dev Digest, Vol 5, Issue 2
*****************************************







       
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20070715/e474bdab/attachment-0001.htm 


More information about the openamq-dev mailing list