gavgaurav / nativelibs4java

Automatically exported from code.google.com/p/nativelibs4java
0 stars 0 forks source link

Add support to BridJ for GNU linker (ld) scripts #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On some versions of linux, eg Ubuntu and Debian, some libraries are not 
implemented as ELF files but are references by linker scripts.

Whilst it is possible to work round this, eg by setting bridj.<libname>.lib, 
some support for linked scripts would be preferable.

Options are:-
(a) Parse the linker script;
(b) Use ld on linux (might be hard to do)
(c) Use a simple search policy - most linker scripts simply reference the 
actual .so as the first entry in the group - or just search for .so.*, and load 
the highest, with respect on *nix to the FHS (eg /lib vs /usr/lib)
(d) Allow the user to specify the value N in .so.N for a given uname combination

A sample linker script from Ubuntu 10.04 is attached.

Original issue reported on code.google.com by raphael....@gtempaccount.com on 29 Mar 2011 at 9:42

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, that should be bridj.<libname>.library

If doing this in code, then it needs to execute before any libraries are 
registered - which can be automatic, eg if using BridJ.sizeOf(Class<T>), which, 
if used to assign a static final variable, can have the side effect 
(reasonably) of registering the library, potentially before any system 
properties are changed or BridJ.register() is called.

Original comment by raphael....@gtempaccount.com on 29 Mar 2011 at 9:50

GoogleCodeExporter commented 9 years ago
Hi,

This is a duplicate of issue #61.
Could you confirm it is now fixed ?

Thanks,
Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 7 Apr 2011 at 7:42

GoogleCodeExporter commented 9 years ago
Olivier,

I will do - I'm on a business trip until 18th April and will test on return
when I've got access to a linux server.

Raph

Raphael Cohn
Managing Director
raphael.cohn@StormMQ.com
StormMQ Limited

UK Office:
Gateshead int'l Business Centre, Mulgrave Terrace, Gateshead, NE8 1AN,
United Kingdom
Telephone: +44 845 3712 567

Registered office:
78 Broomfield Road, Chelmsford, Essex, CM1 1SS, United Kingdom
StormMQ Limited is Registered in England and Wales under Company Number
07175657
StormMQ.com

Original comment by raphael....@gtempaccount.com on 8 Apr 2011 at 8:49