Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267061 - sci-libs/mathgl-1.8.1 needs a patch for gcc >= 4.3
Summary: sci-libs/mathgl-1.8.1 needs a patch for gcc >= 4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-22 08:50 UTC by Helmut Jarausch
Modified: 2009-04-25 02:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch needed for gcc >= 4.3 (mathgl-1.8.1-gcc43.patch,345 bytes, patch)
2009-04-22 08:53 UTC, Helmut Jarausch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2009-04-22 08:50:51 UTC
The package doesn't compile because of a gcc error.
File utils/mgl2gif.cpp needs an
#include <cstdlib>
Patch attached.


Reproducible: Always
Comment 1 Helmut Jarausch 2009-04-22 08:53:05 UTC
Created attachment 189134 [details, diff]
patch needed for gcc >= 4.3
Comment 2 Andrey Grozin gentoo-dev 2009-04-24 19:13:51 UTC
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.
Comment 3 François Bissey 2009-04-25 02:37:29 UTC
(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