#35822: dap fails to compile on Lion due to redefined getline() ---------------------------------+------------------------------------------ Reporter: me@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: lion | Port: dap ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * status: new => assigned * keywords: dap Lion getline => lion * owner: macports-tickets@… => ryandesign@… * port: => dap Old description:
It looks like Lion introduced a new getline() in the system headers which conflicts with a getline() defined by dap.
:info:build dap0.c:546:12: error: static declaration of 'getline' follows non-static declaration :info:build static int getline(DFILE *fp, char *line) :info:build ^ :info:build /usr/include/stdio.h:449:9: note: previous declaration is here :info:build ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); :info:build ^
New description: It looks like Lion introduced a new getline() in the system headers which conflicts with a getline() defined by dap. {{{ :info:build dap0.c:546:12: error: static declaration of 'getline' follows non-static declaration :info:build static int getline(DFILE *fp, char *line) :info:build ^ :info:build /usr/include/stdio.h:449:9: note: previous declaration is here :info:build ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); :info:build ^ }}} -- -- Ticket URL: <https://trac.macports.org/ticket/35822#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS