Bug#925529: libhyperic-sigar-java: symbol lookup error: /usr/lib/jni/libsigar.so: undefined symbol: sigar_skip_token

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#925529: libhyperic-sigar-java: symbol lookup error: /usr/lib/jni/libsigar.so: undefined symbol: sigar_skip_token

Andrius Merkys
Package: libhyperic-sigar-java
Version: 1.6.4+dfsg-3

Hello,

I am packaging a Java application which attempts to load SIGAR library,
and terminates with the following error:

java: symbol lookup error: /usr/lib/jni/libsigar.so: undefined symbol:
sigar_skip_token

After locally building and installing Debian package with stripping
disabled, I find that 'sigar_skip_token' symbol is indeed missing in the
shared library:

$ nm -a /usr/lib/jni/libsigar.so | grep -E '^\s+U\s+sigar_'
                 U sigar_skip_multiple_token
                 U sigar_skip_token

However, these symbols are defined in upstream-provided binary tarball [1]:

$ nm -a sigar-bin/lib/libsigar-amd64-linux.so | grep sigar_skip
00000000000169e0 T sigar_skip_line
0000000000016a70 T sigar_skip_multiple_token
0000000000016a20 T sigar_skip_token

Would it be possible to bring the missing symbols into the distributed
shared library?

Best,
Andrius

[1]
https://sourceforge.net/projects/sigar/files/sigar/1.6/hyperic-sigar-1.6.4.zip/download

--
Andrius Merkys
Vilnius University Institute of Biotechnology, Saulėtekio al. 7, room V325
LT-10257 Vilnius, Lithuania

Reply | Threaded
Open this post in threaded view
|

Bug#925529: Bug is forwarded

merkys
Control: forwarded -1 https://github.com/hyperic/sigar/issues/60

Hello,

issue #60 in upstream's issue tracker [1] seems to be related. I have
tried the suggested workaround with passing '-fgnu89-inline' flag both
to compiler and linker, however it didn't work (mostly because I don't
know how to do it properly). Could someone more knowledgeable give it a try?

Best,
Andrius

[1] https://github.com/hyperic/sigar/issues/60

--
Andrius Merkys
Vilnius University Institute of Biotechnology, Saulėtekio al. 7, room V325
LT-10257 Vilnius, Lithuania