[MacPorts] #35879: gnuplot: workaround for non-C99-compliant compiler (_Bool)
MacPorts
noreply at macports.org
Tue Aug 28 11:35:53 PDT 2012
#35879: gnuplot: workaround for non-C99-compliant compiler (_Bool)
--------------------------------------------+-------------------------------
Reporter: mojca.miklavec.lists@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: gnuplot
--------------------------------------------+-------------------------------
Following a report on the mailing list (gnuplot doesn't compile on Mac OS
X 10.6 with Xcode 4.2 which doesn't have C99-compliant compiler) here's a
patch that should solve the problem for that platform (and I hope that it
will be applied upstream).
If anyone else was bitten by this, please report.
{{{
In file included from ./plot.h:46,
from wxterminal/wxt_gui.h:113,
from wxterminal/wxt_gui.cpp:96:
./mouse.h:189: error: variable or field 'set_ruler' declared void
./mouse.h:189: error: '_Bool' was not declared in this scope
./mouse.h:189: error: expected primary-expression before 'int'
./mouse.h:189: error: expected primary-expression before 'int'
./mouse.h:197: error: '_Bool' has not been declared
In file included from wxterminal/wxt_gui.h:113,
from wxterminal/wxt_gui.cpp:96:
./plot.h:53: error: '_Bool' does not name a type
./plot.h:54: error: '_Bool' does not name a type
./plot.h:55: error: '_Bool' does not name a type
}}}
https://sourceforge.net/tracker/index.php?func=detail&aid=3562307&group_id=2055&atid=302055
Disclaimer: I'm not able to test this patch since I don't have access to
old Xcode on 10.6.
--
Ticket URL: <https://trac.macports.org/ticket/35879>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list