On Thu, 30 Aug 2012, Anthony Serravalle wrote:
> Hello Joel,
> I have been trying to compile avian for QNX on ARM using JDK7 (on a Linux
> host), and am running into an issue that 'langinfo.h' is not present on the
> target when trying to compile the java_props_md.c file in the JDK source.
> This seems to be intentional by QNX:
>
>
http://community.qnx.com/sf/discussion/do/listPosts/projects.pkgsrc/discuss
> ion.general.topc1871�
> (it's an old topic from 2008, though perhaps still relevant)
>
> If I hack the JDK source (which I don't really want to do) and remove
> reference to langinfo.h and any referenced functions (nl_langinfo()), I run
> into a number of subsequent problems.
> Any ideas? Or is this not really supported?
Hi Anthony,
You actually got farther than I did when I tried it. My build died on the
first OpenJDK file with a complaint about sys/signal.h missing.
As far as I can tell, nobody has tried porting OpenJDK to QNX yet. You
might want to post to the OpenJDK mailing list to see if anyone's tried it
or wants to help. I've never tried porting OpenJDK to a new platform, so
I have no idea how much work it will be.
Anyway, it's not something I have any interest in, although I'd be happy
to help ensure Avian is compatible if/when there's an upstream port
available.
Depending on the complexity of your app(s), you might consider using
Avian's built-in class library, which should be fully QNX-compatible,
although it's quite limited in scope compared to OpenJDK's library.