Date: Wed, 5 Jan 2011 11:53:56 GMT From: Sergei Arefiev <nbspjr@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/153701: x11-toolkits/gigi fails to build Message-ID: <201101051153.p05BruNN078812@red.freebsd.org> Resent-Message-ID: <201101051200.p05C0PI6082688@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101051153.p05BruNN078812>