Opened 8 months ago
Last modified 8 months ago
#69491 assigned defect
tomcat-native @1.2.35: compilation/build issues for tomcat-native on MacOS Sonoma 14.4, build failure — at Initial Version
Reported by: | amacbride | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.1 |
Keywords: | sonoma | Cc: | mattbishop (Matt Bishop) |
Port: | tomcat-native |
Description
There appear to be two issues: a filename-handling issue, and not looking for a MacPorts-installed SDK when no other JDKs are installed.
Issue #1: build script not handling a space in a directory name ("Internet Plug-Ins"):
:info:configure Tomcat Native Version: 1.2.35 :info:configure checking for chosen layout... tcnative :info:configure checking for APR... yes :info:configure configure: APR 1.7.4 detected. :info:configure setting CPP to "/usr/bin/clang -E" :info:configure ./configure: line 3219: test: /Library/Internet: binary operator expected :info:configure adding "-I/Library/Internet" to TCNATIVE_PRIV_INCLUDES :info:configure adding "Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/include" to TCNATIVE_PRIV_INCLUDES :info:configure checking for JDK os include directory... ./configure: line 3267: test: /Library/Internet: binary operator :info:configure Cannot find jni_md.h in /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/
So it knows the directory it's looking for, but the include directives are apparently not quoted. ("-I/Library/Internet")
Issue #2 is that this would fail anyway because the JVM is no longer shipped by default, and the build script doesn't look for a MacPorts-installed JDK under /opt (in this case, the file in question is there, but just not found).
/opt/local/Library/Java/JavaVirtualMachines/openjdk11-zulu/Contents/Home/include/darwin/jni_md.h
Xcode 15.2 Build version 15C500b
Note: See
TracTickets for help on using
tickets.
Build log