[MacPorts] #40434: qpopper @4.0.9_0 - Compile error - Build failure
#40434: qpopper @4.0.9_0 - Compile error - Build failure -----------------------+-------------------------------- Reporter: maurice@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: qpopper | Port: -----------------------+-------------------------------- {{ ---> Building qpopper Error: org.macports.build for port qpopper returned: command execution failed Please see the log file for port qpopper for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_qpopper/qpopper/main.log }} {{ :info:build popper.c:153:25: error: conflicting types for 'getline' :info:build char * getline(); :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 ^ :info:build popper.c:428:2: error: conflicting types for 'getline' :info:build *getline ( char *str, int size, POP *pPOP ) :info:build ^ :info:build /usr/include/stdio.h:449:9: note: previous declaration is here }} Problem appears to be that qpopper redefines getline and clang does not permit this. The fix appears to be cd -- Ticket URL: <https://trac.macports.org/ticket/40434> MacPorts <http://www.macports.org/> Ports system for OS X
#40434: qpopper @4.0.9_0 - Compile error - Build failure ------------------------+-------------------------------- Reporter: maurice@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: qpopper Port: | ------------------------+-------------------------------- Comment (by maurice@…): Apologies for the worst bug report I have ever submitted ... the problem is that qpopper redefines cline and clang does not allow this. The solution is to add: @define getline localgetline in the popper/popper.c file. A patch file is included to do this patch, but it will also need to be added to the patchfiles line in the Portfile -- Ticket URL: <https://trac.macports.org/ticket/40434#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#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@…): * keywords: qpopper => haspatch lion mountainlion * port: => qpopper Old description:
{{ ---> Building qpopper Error: org.macports.build for port qpopper returned: command execution failed Please see the log file for port qpopper for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_qpopper/qpopper/main.log }} {{ :info:build popper.c:153:25: error: conflicting types for 'getline' :info:build char * getline(); :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 ^ :info:build popper.c:428:2: error: conflicting types for 'getline' :info:build *getline ( char *str, int size, POP *pPOP ) :info:build ^ :info:build /usr/include/stdio.h:449:9: note: previous declaration is here }}
Problem appears to be that qpopper redefines getline and clang does not permit this. The fix appears to be cd
New description: {{{ ---> Building qpopper Error: org.macports.build for port qpopper returned: command execution failed Please see the log file for port qpopper for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_qpopper/qpopper/main.log }}} {{{ :info:build popper.c:153:25: error: conflicting types for 'getline' :info:build char * getline(); :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 ^ :info:build popper.c:428:2: error: conflicting types for 'getline' :info:build *getline ( char *str, int size, POP *pPOP ) :info:build ^ :info:build /usr/include/stdio.h:449:9: note: previous declaration is here }}} Problem appears to be that qpopper redefines getline and clang does not permit this. The fix appears to be cd -- -- Ticket URL: <https://trac.macports.org/ticket/40434#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#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
#40434: qpopper @4.0.9_0: Build failure: error: conflicting types for 'getline' ------------------------+---------------------------------------- Reporter: maurice@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: haspatch lion mountainlion Port: qpopper | ------------------------+---------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:3 ryandesign@…]:
qpopper is outdated, so I'll check if updating to the latest version would help.
Yes it does. This specific problem was fixed in qpopper 4.1.b18. Updated the port to 4.1.0 in r111330. -- Ticket URL: <https://trac.macports.org/ticket/40434#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts