[MacPorts] #39805: libcerf: compile error on 10.6
#39805: libcerf: compile error on 10.6 ---------------------+--------------------- Reporter: mojca@… | Owner: mojca@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: libcerf ---------------------+--------------------- libcerf fails to compile on 10.6 buildbot with {{{ w_of_z.c:84:40: error: imaginary constants are a GCC extension w_of_z.c:176:43: error: imaginary constants are a GCC extension w_of_z.c:180:59: error: imaginary constants are a GCC extension w_of_z.c:225:45: error: imaginary constants are a GCC extension }}} https://build.macports.org/builders/buildports-snowleopard- x86_64/builds/18815 It seems that this is either gcc 4.2's fault: * http://gcc.gnu.org/gcc-4.2/c99status.html or a problem with combining {{{-pedantic}}} and {{{-Werror}}} There is no hurry to fix this (deadline would be the release of gnuplot months ahead) and simply declaring in the portfile that it doesn't support 10.6 (or that it needs a different compiler) should be ok as well. -- Ticket URL: <https://trac.macports.org/ticket/39805> MacPorts <http://www.macports.org/> Ports system for OS X
#39805: libcerf: compile error on 10.6 ----------------------+--------------------- Reporter: mojca@… | Owner: mojca@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: libcerf | ----------------------+--------------------- Comment (by mojca@…): I'm just confirming that the following patch works: {{{ --- configure +++ configure @@ -11432,7 +11432,7 @@ if test "x$ac_cv_prog_cc_c99" != xno; then : fi -AM_CFLAGS="-pedantic -Wall -Werror" +AM_CFLAGS="-pedantic -Wall" ac_config_headers="$ac_config_headers config.h" # to avoid endless -D options --- configure.ac +++configure.ac @@ -31,7 +31,7 @@ AM_INIT_AUTOMAKE([foreign]) # don't insert GNU standard text files LT_INIT([disable-static]) AC_PROG_CC_C99 -AC_SUBST(AM_CFLAGS,"-pedantic -Wall -Werror") +AC_SUBST(AM_CFLAGS,"-pedantic -Wall") AC_CONFIG_HEADERS([config.h]) # to avoid endless -D options AC_HEADER_STDC }}} Unless other MacPorters disagree, I can simply patch the {{{configure}}} script in {{{Portfile}}} ({{{configure.ac}}} may not be patched, else build process complains about missing {{{aclocal}}}). I don't see any urge to patch the upstream sources, but I leave that to others to discuss. -- Ticket URL: <https://trac.macports.org/ticket/39805#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39805: libcerf: compile error on 10.6 ----------------------+--------------------- Reporter: mojca@… | Owner: mojca@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: libcerf | ----------------------+--------------------- Changes (by mojca@…): * status: new => closed * resolution: => fixed Comment: Fixed in r108342, the buildbot is happy now (https://build.macports.org/builders/buildports-snowleopard- x86_64/builds/18883). I removed {{{-Werror}}} unconditionally and in {{{configure}}} only. If anyone objects, feel free to comment or commit. -- Ticket URL: <https://trac.macports.org/ticket/39805#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts