Package: libsoci-dev
Version: 3.2.3-1
Severity: grave
Tags: newcomer
Justification: renders package unusable
Dear Maintainer,
Since debian testing changed the default gcc version to 5 the
-dev package is no longer useable with the default gcc. Every
try to compile against the library ends in unresolved symbol:
------------------------------
$ cat test.cpp
#include <soci/soci.h>
int main(int argc, char * args[]) {
soci::session sess("abc");
}
$ g++ -lsoci_core -o foo test.cpp
/tmp/ccn7VKWE.o: In function `main':
test.cpp:(.text+0x4c): undefined reference to
`soci::session::session(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
------------------------------
This is caused by a ABI change in gcc-5. A possible workaround
is to use the -D_GLIBCXX_USE_CXX11_ABI=0 flag. But this gives
unresolved symbol vor all other libraries that are not backward
compatible. The post at [1] describe the situation more in
detail.
Please rebuild using gcc-5 and upload as new build.
Thanks,
Jan Losinski
[1] http://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (150, 'unstable'), (120, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-brettchen (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libsoci-dev depends on:
ii libsoci-core3.2 3.2.3-1
ii libsoci-firebird3.2 3.2.3-1
ii libsoci-mysql3.2 3.2.3-1
ii libsoci-odbc3.2 3.2.3-1
ii libsoci-postgresql3.2 3.2.3-1
ii libsoci-sqlite3-3.2 3.2.3-1
libsoci-dev recommends no packages.
libsoci-dev suggests no packages.
-- no debconf information