Bug#748920: libjSSC-java: Undefined symbol: _Znwm

Mikael Djurfeldt mdj at debian.org
Thu May 22 09:14:33 UTC 2014


Package: libjSSC-java
Version: 2.6.0-2
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,

When using the shared library libjSSC-java.so I get an error message
about the unresolved symbol _Znwm.

This symbol is related to the C++ new operator and is defined in
libsupc++. When adding -lsupc++ to the compile/link lines in
debian/rules, the problem disappears:

--- jssc-2.6.0/debian/rules.orig	2014-05-22 10:57:42.920042986 +0200
+++ jssc-2.6.0/debian/rules	2014-05-22 11:00:15.342106965 +0200
@@ -12,7 +12,7 @@
 
 override_dh_auto_build:
 	dh_auto_build
-	cc $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -I$(JAVA_HOME)/include -fPIC -shared -o libjSSC-$(LIBRARY_VERSION).so src/cpp/_nix_based/jssc.cpp
+	cc $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -I$(JAVA_HOME)/include -fPIC -shared -o libjSSC-$(LIBRARY_VERSION).so src/cpp/_nix_based/jssc.cpp -lsupc++
 
 override_dh_installchangelogs:
 	dh_installchangelogs -k README.txt

This fix is probably somewhat of a workaround.  I think cc should have
resolved this symbol.  Possibly, it is intended that this should be
resolved by a shared library version of libsupc++ in which case it is
necessary to insert a dependency on this library in libjSSC-java.so.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (1, 'experimental'), (1, 'unstable'), (1, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libjSSC-java depends on:
ii  libc6    2.18-5
ii  libgcc1  1:4.9.0-3

libjSSC-java recommends no packages.

libjSSC-java suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Link_with_supc.patch
Type: text/x-diff
Size: 550 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20140522/f1ee9476/attachment.patch>


More information about the pkg-java-maintainers mailing list