Bug#1026617: libjt400-java: FTBFS: [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:149: error: reference to Record is ambiguous
Lucas Nussbaum
lucas at debian.org
Tue Dec 20 17:16:18 GMT 2022
Source: libjt400-java
Version: 9.4-1.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> #this build the ant task required by ant
> cd build && javac -cp /usr/share/java/ant.jar *.java
> Note: PCMLTask.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> #link required libraries
> ln -s /usr/share/java/servlet-api-3.1.jar include/servlet.jar
> #run ant
> ant -lib .:./build jar8 -Dbuild=. -Djdk18=/usr
> Buildfile: /<<PKGBUILDDIR>>/build.xml
>
> init:
> [tstamp] Honouring environment variable SOURCE_DATE_EPOCH which has been set to 1610029695
> [mkdir] Created dir: /<<PKGBUILDDIR>>/jdbc40
> [mkdir] Created dir: /<<PKGBUILDDIR>>/jdbc42
> [mkdir] Created dir: /<<PKGBUILDDIR>>/dist
> [mkdir] Created dir: /<<PKGBUILDDIR>>/dist6
> [mkdir] Created dir: /<<PKGBUILDDIR>>/dist8
> [mkdir] Created dir: /<<PKGBUILDDIR>>/javadoc
> [mkdir] Created dir: /<<PKGBUILDDIR>>/javadoc6
> [mkdir] Created dir: /<<PKGBUILDDIR>>/javadoc8
> [mkdir] Created dir: /<<PKGBUILDDIR>>/javadoc-jtopenlite
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output6
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output8
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output-jtopenlite
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output-micro
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output-micro-verified
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output-android
> [mkdir] Created dir: /<<PKGBUILDDIR>>/android
> [mkdir] Created dir: /<<PKGBUILDDIR>>/output-android6
> [mkdir] Created dir: /<<PKGBUILDDIR>>/android6
> [mkdir] Created dir: /<<PKGBUILDDIR>>/bin
>
> source-jdbc42:
> [echo] Processing jdbc42 file from ./src to ./jdbc42
> [jdbc42src] Number of files processed: 94
>
> source8:
> [copy] Copying 1840 files to /<<PKGBUILDDIR>>/java8
> [copy] Copied 21 empty directories to 1 empty directory under /<<PKGBUILDDIR>>/java8
> [copy] Copying 94 files to /<<PKGBUILDDIR>>/java8
> [copy] Copying 1 file to /<<PKGBUILDDIR>>/build/META-INF/services
>
> compile8:
> [javac] Compiling 1500 source files to /<<PKGBUILDDIR>>/output8
> [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:149: error: reference to Record is ambiguous
> [javac] public RecordFormatDocument(Record record)
> [javac] ^
> [javac] both class com.ibm.as400.access.Record in com.ibm.as400.access and class java.lang.Record in java.lang match
> [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:1288: error: reference to Record is ambiguous
> [javac] public void setValues(String formatName, Record record)
> [javac] ^
> [javac] both class com.ibm.as400.access.Record in com.ibm.as400.access and class java.lang.Record in java.lang match
> [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:1375: error: reference to Record is ambiguous
> [javac] public Record toRecord(String formatName)
> [javac] ^
> [javac] both class com.ibm.as400.access.Record in com.ibm.as400.access and class java.lang.Record in java.lang match
> [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RfmlRecordFormat.java:555: error: reference to Record is ambiguous
> [javac] public void setValues(Record record)
> [javac] ^
> [javac] both class com.ibm.as400.access.Record in com.ibm.as400.access and class java.lang.Record in java.lang match
> [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:881: error: reference to RecordFormatDocument is ambiguous
> [javac] RecordFormatDocument doc = new RecordFormatDocument(args[1]);
> [javac] ^
> [javac] both constructor RecordFormatDocument(String) in RecordFormatDocument and constructor RecordFormatDocument(Record) in RecordFormatDocument match
> [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:1379: error: reference to Record is ambiguous
> [javac] return new Record(toRecordFormat(formatName), toByteArray(formatName));
> [javac] ^
> [javac] both class com.ibm.as400.access.Record in com.ibm.as400.access and class java.lang.Record in java.lang match
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use or override a deprecated API that is marked for removal.
> [javac] Note: Recompile with -Xlint:removal for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 6 errors
>
> BUILD FAILED
> /<<PKGBUILDDIR>>/build.xml:502: Compile failed; see the compiler error output for details.
>
> Total time: 9 seconds
> make[1]: *** [debian/rules:26: override_dh_auto_build] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/12/20/libjt400-java_9.4-1.1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the pkg-java-maintainers
mailing list