Your message dated Sat, 02 Apr 2016 18:04:00 +0300
with message-id <1817183.OLDTN8W4nP@filippos>
and subject line Test example builds without special features enabled
has caused the Debian Bug report #800460,
regarding mathgl: Test program fails to build, syntax error in header
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 ow...@bugs.debian.org
immediately.)
--
800460: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800460
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mathgl
Version: 2.3.3-2
Severity: normal
Hi All,
A bit of a note-to-self (and Dimitrios, I guess). This report is due to some
notice on the mathgl mailing list:
https://groups.google.com/forum/?_escaped_fragment_=topic/mathgl/ioV2hTVfhq4#!topic/mathgl/ioV2hTVfhq4
The following program does not compile:
#include <mgl2/mgl.h>
int main()
{
mglGraph gr;
gr.FPlot("sin(pi*x)");
gr.WriteFrame("test.png");
}
$g++ --version
g++ (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ mathgl.cpp -o mathgl -lmgl -std=c++11
In file included from /usr/include/c++/4.9/complex.h:36:0,
from /usr/include/mgl2/define.h:268,
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 mathgl.cpp:1:
/usr/include/mgl2/define.h:277:19: error: unable to find numeric literal
operator ‘operator""iF’
const mdual mgl_I=_Complex_I;
^
/usr/include/mgl2/define.h:277:19: note: use -std=gnu++11 or
-fext-numeric-literals to enable more built-in suffixes
In file included from /usr/include/mgl2/abstract.h:23:0,
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 mathgl.cpp:1:
/usr/include/mgl2/data.h: In member function ‘void mglDataV::Fill(mreal, mreal,
char)’:
/usr/include/mgl2/data.h:611:6: error: ‘typeof’ was not declared in this scope
if(mgl_isnum(x2))
^
/usr/include/mgl2/data.h:611:6: error: ‘_a’ was not declared in this scope
if(mgl_isnum(x2))
^
/usr/include/mgl2/data.h:611:6: error: could not convert ‘({...})’ from ‘void’
to ‘bool’
if(mgl_isnum(x2))
^
.....
And so on for quite a while. It looks like there are some typing problems in
the headers. We should have a unit test to fix this. It renders the package
relatively unusable.
This may or may not be the cause of bug #798858
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798858
Thanks!
-- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages mathgl depends on:
ii libc6 2.19-18
ii libgcc1 1:5.2.1-17
ii libgif4 4.1.6-11
ii libgl1-mesa-glx [libgl1] 10.3.2-1
ii libglu1-mesa [libglu1] 9.0.0-2
ii libgsl0ldbl 1.16+dfsg-2
ii libhdf4-0 4.2.10-3
ii libhdf5-8 1.8.13+docs-15
ii libhpdf-2.2.1 2.2.1-1.1
ii libjpeg62-turbo 1:1.3.1-12
ii libltdl7 2.4.2-1.11
ii libmgl-qt7.4.0 2.3.3-2
ii libmgl7.4.0 2.3.3-2
ii libpng12-0 1.2.50-2+b2
ii libqt5core5a 5.4.2+dfsg-5
ii libqt5gui5 5.4.2+dfsg-5
ii libqt5printsupport5 5.4.2+dfsg-9
ii libqt5widgets5 5.4.2+dfsg-5
ii libstdc++6 5.2.1-17
ii zlib1g 1:1.2.8.dfsg-2+b1
mathgl recommends no packages.
mathgl suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 2.3.4-1
Hello Sylvain,
The simple test program
#include <mgl2/mgl.h>
int main()
{
mglGraph gr;
gr.FPlot("sin(pi*x)");
gr.WriteFrame("test.png");
}
now builds with the command
g++ -lmgl test.cpp.
Further, in
/usr/include/mgl2/config.h
we now have
MGL_HAVE_TYPEOF 0
and
MGL_HAVE_C99_COMPLEX 0.
Best regards
Dimitris
--- End Message ---
--
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers