Skip Menu |

This queue is for tickets about the Curses CPAN distribution.

Report information
The Basics
Id: 11529
Status: resolved
Priority: 0/
Queue: Curses

People
Owner: Nobody in particular
Requestors: tsan [...] tdias.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.08
Fixed in: (no value)



Subject: Curses.c (Curses-1.08) doesn't compile on cygwin (perl 5.8.6)
F.Y.I. Problem is that include directory '/usr/lib/perl5/5.8/cygwin/CORE' also contains a form.h and that is the one that's being included instead of /usr/include/form.h The attached hints file includes curses related headers <ncurses/form.h>, <ncurses/curses.h>, etc. instead. ** Build output ** perl Makefile-PL PANELS MENUS FORMS make gcc -c -I/usr/local/include -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" "-I/usr/lib/perl5/5.8/cygwin/CORE" Curses.c In file included from /usr/lib/perl5/5.8/cygwin/CORE/perl.h:475, from Curses.c:14: /usr/lib/perl5/5.8/cygwin/CORE/embed.h:2912:1: warning: "instr" redefined In file included from c-config.h:9, from Curses.c:11: /usr/include/curses.h:924:1: warning: this is the location of the previous definition In file included from /usr/lib/perl5/5.8/cygwin/CORE/perl.h:1806, from Curses.c:14: /usr/lib/perl5/5.8/cygwin/CORE/handy.h:85:1: warning: "bool" redefined In file included from /usr/include/curses.h:143, from c-config.h:9, from Curses.c:11: /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stdbool.h:36:1: warning: this is the location of the previous definition Curses.c:143: error: parse error before '*' token Curses.c: In function `c_sv2field': Curses.c:148: error: `FIELD' undeclared (first use in this function) Curses.c:148: error: (Each undeclared identifier is reported only once Curses.c:148: error: for each function it appears in.) Curses.c:148: error: parse error before ')' token Curses.c: In function `c_field2sv':
/* Hint file for the Cygwin platform. * * If this configuration doesn't work, look at the file "c-none.h" * for how to set the configuration options. */ /* These hints thanks to Federico Spinazzi <spinazzi@databankgroup.it> */ #include <curses.h> #ifdef C_PANELSUPPORT #include <panel.h> #endif #ifdef C_MENUSUPPORT #include <menu.h> #endif #ifdef C_FORMSUPPORT #include <form.h> #endif #undef C_LONGNAME #undef C_LONG0ARGS #undef C_LONG2ARGS #undef C_TOUCHLINE #undef C_TOUCH3ARGS #undef C_TOUCH4ARGS
The attached file appears to be the original, rather than the fixed version, but I'll update c-cygwin.h as described.