Click here to get back home

Compile problem: Curses::Widgets

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Compile problem: Curses::Widgets HaroldWho 09-24-2007
Posted by HaroldWho on September 24, 2007, 2:54 pm
Please log in for more thread options

I have a problem compiling the Curses::Widgets module. I'm on Slackware
12.0 if that matters. The Curses module compiled OK and passed the testing
phase.

The 'perl Makefile.PL' step seems OK. The 'make test' seems OK too, but when
the Curses color test screen appears and I press a key (as instructed), the
app terminates with 'Error 255.'

I have an app that uses Curses::Widgets, and it fails with the message:

"Curses function 'chgat' called with too many arguments at
/usr/lib/perl5/site_perl/5.8.8/Curses/Widgets/ButtonSet.pm line 305."

I'm stumped. Any suggestions?

FYI, here's what the compile and test showed on the console:

root@Beagle:/opt/src/CursesWidgets-1.997# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Curses::Widgets

root@Beagle:/opt/src/CursesWidgets-1.997# make test
cp Widgets.pm blib/lib/Curses/Widgets.pm
cp Widgets/ButtonSet.pm blib/lib/Curses/Widgets/ButtonSet.pm
cp Widgets/Tutorial/Creation.pod blib/lib/Curses/Widgets/Tutorial/Creation.pod
cp Widgets/Calendar.pm blib/lib/Curses/Widgets/Calendar.pm
cp Widgets/ListBox.pm blib/lib/Curses/Widgets/ListBox.pm
cp Widgets/ListBox/MultiColumn.pm blib/lib/Curses/Widgets/ListBox/MultiColumn.pm
cp Widgets/Tutorial.pod blib/lib/Curses/Widgets/Tutorial.pod
cp Widgets/ProgressBar.pm blib/lib/Curses/Widgets/ProgressBar.pm
cp Widgets/Menu.pm blib/lib/Curses/Widgets/Menu.pm
cp Widgets/ComboBox.pm blib/lib/Curses/Widgets/ComboBox.pm
cp Widgets/TextMemo.pm blib/lib/Curses/Widgets/TextMemo.pm
cp Widgets/TextField.pm blib/lib/Curses/Widgets/TextField.pm
cp Widgets/Label.pm blib/lib/Curses/Widgets/Label.pm

PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-Iblib/lib" "-Iblib/arch" test.pl
*** [test_dynamic] Error 255

--
Powered by Slackware 12.0 Linux -- Kernel 2.6.21.5-smp
News Reader slrn 0.9.8.1



Posted by Ekki Plicht (DF4OR) on September 24, 2007, 3:24 pm
Please log in for more thread options
HaroldWho wrote:

[...]
> I have an app that uses Curses::Widgets, and it fails with the message:
>
> "Curses function 'chgat' called with too many arguments at
> /usr/lib/perl5/site_perl/5.8.8/Curses/Widgets/ButtonSet.pm line 305."

What version of ncurses are you using? Here it's 5.6.20061217, find out with
$ ncurses5-config --version

Maybe your installed version is too old? Here the chgat call looks as
follows:
$ man curs_attr
[...]
int chgat(int n, attr_t attr, short color,
const void *opts)
[...]


Rgds,
Ekki


Posted by HaroldWho on September 25, 2007, 2:40 pm
Please log in for more thread options
On Mon, 24 Sep 2007 21:24:48 +0200, Ekki Plicht (DF4OR) wrote
        in comp.lang.perl.modules:
> HaroldWho wrote:
>
> [...]
>> I have an app that uses Curses::Widgets, and it fails with the message:
>>
>> "Curses function 'chgat' called with too many arguments at
>> /usr/lib/perl5/site_perl/5.8.8/Curses/Widgets/ButtonSet.pm line 305."
>
> What version of ncurses are you using? Here it's 5.6.20061217, find out with
> $ ncurses5-config --version
>
> Maybe your installed version is too old? Here the chgat call looks as
> follows:
> $ man curs_attr
> [...]
> int chgat(int n, attr_t attr, short color,
> const void *opts)

My version is 5.6.20070217. Not too old, but perhaps too new :-)

So, I'm still at a loss. I guess I'll have to dummy up some simple scripts
for Curses and Curses::Widgets to see what makes the failure happen.

Thanks for the suggestion.

HW
--
Powered by Slackware 12.0 Linux -- Kernel 2.6.21.5-smp
News Reader slrn 0.9.8.1



Posted by Ekki Plicht (DF4OR) on September 25, 2007, 3:00 pm
Please log in for more thread options
HaroldWho wrote:

> On Mon, 24 Sep 2007 21:24:48 +0200, Ekki Plicht (DF4OR) wrote
> in comp.lang.perl.modules:
>> HaroldWho wrote:
>>
>> [...]
>>> I have an app that uses Curses::Widgets, and it fails with the message:
>>>
>>> "Curses function 'chgat' called with too many arguments at
>>> /usr/lib/perl5/site_perl/5.8.8/Curses/Widgets/ButtonSet.pm line 305."
>>
>> What version of ncurses are you using? Here it's 5.6.20061217, find out
>> with $ ncurses5-config --version
>>
>> Maybe your installed version is too old? Here the chgat call looks as
>> follows:
>> $ man curs_attr
>> [...]
>> int chgat(int n, attr_t attr, short color,
>> const void *opts)
>
> My version is 5.6.20070217. Not too old, but perhaps too new :-)
>
> So, I'm still at a loss. I guess I'll have to dummy up some simple scripts
> for Curses and Curses::Widgets to see what makes the failure happen.

Well, what does your manpage say (man curs_attr)? Or the source? It's easy
to find the reason for that error, you just have to look. The solve the
problem might be another issue.

Rgds,
Ekki


Posted by HaroldWho on September 27, 2007, 1:58 pm
Please log in for more thread options
On Tue, 25 Sep 2007 21:00:14 +0200, Ekki Plicht (DF4OR) wrote
        in comp.lang.perl.modules:
>
> Well, what does your manpage say (man curs_attr)? Or the source? It's easy
> to find the reason for that error, you just have to look. The solve the
> problem might be another issue.

My man page says the same as yours. The source pm's for Widgets look OK, but
I'm not really sophisticated enough at reading perl code to be confident.

You've given me an idea though. I'll go back to my old versions of those
pm's on another partition and do a 'diff'. Maybe that'll shed some light.

Thanks for following this.

HW
--
Powered by Slackware 12.0 Linux -- Kernel 2.6.21.5-smp
News Reader slrn 0.9.8.1



Similar ThreadsPosted
Curses::Widgets::Menu Question May 11, 2005, 8:32 pm
SOLVED: Curses::Widgets Runtime Error October 13, 2007, 3:01 pm
CDK vs Curses::UI April 15, 2005, 11:12 am
Perl Tk:Scheduler command called subroutine fails to talk to tk widgets January 31, 2007, 2:05 pm
keylist for set_binding in Curses::UI February 7, 2005, 3:11 pm
Curses-perl that doesn't live up to it's name? November 10, 2006, 10:30 pm
Installing Curses Module? February 22, 2008, 11:45 am
curses module installation failed March 16, 2006, 1:26 pm
Curses::UI::Widget - binding function keys July 18, 2006, 1:53 am
ANNOUNCE: Curses interface for Config::Model May 15, 2007, 7:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap