Perl Curses::Forms don't work on AMD64
Bug #108582 reported by
mc^2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcurses-perl (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libcurses-perl
I'm learning curses in perl and to my astonishment I found that one of the demos (namely demo.form) doesn't work - just like any forms I try to do in fact. A quick look in the HISTORY of a downloaded version 1.15:
>New in 1.14 (June 3, 2006)
> Make demo.form work on 64 bit machine.
Version in the repos is 1.13 (I'm using Dapper but I looked that it's the same in Feisty (and in Debian as a matter of fact).
Time to update the repos?
To post a comment you must log in.
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 ncurses is conventional. Move ncurses,
in its own directory. /usr/include/
all your Curses header files (curses.h, ncurses.h, form.h, menu.h,
panel.h) into this directory If you use /usr/include/
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).