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

Bug 430196

Summary: x11-libs/gtk+-3.2.4-r1 does not compile
Product: Gentoo Linux Reporter: Patrick ALLAERT <patrickallaert>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick ALLAERT 2012-08-06 15:40:54 UTC
Compile ends because of M_PI not being defined in docs/tools/shadow.c:

shadow.c(16): error: identifier "M_PI" is undefined
      return ((1 / (2 * M_PI * r)) *

This is weird since the file correctly contains:
#include <math.h>
Comment 1 Patrick ALLAERT 2012-08-06 15:43:27 UTC
Replacing M_PI with: 3.14159265358979323846
solves the problem and gtk+ can be fully compiled with only this change.
Comment 2 Patrick ALLAERT 2012-08-06 15:45:28 UTC
Interesting read at: http://stackoverflow.com/questions/5007925/using-m-pi-with-c89-standard
Comment 3 Pacho Ramos gentoo-dev 2012-08-26 07:01:14 UTC
Is this still valid with  latest gtk+-3.4.x?
Comment 4 Pacho Ramos gentoo-dev 2012-09-11 07:03:44 UTC
(In reply to comment #3)
> Is this still valid with  latest gtk+-3.4.x?