ports/153701: x11-toolkits/gigi fails to build
Sergei Arefiev
nbspjr at gmail.com
Wed Jan 5 12:00:26 UTC 2011
>Number: 153701
>Category: ports
>Synopsis: x11-toolkits/gigi fails to build
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 05 12:00:24 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Sergei Arefiev
>Release: 8.1-RELEASE
>Organization:
>Environment:
$ uname -a
FreeBSD lair 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Fails to build with gcc45 and above, there is an error output:
O2 -fPIC -I/usr/local/include -I/usr/local/include/freetype2 -I. -Ilibltdl src/adobe/basic_sheet.cpp
g++46 -o src/adobe/eve.os -c -O2 -pipe -I. -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -pthread -Wall -Wno-parentheses -O2 -fPIC -I/usr/local/include -I/usr/local/include/freetype2 -I. -Ilibltdl src/adobe/eve.cpp
In file included from src/adobe/eve.cpp:21:0:
./GG/adobe/cmath.hpp:47:2: error: #error "Unknown GCC compiler configuration for cmath (last known version is 4.0.1)."
scons: *** [src/adobe/eve.os] Error 1
scons: building terminated because of errors.
*** Error code 2
>How-To-Repeat:
1. Upgrade GCC to gcc45 or gcc46
2. cd /usr/ports/x11-toolkits/gigi && make clean install
>Fix:
See attachment.
Patch attached with submission follows:
--- GG/adobe/cmath.hpp.orig 2011-01-05 13:35:35.631436941 +0200
+++ GG/adobe/cmath.hpp 2011-01-05 13:35:50.973926288 +0200
@@ -37,14 +37,14 @@
#define ADOBE_HAS_CPP_CMATH
-#elif ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 4))
+#elif ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 6))
/*
The currently supported version of GNUC has C99 extensions in math.h. But no TR1 extensions.
*/
#define ADOBE_HAS_C99_MATH_H
#else
-#error "Unknown GCC compiler configuration for cmath (last known version is 4.0.1)."
+#error "Unknown GCC compiler configuration for cmath (last known version is 4.6.0)."
#endif
#elif defined(_MSC_VER)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list