Skip Menu |

This queue is for tickets about the Curses CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: gbrown [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.06
Fixed in: (no value)



Subject: Compiling on Red Hat 8
This is a relevant snippet from the output of "make". I have to admit I don't know any C so this is almost all meaningless to me: I am attempting to compile on Red Hat Linux 8.0 on x86, with Perl 5.8.0, ncurses 5.2-28, gcc 3.2-7 and glibc 2.2.93: gcc -c -I/usr/include/ncurses -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -m cpu=i686 -DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" -fpic "-I/usr/lib/perl5/5.8. 0/i386-linux-thread-multi/CORE" Curses.c In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:1 713, from Curses.c:14: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/handy.h:83:1: warning: "bool" redefined In file included from c-config.h:9, from Curses.c:11: /usr/include/ncurses/curses.h:117:1: warning: this is the location of the previo us definition Curses.c: In function `c_sv2window': Curses.c:275: warning: passing arg 1 of `Perl_sv_isa' from incompatible pointer type Curses.c:275: warning: passing arg 2 of `Perl_sv_isa' from incompatible pointer type Curses.c:275: too few arguments to function `Perl_sv_isa' In file included from Curses.c:344: CursesFun.c: In function `XS_Curses_newterm': CursesFun.c:1279: warning: initialization from incompatible pointer type CursesFun.c:1280: warning: initialization from incompatible pointer type CursesFun.c: In function `XS_Curses_putwin': CursesFun.c:3453: warning: initialization from incompatible pointer type CursesFun.c: In function `XS_Curses_getwin': CursesFun.c:3472: warning: initialization from incompatible pointer type make: *** [Curses.o] Error 1
From: frymaster
the same problem appears on red hat 9 (perl 5.8). the soluction - for me at least - is to edit Curses.c at line 275 Curses.c line 275 if (Perl_sv_isa(sv, "Curses::Window")) { should read: if (sv_isa(sv, "Curses::Window")) { make should then run as normal....
I have just taken over maintainership of this package and have applied the fix in Curses-1.07.