Bug#874134: FTBFS with Java 9: cannot find -ljawt

Chris West solo-debianbugs at goeswhere.com
Sun Sep 3 15:22:46 UTC 2017


Source: swt4-gtk
Version: 4.6.0
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

Seems like a build system problem. THe build system scares me too much
to look. https://bugs.debian.org/593178

Build log:

cc -shared   -Wl,-z,relro -o libswt-awt-gtk-4623.so swt_awt.o -Wl,--as-needed -L/usr/lib/jvm/default-java/jre/lib/amd64 -ljawt
/usr/bin/ld: cannot find -ljawt
collect2: error: ld returned 1 exit status
make_linux.mak:197: recipe for target 'libswt-awt-gtk-4623.so' failed
make[2]: Leaving directory '/build/swt4-gtk-4.6.0'



Cheers,
Chris.



More information about the pkg-java-maintainers mailing list