[MacPorts] #35619: sdcc: error: conflicting types for 'getline'
MacPorts
noreply at macports.org
Fri Aug 10 02:56:41 PDT 2012
#35619: sdcc: error: conflicting types for 'getline'
------------------------------------------+---------------------------------
Reporter: fabrizio.giuliano@… | Owner: snc@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: wontfix | Keywords:
Port: sdcc |
------------------------------------------+---------------------------------
Changes (by ryandesign@…):
* status: new => closed
* resolution: => wontfix
Comment:
If you're deliberately trying to [wiki:howto/InstallingOlderPort install
an older version of the port], that's fine, but you might run into some
problems that have been fixed in later versions. And this is one of those
problems. On Lion and later, it's not legal to define a function with the
name "getline", because Lion already defines function of that name. The
developers of sdcc already fixed this in version 3.0, and MacPorts fixed
it by updating the port to that version. If you must have sdcc 2.9, then
you could manually apply the patch. Here's what the ChangeLog says about
how they fixed it:
{{{
2009-05-03 Borut Razem <borut.razem AT siol.net>
* as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in,
as/link/z80/Makefile.in, as/link/lk_readnl.c,
as/link/lk_readnl.h,
as/link/lklib.c, as/link/lkrel.c, as/link/lksdcclib.c:
getline renamed to lk_readln to prevent conflicts with Fedora 11
glibc-2.9.90-19 getline;
see https://bugzilla.redhat.com/show_bug.cgi?id=488217
}}}
--
Ticket URL: <https://trac.macports.org/ticket/35619#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list