Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1052589: apache-directory-server: FTBFS with default Java 21

20 views
Skip to first unread message

Vladimir Petko

unread,
Sep 24, 2023, 9:40:05 PM9/24/23
to
Source: apache-directory-server
Version: 2.0.0~M26-1
Severity: normal
Tags: ftbfs
User: debia...@lists.debian.org
Usertags: default-java21
X-Debbugs-Cc: vladimi...@canonical.com

Dear Maintainers,

The package apache-directory-server ftbfs with default Java 21.
The relevant part of the build log:
---------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project apacheds-core: Compilation failure: Compilation failure:
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[96,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.CertificateVersion)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[101,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.CertificateSerialNumber)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[105,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.CertificateAlgorithmId)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[118,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.X500Name)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[124,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.CertificateValidity)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[137,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.X500Name)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[143,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.CertificateX509Key)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[161,19] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.SubjectAlternativeNameExtension)
[ERROR] location: variable extensions of type sun.security.x509.CertificateExtensions
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[165,19] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.BasicConstraintsExtension)
[ERROR] location: variable extensions of type sun.security.x509.CertificateExtensions
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[168,13] cannot find symbol
[ERROR] symbol: method set(java.lang.String,sun.security.x509.CertificateExtensions)
[ERROR] location: variable info of type sun.security.x509.X509CertInfo
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[197,36] no suitable constructor found for X509CertImpl(sun.security.x509.X509CertInfo)
[ERROR] constructor sun.security.x509.X509CertImpl.X509CertImpl(byte[]) is not applicable
[ERROR] (argument mismatch; sun.security.x509.X509CertInfo cannot be converted to byte[])
[ERROR] constructor sun.security.x509.X509CertImpl.X509CertImpl(sun.security.util.DerValue) is not applicable
[ERROR] (argument mismatch; sun.security.x509.X509CertInfo cannot be converted to sun.security.util.DerValue)
[ERROR] constructor sun.security.x509.X509CertImpl.X509CertImpl(java.io.InputStream) is not applicable
[ERROR] (argument mismatch; sun.security.x509.X509CertInfo cannot be converted to java.io.InputStream)
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[198,20] cannot find symbol
[ERROR] symbol: method sign(java.security.PrivateKey,java.lang.String)
[ERROR] location: variable certificate of type sun.security.x509.X509CertImpl
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[229,36] no suitable constructor found for X509CertImpl(sun.security.x509.X509CertInfo)
[ERROR] constructor sun.security.x509.X509CertImpl.X509CertImpl(byte[]) is not applicable
[ERROR] (argument mismatch; sun.security.x509.X509CertInfo cannot be converted to byte[])
[ERROR] constructor sun.security.x509.X509CertImpl.X509CertImpl(sun.security.util.DerValue) is not applicable
[ERROR] (argument mismatch; sun.security.x509.X509CertInfo cannot be converted to sun.security.util.DerValue)
[ERROR] constructor sun.security.x509.X509CertImpl.X509CertImpl(java.io.InputStream) is not applicable
[ERROR] (argument mismatch; sun.security.x509.X509CertInfo cannot be converted to java.io.InputStream)
[ERROR] /<<PKGBUILDDIR>>/core/src/main/java/org/apache/directory/server/core/security/CertificateUtil.java:[230,20] cannot find symbol
[ERROR] symbol: method sign(java.security.PrivateKey,java.lang.String)
[ERROR] location: variable certificate of type sun.security.x509.X509CertImpl
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
---------------


-- System Information:
Debian Release: bookworm/sid
APT prefers lunar-updates
APT policy: (500, 'lunar-updates'), (500, 'lunar-security'), (500, 'lunar'), (100, 'lunar-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.2.0-33-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Vladimir Petko

unread,
Nov 19, 2023, 9:10:05 PM11/19/23
to
Dear Maintainers,
 
  Would it be possible to consider a merge request[1] that addresses this issue?
Note: alternatively a new upstream release (M27) does not have this problem.
 
Best Regards,
 Vladimir.
 
 [1] https://salsa.debian.org/java-team/apache-directory-server/-/merge_requests/1 

Vladimir Petko

unread,
Nov 19, 2023, 9:20:05 PM11/19/23
to
Dear Maintainers,
 
  Would it be possible to consider a merge request[1] that addresses this issue?
 

tony mancill

unread,
Nov 21, 2023, 12:40:05 AM11/21/23
to
The patch looks good to me. Markus, do you have a preference for this
patch over updating to M27? I haven't looked closely at the efforts to
update to M27 aside from the fact that our (other) patches will need to
be ported, and there could be some build adjustments for the dependency
on BouncyCastle.

Thanks,
tony
signature.asc

Markus Koschany

unread,
Nov 22, 2023, 1:03:00 PM11/22/23
to

> > https://salsa.debian.org/java-team/apache-directory-server/-/merge_requests/1
>
> The patch looks good to me.  Markus, do you have a preference for this
> patch over updating to M27?  I haven't looked closely at the efforts to
> update to M27 aside from the fact that our (other) patches will need to
> be ported, and there could be some build adjustments for the dependency
> on BouncyCastle.

Hi tony and thanks Vladimir for preparing the patch.

I only had a brief look at this issue but I am all for applying the patch now
rather than wait before someone can upgrade apache-directory-server to a new
upstream release. If it works, go for it. :)

Cheers,

Markus
signature.asc
0 new messages