Your message dated Wed, 31 Jul 2019 10:36:05 +0000 with message-id <[email protected]> and subject line Bug#908904: fixed in mathgl 2.4.4-3 has caused the Debian Bug report #908904, regarding /usr/include/mgl2/config.h: error: unable to find numeric literal operator ‘operator""i’ to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 908904: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908904 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: libmgl-dev Version: 2.4.2.1-2 Severity: normal File: /usr/include/mgl2/config.h Dear Maintainer, The package is unusable in the context "g++ -std=c++11" or newer (c++14, c++17). The same issue is in bug report 800460, but it is archived. Here is a sample program: #include <mgl2/mgl.h> int main() { mglGraph gr; gr.FPlot("sin(pi*x)"); gr.WriteFrame("mgl_test.svg"); } The compiler responds as follows: In file included from /usr/include/mgl2/abstract.h:23, from /usr/include/mgl2/data_cf.h:23, from /usr/include/mgl2/data.h:23, from /usr/include/mgl2/mgl_cf.h:24, from /usr/include/mgl2/mgl.h:23, from tests.cpp:16: /usr/include/mgl2/define.h:304:19: error: unable to find numeric literal operator ‘operator""i’ const mdual mgl_I=_Complex_I; ^~~~~~~~~~ /usr/include/mgl2/define.h:304:19: note: add ‘using namespace std::complex_literals’ (from <complex>) to enable the C++14 user-defined literal suffixes I believe this is due to syntax clash between C99 and C++11 (C++14 introduces complex literals to support expressions like "1i"). libmgl-dev is trying to support both but C complex numbers do not make sense in C++ context. I cannot see any userspace workaround other than downgrade my code to pre-C++11. I propose to disable C complex numbers starting with C++11: --- /usr/include/mgl2/config.h 2018-09-15 19:57:46.661432502 +0200 +++ /usr/include/mgl2/config.h.orig 2018-09-15 19:25:14.843095200 +0200 @@ -28,11 +28,7 @@ #define MGL_HAVE_PTHREAD 1 #define MGL_HAVE_PTHR_WIDGET 1 #define MGL_HAVE_ATTRIBUTE 1 -#if defined(__cplusplus) && __cplusplus < 201103 #define MGL_HAVE_C99_COMPLEX 1 -#else -#define MGL_HAVE_C99_COMPLEX 0 -#endif #endif #define MGL_SIZEOF_LONG 8 Marius -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (900, 'testing'), (500, 'stable'), (500, 'oldstable'), (50, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libmgl-dev depends on: ii libgl1-mesa-dev [libgl-dev] 18.1.7-1 ii libgsl-dev 2.5+dfsg-5 ii libmgl-fltk7.5.0 2.4.2.1-2 ii libmgl-glut7.5.0 2.4.2.1-2 ii libmgl-mpi7.5.0 2.4.2.1-2 ii libmgl-qt5-7.5.0 2.4.2.1-2 ii libmgl-wnd7.5.0 2.4.2.1-2 ii libmgl-wx7.5.0 2.4.2.1-2 ii libmgl7.5.0 2.4.2.1-2 ii libpng-dev 1.6.34-2 libmgl-dev recommends no packages. libmgl-dev suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: mathgl Source-Version: 2.4.4-3 We believe that the bug you reported is fixed in the latest version of mathgl, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Alastair McKinstry <[email protected]> (supplier of updated mathgl package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Wed, 31 Jul 2019 10:21:43 +0100 Source: mathgl Architecture: source Version: 2.4.4-3 Distribution: unstable Urgency: medium Maintainer: Debian Science Maintainers <[email protected]> Changed-By: Alastair McKinstry <[email protected]> Closes: 696896 908904 933430 Changes: mathgl (2.4.4-3) unstable; urgency=medium . * Ack. previously fixed bugs. Closes: #696896, #908904 * Rebuild against wxWidgets GTK3. Closes: #933430 Checksums-Sha1: de06d0968c36a121e4357f64d1b861d4bcfcd90b 3163 mathgl_2.4.4-3.dsc acbafcff1ce8fced1a2d5e525fa7e1d3a1e982f6 13932 mathgl_2.4.4-3.debian.tar.xz Checksums-Sha256: 41aaa51e4ce0bff59478ab1b0f4884c661de624161dda5cc4aed246673c79cb6 3163 mathgl_2.4.4-3.dsc 8b1443b9093e9a012ac9de355a1dfe578987822dd4ae428a78e118eb62b5a296 13932 mathgl_2.4.4-3.debian.tar.xz Files: 1dc3934f3d2113a9e451e0f620b3af9d 3163 science optional mathgl_2.4.4-3.dsc f8a979e6127751d0ed02e90f087596c7 13932 science optional mathgl_2.4.4-3.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAl1BargACgkQy+a7Tl2a 06XC2BAAmx6VJqwlGRYvOT25PPgsY47/Z+/k8uI6pWoVLArJ0ycigoGLVFw2yO1I AnPqv6OgxVbyqXIKMc2M3d2rcfABaLHRGK/z3fu/BJpieTjmDZ8hwL/NYsfISW4B ad0QI0ObMo8mbDztuWF6vMSbXfH69m7U8r+hxpKXQplIv0TEVm9CiQlsWOZvdZo1 qCEgscGehRqwjO1X7yhC+85Fj8qsxEiF0P4fBgIrjALBeGdOGnr8j83rIroda6WS nmyoopShaqnbpmQKIcrH4L5X21WKTQ2gVjFxpXHOUbMjoygDnYfEcJZe2BAk3jVq VKN7FAM3ks7Tdt6NLfayi4ZckNyvT1WrM2iK4o+teZFsG8xZPKwQAc4Ti4v/rljk 21WA1MkTqCyPedebw6pkW1Up4DYaAajop9hat8iRqoxicJkTKhWC19OALOIVYlJP n6w+XhcznN5INUItTZNGfLJ6ORDhkOvWHCDm1BLAkUWcML28pSx/JoiDDAW6qjcz bJxRE4krWog9/QxrM5hdoSM3LzCsyOXZm6Ql+vcbsedb10w+Z8OUqzXqjE4YLfcq I4qJtprYdgnyDqFZEILjlT88hYl3qDcEkAgIGZuvv0mVaH5xYl0jMInWAemmt9nS IZ2zuPKRAJb/CwgEDJAdifRtvBlItPLkK5Yv5cSIEUwmtEJSFtk= =U/lp -----END PGP SIGNATURE-----
--- End Message ---
-- debian-science-maintainers mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers
