You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Darryl Baker <da...@northwestern.edu> on 2025/02/03 18:17:23 UTC
Building tomcat-native on RHEL 8
Would someone please point me to the documentation on building tomcat-native on RHEL 8 using the Red Hat supplied APR package?
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.baker@northwestern.edu<ma...@northwestern.edu>
(847) 467-6674<tel:+18474676674>
Re: Building tomcat-native on RHEL 8
Posted by Rainer Jung <ra...@kippdata.de>.
apr-util(-*) RPMs should not be needed.
To the OP: please be more explicit in posting your problems, like how do
you run configure, what is the unexpected configure output etc.
Thanks,
Rainer
Am 03.02.25 um 23:13 schrieb Evan Rempel:
> You don't need the source RPM, but you will need the development RPMs. I have not confirmed all of these are actually needed, and there are probably even more depending on what build environment you are using. We produce RPMs, so we need lots of other RPM building tools.
>
> apr
> apr-devel
> apr-util
> apr-util-devel
> apr-util-openssl
> openssl-devel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Building tomcat-native on RHEL 8
Posted by Evan Rempel <er...@uvic.ca>.
You don't need the source RPM, but you will need the development RPMs. I have not confirmed all of these are actually needed, and there are probably even more depending on what build environment you are using. We produce RPMs, so we need lots of other RPM building tools.
apr
apr-devel
apr-util
apr-util-devel
apr-util-openssl
openssl-devel
--
Evan
________________________________
From: Darryl Baker <da...@northwestern.edu>
Sent: February 3, 2025 1:30 PM
To: Tomcat Users List <us...@tomcat.apache.org>
Subject: Re: Building tomcat-native on RHEL 8
I knew where the general direction are already. The build fails looking for the source for APR. For RHEL 8 is mandatory to download the APR source rpm? Are the any other gotchas? I can't be the first to need the Tomcat-native for RHEL 8.
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
Re: Building tomcat-native on RHEL 8
Posted by Darryl Baker <da...@northwestern.edu>.
I knew where the general direction are already. The build fails looking for the source for APR. For RHEL 8 is mandatory to download the APR source rpm? Are the any other gotchas? I can't be the first to need the Tomcat-native for RHEL 8.
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.baker@northwestern.edu <ma...@northwestern.edu>
(847) 467-6674 <tel:+18474676674>
On 2/3/25, 1:13 PM, "Evan Rempel" <erempel@uvic.ca <ma...@uvic.ca>> wrote:
https://tomcat.apache.org/native-doc/index.html <https://tomcat.apache.org/native-doc/index.html>
--
Evan
________________________________
From: Darryl Baker <darryl.baker@northwestern.edu <ma...@northwestern.edu>>
Sent: February 3, 2025 10:17 AM
To: Tomcat Users List <users@tomcat.apache.org <ma...@tomcat.apache.org>>
Subject: Building tomcat-native on RHEL 8
[You don't often get email from darryl.baker@northwestern.edu <ma...@northwestern.edu>. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification <https://aka.ms/LearnAboutSenderIdentification> ]
Would someone please point me to the documentation on building tomcat-native on RHEL 8 using the Red Hat supplied APR package?
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.baker@northwestern.edu <ma...@northwestern.edu><mailto:darryl.baker@northwestern.edu <ma...@northwestern.edu>>
(847) 467-6674<tel:+18474676674>
Re: Building tomcat-native on RHEL 8
Posted by Evan Rempel <er...@uvic.ca>.
https://tomcat.apache.org/native-doc/index.html
--
Evan
________________________________
From: Darryl Baker <da...@northwestern.edu>
Sent: February 3, 2025 10:17 AM
To: Tomcat Users List <us...@tomcat.apache.org>
Subject: Building tomcat-native on RHEL 8
[You don't often get email from darryl.baker@northwestern.edu. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Would someone please point me to the documentation on building tomcat-native on RHEL 8 using the Red Hat supplied APR package?
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.baker@northwestern.edu<ma...@northwestern.edu>
(847) 467-6674<tel:+18474676674>
Re: Building tomcat-native on RHEL 8
Posted by Dimitris Soumis <ds...@apache.org>.
Rainer, your mail has not popped up when I sent mine.
Thanks for the detailed description :)
Kind regards,
Dimitris
On Thu, Feb 6, 2025 at 9:14 PM Dimitris Soumis <ds...@apache.org> wrote:
>
>
> On Thu, Feb 6, 2025 at 7:30 PM Darryl Baker <da...@northwestern.edu>
> wrote:
>
>> My question is why is tomcat-native dependent on APR at all? Could it be
>> built without that dependency?
>>
> Tomcat Native relies on the Apache Portable Runtime (APR) to bridge the
> gap between Tomcat, and native OS capabilities. APR provides APIs that map
> to the OS. Tomcat Native is able to provide the performance increases due
> to apr bypassing Java’s virtualized layer. So no, tomcat-native can not be
> built without that dependency.
>
>> Can I build tomcat native on Rocky Linux? Then could I use it on Red Hat?
>> Has anyone tried that?
>>
> The building process of tomcat native is OS agnostic. As long as the
> required dependencies are provided to the building process, everything
> should work flawlessly.
> However, for the libraries produced in one system to work with another
> system depends on factors such as the other system having equal various
> library versions like glibc or OpenSSL, equal cpu architecture etc.
>
>> Darryl Baker, GSEC, GCLD (he/him/his)
>> Sr. System Administrator
>> Distributed Application Platform Services
>> Northwestern University
>> 4th Floor
>> 2020 Ridge Avenue
>> Evanston, IL 60208-0801
>> darryl.baker@northwestern.edu <ma...@northwestern.edu>
>> (847) 467-6674 <tel:+18474676674>
>>
>>
>>
>>
>> On 2/6/25, 4:26 AM, "Dimitris Soumis" <dsoumis@apache.org <mailto:
>> dsoumis@apache.org>> wrote:
>>
>>
>> On Wed, Feb 5, 2025 at 7:58 PM Darryl Baker <
>> darryl.baker@northwestern.edu <ma...@northwestern.edu>>
>> wrote:
>>
>>
>> > I could if there was one. Red Hat stopped having Tomcat in the OS
>> > distribution and is now part of the JBoss product the University decided
>> > not to buy.
>> >
>> Tomcat is available in the OS distribution other than the Jboss web server
>> product. Tomcat-native is not.
>>
>>
>> > [root@XXX] tomcat-native-2.0.8-src]# yum search tomcat-native
>> > Updating Subscription Management repositories.
>> > No matches found.
>> > [root@XXX] tomcat-native-2.0.8-src]#
>> >
>> > Darryl Baker, GSEC, GCLD (he/him/his)
>> > Sr. System Administrator
>> > Distributed Application Platform Services
>> > Northwestern University
>> >
>> >
>> >
>> >
>> > On 2/4/25, 4:21 PM, "Christopher Schultz" <chris@christopherschultz.net
>> <ma...@christopherschultz.net>
>> > <mailto:chris@christopherschultz.net <mailto:
>> chris@christopherschultz.net>>> wrote:
>> >
>> >
>> > Darryl,
>> >
>> >
>> > On 2/3/25 1:17 PM, Darryl Baker wrote:
>> > > Would someone please point me to the documentation on building
>> > tomcat-native on RHEL 8 using the Red Hat supplied APR package?
>> >
>> >
>> > Do you need to build from source, or can you use the RHEL binary?
>> >
>> >
>> > $ sudo yum search tomcat-native
>> > ===== Name Exactly Matched: tomcat-native =====
>> > tomcat-native.x86_64 : Tomcat native library
>> >
>> >
>> > If you truly need to build, we can probably update the documentation to
>> > indicate which popular packages would be necessary before building from
>> > source.
>> >
>> >
>> > -chris
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <mailto:
>> users-unsubscribe@tomcat.apache.org> <mailto:
>> > users-unsubscribe@tomcat.apache.org <mailto:
>> users-unsubscribe@tomcat.apache.org>>
>> > For additional commands, e-mail: users-help@tomcat.apache.org <mailto:
>> users-help@tomcat.apache.org> <mailto:
>> > users-help@tomcat.apache.org <ma...@tomcat.apache.org>>
>> >
>> >
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <mailto:
>> users-unsubscribe@tomcat.apache.org>
>> > For additional commands, e-mail: users-help@tomcat.apache.org <mailto:
>> users-help@tomcat.apache.org>
>> >
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
Re: Building tomcat-native on RHEL 8
Posted by Dimitris Soumis <ds...@apache.org>.
On Thu, Feb 6, 2025 at 7:30 PM Darryl Baker <da...@northwestern.edu>
wrote:
> My question is why is tomcat-native dependent on APR at all? Could it be
> built without that dependency?
>
Tomcat Native relies on the Apache Portable Runtime (APR) to bridge the gap
between Tomcat, and native OS capabilities. APR provides APIs that map to
the OS. Tomcat Native is able to provide the performance increases due to
apr bypassing Java’s virtualized layer. So no, tomcat-native can not be
built without that dependency.
> Can I build tomcat native on Rocky Linux? Then could I use it on Red Hat?
> Has anyone tried that?
>
The building process of tomcat native is OS agnostic. As long as the
required dependencies are provided to the building process, everything
should work flawlessly.
However, for the libraries produced in one system to work with another
system depends on factors such as the other system having equal various
library versions like glibc or OpenSSL, equal cpu architecture etc.
> Darryl Baker, GSEC, GCLD (he/him/his)
> Sr. System Administrator
> Distributed Application Platform Services
> Northwestern University
> 4th Floor
> 2020 Ridge Avenue
> Evanston, IL 60208-0801
> darryl.baker@northwestern.edu <ma...@northwestern.edu>
> (847) 467-6674 <tel:+18474676674>
>
>
>
>
> On 2/6/25, 4:26 AM, "Dimitris Soumis" <dsoumis@apache.org <mailto:
> dsoumis@apache.org>> wrote:
>
>
> On Wed, Feb 5, 2025 at 7:58 PM Darryl Baker <darryl.baker@northwestern.edu
> <ma...@northwestern.edu>>
> wrote:
>
>
> > I could if there was one. Red Hat stopped having Tomcat in the OS
> > distribution and is now part of the JBoss product the University decided
> > not to buy.
> >
> Tomcat is available in the OS distribution other than the Jboss web server
> product. Tomcat-native is not.
>
>
> > [root@XXX] tomcat-native-2.0.8-src]# yum search tomcat-native
> > Updating Subscription Management repositories.
> > No matches found.
> > [root@XXX] tomcat-native-2.0.8-src]#
> >
> > Darryl Baker, GSEC, GCLD (he/him/his)
> > Sr. System Administrator
> > Distributed Application Platform Services
> > Northwestern University
> >
> >
> >
> >
> > On 2/4/25, 4:21 PM, "Christopher Schultz" <chris@christopherschultz.net
> <ma...@christopherschultz.net>
> > <mailto:chris@christopherschultz.net <mailto:
> chris@christopherschultz.net>>> wrote:
> >
> >
> > Darryl,
> >
> >
> > On 2/3/25 1:17 PM, Darryl Baker wrote:
> > > Would someone please point me to the documentation on building
> > tomcat-native on RHEL 8 using the Red Hat supplied APR package?
> >
> >
> > Do you need to build from source, or can you use the RHEL binary?
> >
> >
> > $ sudo yum search tomcat-native
> > ===== Name Exactly Matched: tomcat-native =====
> > tomcat-native.x86_64 : Tomcat native library
> >
> >
> > If you truly need to build, we can probably update the documentation to
> > indicate which popular packages would be necessary before building from
> > source.
> >
> >
> > -chris
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <mailto:
> users-unsubscribe@tomcat.apache.org> <mailto:
> > users-unsubscribe@tomcat.apache.org <mailto:
> users-unsubscribe@tomcat.apache.org>>
> > For additional commands, e-mail: users-help@tomcat.apache.org <mailto:
> users-help@tomcat.apache.org> <mailto:
> > users-help@tomcat.apache.org <ma...@tomcat.apache.org>>
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <mailto:
> users-unsubscribe@tomcat.apache.org>
> > For additional commands, e-mail: users-help@tomcat.apache.org <mailto:
> users-help@tomcat.apache.org>
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Building tomcat-native on RHEL 8
Posted by Rainer Jung <ra...@kippdata.de>.
Am 06.02.25 um 18:18 schrieb Darryl Baker:
> My question is why is tomcat-native dependent on APR at all? Could it
be built without that dependency?
The APR library originates in the Apache httpd project. The project
decided long ago, to split out some very basic functionality into a
separate library trying to encapsulate OS specific code in it. This
library is called APR (Apache Portable Runtime) or libapr. A second one
is celled APR Util (APR Utilities or libapr-util) which contains higher
level code but is not relevant to tcnative.
The tcnative library contains functionality that hooks into Tomcat and
uses some the APR library as an implementation of its lower level
functionality.
In order to use tcnative (confusingly sometimes also called the APR
connector) inside Tomcat you need both, the tcnative library and the APR
library.
And to build tcnative yourself you also need the APR library and its
header files (the devel package) plus OpenSSL and its header files.
Since APR is much older and also needed by the Apache httpd web server,
most Linux distributions provide the APR library binaries (and header
files) in the form of a distribution package. So you do not need to
build this by yourself, just install it.
Many distributions do not provide packages for tcnative, so you do need
to build it yourself.
> Can I build tomcat native on Rocky Linux? Then could I use it on Red
Hat? Has anyone tried that?
Currently RHEL and Rocky are binary compatible assuming that you are
using the same versions of them. You can build your binary on any of
those and use it on the other one.
Best regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Building tomcat-native on RHEL 8
Posted by Darryl Baker <da...@northwestern.edu>.
My question is why is tomcat-native dependent on APR at all? Could it be built without that dependency?
Can I build tomcat native on Rocky Linux? Then could I use it on Red Hat? Has anyone tried that?
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.baker@northwestern.edu <ma...@northwestern.edu>
(847) 467-6674 <tel:+18474676674>
On 2/6/25, 4:26 AM, "Dimitris Soumis" <dsoumis@apache.org <ma...@apache.org>> wrote:
On Wed, Feb 5, 2025 at 7:58 PM Darryl Baker <darryl.baker@northwestern.edu <ma...@northwestern.edu>>
wrote:
> I could if there was one. Red Hat stopped having Tomcat in the OS
> distribution and is now part of the JBoss product the University decided
> not to buy.
>
Tomcat is available in the OS distribution other than the Jboss web server
product. Tomcat-native is not.
> [root@XXX] tomcat-native-2.0.8-src]# yum search tomcat-native
> Updating Subscription Management repositories.
> No matches found.
> [root@XXX] tomcat-native-2.0.8-src]#
>
> Darryl Baker, GSEC, GCLD (he/him/his)
> Sr. System Administrator
> Distributed Application Platform Services
> Northwestern University
>
>
>
>
> On 2/4/25, 4:21 PM, "Christopher Schultz" <chris@christopherschultz.net <ma...@christopherschultz.net>
> <mailto:chris@christopherschultz.net <ma...@christopherschultz.net>>> wrote:
>
>
> Darryl,
>
>
> On 2/3/25 1:17 PM, Darryl Baker wrote:
> > Would someone please point me to the documentation on building
> tomcat-native on RHEL 8 using the Red Hat supplied APR package?
>
>
> Do you need to build from source, or can you use the RHEL binary?
>
>
> $ sudo yum search tomcat-native
> ===== Name Exactly Matched: tomcat-native =====
> tomcat-native.x86_64 : Tomcat native library
>
>
> If you truly need to build, we can probably update the documentation to
> indicate which popular packages would be necessary before building from
> source.
>
>
> -chris
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org> <mailto:
> users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org>>
> For additional commands, e-mail: users-help@tomcat.apache.org <ma...@tomcat.apache.org> <mailto:
> users-help@tomcat.apache.org <ma...@tomcat.apache.org>>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org <ma...@tomcat.apache.org>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Building tomcat-native on RHEL 8
Posted by Dimitris Soumis <ds...@apache.org>.
On Wed, Feb 5, 2025 at 7:58 PM Darryl Baker <da...@northwestern.edu>
wrote:
> I could if there was one. Red Hat stopped having Tomcat in the OS
> distribution and is now part of the JBoss product the University decided
> not to buy.
>
Tomcat is available in the OS distribution other than the Jboss web server
product. Tomcat-native is not.
> [root@XXX] tomcat-native-2.0.8-src]# yum search tomcat-native
> Updating Subscription Management repositories.
> No matches found.
> [root@XXX] tomcat-native-2.0.8-src]#
>
> Darryl Baker, GSEC, GCLD (he/him/his)
> Sr. System Administrator
> Distributed Application Platform Services
> Northwestern University
>
>
>
>
> On 2/4/25, 4:21 PM, "Christopher Schultz" <chris@christopherschultz.net
> <ma...@christopherschultz.net>> wrote:
>
>
> Darryl,
>
>
> On 2/3/25 1:17 PM, Darryl Baker wrote:
> > Would someone please point me to the documentation on building
> tomcat-native on RHEL 8 using the Red Hat supplied APR package?
>
>
> Do you need to build from source, or can you use the RHEL binary?
>
>
> $ sudo yum search tomcat-native
> ===== Name Exactly Matched: tomcat-native =====
> tomcat-native.x86_64 : Tomcat native library
>
>
> If you truly need to build, we can probably update the documentation to
> indicate which popular packages would be necessary before building from
> source.
>
>
> -chris
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <mailto:
> users-unsubscribe@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org <mailto:
> users-help@tomcat.apache.org>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Building tomcat-native on RHEL 8
Posted by Darryl Baker <da...@northwestern.edu>.
I could if there was one. Red Hat stopped having Tomcat in the OS distribution and is now part of the JBoss product the University decided not to buy.
[root@XXX] tomcat-native-2.0.8-src]# yum search tomcat-native
Updating Subscription Management repositories.
No matches found.
[root@XXX] tomcat-native-2.0.8-src]#
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
On 2/4/25, 4:21 PM, "Christopher Schultz" <chris@christopherschultz.net <ma...@christopherschultz.net>> wrote:
Darryl,
On 2/3/25 1:17 PM, Darryl Baker wrote:
> Would someone please point me to the documentation on building tomcat-native on RHEL 8 using the Red Hat supplied APR package?
Do you need to build from source, or can you use the RHEL binary?
$ sudo yum search tomcat-native
===== Name Exactly Matched: tomcat-native =====
tomcat-native.x86_64 : Tomcat native library
If you truly need to build, we can probably update the documentation to
indicate which popular packages would be necessary before building from
source.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org>
For additional commands, e-mail: users-help@tomcat.apache.org <ma...@tomcat.apache.org>
Re: Building tomcat-native on RHEL 8
Posted by Evan Rempel <er...@uvic.ca>.
I think you are confusing the EPEL8 packages. Redhat does not provide a tomcat-native package.
The challenge with EPEL is that the packages are often quite old.
tomcat-native-1.2.35 (Aug 2022) where the latest release of 1.x is 1.3.1
Same is true for the EPEL8 tomcat packages
tomcat-9.0.65 (july 2022) where the latest tomcat 9 is 9.0.98
EPEL8 does not even have tomcat 10
--
Evan
________________________________
From: Christopher Schultz <ch...@christopherschultz.net>
Sent: February 4, 2025 2:18 PM
To: users@tomcat.apache.org <us...@tomcat.apache.org>
Subject: Re: Building tomcat-native on RHEL 8
Darryl,
On 2/3/25 1:17 PM, Darryl Baker wrote:
> Would someone please point me to the documentation on building tomcat-native on RHEL 8 using the Red Hat supplied APR package?
Do you need to build from source, or can you use the RHEL binary?
$ sudo yum search tomcat-native
===== Name Exactly Matched: tomcat-native =====
tomcat-native.x86_64 : Tomcat native library
If you truly need to build, we can probably update the documentation to
indicate which popular packages would be necessary before building from
source.
-chris
Re: Building tomcat-native on RHEL 8
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Darryl,
On 2/5/25 7:28 PM, Darryl Baker wrote:
> Trying to build 1.3.1 I did the fit manipulations as suggested (I know very little about git) and I get
> [root@evfediamdv1 tomcat-native-1.3.1-src]# ./jnirelease.sh -f --with-apr=/root/rpmbuild/SOURCES/apr-1.6.3 --ver=1.3.1
I think jnirelease.sh is really only to support release managers
building official releases.
You should be using the build process documented in native/BUILDING
which boils down to:
$ ./configure [options]
$ make
-chris
> Using apr source from: `/root/rpmbuild/SOURCES/apr-1.6.3'
> Using: /bin/elinks -dump -dump-width 80 -dump-charset iso-8859-1 -no-numbering -no-references -no-home ...
> Using /bin/perl
> Using GIT repo : `https://gitbox.apache.org/repos/asf/tomcat-native.git`
> Using version : `1.3.1`
> HEAD is now at 0d6da8c122 Tag Tomcat Native 1.3.1
> Fetching tcjava
> WARNING: git subtree is not up to date with
> https://gitbox.apache.org/repos/asf/tomcat.git
> Either correct now by running
> 'git checkout 1.3.x'
> 'git rm -rf java/org/apache/tomcat/jni'
> 'git read-tree --prefix=java/org/apache/tomcat/jni/ -u tcjava/9.0.x:java/org/apache/tomcat/jni'
> 'git commit'
> or run this script with -f (force)
> FORCED run chosen
> #define TCN_IS_DEV_VERSION 0
> Buildfile: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/build.xml
>
> build-prepare:
> [mkdir] Created dir: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build
> [mkdir] Created dir: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
>
> build-static:
> [mkdir] Created dir: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
> [copy] Copying 13 files to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
> [xslt] Transforming into /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous
> [xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/changelog.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/changelog.html
> [xslt] Loading stylesheet /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
> [xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/tls-renegotiation.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/tls-renegotiation.html
> [xslt] Transforming into /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news
> [xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/news/2024.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news/2024.html
> [xslt] Loading stylesheet /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
>
> build-main:
> [xslt] Transforming into /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
> [xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/index.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/index.html
> [xslt] Loading stylesheet /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>
> Looking for apr source in /root/rpmbuild/SOURCES/apr-1.6.3
> Creating configure ...
> Generating 'make' outputs ...
> Traceback (most recent call last):
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 230, in <module>
> main()
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 47, in main
> headers = get_files(parser.get('options', 'headers'))
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 223, in get_files
> for pat in string.split(patterns):
> AttributeError: module 'string' has no attribute 'split'
> Creating build-outputs.mk failed
> [root@evfediamdv1 tomcat-native-1.3.1-src]#
>
> Darryl Baker, GSEC, GCLD (he/him/his)
> Sr. System Administrator
> Distributed Application Platform Services
> Northwestern University
> 4th Floor
> 2020 Ridge Avenue
> Evanston, IL 60208-0801
> darryl.baker@northwestern.edu <ma...@northwestern.edu>
> (847) 467-6674 <tel:+18474676674>
>
>
>
>
> On 2/4/25, 5:00 PM, "Dimitris Soumis" <dsoumis@apache.org <ma...@apache.org>> wrote:
>
>
> The latest available APR devel package on RHEL 8 is version 1.6.3. (i.e
> apr-devel-1.6.3-12.el8.x86_64)
>
>
> If you attempt to build *tomcat-native 2.0.8*, you will encounter the
> following error:
>
>
> configure: error: Found APR 1.6.3. You need version 1.7.0 or newer
>> installed.
>>
>
>
> However, *tomcat-native 1.3.1* is compatible with APR 1.6.3 and should be
> built without issues.
>
>
> For tomcat-native 2.0.8, since the APR version provided by the distribution
> is obsolete, your only option would be to build a static version of APR
> 1.7.0 or later to meet the requirement.
>
>
> There is no tomcat-native package available for RHEL 8.
> Kind regards,
> Dimitris
>
>
> On Wed, Feb 5, 2025 at 12:27 AM Christopher Schultz <
> chris@christopherschultz.net <ma...@christopherschultz.net>> wrote:
>
>
>> Darryl,
>>
>> On 2/3/25 1:17 PM, Darryl Baker wrote:
>>> Would someone please point me to the documentation on building
>> tomcat-native on RHEL 8 using the Red Hat supplied APR package?
>>
>> Do you need to build from source, or can you use the RHEL binary?
>>
>> $ sudo yum search tomcat-native
>> ===== Name Exactly Matched: tomcat-native =====
>> tomcat-native.x86_64 : Tomcat native library
>>
>> If you truly need to build, we can probably update the documentation to
>> indicate which popular packages would be necessary before building from
>> source.
>>
>> -chris
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org>
>> For additional commands, e-mail: users-help@tomcat.apache.org <ma...@tomcat.apache.org>
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Building tomcat-native on RHEL 8
Posted by Darryl Baker <da...@northwestern.edu>.
Thank you.
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.baker@northwestern.edu <ma...@northwestern.edu>
(847) 467-6674 <tel:+18474676674>
On 2/6/25, 4:35 AM, "Dimitris Soumis" <dsoumis@apache.org <ma...@apache.org>> wrote:
I will try to provide you with a step-by-step guide for a RHEL 8 vanilla
installation. Please feel free to tweak according to your needs.
1) Make sure the required packages are installed:
$ *dnf install apr-devel openssl-devel java-11-openjdk-devel*
2) Fetch the tomcat-native from the official site
$ *wget
https://dlcdn.apache.org/tomcat/tomcat-connectors/native/1.3.1/source/tomcat-native-1.3.1-src.tar.gz <https://dlcdn.apache.org/tomcat/tomcat-connectors/native/1.3.1/source/tomcat-native-1.3.1-src.tar.gz>
<https://dlcdn.apache.org/tomcat/tomcat-connectors/native/1.3.1/source/tomcat-native-1.3.1-src.tar.gz> <https://dlcdn.apache.org/tomcat/tomcat-connectors/native/1.3.1/source/tomcat-native-1.3.1-src.tar.gz>>*
(Optional but recommended: Compare the hashes found at
https://tomcat.apache.org/download-native.cgi <https://tomcat.apache.org/download-native.cgi>)
3) Extract the compressed file and move to the native directory:
$ *tar -xvf tomcat-native-1.3.1-src.tar.gz && cd
tomcat-native-1.3.1-src/native/*
4) Run the configuration script:
$ *./configure --with-java-home=$(dirname $(dirname $(readlink $(readlink
$(which javac)))))*
(You can simply replace
`--with-java-home=/usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.x86_64` .
The command above conveniently detects the relevant path.)
The logs will be something like the following:
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
checking for working mkdir -p... yes
Tomcat Native Version: 1.3.1
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.6.3 detected.
setting CC to "gcc"
setting CPP to "gcc -E"
checking JAVA_HOME... /usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.x86_64
adding "-I/usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.x86_64/include"
to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory... linux
adding
"-I/usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for OpenSSL library... using openssl from /usr/lib64 and
/usr/include
checking OpenSSL library version >= 1.1.1... ok
checking for OpenSSL DSA support... yes
setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
adding "-DHAVE_OPENSSL" to CFLAGS
setting TCNATIVE_LIBS to ""
setting TCNATIVE_LIBS to " /usr/lib64/libapr-1.la -lpthread -ldl"
adding "-DTCNATIVE_LINUX" to CFLAGS
checking for apr_pollset_wakeup in -lapr-1... yes
adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default commands
You can tweak the configure script at your needs. By running `*./configure
--help*` you will see all the arguments that can be provided.
5) Build the libraries:
$ *make*
(There is a high probability that you'll face the following error on a rhel
machine : `gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such
file or directory` . This can be resolved by installing $ dnf install
redhat-rpm-config rpm-build . Rerun the make command)
6) Install the libraries:
$ *make install *
7) The default installation path is /usr/local/apr/lib/ (since we have not
provided a value to the --prefix argument of the configure script). By
listing the files, you should see the following:
$ *ls /usr/local/apr/lib/*
libtcnative-1.a libtcnative-1.la libtcnative-1.so libtcnative-1.so.0
libtcnative-1.so.0.3.1
I hope this clears it up for you.
Kind regards,
Dimitris
On Thu, Feb 6, 2025 at 2:39 AM Darryl Baker <darryl.baker@northwestern.edu <ma...@northwestern.edu>>
wrote:
> Trying to build 1.3.1 I did the fit manipulations as suggested (I know
> very little about git) and I get
> [root@evfediamdv1 tomcat-native-1.3.1-src]# ./jnirelease.sh -f
> --with-apr=/root/rpmbuild/SOURCES/apr-1.6.3 --ver=1.3.1
>
> Using apr source from: `/root/rpmbuild/SOURCES/apr-1.6.3'
> Using: /bin/elinks -dump -dump-width 80 -dump-charset iso-8859-1
> -no-numbering -no-references -no-home ...
> Using /bin/perl
> Using GIT repo : `
> https://gitbox.apache.org/repos/asf/tomcat-native.git <https://gitbox.apache.org/repos/asf/tomcat-native.git>`
> <https://gitbox.apache.org/repos/asf/tomcat-native.git> <https://gitbox.apache.org/repos/asf/tomcat-native.git>>
> Using version : `1.3.1`
> HEAD is now at 0d6da8c122 Tag Tomcat Native 1.3.1
> Fetching tcjava
> WARNING: git subtree is not up to date with
> https://gitbox.apache.org/repos/asf/tomcat.git <https://gitbox.apache.org/repos/asf/tomcat.git>
> Either correct now by running
> 'git checkout 1.3.x'
> 'git rm -rf java/org/apache/tomcat/jni'
> 'git read-tree --prefix=java/org/apache/tomcat/jni/ -u
> tcjava/9.0.x:java/org/apache/tomcat/jni'
> 'git commit'
> or run this script with -f (force)
> FORCED run chosen
> #define TCN_IS_DEV_VERSION 0
> Buildfile:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/build.xml
>
> build-prepare:
> [mkdir] Created dir:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build
> [mkdir] Created dir:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
>
> build-static:
> [mkdir] Created dir:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
> [copy] Copying 13 files to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
> [xslt] Transforming into
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/changelog.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/changelog.html
> [xslt] Loading stylesheet
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/tls-renegotiation.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/tls-renegotiation.html
> [xslt] Transforming into
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/news/2024.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news/2024.html
> [xslt] Loading stylesheet
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
>
> build-main:
> [xslt] Transforming into
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/index.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/index.html
> [xslt] Loading stylesheet
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>
> Looking for apr source in /root/rpmbuild/SOURCES/apr-1.6.3
> Creating configure ...
> Generating 'make' outputs ...
> Traceback (most recent call last):
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 230, in
> <module>
> main()
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 47, in
> main
> headers = get_files(parser.get('options', 'headers'))
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 223, in
> get_files
> for pat in string.split(patterns):
> AttributeError: module 'string' has no attribute 'split'
> Creating build-outputs.mk failed
> [root@evfediamdv1 tomcat-native-1.3.1-src]#
>
> Darryl Baker, GSEC, GCLD (he/him/his)
> Sr. System Administrator
> Distributed Application Platform Services
> Northwestern University
> 4th Floor
> 2020 Ridge Avenue
> Evanston, IL 60208-0801
> darryl.baker@northwestern.edu <ma...@northwestern.edu> <mailto:darryl.baker@northwestern.edu <ma...@northwestern.edu>>
> (847) 467-6674 <tel:+18474676674>
>
>
>
>
> On 2/4/25, 5:00 PM, "Dimitris Soumis" <dsoumis@apache.org <ma...@apache.org> <mailto:
> dsoumis@apache.org <ma...@apache.org>>> wrote:
>
>
> The latest available APR devel package on RHEL 8 is version 1.6.3. (i.e
> apr-devel-1.6.3-12.el8.x86_64)
>
>
> If you attempt to build *tomcat-native 2.0.8*, you will encounter the
> following error:
>
>
> configure: error: Found APR 1.6.3. You need version 1.7.0 or newer
> > installed.
> >
>
>
> However, *tomcat-native 1.3.1* is compatible with APR 1.6.3 and should be
> built without issues.
>
>
> For tomcat-native 2.0.8, since the APR version provided by the distribution
> is obsolete, your only option would be to build a static version of APR
> 1.7.0 or later to meet the requirement.
>
>
> There is no tomcat-native package available for RHEL 8.
> Kind regards,
> Dimitris
>
>
> On Wed, Feb 5, 2025 at 12:27 AM Christopher Schultz <
> chris@christopherschultz.net <ma...@christopherschultz.net> <mailto:chris@christopherschultz.net <ma...@christopherschultz.net>>> wrote:
>
>
> > Darryl,
> >
> > On 2/3/25 1:17 PM, Darryl Baker wrote:
> > > Would someone please point me to the documentation on building
> > tomcat-native on RHEL 8 using the Red Hat supplied APR package?
> >
> > Do you need to build from source, or can you use the RHEL binary?
> >
> > $ sudo yum search tomcat-native
> > ===== Name Exactly Matched: tomcat-native =====
> > tomcat-native.x86_64 : Tomcat native library
> >
> > If you truly need to build, we can probably update the documentation to
> > indicate which popular packages would be necessary before building from
> > source.
> >
> > -chris
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org> <mailto:
> users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org>>
> > For additional commands, e-mail: users-help@tomcat.apache.org <ma...@tomcat.apache.org> <mailto:
> users-help@tomcat.apache.org <ma...@tomcat.apache.org>>
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org <ma...@tomcat.apache.org>
>
Re: Building tomcat-native on RHEL 8
Posted by Dimitris Soumis <ds...@apache.org>.
I will try to provide you with a step-by-step guide for a RHEL 8 vanilla
installation. Please feel free to tweak according to your needs.
1) Make sure the required packages are installed:
$ *dnf install apr-devel openssl-devel java-11-openjdk-devel*
2) Fetch the tomcat-native from the official site
$ *wget
https://dlcdn.apache.org/tomcat/tomcat-connectors/native/1.3.1/source/tomcat-native-1.3.1-src.tar.gz
<https://dlcdn.apache.org/tomcat/tomcat-connectors/native/1.3.1/source/tomcat-native-1.3.1-src.tar.gz>*
(Optional but recommended: Compare the hashes found at
https://tomcat.apache.org/download-native.cgi)
3) Extract the compressed file and move to the native directory:
$ *tar -xvf tomcat-native-1.3.1-src.tar.gz && cd
tomcat-native-1.3.1-src/native/*
4) Run the configuration script:
$ *./configure --with-java-home=$(dirname $(dirname $(readlink $(readlink
$(which javac)))))*
(You can simply replace
`--with-java-home=/usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.x86_64` .
The command above conveniently detects the relevant path.)
The logs will be something like the following:
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
checking for working mkdir -p... yes
Tomcat Native Version: 1.3.1
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.6.3 detected.
setting CC to "gcc"
setting CPP to "gcc -E"
checking JAVA_HOME... /usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.x86_64
adding "-I/usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.x86_64/include"
to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory... linux
adding
"-I/usr/lib/jvm/java-11-openjdk-11.0.25.0.9-2.el8.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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for OpenSSL library... using openssl from /usr/lib64 and
/usr/include
checking OpenSSL library version >= 1.1.1... ok
checking for OpenSSL DSA support... yes
setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
adding "-DHAVE_OPENSSL" to CFLAGS
setting TCNATIVE_LIBS to ""
setting TCNATIVE_LIBS to " /usr/lib64/libapr-1.la -lpthread -ldl"
adding "-DTCNATIVE_LINUX" to CFLAGS
checking for apr_pollset_wakeup in -lapr-1... yes
adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default commands
You can tweak the configure script at your needs. By running `*./configure
--help*` you will see all the arguments that can be provided.
5) Build the libraries:
$ *make*
(There is a high probability that you'll face the following error on a rhel
machine : `gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such
file or directory` . This can be resolved by installing $ dnf install
redhat-rpm-config rpm-build . Rerun the make command)
6) Install the libraries:
$ *make install *
7) The default installation path is /usr/local/apr/lib/ (since we have not
provided a value to the --prefix argument of the configure script). By
listing the files, you should see the following:
$ *ls /usr/local/apr/lib/*
libtcnative-1.a libtcnative-1.la libtcnative-1.so libtcnative-1.so.0
libtcnative-1.so.0.3.1
I hope this clears it up for you.
Kind regards,
Dimitris
On Thu, Feb 6, 2025 at 2:39 AM Darryl Baker <da...@northwestern.edu>
wrote:
> Trying to build 1.3.1 I did the fit manipulations as suggested (I know
> very little about git) and I get
> [root@evfediamdv1 tomcat-native-1.3.1-src]# ./jnirelease.sh -f
> --with-apr=/root/rpmbuild/SOURCES/apr-1.6.3 --ver=1.3.1
>
> Using apr source from: `/root/rpmbuild/SOURCES/apr-1.6.3'
> Using: /bin/elinks -dump -dump-width 80 -dump-charset iso-8859-1
> -no-numbering -no-references -no-home ...
> Using /bin/perl
> Using GIT repo : `
> https://gitbox.apache.org/repos/asf/tomcat-native.git`
> <https://gitbox.apache.org/repos/asf/tomcat-native.git>
> Using version : `1.3.1`
> HEAD is now at 0d6da8c122 Tag Tomcat Native 1.3.1
> Fetching tcjava
> WARNING: git subtree is not up to date with
> https://gitbox.apache.org/repos/asf/tomcat.git
> Either correct now by running
> 'git checkout 1.3.x'
> 'git rm -rf java/org/apache/tomcat/jni'
> 'git read-tree --prefix=java/org/apache/tomcat/jni/ -u
> tcjava/9.0.x:java/org/apache/tomcat/jni'
> 'git commit'
> or run this script with -f (force)
> FORCED run chosen
> #define TCN_IS_DEV_VERSION 0
> Buildfile:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/build.xml
>
> build-prepare:
> [mkdir] Created dir:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build
> [mkdir] Created dir:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
>
> build-static:
> [mkdir] Created dir:
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
> [copy] Copying 13 files to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
> [xslt] Transforming into
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/changelog.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/changelog.html
> [xslt] Loading stylesheet
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/tls-renegotiation.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/tls-renegotiation.html
> [xslt] Transforming into
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/news/2024.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news/2024.html
> [xslt] Loading stylesheet
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
>
> build-main:
> [xslt] Transforming into
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
> [xslt] Processing
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/index.xml
> to
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/index.html
> [xslt] Loading stylesheet
> /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>
> Looking for apr source in /root/rpmbuild/SOURCES/apr-1.6.3
> Creating configure ...
> Generating 'make' outputs ...
> Traceback (most recent call last):
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 230, in
> <module>
> main()
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 47, in
> main
> headers = get_files(parser.get('options', 'headers'))
> File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 223, in
> get_files
> for pat in string.split(patterns):
> AttributeError: module 'string' has no attribute 'split'
> Creating build-outputs.mk failed
> [root@evfediamdv1 tomcat-native-1.3.1-src]#
>
> Darryl Baker, GSEC, GCLD (he/him/his)
> Sr. System Administrator
> Distributed Application Platform Services
> Northwestern University
> 4th Floor
> 2020 Ridge Avenue
> Evanston, IL 60208-0801
> darryl.baker@northwestern.edu <ma...@northwestern.edu>
> (847) 467-6674 <tel:+18474676674>
>
>
>
>
> On 2/4/25, 5:00 PM, "Dimitris Soumis" <dsoumis@apache.org <mailto:
> dsoumis@apache.org>> wrote:
>
>
> The latest available APR devel package on RHEL 8 is version 1.6.3. (i.e
> apr-devel-1.6.3-12.el8.x86_64)
>
>
> If you attempt to build *tomcat-native 2.0.8*, you will encounter the
> following error:
>
>
> configure: error: Found APR 1.6.3. You need version 1.7.0 or newer
> > installed.
> >
>
>
> However, *tomcat-native 1.3.1* is compatible with APR 1.6.3 and should be
> built without issues.
>
>
> For tomcat-native 2.0.8, since the APR version provided by the distribution
> is obsolete, your only option would be to build a static version of APR
> 1.7.0 or later to meet the requirement.
>
>
> There is no tomcat-native package available for RHEL 8.
> Kind regards,
> Dimitris
>
>
> On Wed, Feb 5, 2025 at 12:27 AM Christopher Schultz <
> chris@christopherschultz.net <ma...@christopherschultz.net>> wrote:
>
>
> > Darryl,
> >
> > On 2/3/25 1:17 PM, Darryl Baker wrote:
> > > Would someone please point me to the documentation on building
> > tomcat-native on RHEL 8 using the Red Hat supplied APR package?
> >
> > Do you need to build from source, or can you use the RHEL binary?
> >
> > $ sudo yum search tomcat-native
> > ===== Name Exactly Matched: tomcat-native =====
> > tomcat-native.x86_64 : Tomcat native library
> >
> > If you truly need to build, we can probably update the documentation to
> > indicate which popular packages would be necessary before building from
> > source.
> >
> > -chris
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <mailto:
> users-unsubscribe@tomcat.apache.org>
> > For additional commands, e-mail: users-help@tomcat.apache.org <mailto:
> users-help@tomcat.apache.org>
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Building tomcat-native on RHEL 8
Posted by Darryl Baker <da...@northwestern.edu>.
Trying to build 1.3.1 I did the fit manipulations as suggested (I know very little about git) and I get
[root@evfediamdv1 tomcat-native-1.3.1-src]# ./jnirelease.sh -f --with-apr=/root/rpmbuild/SOURCES/apr-1.6.3 --ver=1.3.1
Using apr source from: `/root/rpmbuild/SOURCES/apr-1.6.3'
Using: /bin/elinks -dump -dump-width 80 -dump-charset iso-8859-1 -no-numbering -no-references -no-home ...
Using /bin/perl
Using GIT repo : `https://gitbox.apache.org/repos/asf/tomcat-native.git`
Using version : `1.3.1`
HEAD is now at 0d6da8c122 Tag Tomcat Native 1.3.1
Fetching tcjava
WARNING: git subtree is not up to date with
https://gitbox.apache.org/repos/asf/tomcat.git
Either correct now by running
'git checkout 1.3.x'
'git rm -rf java/org/apache/tomcat/jni'
'git read-tree --prefix=java/org/apache/tomcat/jni/ -u tcjava/9.0.x:java/org/apache/tomcat/jni'
'git commit'
or run this script with -f (force)
FORCED run chosen
#define TCN_IS_DEV_VERSION 0
Buildfile: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/build.xml
build-prepare:
[mkdir] Created dir: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build
[mkdir] Created dir: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
build-static:
[mkdir] Created dir: /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
[copy] Copying 13 files to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/images
[xslt] Transforming into /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous
[xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/changelog.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/changelog.html
[xslt] Loading stylesheet /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
[xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/miscellaneous/tls-renegotiation.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/miscellaneous/tls-renegotiation.html
[xslt] Transforming into /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news
[xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/news/2024.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/news/2024.html
[xslt] Loading stylesheet /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
build-main:
[xslt] Transforming into /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs
[xslt] Processing /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/index.xml to /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/build/docs/index.html
[xslt] Loading stylesheet /usr/local/src/tomcat-native-1.3.1-src/tomcat-native-1.3.1-src/xdocs/style.xsl
BUILD SUCCESSFUL
Total time: 0 seconds
Looking for apr source in /root/rpmbuild/SOURCES/apr-1.6.3
Creating configure ...
Generating 'make' outputs ...
Traceback (most recent call last):
File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 230, in <module>
main()
File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 47, in main
headers = get_files(parser.get('options', 'headers'))
File "/root/rpmbuild/SOURCES/apr-1.6.3/build/gen-build.py", line 223, in get_files
for pat in string.split(patterns):
AttributeError: module 'string' has no attribute 'split'
Creating build-outputs.mk failed
[root@evfediamdv1 tomcat-native-1.3.1-src]#
Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.baker@northwestern.edu <ma...@northwestern.edu>
(847) 467-6674 <tel:+18474676674>
On 2/4/25, 5:00 PM, "Dimitris Soumis" <dsoumis@apache.org <ma...@apache.org>> wrote:
The latest available APR devel package on RHEL 8 is version 1.6.3. (i.e
apr-devel-1.6.3-12.el8.x86_64)
If you attempt to build *tomcat-native 2.0.8*, you will encounter the
following error:
configure: error: Found APR 1.6.3. You need version 1.7.0 or newer
> installed.
>
However, *tomcat-native 1.3.1* is compatible with APR 1.6.3 and should be
built without issues.
For tomcat-native 2.0.8, since the APR version provided by the distribution
is obsolete, your only option would be to build a static version of APR
1.7.0 or later to meet the requirement.
There is no tomcat-native package available for RHEL 8.
Kind regards,
Dimitris
On Wed, Feb 5, 2025 at 12:27 AM Christopher Schultz <
chris@christopherschultz.net <ma...@christopherschultz.net>> wrote:
> Darryl,
>
> On 2/3/25 1:17 PM, Darryl Baker wrote:
> > Would someone please point me to the documentation on building
> tomcat-native on RHEL 8 using the Red Hat supplied APR package?
>
> Do you need to build from source, or can you use the RHEL binary?
>
> $ sudo yum search tomcat-native
> ===== Name Exactly Matched: tomcat-native =====
> tomcat-native.x86_64 : Tomcat native library
>
> If you truly need to build, we can probably update the documentation to
> indicate which popular packages would be necessary before building from
> source.
>
> -chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org <ma...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org <ma...@tomcat.apache.org>
>
>
Re: Building tomcat-native on RHEL 8
Posted by Dimitris Soumis <ds...@apache.org>.
The latest available APR devel package on RHEL 8 is version 1.6.3. (i.e
apr-devel-1.6.3-12.el8.x86_64)
If you attempt to build *tomcat-native 2.0.8*, you will encounter the
following error:
configure: error: Found APR 1.6.3. You need version 1.7.0 or newer
> installed.
>
However, *tomcat-native 1.3.1* is compatible with APR 1.6.3 and should be
built without issues.
For tomcat-native 2.0.8, since the APR version provided by the distribution
is obsolete, your only option would be to build a static version of APR
1.7.0 or later to meet the requirement.
There is no tomcat-native package available for RHEL 8.
Kind regards,
Dimitris
On Wed, Feb 5, 2025 at 12:27 AM Christopher Schultz <
chris@christopherschultz.net> wrote:
> Darryl,
>
> On 2/3/25 1:17 PM, Darryl Baker wrote:
> > Would someone please point me to the documentation on building
> tomcat-native on RHEL 8 using the Red Hat supplied APR package?
>
> Do you need to build from source, or can you use the RHEL binary?
>
> $ sudo yum search tomcat-native
> ===== Name Exactly Matched: tomcat-native =====
> tomcat-native.x86_64 : Tomcat native library
>
> If you truly need to build, we can probably update the documentation to
> indicate which popular packages would be necessary before building from
> source.
>
> -chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Building tomcat-native on RHEL 8
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Darryl,
On 2/3/25 1:17 PM, Darryl Baker wrote:
> Would someone please point me to the documentation on building tomcat-native on RHEL 8 using the Red Hat supplied APR package?
Do you need to build from source, or can you use the RHEL binary?
$ sudo yum search tomcat-native
===== Name Exactly Matched: tomcat-native =====
tomcat-native.x86_64 : Tomcat native library
If you truly need to build, we can probably update the documentation to
indicate which popular packages would be necessary before building from
source.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org