jitsi icon indicating copy to clipboard operation
jitsi copied to clipboard

Jitsi does not build on Fedora 34

Open Af0x opened this issue 3 years ago • 18 comments

Hello,

when trying to build jitsi on Fedora 34 it fails with several errors and warnings.

Errors:

[javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:35: error: cannot find symbol [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:25: error: package sun.net.spi.nameservice does not exist [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameServiceDescriptor.java:29: error: cannot find symbol [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameServiceDescriptor.java:36: error: cannot find symbol [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameServiceDescriptor.java:20: error: package sun.net.spi.nameservice does not exist [javac] errorIcon + StringEscapeUtils.escapeHtml4(messageTitle) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:144: error: no suitable method found for binarySearch(Vector<TreeNode>,ContactNode,NodeComparator) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:299: error: no suitable method found for binarySearch(Vector<TreeNode>,GroupNode,NodeComparator) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:331: error: incompatible types: inference variable T has incompatible bounds [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/main/contactlist/GroupNode.java:371: error: no suitable method found for sort(Vector<TreeNode>,NodeComparator) [javac] /path/to/jitsi/src/net/java/sip/communicator/impl/gui/customcontrols/ExtendedTableModel.java:42: error: incompatible types: Vector<Vector> cannot be converted to Vector<Vector<Object>> [javac] /path/to/jitsi/src/net/java/sip/communicator/plugin/jabberaccregwizz/IceConfigPanel.java:826: error: incompatible types: Vector<Vector> cannot be converted to Vector<Vector<StunServerDescriptor>> [javac] /path/to/jitsi/src/net/java/sip/communicator/plugin/jabberaccregwizz/IceConfigPanel.java:1322: error: incompatible types: Vector<Vector> cannot be converted to Vector<Vector<JingleNodeDescriptor>> [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:74: error: method does not override or implement a method from a supertype [javac] /path/to/jitsi/src/net/java/sip/communicator/util/JitsiDnsNameService.java:95: error: method does not override or implement a method from a supertype

Regards,

Af0x

Af0x avatar Jul 06 '21 11:07 Af0x

sun.net.spi.nameservice was removed from java 9+

https://github.com/BiglySoftware/BiglyBT/issues/1017#issuecomment-873667879

sergiomb2 avatar Jul 09 '21 23:07 sergiomb2

Thanks for the hint. Is there any solution so that jitsi can build again?

Af0x avatar Jul 11 '21 08:07 Af0x

you can compile it with java-1.8.0-openjdk https://github.com/UnitedRPMs/jitsi/blob/master/jitsi.spec

also I think delete the files of .nameservice will work

sergiomb2 avatar Jul 11 '21 14:07 sergiomb2

I have java-11-openjdk-devel and java-1.8.0-openjdk-devel installed. How do I make it use the 1.8.0 version when compiling?

Af0x avatar Jul 11 '21 14:07 Af0x

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk

or https://src.fedoraproject.org/rpms/plexus-utils/c/cbe003609d889abf009841b851bfc0e00a9e876c?branch=rawhide BuildRequires: maven-local-openjdk8

sergiomb2 avatar Jul 14 '21 21:07 sergiomb2

Thanks, I was able to build with a "Success" status. But when I run "ant run" I get the following: ant run.txt

Af0x avatar Jul 15 '21 15:07 Af0x

to build on mock you need to add

%global java_home /usr/lib/jvm/java-1.8.0-openjdk

sergiomb2 avatar Jul 17 '21 02:07 sergiomb2

Until now I never had to use mock, only ant commands (rebuild, make, run).

Af0x avatar Jul 17 '21 13:07 Af0x

maybe you need set java_home to ant JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk ant

sergiomb2 avatar Jul 17 '21 17:07 sergiomb2

Sadly I can´t make it work.

Af0x avatar Jul 18 '21 12:07 Af0x

Hi, same problem; It uses java 1.8 but doensn't run ( seted java_home in build and running the package )... I am tired... I made a rpm with the electron version... Maybe it works for you. https://github.com/UnitedRPMs/jitsi-meet-electron

kuboosoft avatar Jul 25 '21 22:07 kuboosoft

Hello, your package is about jitsi-meet but this issue is about the jitsi desktop version. Anyone can help to make my softphone work again using ant under Fedora 34?

Af0x avatar Aug 13 '21 16:08 Af0x

commit https://github.com/jitsi/jitsi/commit/c81e58f1a9c63b60f6ebbccfca113906472b186b breaks things [1] , which ATM is the last commit, if you remove this commit should work

[1] https://github.com/jitsi/jitsi/pull/731#issuecomment-898058986

sergiomb2 avatar Aug 13 '21 17:08 sergiomb2

After removing the named commit, jitsi starts again. Thank you

Af0x avatar Aug 14 '21 15:08 Af0x

Attention: The solution must to be solved without removal improvements...

Can you look where is the problem exactly?

Neustradamus avatar Aug 30 '21 21:08 Neustradamus

The issue is solved in the new build branch: https://github.com/jitsi/jitsi/pull/731#issuecomment-958694846

Af0x avatar Nov 08 '21 12:11 Af0x

It is not in main/master branch and there is not a new build release too. It is not "stable".

The problem will be solved when the new build will be here.

Neustradamus avatar Nov 08 '21 12:11 Neustradamus

You can see my tickets:

  • https://github.com/jitsi/jitsi/issues?q=is%3Aissue+author%3A%40me

Some:

  • Bouncy Castle 1.69 (2021-06-07) instead of 1.54 (CVEs): https://github.com/jitsi/jitsi/issues/562
  • It is possible to merge "new-build" branch into master?: https://github.com/jitsi/jitsi/issues/714
  • CVE fixes?: https://github.com/jitsi/jitsi/issues/745

Note: The current main/master branch can not be compiled, it is better to have the current code here.

Neustradamus avatar Nov 08 '21 13:11 Neustradamus