| Summary: | x11-libs/gtk+-3.2.4-r1 does not compile | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Patrick ALLAERT <patrickallaert> |
| Component: | [OLD] GNOME | Assignee: | 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: | --- | |
Replacing M_PI with: 3.14159265358979323846 solves the problem and gtk+ can be fully compiled with only this change. Interesting read at: http://stackoverflow.com/questions/5007925/using-m-pi-with-c89-standard Is this still valid with latest gtk+-3.4.x? (In reply to comment #3) > Is this still valid with latest gtk+-3.4.x? |
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>