[MacPorts] #30312: clang cannot compile nurses
#30312: clang cannot compile nurses --------------------------------+------------------------------------------- Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: clang | Port: ncurses --------------------------------+------------------------------------------- The clang++ compiler does not compile nurses 1.9 because of a mistake between {{{ NCursesUserForm (NCursesFormField* Fields[],…) and NCursesUserForm (NCursesFormField Fields[], }}} in cursesm.h and cursesf.h. Apparently, since this objects are never instantiated, GCC does not complain about the type mismatch, whereas clang is more correct. I join two patches that fix this inconsistency. Please update the portfile accordingly. -- Ticket URL: <https://trac.macports.org/ticket/30312> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30312: clang cannot compile ncurses --------------------------------+------------------------------------------- Reporter: vince@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: clang | Port: ncurses --------------------------------+------------------------------------------- Description changed by vince@…: Old description:
The clang++ compiler does not compile nurses 1.9 because of a mistake between
{{{ NCursesUserForm (NCursesFormField* Fields[],…) and NCursesUserForm (NCursesFormField Fields[], }}}
in cursesm.h and cursesf.h.
Apparently, since this objects are never instantiated, GCC does not complain about the type mismatch, whereas clang is more correct.
I join two patches that fix this inconsistency. Please update the portfile accordingly.
New description: The clang++ compiler does not compile ncurses 1.9 because of a mistake between {{{ NCursesUserForm (NCursesFormField* Fields[],…) and NCursesUserForm (NCursesFormField Fields[], }}} in cursesm.h and cursesf.h. Apparently, since these objects are never instantiated, GCC does not complain about the type mismatch, whereas clang is more correct. I join two patches that fix this inconsistency. Please update the portfile accordingly. -- -- Ticket URL: <https://trac.macports.org/ticket/30312#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30312: clang cannot compile ncurses --------------------------------+------------------------------------------- Reporter: vince@… | Owner: jmr@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: clang | Port: ncurses --------------------------------+------------------------------------------- Changes (by jmr@…): * status: new => assigned * owner: macports-tickets@… => jmr@… * cc: jmr@… (removed) Comment: Have you sent these upstream? Also, shouldn't you be able to assign tickets? -- Ticket URL: <https://trac.macports.org/ticket/30312#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30312: clang cannot compile ncurses ---------------------------------+------------------------------------------ Reporter: vince@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: fixed | Keywords: clang Port: ncurses | ---------------------------------+------------------------------------------ Changes (by jmr@…): * status: assigned => closed * resolution: => fixed Comment: r81025 -- Ticket URL: <https://trac.macports.org/ticket/30312#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30312: clang cannot compile ncurses ---------------------------------+------------------------------------------ Reporter: vince@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: fixed | Keywords: clang Port: ncurses | ---------------------------------+------------------------------------------ Comment(by vince@…): Sorry, I was a bit in hurry when I registered this ticket (I was on my way to my holiday resort :)), maybe I should have waited till tonight. No, I have not contacted the people upstream, if you want, I can do it. I wonder how this error has gone unnoticed for such a long time. -- Ticket URL: <https://trac.macports.org/ticket/30312#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30312: clang cannot compile ncurses ---------------------------------+------------------------------------------ Reporter: vince@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: fixed | Keywords: clang Port: ncurses | ---------------------------------+------------------------------------------ Comment(by jmr@…): I'll send it upstream, I just didn't want to do it again if you already had. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/30312#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts