Comment 1 for bug 108582

Revision history for this message
mc^2 (mkoren) wrote :

Hm, next interesting thing in an INSTALL file:
4.2)
   Curses has an interface header file named form.h. If on your system
   this is in a system header file directory such as /usr/include, you
   have a problem. That's because Perl also has a file named form.h
   in a directory that is searched before the system directories in the
   compile of the Perl Curses module.

   So you'll have to fix that. It's better to have your Curses stuff
   in its own directory. /usr/include/ncurses is conventional. Move
   all your Curses header files (curses.h, ncurses.h, form.h, menu.h,
   panel.h) into this directory If you use /usr/include/ncurses,
   Makefile.PL will find them there. Otherwise, set the _CFLAGS
   environment variables below accordingly.

   You can ignore all this if you're not building forms capability
   into the Perl Curses module (by specifying "FORMS" as an option to
   Makefile.PL below).

Of course it is the case in the debian package libncurses5-dev, hence the problem. It would be nice if someone fixed this (I'll do this myself on my machine but probably some other packages look for ncurses headers in /usr/include so it might be a little pain in the ass to do it thoroughly).