[MacPorts] #69491: tomcat-native @1.2.35: compilation/build issues for tomcat-native on MacOS Sonoma 14.4, build failure
MacPorts
noreply at macports.org
Wed Mar 13 11:33:51 UTC 2024
#69491: tomcat-native @1.2.35: compilation/build issues for tomcat-native on MacOS
Sonoma 14.4, build failure
----------------------------+------------------------
Reporter: amacbride | Owner: mattbishop
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords: sonoma
Port: tomcat-native |
----------------------------+------------------------
Changes (by ryandesign):
* owner: (none) => mattbishop
* keywords: jdk tomcat tomcat-native build => sonoma
* status: new => assigned
* cc: mattbishop (removed)
Old 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
New 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
--
--
Ticket URL: <https://trac.macports.org/ticket/69491#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list