#40434: qpopper @4.0.9_0: Build failure: error: conflicting types for 'getline' ------------------------+---------------------------------------- Reporter: maurice@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: haspatch lion mountainlion Port: qpopper | ------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Replying to [ticket:40434 maurice@…]:
Problem appears to be that qpopper redefines getline and clang does not permit this.
It's not a compiler issue; it's an OS issue. OS X 10.7 Lion for the first time includes a function called "getline", but qpopper defines its own function of that name, and it happens to be different from the one in Lion, hence the error message. The fix we usually employ in other ports is to rename the project's getline function. In this case, qpopper is outdated, so I'll check if updating to the latest version would help. -- Ticket URL: <https://trac.macports.org/ticket/40434#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X