Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269278 - [PATCH] sci-mathematics/freemat-3.6 fails to compile with gcc-4.4 (and gcc-4.3?)
Summary: [PATCH] sci-mathematics/freemat-3.6 fails to compile with gcc-4.4 (and gcc-4.3?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.4
  Show dependency tree
 
Reported: 2009-05-10 17:29 UTC by Martin Väth
Modified: 2009-07-25 02:31 UTC (History)
2 users (show)

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


Attachments
Fix compilation and add missing -lGLU with gcc-4.4 (freemat-3.6-gcc-4.4.patch,414 bytes, patch)
2009-05-10 17:29 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2009-05-10 17:29:03 UTC
There are actually two problems with gcc-4.4.

One is a missing #include which is easily fixed.
The other problem is probably caused by the implicit -Wl,--as-needed
(and thus perhaps also appears already with gcc-4.3, if all corresponding
libraries had been recompiled): There is a -lGLU missing.

I am not sure whether it is actually qt-gui which should be fixed or whether
just the make system of freemat uses qt-gui falsely.

Anyway, the attached patch solves both problems (the second by adding
-lGLU to LIBS), and so freemat compiles (and links!) after the patch with
gcc-4.4.
Comment 1 Martin Väth 2009-05-10 17:29:46 UTC
Created attachment 190855 [details, diff]
Fix compilation and add missing -lGLU with gcc-4.4
Comment 2 Sebastian Luther (few) 2009-05-10 17:50:11 UTC
Martin, do you have edit rights for bugzilla? If so feel free to assign your gcc-4.4 related bugs if you are sure were they should go. Make sure to block bug 249226. If not, either comment here or come to #gentoo-bugs on freenode. I guess we could arrange this. 
Comment 3 Martin Väth 2009-05-10 20:31:58 UTC
(In reply to comment #2)
> Martin, do you have edit rights for bugzilla?

Yes, but now I am almost through with my emerge -e world anyway...
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2009-07-25 02:31:05 UTC
Fixed, thanks.