Opened 13 years ago

Last modified 13 years ago

#30312 closed defect

clang cannot compile ncurses — at Version 1

Reported by: Veence (Vincent) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: clang Cc: jmr@…
Port: ncurses

Description (last modified by Veence (Vincent))

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.

Change History (3)

Changed 13 years ago by Veence (Vincent)

Attachment: patch-cursesf_h.diff added

Patch for cursesf.h

Changed 13 years ago by Veence (Vincent)

Attachment: patch-cursesm_h.diff added

Patch for cursesm.h

comment:1 Changed 13 years ago by Veence (Vincent)

Description: modified (diff)
Summary: clang cannot compile nursesclang cannot compile ncurses
Note: See TracTickets for help on using tickets.