Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 269278

Summary: [PATCH] sci-mathematics/freemat-3.6 fails to compile with gcc-4.4 (and gcc-4.3?)
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: Current packagesAssignee: Gentoo Science Mathematics related packages <sci-mathematics>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, SebastianLuther
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226    
Attachments: Fix compilation and add missing -lGLU with gcc-4.4

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.