Closed czanik closed 7 years ago
Out of curiosity, can you try running configure
with bash, instead of the default shell on FreeBSD?
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
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!
It did not change the output.
Ah, you will need to regenerate configure too.
Outdated, closed on syslog-ng side.
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