Bug#740941: shibboleth-sp2: FTBFS with libmemcached-1.0.18-1 from experimental
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 2014-03-17 05:35, Russ Allbery wrote: It seems a little weird that a shared library would force all programs that want to use it to have to build in a particular standardization mode. Are you sure that's the right path forward? It's particularly problematic if packages won't build with C++11, although maybe we're supposed to be moving the whole archive to that? I didn't like this approach either, but it was the most straight forward one that didn't require to patch libmemcached. But in the end, the best way would be to patch it. I'm preparing a new version of libmemcached which will enter experimental as soon as I have confirmed that all its reverse dependencies can build with it. Sorry, for the troubles ... :-( Cheers, - -- Michael Fladischer Fladi.at -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCgAGBQJTJw9bAAoJEGlMre9Rx7W2YXgP/jks63rvoUS2y1iqQnlQRvOY MNeuMsdYQm5zyoFO4WSiOrQqTn/InnR3/m/K+9AUTZ5KDAJB05pOlyi29tt0wMyK KkOmhC/0OBSYUYuhPVTISFWHqd6wBfupWkD1gbQG7fTjLXkXwEPgG9KuRNMCKyEo 8DHzTxqO8k2Quol2vXRMPhIbdymJupq43F6enBtdfhWksLN+wRDmJ2xZSZK53oaz pnoQ3e54RQq1GFNYMMIs8aNNdgPXhVuJ9U4tdTSnID++uNiAFxhOY5szkRWs6bLH cjS8grGUmDD08i54c0F4qe5JfGburn6tXjHUV/xaOVzKHpKqX/pOXEN/jdgacr71 uYf49JCxwFebR+JQUJNT8sfkTpRgGlhyrQOpdVF7oxIf1UmtVGhHhkrTUoITeObg DD4aw1mxPXTsysV1rCZpmrYejmsU6gr91he74YrHUWqkko0JRuld6vrin6u+ACWY uYvlX2UhN+bwK1ay1yqY8+orq+BDVpbsIR3KtfjYdtSprQNVAMlDHdHOeo8sFFFT yOKOtTffWfMYWGuhkb1uHskFhhiaJGLSmmqKBZjVNTsyopji41oFevKrdfV6Pccj MAFrn2jpKfrRgWY8W4fvWjMeNGA482hOcL4+YA+9L4alukGYAhxfyEHRfPgrqGid l5fkaF9WWTCNIAPSrpeu =6BRC -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#740941: shibboleth-sp2: FTBFS with libmemcached-1.0.18-1 from experimental
Michael Fladischer mich...@fladi.at writes: On 2014-03-17 05:35, Russ Allbery wrote: It seems a little weird that a shared library would force all programs that want to use it to have to build in a particular standardization mode. Are you sure that's the right path forward? It's particularly problematic if packages won't build with C++11, although maybe we're supposed to be moving the whole archive to that? I didn't like this approach either, but it was the most straight forward one that didn't require to patch libmemcached. But in the end, the best way would be to patch it. I'm preparing a new version of libmemcached which will enter experimental as soon as I have confirmed that all its reverse dependencies can build with it. Ah, excellent, thanks. That will give Shibboleth upstream a chance to look at C++11 at their leisure. -- Russ Allbery (r...@debian.org) http://www.eyrie.org/~eagle/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#740941: shibboleth-sp2: FTBFS with libmemcached-1.0.18-1 from experimental
Michael Fladischer fladischermich...@fladi.at writes: libmemcached-1.0.18-1 has been uploaded to experimental and shibboleth-sp2 FTBFS with this version. This problem can be fixed by enabling C++11 through CPPFLAGS as shown in the attached patch. I'm afraid this patch causes shibboleth-sp2 to FTBFS, at least with version 2.5.3 (which I'm about to upload). This appears to be due to a conflict between C++11 and Boost 1.54, at least as used by Shibboleth. The build fails with the following errors. I tried a few things (such as using boost::tuple instead of tuple) to no avail. I poked around the Boost documentation and in Google, but couldn't find a clear reference to what this problem might be. It seems a little weird that a shared library would force all programs that want to use it to have to build in a particular standardization mode. Are you sure that's the right path forward? It's particularly problematic if packages won't build with C++11, although maybe we're supposed to be moving the whole archive to that? libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -DNDEBUG -D_FORTIFY_SOURCE=2 -std=c++11 -pthread -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -DNDEBUG -c handler/impl/TransformSessionInitiator.cpp -fPIC -DPIC -o .libs/TransformSessionInitiator.o handler/impl/TransformSessionInitiator.cpp:136:43: error: template argument 1 is invalid vector tuplebool,string,string m_regex; ^ handler/impl/TransformSessionInitiator.cpp:136:43: error: template argument 2 is invalid handler/impl/TransformSessionInitiator.cpp: In constructor 'shibsp::TransformSessionInitiator::TransformSessionInitiator(const xercesc_3_1::DOMElement*, const char*)': handler/impl/TransformSessionInitiator.cpp:112:41: error: request for member 'push_back' in '((shibsp::TransformSessionInitiator*)this)-shibsp::TransformSessionInitiator::m_regex', which is of non-class type 'int' m_regex.push_back(tuplebool,string,string(flag, m.get(), repl.get())); ^ handler/impl/TransformSessionInitiator.cpp:112:51: error: reference to 'tuple' is ambiguous m_regex.push_back(tuplebool,string,string(flag, m.get(), repl.get())); ^ In file included from /usr/include/c++/4.8/utility:70:0, from /usr/include/xmltooling/base.h:1965, from /usr/include/saml/base.h:31, from ./base.h:35, from ./internal.h:47, from handler/impl/TransformSessionInitiator.cpp:27: /usr/include/c++/4.8/bits/stl_pair.h:83:11: note: candidates are: templateclass ... class std::tuple class tuple; ^ In file included from /usr/include/boost/tuple/tuple.hpp:33:0, from handler/impl/TransformSessionInitiator.cpp:41: /usr/include/boost/tuple/detail/tuple_basic.hpp:76:7: note: templateclass T0, class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9 class boost::tuples::tuple class tuple; ^ handler/impl/TransformSessionInitiator.cpp:112:57: error: expected primary-expression before 'bool' m_regex.push_back(tuplebool,string,string(flag, m.get(), repl.get())); ^ handler/impl/TransformSessionInitiator.cpp:112:68: error: expected primary-expression before ',' token m_regex.push_back(tuplebool,string,string(flag, m.get(), repl.get())); ^ handler/impl/TransformSessionInitiator.cpp:112:75: error: expected primary-expression before '' token m_regex.push_back(tuplebool,string,string(flag, m.get(), repl.get())); ^ handler/impl/TransformSessionInitiator.cpp:112:89: warning: left operand of comma operator has no effect [-Wunused-value] m_regex.push_back(tuplebool,string,string(flag, m.get(), repl.get())); ^ handler/impl/TransformSessionInitiator.cpp: In member function 'void shibsp::TransformSessionInitiator::doRequest(const shibsp::Application, std::string) const': handler/impl/TransformSessionInitiator.cpp:257:44: error: template argument 1 is invalid for (vector tuplebool,string,string ::const_iterator r = m_regex.begin(); r != m_regex.end(); ++r) { ^ handler/impl/TransformSessionInitiator.cpp:257:44: error: template argument 2 is invalid
Bug#740941: shibboleth-sp2: FTBFS with libmemcached-1.0.18-1 from experimental
Source: shibboleth-sp2 Version: 2.5.2+dfsg-2 Severity: normal Control: block 724722 by -1 -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Dear Maintainer, libmemcached-1.0.18-1 has been uploaded to experimental and shibboleth-sp2 FTBFS with this version. This problem can be fixed by enabling C++11 through CPPFLAGS as shown in the attached patch. - -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBCgAGBQJTGHWCAAoJEGlMre9Rx7W2Rb4P/Az0KBSJ21dZjo/93Vo0OTvB 4Jam55u1Zv+3nabqlpCKY4IGhQIYGQyGh33UFXDqtTnerpG5OBLCE1wG3pz2w1SO o/a3QVHxyV5xqtJB+bYl0o8b3WrS+b03mPgJ5126jRjvB9cFcy7GLlF1f/FhZhEG XZFHOs0nc0pV2uYgiiHDjzrlULUHlpClmu1tNQ1hZmojvRDcNAyJ42bHc1mHAtej iXG6Dl6Xe5fYPBuSvXxzwW5c6OuMEGJk2Xfr9osfJxFCdsPPZkxd6pxvep67+p0c mJa1uE3Bkp8SIS20Xl4ujSPaymLa2lSirxCqmWBiNn/T9BDqoQTkbk9zTj06rmPE Ni1tR8fAgPk77RrmK14KiFTWBrEB90U/b7vNPcd1RSleeEG5q3TTj/eIuZxfojum RvPGqs8/z9rYnDOqqcDnzT+3i3aWnAH5rY9xC4toEfMBagX8kgL1pgxDJnLy30FC tCMkCqDN1/fJSBHZAKw8whpFb2rUq9eZhRzsv5OUxNlsZgpyHWMZuB2DnHvumqF2 SP+V9UjdQr6sF1/qQxyQomhxYaKa5ta/jqgYbIPENkhqhWCwesxwXwjXPYpbh4mP 97lSIPcXNIVKUyL0tgiOtc6D6ysW5J5mATPYfXIv6HdA815P/+PdRM/X6SHXGRij NR56Hd7kzg5qnGV6Q4Vc =eEHJ -END PGP SIGNATURE- diff --git a/debian/rules b/debian/rules index b707728..3f876eb 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow,+pie # Add --as-needed to drop a few unnecessary dependencies. export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +export DEB_CPPFLAGS_MAINT_APPEND=-std=c++11 + DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) DOCS = debian/libshibsp-doc/usr/share/doc/libshibsp-doc