Bug#1099242: libpdfbox-graphics2d-java: FTBFS: cannot find symbol

Santiago Vila sanvila at debian.org
Sat Mar 1 21:01:30 GMT 2025


Package: src:libpdfbox-graphics2d-java
Version: 0.43-1
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean
	bash -c "for dir in \$(find . -name target -type d); do if [ -f \$(echo \$dir | sed -e s/target\$/pom.xml/) ]; then rm -Rf \$dir; fi done"
	mh_unpatchpoms -plibpdfbox-graphics2d-java
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
	mh_patchpoms -plibpdfbox-graphics2d-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
   dh_auto_build
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for de.rototor.pdfbox:extended-tests:jar:0.43
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.xml.bind:jaxb-api:jar -> duplicate declaration of version debian @ line 46, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] PDFBox-Graphics2d - Parent                                         [pom]
[INFO] PDFBox-Graphics2d                                                  [jar]
[INFO] PDFBox-Graphics2d - Extended Tests                                 [jar]
[INFO] 
[INFO] -------------< de.rototor.pdfbox:pdfboxgraphics2d-parent >--------------
[INFO] Building PDFBox-Graphics2d - Parent 0.43                           [1/3]
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --------------------< de.rototor.pdfbox:graphics2d >--------------------
[INFO] Building PDFBox-Graphics2d 0.43                                    [2/3]
[INFO]   from graphics2d/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.maven.plugins:maven-surefire-plugin:jar:2.17 has been relocated to org.apache.maven.plugins:maven-surefire-plugin:jar:2.22.3
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ graphics2d ---
[INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/graphics2d/src/main/resources
[INFO] 
[INFO] --- compiler:3.13.0:compile (default-compile) @ graphics2d ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 19 source files with javac [debug target 1.6] to target/classes
Use of target 1.6 is no longer supported, switching to 8
Use of source 1.6 is no longer supported, switching to 8
[WARNING] bootstrap class path not set in conjunction with -source 8
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO] /<<PKGBUILDDIR>>/graphics2d/src/main/java/de/rototor/pdfbox/graphics2d/PrivateFieldAccessor.java: /<<PKGBUILDDIR>>/graphics2d/src/main/java/de/rototor/pdfbox/graphics2d/PrivateFieldAccessor.java uses unchecked or unsafe operations.
[INFO] /<<PKGBUILDDIR>>/graphics2d/src/main/java/de/rototor/pdfbox/graphics2d/PrivateFieldAccessor.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- resources:3.3.1:testResources (default-testResources) @ graphics2d ---
[INFO] Copying 38 resources from src/test/resources to target/test-classes
[INFO] 
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ graphics2d ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 16 source files with javac [debug target 1.6] to target/test-classes
Use of target 1.6 is no longer supported, switching to 8
Use of source 1.6 is no longer supported, switching to 8
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] bootstrap class path not set in conjunction with -source 8
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO] 4 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[10,23] cannot find symbol
  symbol:   class ChartUtilities
  location: package org.jfree.chart
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[28,20] package org.jfree.ui does not exist
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[29,22] package org.jfree.util does not exist
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[386,33] cannot find symbol
  symbol:   variable TableOrder
  location: class de.rototor.pdfbox.graphics2d.MultiPageTest
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[410,36] cannot find symbol
  symbol:   variable RectangleEdge
  location: class de.rototor.pdfbox.graphics2d.MultiPageTest
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[412,17] cannot find symbol
  symbol:   variable ChartUtilities
  location: class de.rototor.pdfbox.graphics2d.MultiPageTest
[INFO] 6 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for PDFBox-Graphics2d - Parent 0.43:
[INFO] 
[INFO] PDFBox-Graphics2d - Parent ......................... SUCCESS [  0.004 s]
[INFO] PDFBox-Graphics2d .................................. FAILURE [  1.771 s]
[INFO] PDFBox-Graphics2d - Extended Tests ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.856 s
[INFO] Finished at: 2025-03-01T14:03:21Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile (default-testCompile) on project graphics2d: Compilation failure: Compilation failure: 
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[10,23] cannot find symbol
[ERROR]   symbol:   class ChartUtilities
[ERROR]   location: package org.jfree.chart
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[28,20] package org.jfree.ui does not exist
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[29,22] package org.jfree.util does not exist
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[386,33] cannot find symbol
[ERROR]   symbol:   variable TableOrder
[ERROR]   location: class de.rototor.pdfbox.graphics2d.MultiPageTest
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[410,36] cannot find symbol
[ERROR]   symbol:   variable RectangleEdge
[ERROR]   location: class de.rototor.pdfbox.graphics2d.MultiPageTest
[ERROR] /<<PKGBUILDDIR>>/graphics2d/src/test/java/de/rototor/pdfbox/graphics2d/MultiPageTest.java:[412,17] cannot find symbol
[ERROR]   symbol:   variable ChartUtilities
[ERROR]   location: class de.rototor.pdfbox.graphics2d.MultiPageTest
[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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :graphics2d
dh_auto_build: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202503/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:libpdfbox-graphics2d-java, so that this is still
visible in the BTS web page for this package.

Thanks.



More information about the pkg-java-maintainers mailing list