[MacPorts] #45623: realpath fails to build with gcc
MacPorts
noreply at macports.org
Sun Oct 26 02:50:51 PDT 2014
#45623: realpath fails to build with gcc
--------------------------+----------------------------
Reporter: ryandesign@… | Owner: dev.modprobe@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Keywords: | Port: realpath
--------------------------+----------------------------
realpath 1.0.0 fails to build on OS X 10.6 with its gcc-4.2 compiler:
https://build.macports.org/builders/buildports-snowleopard-
x86_64/builds/30847/steps/compile/logs/stdio
{{{
/usr/bin/gcc-4.2 -arch x86_64 -o realpath realpath.c -Werror -Wextra
realpath.c:41: error: expected ‘;’, ‘,’ or ‘)’ before ‘stream’
realpath.c:104: error: expected ‘;’, ‘,’ or ‘)’ before ‘stream’
}}}
According to wikipedia, [http://en.wikipedia.org/wiki/Restrict restrict]
was introduced in C99, so the first thing I'd try to fix this would be to
specify in the makefile that C99 should be used. C99 is the default for
clang, but C89 is the default for the gcc used on 10.6 and earlier.
--
Ticket URL: <https://trac.macports.org/ticket/45623>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list