You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mark Thomas <ma...@apache.org> on 2023/02/08 15:45:00 UTC

[VOTE] Release Apache Tomcat Native 2.0.3

The key differences of version 2.0.3 compared to 2.0.2 are:

- The windows binaries in this release have been built with OpenSSL
   3.0.8 and APR 1.7.2

The 2.0.x branch is primarily intended for use with Tomcat 10.1.x but 
can be used with earlier versions as long as the APR/native connector is 
not used.

The proposed release artefacts can be found at [1],
and the build was done using tag [2].

The Apache Tomcat Native 2.0.3 release is
  [ ] Stable, go ahead and release
  [ ] Broken because of ...

Thanks,

Mark


[1]
https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/2.0.3
[2] 
https://gitbox.apache.org/repos/asf?p=tomcat-native.git;a=commit;h=2b617703217b2f94fc51afc0ad30e325f69853a2

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Rémy Maucherat <re...@apache.org>.
On Wed, Feb 8, 2023 at 4:46 PM Mark Thomas <ma...@apache.org> wrote:
>
> The key differences of version 2.0.3 compared to 2.0.2 are:
>
> - The windows binaries in this release have been built with OpenSSL
>    3.0.8 and APR 1.7.2
>
> The 2.0.x branch is primarily intended for use with Tomcat 10.1.x but
> can be used with earlier versions as long as the APR/native connector is
> not used.
>
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
>
> The Apache Tomcat Native 2.0.3 release is
>   [X] Stable, go ahead and release
>   [ ] Broken because of ...

Rémy

> Thanks,
>
> Mark
>
>
> [1]
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/2.0.3
> [2]
> https://gitbox.apache.org/repos/asf?p=tomcat-native.git;a=commit;h=2b617703217b2f94fc51afc0ad30e325f69853a2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[VOTE][RESULT] Release Apache Tomcat Native 2.0.3

Posted by Mark Thomas <ma...@apache.org>.
The following votes were cast:

Binding:
+1: remm, markt, schultz

Non-binding:
+1: Dimitris Soumis, Vasileios Mourikis

No other votes were cast.

The vote therefore passes.

Thanks to everyone who contributed to this release.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Mark Thomas <ma...@apache.org>.
On 08/02/2023 15:45, Mark Thomas wrote:
> The Apache Tomcat Native 2.0.3 release is
>   [X] Stable, go ahead and release
>   [ ] Broken because of ...

Builds on Linux, MacOS (M1) MacOS (Intel) and Windows.

Tomcat 11.0.x tests pass on Windows with pre-built binary.

Tomcat 11.0.x tests pass on Linux, and 2x MacOS with locally built binaries.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE, slightly-off-topic] Release Apache Tomcat Native 2.0.3

Posted by Vasileios Mourikis <vm...@redhat.com>.
ofc:

[vmouriki@localhost native]$ /usr/bin/openssl version
OpenSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec 2021)
[vmouriki@localhost native]$ ./configure --with-apr=/usr/bin/apr-2-config
--with-ssl=/usr/bin
--with-java-home=/usr/lib/jvm/java-17-openjdk-17.0.6.0.10-3.el9_1.x86_64
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2319: 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 2.0.0 detected.
  setting CC to "gcc"
  setting CPP to "gcc -E"
checking JAVA_HOME...
/usr/lib/jvm/java-17-openjdk-17.0.6.0.10-3.el9_1.x86_64
  adding
"-I/usr/lib/jvm/java-17-openjdk-17.0.6.0.10-3.el9_1.x86_64/include" to
TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory...  linux
  adding
"-I/usr/lib/jvm/java-17-openjdk-17.0.6.0.10-3.el9_1.x86_64/include/linux"
to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... /usr/bin
using openssl from /usr/bin/lib and /usr/bin/include
checking OpenSSL library version >= 3.0.0... configure: error: Your version
of OpenSSL is not compatible with this version of tcnative
[vmouriki@localhost native]$ openssl version
OpenSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec 2021)
[vmouriki@localhost native]$


On Mon, Feb 13, 2023 at 11:00 PM Christopher Schultz <
chris@christopherschultz.net> wrote:

> Vasileios,
>
> On 2/13/23 11:17, Vasileios Mourikis wrote:
> > [X] Stable, go ahead and release
> >
> > Note: build was successful with openssl 3.0.8 but not with 3.0.1
>
> Can you post the details of the build failure(s)? Environment, error
> messages, etc.?
>
> -chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Re: [VOTE, slightly-off-topic] Release Apache Tomcat Native 2.0.3

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Vasileios,

On 2/13/23 11:17, Vasileios Mourikis wrote:
> [X] Stable, go ahead and release
> 
> Note: build was successful with openssl 3.0.8 but not with 3.0.1

Can you post the details of the build failure(s)? Environment, error 
messages, etc.?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Vasileios Mourikis <vm...@redhat.com>.
[X] Stable, go ahead and release

Note: build was successful with openssl 3.0.8 but not with 3.0.1

Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Dimitris Soumis <ds...@redhat.com>.
[X] Stable, go ahead and release

On Wed, Feb 8, 2023 at 5:55 PM Mark Thomas <ma...@apache.org> wrote:

> The key differences of version 2.0.3 compared to 2.0.2 are:
>
> - The windows binaries in this release have been built with OpenSSL
>    3.0.8 and APR 1.7.2
>
> The 2.0.x branch is primarily intended for use with Tomcat 10.1.x but
> can be used with earlier versions as long as the APR/native connector is
> not used.
>
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
>
> The Apache Tomcat Native 2.0.3 release is
>   [ ] Stable, go ahead and release
>   [ ] Broken because of ...
>
> Thanks,
>
> Mark
>
>
> [1]
>
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/2.0.3
> [2]
>
> https://gitbox.apache.org/repos/asf?p=tomcat-native.git;a=commit;h=2b617703217b2f94fc51afc0ad30e325f69853a2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Rainer Jung <ra...@kippdata.de>.
Am 10.02.23 um 22:04 schrieb Christopher Schultz:
> 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
>>
>> --installbuilddir
>>
>> --includes
>>
>> --link-libtool --libs
>>
>> --link-ld --libs
>>
>> 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 tried that too and it behaved in the same way.
> 
> But if I instead use the "installed" copy of apr under 
> /usr/local/opt/apr then the configure command does not choke on all of 
> that and I get a usable makefile.

Ah OK, taht could mean, that the one under /usr/local/Cellar/apr/1.7.2 
is just a build tree, and configure does not want a build tree but an 
installed APR. So maybe that's expected and using /usr/local/opt/apr ist 
just right.

> My build is successful with quite a few warnings, mostly about 
> deprecation of stuff related to OpenSSL.

Deprecation warnings currently are still expected. They have not yet 
been fixed but do not harm functionality.

> I also get warnings that my libraries are too new(?):
> 
> ld: warning: dylib (/usr/local/Cellar/openssl@3/3.0.8/lib/libssl.dylib) 
> was built for newer macOS version (13.0) than being linked (11.3)
> ld: warning: dylib (/usr/local/opt/apr/lib/libapr-1.dylib) was built for 
> newer macOS version (13.0) than being linked (11.3)
> ld: warning: dylib 
> (/usr/local/Cellar/openssl@3/3.0.8/lib/libcrypto.dylib) was built for 
> newer macOS version (13.0) than being linked (11.3)

Sorry, no help for these Mac details from me.

> I'll try to get this into a test-harness and run the Tomcat APR tests 
> because there appear to be no tests that accompany the library itself.

Good!

Best regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Christopher Schultz <ch...@christopherschultz.net>.
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
> 
> --installbuilddir
> 
> --includes
> 
> --link-libtool --libs
> 
> --link-ld --libs
> 
> 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 tried that too and it behaved in the same way.

But if I instead use the "installed" copy of apr under 
/usr/local/opt/apr then the configure command does not choke on all of 
that and I get a usable makefile.

My build is successful with quite a few warnings, mostly about 
deprecation of stuff related to OpenSSL.

I also get warnings that my libraries are too new(?):

ld: warning: dylib (/usr/local/Cellar/openssl@3/3.0.8/lib/libssl.dylib) 
was built for newer macOS version (13.0) than being linked (11.3)
ld: warning: dylib (/usr/local/opt/apr/lib/libapr-1.dylib) was built for 
newer macOS version (13.0) than being linked (11.3)
ld: warning: dylib 
(/usr/local/Cellar/openssl@3/3.0.8/lib/libcrypto.dylib) was built for 
newer macOS version (13.0) than being linked (11.3)

I'll try to get this into a test-harness and run the Tomcat APR tests 
because there appear to be no tests that accompany the library itself.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Christopher Schultz <ch...@christopherschultz.net>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Rainer Jung <ra...@kippdata.de>.
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

--installbuilddir

--includes

--link-libtool --libs

--link-ld --libs

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.

HTH

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Mark,

On 2/10/23 14:30, Mark Thomas wrote:
> On 10/02/2023 16:05, Christopher Schultz wrote:
>> Mark,
>>
>> I'm having trouble building on MacOS Ventura.
> 
> I've just tested building on Ventura and don't see that issue on Intel 
> or M1. Everything is up to date (OS, Xcode, APR (homebrew) and OpenSSL 
> (homebrew).
> 
> I can only guess some sort of local config issue. No idea what I am 
> afraid. C build systems are largely a mystery to me.

Yeah, me too. After vanilla Make I'm no help at all.

I don't have an OpenSSL 3 version available on my Debian environment, so 
I won't be able to give you a VOTE on this one, at least not today. I'll 
see if I can get OpenSSL 3 building over the weekend. The old process 
was abysmal. Maybe it's better, now and I can be up and running quickly.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Mark Thomas <ma...@apache.org>.
On 10/02/2023 16:05, Christopher Schultz wrote:
> Mark,
> 
> I'm having trouble building on MacOS Ventura.

I've just tested building on Ventura and don't see that issue on Intel 
or M1. Everything is up to date (OS, Xcode, APR (homebrew) and OpenSSL 
(homebrew).

I can only guess some sort of local config issue. No idea what I am 
afraid. C build systems are largely a mystery to me.

Mark



> 
> 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
> 
> On 2/8/23 10:45, Mark Thomas wrote:
>> The key differences of version 2.0.3 compared to 2.0.2 are:
>>
>> - The windows binaries in this release have been built with OpenSSL
>>    3.0.8 and APR 1.7.2
>>
>> The 2.0.x branch is primarily intended for use with Tomcat 10.1.x but 
>> can be used with earlier versions as long as the APR/native connector 
>> is not used.
>>
>> The proposed release artefacts can be found at [1],
>> and the build was done using tag [2].
>>
>> The Apache Tomcat Native 2.0.3 release is
>>   [ ] Stable, go ahead and release
>>   [ ] Broken because of ...
>>
>> Thanks,
>>
>> Mark
>>
>>
>> [1]
>> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/2.0.3
>> [2] 
>> https://gitbox.apache.org/repos/asf?p=tomcat-native.git;a=commit;h=2b617703217b2f94fc51afc0ad30e325f69853a2
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Christopher Schultz <ch...@christopherschultz.net>.
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

On 2/8/23 10:45, Mark Thomas wrote:
> The key differences of version 2.0.3 compared to 2.0.2 are:
> 
> - The windows binaries in this release have been built with OpenSSL
>    3.0.8 and APR 1.7.2
> 
> The 2.0.x branch is primarily intended for use with Tomcat 10.1.x but 
> can be used with earlier versions as long as the APR/native connector is 
> not used.
> 
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
> 
> The Apache Tomcat Native 2.0.3 release is
>   [ ] Stable, go ahead and release
>   [ ] Broken because of ...
> 
> Thanks,
> 
> Mark
> 
> 
> [1]
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/2.0.3
> [2] 
> https://gitbox.apache.org/repos/asf?p=tomcat-native.git;a=commit;h=2b617703217b2f94fc51afc0ad30e325f69853a2
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [VOTE] Release Apache Tomcat Native 2.0.3

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Mark,

Thanks again for RMing.

On 2/8/23 10:45, Mark Thomas wrote:
> The key differences of version 2.0.3 compared to 2.0.2 are:
> 
> - The windows binaries in this release have been built with OpenSSL
>    3.0.8 and APR 1.7.2
> 
> The 2.0.x branch is primarily intended for use with Tomcat 10.1.x but 
> can be used with earlier versions as long as the APR/native connector is 
> not used.
> 
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
> 
> The Apache Tomcat Native 2.0.3 release is
>   [X] Stable, go ahead and release
>   [ ] Broken because of ...

Compile-tested only on MacOS. The only difference between this version 
and the previous is a bundled version of OpenSSL, so it does not even 
effect these *NIX-style environments.

Thanks,
-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org