Rainer,
On 2/10/23 15:08, Rainer Jung wrote:
Am 10.02.23 um 17:05 schrieb Christopher Schultz:
Mark,
I'm having trouble building on MacOS Ventura.
I downloaded the source tarball file from
https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/2.0.3/source/tomcat-native-2.0.3-src.tar.gz, untarred it, and then ran the following commands:
$ ./configure --with-apr=/usr/local/Cellar/apr/1.7.2/bin/apr-1-config
--with-ssl=/usr/local/Cellar/openssl\@3/3.0.8
checking build system type... x86_64-apple-darwin22.3.0
checking host system type... x86_64-apple-darwin22.3.0
checking target system type... x86_64-apple-darwin22.3.0
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2754: LT_INIT: command not found
checking for working mkdir -p... yes
Tomcat Native Version: 2.0.3
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.7.2 detected.
./configure: line 3138: cd:
/usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/build-1: Not a directory
setting CC to "clang"
setting CPP to "clang -E"
adding
"-I/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home/include" to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory... darwin
adding
"-I/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home/include/darwin" to TCNATIVE_PRIV_INCLUDES
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking for OpenSSL library... /usr/local/Cellar/openssl@3/3.0.8
using openssl from /usr/local/Cellar/openssl@3/3.0.8/lib and
/usr/local/Cellar/openssl@3/3.0.8/include
checking OpenSSL library version >= 3.0.0... ok
adding "-I/usr/local/Cellar/openssl@3/3.0.8/include" to
TCNATIVE_PRIV_INCLUDES
setting TCNATIVE_LDFLAGS to
"-L/usr/local/Cellar/openssl@3/3.0.8/lib -lssl -lcrypto"
setting TCNATIVE_LIBS to ""
setting TCNATIVE_LIBS to "
-L/usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/lib
-lapr-1 -lpthread"
checking for apr_pollset_wakeup in -lapr-1... yes
adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
cp: /apr_rules.mk: No such file or directory
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default commands
$ make
Makefile:46: [redacted]/tomcat-native-2.0.3-src/native/build/rules.mk:
No such file or directory
make: *** No rule to make target
`[redacted]/tomcat-native-2.0.3-src/native/build/rules.mk'. Stop.
The configure command appears to have succeeded but obviously
something didn't work as expected.
-chris
I haven't actually looked at it and no Mac experience, but at least
these lines look wrong:
> ./configure: line 3138: cd:
> /usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/build-1:
> Not a directory
...
> -L/usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/lib
> -lapr-1 -lpthread"
The first should probably something like
"/usr/local/Cellar/apr/1.7.2/build-1" the ath in the second
"/usr/local/Cellar/apr/1.7.2/lib"
Could it be, that your /usr/local/Cellar/apr/1.7.2/bin/apr-1-config is
broken and provides wrong paths as output?
Have a look at calling "/usr/local/Cellar/apr/1.7.2/bin/apr-1-config" with:
--version
$ /usr/local/Cellar/apr/1.7.2/bin/apr-1-config --version
1.7.2
--installbuilddir
$ /usr/local/Cellar/apr/1.7.2/bin/apr-1-config --installbuilddir
/usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/build-1
Looks like that's the culprit.
--includes
$ /usr/local/Cellar/apr/1.7.2/bin/apr-1-config --includes
-I/usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/include/apr-1
That doesn't look much better.
--link-libtool --libs
$ /usr/local/Cellar/apr/1.7.2/bin/apr-1-config --link-libtool --libs
-L/usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/lib
-lapr-1 -lpthread
--link-ld --libs
$ /usr/local/Cellar/apr/1.7.2/bin/apr-1-config --link-ld --libs
-L/usr/local/Cellar/apr/1.7.2/bin/apr-1-config//usr/local/opt/apr/lib
-lapr-1 -lpthread
I run configure with "--with-apr=/usr/local/Cellar/apr/1.7.2" instead of
"--with-apr=/usr/local/Cellar/apr/1.7.2/bin/apr-1-config", but that
should not be the cause of your trouble.
I guess brew had installed an apr-1-config which is very confused.
Do you know how to repair that?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org