OpenJDK 17 breaks Apache command files

Post Reply
User avatar

Topic author
issinoho
Master
Posts: 116
Joined: Wed Apr 05, 2023 9:22 am
Reputation: 0
Location: Glasgow, Scotland
Status: Offline
Contact:

OpenJDK 17 breaks Apache command files

Post by issinoho » Fri Jan 17, 2025 5:41 am

Code: Select all

------------------------------------ ----------- ---------
PRODUCT                              KIT TYPE    STATE
------------------------------------ ----------- ---------
VSI X86VMS OPENVMS V9.2-3            Platform    Installed
VSI X86VMS APACHEWS V2.4-62          Full LP     Installed
VSI X86VMS OPENJDK17 X17.0-13A       Full LP     Installed
VSI X86VMS OPENJDK80 V8.0-412A       Full LP     Installed
------------------------------------ ----------- ---------
Running the following as part of the user login process.

Code: Select all

$ @SYS$STARTUP:OPENJDK17$SETUP
This has the side effect of breaking (at least) the following command procedures.
  • sys$startup:apache$startup.com
  • sys$startup:apache$shutdown.com
We now get the following.

Code: Select all

$ @sys$startup:apache$startup
%DCL-W-ACTIMAGE, error activating image APACHE$APR_SHRP
-CLI-E-IMGNAME, image file X86VMS$DKA0:[SYS0.SYSCOMMON.APACHE.][000000]APACHE$APR_SHRP.EXE
-SYSTEM-F-PRIVINSTALL, shareable images must be installed to run privileged image
And.

Code: Select all

$ @sys$startup:apache$shutdown
%DCL-W-ACTIMAGE, error activating image APACHE$APR_SHRP
-CLI-E-IMGNAME, image file X86VMS$DKA0:[SYS0.SYSCOMMON.APACHE.][000000]APACHE$APR_SHRP.EXE
-SYSTEM-F-PRIVINSTALL, shareable images must be installed to run privileged image
Reverting back to the OpenJDK 8 setup file, SYS$STARTUP:OPENJDK$SETUP.COM and the problem goes away.

Code: Select all

$ @sys$startup:apache$startup
[Fri Jan 17 10:39:47.148479 2025] [mpm_prefork:error] [pid 7983] (48)address already in use  : Unable to create detached process APACHE$AWS
Any thoughts?
OpenVMS Ambassador
DEC technology veteran since 1990
http://vamp.issinoho.com


pustovetov
VSI Expert
Valued Contributor
Posts: 60
Joined: Thu Sep 14, 2023 1:26 am
Reputation: 0
Status: Offline

Re: OpenJDK 17 breaks Apache command files

Post by pustovetov » Fri Jan 17, 2025 6:17 am

issinoho wrote:
Fri Jan 17, 2025 5:41 am
Any thoughts?
This may be because Java17 uses a custom CRTL not installed in the system with privileges. CRTL has critical errors for Java17 in semaphores and for this reason, I had to temporarily add the corrected CRTL to the kit.

User avatar

Topic author
issinoho
Master
Posts: 116
Joined: Wed Apr 05, 2023 9:22 am
Reputation: 0
Location: Glasgow, Scotland
Status: Offline
Contact:

Re: OpenJDK 17 breaks Apache command files

Post by issinoho » Fri Jan 17, 2025 7:38 am

Presumably this line then?

Code: Select all

$ define/nolog decc$shr    'root'externlibs]decc$shr.exe
I note this section is commented out in the OpenJDK 8 setup file.

Code: Select all

$! $ ---------------------------------------------------------------
$! $               Definition of CXX shared libraries
$! $ ---------------------------------------------------------------
$! define jdk80$externlibs 'root'externlibs]

$! define/nolog libcxx    jdk80$externlibs:libcxx.exe
$! define/nolog libcxxabi jdk80$externlibs:libcxxabi.exe
$! $ ---------------------------------------------------------------
OpenVMS Ambassador
DEC technology veteran since 1990
http://vamp.issinoho.com


pustovetov
VSI Expert
Valued Contributor
Posts: 60
Joined: Thu Sep 14, 2023 1:26 am
Reputation: 0
Status: Offline

Re: OpenJDK 17 breaks Apache command files

Post by pustovetov » Sat Jan 18, 2025 8:47 am

issinoho wrote:
Fri Jan 17, 2025 7:38 am
Presumably this line then?

Code: Select all

$ define/nolog decc$shr    'root'externlibs]decc$shr.exe
Yes, of course.
I note this section is commented out in the OpenJDK 8 setup file.
In version OpenJDK V8.0-412B for 9.2-2, I had to uncomment this and distribute/install a new C++ runtime.

Post Reply