Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430196 - x11-libs/gtk+-3.2.4-r1 does not compile
Summary: x11-libs/gtk+-3.2.4-r1 does not compile
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 15:40 UTC by Patrick ALLAERT
Modified: 2012-09-11 07:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?