Skip Menu |

This queue is for tickets about the Curses CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: alexchorny [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.14
Fixed in: (no value)



Subject: Attempt to compile with MSVC
ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread Binary build 813 I'm trying to compile Curses.pm under MSVC with pdcurses library. I propose to add link to pdcurses (http://pdcurses.sourceforge.net/) to 'INSTALL'. I've encountered several problems with it: 1. 'pdcurses.h' does not exists, only 'curses.h'. Renamed it. 2. 'curses.h' also defines chtype and attr_t. Commented out there. 3. 'curses.h' also defines SCREEN. Commented out in 'CursesTyp.h'. 4. `perl demo` fails Curses function 'TIESCALAR' called with too few arguments at C:\cpan\Curses-1.14\blib\lib/Curses.pm line 82. Compilation failed in require at demo line 11. 5. I propose to add load test. Attached is '00-load.t', which should be put in 't/' directory. 6. `nmake cdemo` fails because it expects .o extension. 'Makefile.PL.patch' corrects this. ------- Alexandr Ciornii, http://chorny.net
Subject: Makefile.PL.patch
--- Makefile.PL.dist Sat Jun 3 00:18:48 2006 +++ Makefile.PL Sat Sep 23 01:54:45 2006 @@ -396,6 +396,7 @@ my ($this, %args) = @_; my $echo = $OSNAME eq 'VMS' ? 'write sys$output' : 'echo'; + my $objext = $OSNAME eq 'MSWin32' ? 'obj' : 'o'; my $mf = <<EOM; CursesDef.h: c-config.h Makefile.PL list.syms \$(PERL) test.syms $args{COMPONENTS} @@ -403,7 +404,7 @@ c-config.h: @ $echo "You need to make a c-config.h. See the INSTALL document."; @ exit 1 -cdemo: cdemo.o c-config.h +cdemo: cdemo.$objext c-config.h EOM if ($OSNAME eq 'VMS') {
Subject: 00-load.t
#!perl use Test::More tests => 1; BEGIN { use_ok( 'Curses' ); } diag( "Testing Curses $Curses::VERSION, Perl $]" );
Release 1.15 has the .obj patch, the test file, and the reference to Pdcurses in INSTALL, along with the notes about it from this ticket.