Opened 12 years ago

Closed 12 years ago

#35822 closed defect (fixed)

dap fails to compile on Lion due to redefined getline()

Reported by: Polyergic (Shad Sterling) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: lion Cc:
Port: dap

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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         ^

Attachments (1)

main.log (7.5 KB) - added by Polyergic (Shad Sterling) 12 years ago.
build log

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Polyergic (Shad Sterling)

Attachment: main.log added

build log

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: lion added; dap Lion getline removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: dap added
Status: newassigned

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.