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
Created attachment 190855 [details, diff]
Fix compilation and add missing -lGLU with gcc-4.4
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.
(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...