pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: openjdk21 build errors



On Tue, 21 Jan 2025 at 06:08, Mayuresh <mayuresh%acm.org@localhost> wrote:
>
> On NetBSD 10.1 amd64 with a recent pkgsrc,
>
> with no options enabled i.e.:
>
>     These options are enabled by default:
>             jdk-hotspot-vm jre-jce x11
>
>     These options are currently enabled:
>
> There are several warnings of this kind:
>
>     Warning:
>     The input uses the SHA1withRSA signature algorithm which is considered a security risk.
>     Certificate was added to keystore
>     Certificate was added to keystore
>     ...
>
>     Warning:
>     The input uses the SHA1withRSA signature algorithm which is considered a security risk.
>
> Followed by this error:
>
>     Runnable configure script is not present
>     Generating runnable configure script at /usr/pkgsrc/work/lang/openjdk21/work/jdk21u-jdk-21.0.5-11-1/build/.
>     configure-support/generated-configure.sh
>     Using autoconf at /usr/pkgsrc/work/lang/openjdk21/work/.tools/bin/autoconf [autoconf (GNU Autoconf) 2.72]
>     configure exiting with result code 1
>
>     configure: error: unrecognized options: --with-libiconv-prefix
>
> At this point if I simply re-run make it leads to these errors:
>
>     ERROR: [check-portability.awk] => Found test ... == ...:
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:50596:   if test "x$RESULT" == "x"; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:71071:         if test "x$ISLINK" == x; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:81229:   if test "x$with_cacerts_file" == x; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:81255:   if test "x$with_cacerts_src" == x; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:86665:         if test "x$ISLINK" == x; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:89507:         if test "x$ISLINK" == x; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:135924:               if test "x${ipath:0:2}" == "x-I"; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:138635:               if test "x${ipath:0:2}" == "x-I"; then
>     ERROR: [check-portability.awk] build/.configure-support/generated-configure.sh:143675:       if test "x$SYSROOT" != "x" && test "x${with_alsa_lib}" == x; then

I'm not suggesting that you are not seeing the error your end, but as
a datapoint I tested a build of openjdk{21,17,11,8} with pkgsrc from
today, using a very recent netbsd-10 binary snapshot from
https://releng.netbsd.org/ - that is, running 'pkg_chk -Br' (*) before
build to clear any packages not built with their very latest Makefiles

*: 'pkg_chk -Br' can be very useful to ensure a clean build with all
up-to-date packages, but never run it unless you are ready for the
occasional case of almost all packages being rebuilt... or include
'-n' first :)

NetBSD version:
NetBSD iris.absd.org 10.1_STABLE NetBSD 10.1_STABLE (GENERIC) #0: Fri
Jan 17 12:28:00 UTC 2025
mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
amd64

openjdk21 build log in case comparing it highlights any useful
difference : https://sync.absd.org/pkgsrc/pkgsrc-openjdk21-build.log.txt

% ls -als /pkgsrc/packages/All/openjdk* ; pkg_info -N openjdk21
329152 -rw-rw-r--  1 abs  wheel  336896299 Jan 24 18:02
/pkgsrc/packages/All/openjdk11-1.11.0.25.9.tgz
335296 -rw-rw-r--  1 abs  wheel  343204498 Jan 24 17:51
/pkgsrc/packages/All/openjdk17-1.17.0.13.11.tgz
382880 -rw-r--r--  1 abs  wheel  391907279 Jan 24 17:52
/pkgsrc/packages/All/openjdk21-1.21.0.5.11.tgz
101152 -rw-rw-r--  1 abs  wheel  103529329 Jan 24 18:01
/pkgsrc/packages/All/openjdk8-1.8.432.tgz
Information for openjdk21-1.21.0.5.11:

Built using:
dejavu-ttf-2.37
unzip-6.0nb10
zip-3.0nb3
alsa-lib-1.2.13
fontconfig-2.15.0
freetype2-2.13.3
digest-20220214
mozilla-rootcerts-1.1.20241118
mktools-20220614
automake-1.16.5nb3
autoconf-2.72
bash-5.2.37
gmake-4.4.1
pkgconf-2.3.0
cwrappers-20220403
checkperms-1.12
libcups-2.4.11nb3
x11-links-1.36

David


Home | Main Index | Thread Index | Old Index