Bug#1026625: libirclib-java: FTBFS: ./src/org/schwering/irc/lib/SSLDefaultTrustManager.java:16: error: package com.sun.net.ssl does not exist

Lucas Nussbaum lucas at debian.org
Tue Dec 20 17:16:15 GMT 2022


Source: libirclib-java
Version: 1.10-4
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):
>  debian/rules binary
> dh binary --with javahelper
>    dh_update_autotools_config
>    dh_autoreconf
>    jh_linkjars
>    jh_build
> warning: [options] bootstrap class path not set in conjunction with -source 7
> warning: [options] source value 7 is obsolete and will be removed in a future release
> warning: [options] target value 7 is obsolete and will be removed in a future release
> warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
> ./src/org/schwering/irc/lib/SSLDefaultTrustManager.java:16: error: package com.sun.net.ssl does not exist
> import com.sun.net.ssl.X509TrustManager;
>                       ^
> ./src/org/schwering/irc/lib/SSLDefaultTrustManager.java:42: error: cannot find symbol
> public class SSLDefaultTrustManager implements X509TrustManager {
>                                                ^
>   symbol: class X509TrustManager
> ./src/org/schwering/irc/lib/ssl/TrustManagerJsseWrapper.java:27: error: package com.sun.net.ssl does not exist
> class TrustManagerJsseWrapper implements com.sun.net.ssl.X509TrustManager {
>                                                         ^
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:16: error: package com.sun.net.ssl does not exist
> import com.sun.net.ssl.SSLContext;
>                       ^
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:17: error: package com.sun.net.ssl does not exist
> import com.sun.net.ssl.TrustManager;
>                       ^
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:18: error: package com.sun.net.ssl.internal.ssl does not exist
> import com.sun.net.ssl.internal.ssl.Provider;
>                                    ^
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:284: error: cannot find symbol
> 	public void addTrustManager(TrustManager trustManager) {
> 	                            ^
>   symbol:   class TrustManager
>   location: class SSLIRCConnection
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:301: error: cannot find symbol
> 	public boolean removeTrustManager(TrustManager trustManager) {
> 	                                  ^
>   symbol:   class TrustManager
>   location: class SSLIRCConnection
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:320: error: cannot find symbol
> 	public TrustManager[] getTrustManagers() {
> 	       ^
>   symbol:   class TrustManager
>   location: class SSLIRCConnection
> ./src/org/schwering/irc/lib/ssl/SSLSocketFactoryFactory.java:147: warning: non-varargs call of varargs method with inexact argument type for last parameter;
> 		Method getSocketFactoryMethod = contextClass.getMethod("getSocketFactory", null);
> 		                                                                           ^
>   cast to Class for a varargs call
>   cast to Class[] for a non-varargs call and to suppress this warning
> ./src/org/schwering/irc/lib/ssl/SSLSocketFactoryFactory.java:155: warning: non-varargs call of varargs method with inexact argument type for last parameter;
> 		Object socketFactory = getSocketFactoryMethod.invoke(context, null);
> 		                                                              ^
>   cast to Object for a varargs call
>   cast to Object[] for a non-varargs call and to suppress this warning
> ./src/org/schwering/irc/lib/ssl/SSLSocketFactoryFactory.java:209: warning: non-varargs call of varargs method with inexact argument type for last parameter;
> 		Method getSocketFactoryMethod = contextClass.getMethod("getSocketFactory", null);
> 		                                                                           ^
>   cast to Class for a varargs call
>   cast to Class[] for a non-varargs call and to suppress this warning
> ./src/org/schwering/irc/lib/ssl/SSLSocketFactoryFactory.java:217: warning: non-varargs call of varargs method with inexact argument type for last parameter;
> 		Object socketFactory = getSocketFactoryMethod.invoke(context, null);
> 		                                                              ^
>   cast to Object for a varargs call
>   cast to Object[] for a non-varargs call and to suppress this warning
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:258: error: cannot find symbol
> 			Security.addProvider(new Provider());
> 			                         ^
>   symbol:   class Provider
>   location: class SSLIRCConnection
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:259: error: cannot find symbol
> 			SSLContext context = SSLContext.getInstance("SSL");
> 			^
>   symbol:   class SSLContext
>   location: class SSLIRCConnection
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:259: error: cannot find symbol
> 			SSLContext context = SSLContext.getInstance("SSL");
> 			                     ^
>   symbol:   variable SSLContext
>   location: class SSLIRCConnection
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:321: error: cannot find symbol
> 		TrustManager[] tm = new TrustManager[trustManagers.size()];
> 		^
>   symbol:   class TrustManager
>   location: class SSLIRCConnection
> ./src/org/schwering/irc/lib/SSLIRCConnection.java:321: error: cannot find symbol
> 		TrustManager[] tm = new TrustManager[trustManagers.size()];
> 		                        ^
>   symbol:   class TrustManager
>   location: class SSLIRCConnection
> Note: ./src/org/schwering/irc/lib/ssl/SSLSocketFactoryFactory.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.
> 14 errors
> 8 warnings
> jh_build: error: find ./src -name '*.java' -and -type f -print0 | xargs -s 512000 -0 /usr/lib/jvm/default-java/bin/javac -g -cp :debian/_jh_build.irclib -d debian/_jh_build.irclib -encoding ISO8859-1 -source 1.7 -target 1.7  returned exit code 123
> make: *** [debian/rules:9: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2022/12/20/libirclib-java_1.10-4_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