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

java destination on FreeBSD #101

Closed
czanik opened this issue Dec 13, 2014 · 6 comments
Closed

java destination on FreeBSD #101

czanik opened this issue Dec 13, 2014 · 6 comments

Comments

@czanik
Copy link
Member

czanik commented Dec 13, 2014

Tested on FreeBSD 10.1 with openjdk 1.7 and 1.8. The results are the same:

Already the output of configure looks strange:

checking for JAVA_VERSION... test: deprecated
"1.7.0_71"
1: bad number
test: deprecated
"1.7.0_71"
1: bad number
deprecated
"1.7.0_71"
1.7

And compilation fails:

GEN modules/java/java-grammar.y
YACC modules/java/java-grammar.c
/usr/local/bin/javavm -d ./modules/java ./modules/java/SyslogNgClassLoader.java
javavm: warning: The use of 'javavm' as a synonym for 'java' is deprecated
Unrecognized option: -d
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Makefile:2919: recipe for target
'modules/java/org/syslog_ng/SyslogNgDestination.class' failed
gmake[1]: *** [modules/java/org/syslog_ng/SyslogNgDestination.class] Error 1
gmake[1]: Leaving directory
'/root/syslog-ng-incubator/work/syslog-ng-incubator-0.4.0'
*** Error code 1

@algernon
Copy link
Contributor

Out of curiosity, can you try running configure with bash, instead of the default shell on FreeBSD?

@czanik
Copy link
Member Author

czanik commented Dec 13, 2014

The output is slightly different:

checking for JAVA_VERSION... ./configure: line 17213: test: deprecated
"1.8.0_25"
1: integer expression expected
./configure: line 17216: test: deprecated
"1.8.0_25"
1: integer expression expected
deprecated
"1.8.0_25"
1.8

@algernon
Copy link
Contributor

This suggests that the java check is has bashisms, and doesn't deal with some constructs nicely, either.

Can you try adding set -x before line 5 in master/m4/check_java_version.m4 and set +x to line 42, and then rerun configure (with bash still, for now)? The results will be likely long, so paste that onto a paste service (such as paste.debian.net), so that it can be viewed more easily.

Thanks!

@czanik
Copy link
Member Author

czanik commented Dec 13, 2014

It did not change the output.

@algernon
Copy link
Contributor

Ah, you will need to regenerate configure too.

@MrAnno
Copy link
Collaborator

MrAnno commented Jul 28, 2017

Outdated, closed on syslog-ng side.

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

No branches or pull requests

3 participants