Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with java headers on OSX #27

Closed
tinyos-issues opened this issue Dec 21, 2012 · 5 comments
Closed

Fixed issue with java headers on OSX #27

tinyos-issues opened this issue Dec 21, 2012 · 5 comments

Comments

@tinyos-issues
Copy link
Member

Original author: errordeveloper@gmail.com (February 25, 2011 23:08:12)

Please see my patch at:
errordeveloper/tinyos-wmi@1845e4d

Original issue: http://code.google.com/p/tinyos-main/issues/detail?id=24

@tinyos-issues
Copy link
Member Author

From philip.l...@gmail.com on March 02, 2011 23:21:58
Can you please include a description of the problem? This is mostly for bookkeeping and records. URLs to patches isn't a great way to track and maintain a codebase. Thanks!

@tinyos-issues
Copy link
Member Author

From errordeveloper@gmail.com on March 02, 2011 23:47:40
Sure, the problem is described in the comments.
The code in tos-locate-jre had hardcoded path
and the comments suggested that this should be
fixed eventually.

I have found that on the system which I got it's
not working becuase the symlinks are broken.
It is probably a buggy script from Apple that
is trying to symlink to the most current java
but it is somewhat broken the symlinks to 'jni.h'
and other headers.
I also fixed the spelling of proper JNI install
path and found that uname -r returns 10.6.0
instead of 10.6.6 (it is not certain whether
uname -r will return last zero for any OSX
release in the future) and therefore used an
Apple specific sw_vers command with a bit of
awk and sed.
The real headers turn out to be under /Developer/.

Still, in fact the JNI is being installed into
the --prefix= rather then the JNI path, btw.

@tinyos-issues
Copy link
Member Author

From errordeveloper@gmail.com on March 02, 2011 23:49:41
Sure, the problem is described in the comments.
The code in tos-locate-jre had hardcoded path
and the comments suggested that this should be
fixed eventually.

I have found that on the system which I got it's
not working becuase the symlinks are broken.
It is probably a buggy script from Apple that
is trying to symlink to the most current java
but it is somewhat broken the symlinks to 'jni.h'
and other headers.
I also fixed the spelling of proper JNI install
path and found that uname -r returns 10.6.0
instead of 10.6.6 (it is not certain whether
uname -r will return last zero for any OSX
release in the future) and therefore used an
Apple specific sw_vers command with a bit of
awk and sed.
The real headers turn out to be under /Developer/.

Still, in fact the JNI is being installed into
the --prefix= rather then the JNI path, btw.

@tinyos-issues
Copy link
Member Author

From errordeveloper@gmail.com on March 03, 2011 00:31:49
Pardon, I sent two emails by accedent, but
forgot to attach the patch itself.
This was output from git, so I am not sure
about this two lines:

--- a/tools/tinyos/misc/tos-locate-jre
+++ b/tools/tinyos/misc/tos-locate-jre

@tinyos-issues
Copy link
Member Author

From philip.l...@gmail.com on March 22, 2011 21:01:37
Applied the patch. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant