devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
248 stars 60 forks source link

glibc version too higher #108

Closed nanguantong closed 1 year ago

nanguantong commented 1 year ago

Run on ubuntu-18.04 glibc-2.17 based on webrtc-java-0.7.0, error as following:

java.lang.UnsatisfiedLinkError: /tmp/libwebrtc-java5893927913100444397.so: /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.29' not found (required by /tmp/libwebrtc-java5893927913100444397.so)

so can downgrade the glibc version build for webrtc-java?

devopvoid commented 1 year ago

Yes, glibc version must be downgraded!

nanguantong commented 1 year ago

Could you please use lower glibc version (e.g. v2.17) to build webrtc-java?

devopvoid commented 1 year ago

The best I can do is to link against GLIBC 2.18, dated 2013-08-12. That's good enough? :)

EDIT: Ubuntu-18.04 has GLIBC 2.18 support, as far as I can see and Ubuntu 16.04 supports up to GLIBC 2.17.

devopvoid commented 1 year ago

Latest 0.8.0-SNAPSHOT - objdump -p libwebrtc-java.so:

Dynamic Section:
  NEEDED               libpulse.so.0
  NEEDED               libudev.so.1
  NEEDED               libX11.so.6
  NEEDED               libm.so.6
  NEEDED               libc.so.6
  NEEDED               ld-linux-x86-64.so.2

Version References:
  required from ld-linux-x86-64.so.2:
    0x09691a75 0x00 20 GLIBC_2.2.5
    0x0d696913 0x00 16 GLIBC_2.3
  required from libm.so.6:
    0x09691a75 0x00 05 GLIBC_2.2.5
  required from libudev.so.1:
    0x08fcf323 0x00 04 LIBUDEV_183
  required from libpulse.so.0:
    0x05a17b70 0x00 03 PULSE_0
  required from libc.so.6:
    0x0d696919 0x00 21 GLIBC_2.9
    0x06969198 0x00 19 GLIBC_2.18
    0x06969196 0x00 18 GLIBC_2.16
    0x06969195 0x00 17 GLIBC_2.15
    0x06969190 0x00 15 GLIBC_2.10
    0x06969197 0x00 14 GLIBC_2.17
    0x06969191 0x00 13 GLIBC_2.11
    0x0d696914 0x00 12 GLIBC_2.4
    0x0d696916 0x00 11 GLIBC_2.6
    0x09691974 0x00 10 GLIBC_2.3.4
    0x0d696913 0x00 09 GLIBC_2.3
    0x0d696917 0x00 08 GLIBC_2.7
    0x06969194 0x00 07 GLIBC_2.14
    0x09691972 0x00 06 GLIBC_2.3.2
    0x09691a75 0x00 02 GLIBC_2.2.5