The package doesn't compile because of a gcc error. File utils/mgl2gif.cpp needs an #include <cstdlib> Patch attached. Reproducible: Always
Created attachment 189134 [details, diff] patch needed for gcc >= 4.3
This is strange: I successfully compiled it with gcc-4.3.2-r3, without this patch. But if this #include is needed in some cases, why not include it? Fixed in cvs.
(In reply to comment #2) > This is strange: I successfully compiled it with gcc-4.3.2-r3, without this > patch. But if this #include is needed in some cases, why not include it? Fixed > in cvs. > I actually encountered this error myself (I think) with gcc-4.3.3. I should have posted a bug earlier but I took the easy route and compiled with "-gif". Here is the error: /bin/sh ../libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -Wall -DNO_GSL -O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing -Wl,--as-needed -o mgl2png mgl2png.o ../mgl/libmgl.la mgl2gif.cpp: In constructor 'Str::Str(Str*, const char*)': mgl2gif.cpp:55: error: 'mbstowcs' was not declared in this scope mgl2gif.cpp: In function 'int main(int, char**)': mgl2gif.cpp:102: warning: ignoring return value of 'wchar_t* fgetws(wchar_t*, int, __FILE*)', declared with attribute warn_unused_result make[1]: *** [mgl2gif-mgl2gif.o] Error 1