Dialog

Dialog

am 12.04.2007 21:32:49 von faria

Hello,

I made a login in repository CPAN.
After i run command : install Dialog

It could be a bug ?

The make gave errors. See below:

install Dialog
Running install for module Dialog
Running make for U/UN/UNCLE/Dialog-0.03.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.pop-mg.com.br/pub/CPAN/authors/id/U/UN/UNCLE/Dial og-0.03.tar.gz
LWP not available
Fetching with Net::FTP:
ftp://cpan.pop-mg.com.br/pub/CPAN/authors/id/U/UN/UNCLE/CHEC KSUMS
Checksum for /root/.cpan/sources/authors/id/U/UN/UNCLE/
Dialog-0.03.tar.gz ok
Dialog-0.03/
Dialog-0.03/typemap
Dialog-0.03/Dialog/
Dialog-0.03/Dialog/Const.pm
Dialog-0.03/Dialog/TInputLine.pm
Dialog-0.03/Dialog/TButton.pm
Dialog-0.03/Dialog/TLabel.pm
Dialog-0.03/Dialog.pod
Dialog-0.03/MANIFEST
Dialog-0.03/Makefile.PL
Dialog-0.03/Changes
Dialog-0.03/Dialog.xs
Dialog-0.03/test.pl
Dialog-0.03/Dialog.pm
Dialog-0.03/README

CPAN.pm: Going to build U/UN/UNCLE/Dialog-0.03.tar.gz

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -ldialog
Writing Makefile for Dialog
cp Dialog/TButton.pm blib/lib/Dialog/TButton.pm
cp Dialog/Const.pm blib/lib/Dialog/Const.pm
AutoSplitting blib/lib/Dialog/Const.pm (blib/lib/auto/Dialog/Const)
cp Dialog/TInputLine.pm blib/lib/Dialog/TInputLine.pm
cp Dialog.pod blib/lib/Dialog.pod
cp Dialog.pm blib/lib/Dialog.pm
AutoSplitting blib/lib/Dialog.pm (blib/lib/auto/Dialog)
cp Dialog/TLabel.pm blib/lib/Dialog/TLabel.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/
perl/5.8/ExtUtils/typemap -typemap typemap Dialog.xs > Dialog.xsc &&
mv Dialog.xsc Dialog.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-
strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=3D64 -O2 -DVERSION=3D\"0.03\" -DXS_VERSION=3D\"0.03\" -
fPIC "-I/usr/lib/perl/5.8/CORE" Dialog.c
Dialog.xs:15:1: warning: "instr" redefined
In file included from /usr/lib/perl/5.8/CORE/perl.h:756,
from Dialog.xs:7:
/usr/lib/perl/5.8/CORE/embed.h:2375:1: warning: this is the location
of the previous definition
Dialog.xs:16:20: error: dialog.h: Arquivo ou diret=F3rio n=E3o encontrado
Dialog.xs: In function 'constant':
Dialog.xs:37: error: 'ATTRIBUTE_COUNT' undeclared (first use in this
function)
Dialog.xs:37: error: (Each undeclared identifier is reported only once
Dialog.xs:37: error: for each function it appears in.)
Dialog.xs:46: error: 'HAVE_NCURSES' undeclared (first use in this
function)
Dialog.xs:49: error: 'MAX_LEN' undeclared (first use in this function)
Dialog.xs:55: error: 'border_attr' undeclared (first use in this
function)
Dialog.xs:57: error: 'button_active_attr' undeclared (first use in
this function)
Dialog.xs:59: error: 'button_inactive_attr' undeclared (first use in
this function)
Dialog.xs:61: error: 'button_key_active_attr' undeclared (first use in
this function)
Dialog.xs:63: error: 'button_key_inactive_attr' undeclared (first use
in this function)
Dialog.xs:65: error: 'button_label_active_attr' undeclared (first use
in this function)
Dialog.xs:67: error: 'button_label_inactive_attr' undeclared (first
use in this function)
Dialog.xs:70: error: 'check_attr' undeclared (first use in this
function)
Dialog.xs:72: error: 'check_selected_attr' undeclared (first use in
this function)
Dialog.xs:75: error: 'darrow_attr' undeclared (first use in this
function)
Dialog.xs:77: error: 'dialog_attr' undeclared (first use in this
function)
Dialog.xs:80: error: 'inputbox_attr' undeclared (first use in this
function)
Dialog.xs:82: error: 'inputbox_border_attr' undeclared (first use in
this function)
Dialog.xs:84: error: 'item_attr' undeclared (first use in this
function)
Dialog.xs:86: error: 'item_selected_attr' undeclared (first use in
this function)
Dialog.xs:89: error: 'menubox_attr' undeclared (first use in this
function)
Dialog.xs:91: error: 'menubox_border_attr' undeclared (first use in
this function)
Dialog.xs:94: error: 'position_indicator_attr' undeclared (first use
in this function)
Dialog.xs:97: error: 'screen_attr' undeclared (first use in this
function)
Dialog.xs:99: error: 'searchbox_attr' undeclared (first use in this
function)
Dialog.xs:101: error: 'searchbox_border_attr' undeclared (first use in
this function)
Dialog.xs:103: error: 'searchbox_title_attr' undeclared (first use in
this function)
Dialog.xs:105: error: 'shadow_attr' undeclared (first use in this
function)
Dialog.xs:108: error: 'tag_attr' undeclared (first use in this
function)
Dialog.xs:110: error: 'tag_key_attr' undeclared (first use in this
function)
Dialog.xs:112: error: 'tag_key_selected_attr' undeclared (first use in
this function)
Dialog.xs:114: error: 'tag_selected_attr' undeclared (first use in
this function)
Dialog.xs:116: error: 'title_attr' undeclared (first use in this
function)
Dialog.xs:119: error: 'uarrow_attr' undeclared (first use in this
function)
Dialog.c: In function 'XS_Dialog_draw_shadow':
Dialog.c:196: error: 'WINDOW' undeclared (first use in this function)
Dialog.c:196: error: 'win' undeclared (first use in this function)
Dialog.c:199: error: 'stdscr' undeclared (first use in this function)
Dialog.c:201: error: expected expression before ')' token
Dialog.c: In function 'XS_Dialog_draw_box':
Dialog.c:222: error: 'chtype' undeclared (first use in this function)
Dialog.c:222: error: expected ';' before 'box'
Dialog.c:223: error: expected ';' before 'border'
Dialog.c:224: error: 'WINDOW' undeclared (first use in this function)
Dialog.c:224: error: 'win' undeclared (first use in this function)
Dialog.c:227: error: 'stdscr' undeclared (first use in this function)
Dialog.c:229: error: expected expression before ')' token
Dialog.xs:167: error: 'box' undeclared (first use in this function)
Dialog.xs:167: error: 'border' undeclared (first use in this function)
Dialog.c: In function 'XS_Dialog_line_edit':
Dialog.c:250: error: 'WINDOW' undeclared (first use in this function)
Dialog.c:250: error: 'win' undeclared (first use in this function)
Dialog.c:258: error: 'stdscr' undeclared (first use in this function)
Dialog.c:260: error: expected expression before ')' token
Dialog.xs:180: error: 'MAX_LEN' undeclared (first use in this
function)
Dialog.xs:183: error: 'dialog_attr' undeclared (first use in this
function)
Dialog.c: In function 'XS_Dialog_stdscr':
Dialog.c:284: error: 'WINDOW' undeclared (first use in this function)
Dialog.c:284: error: 'RETVAL' undeclared (first use in this function)
Dialog.xs:193: error: 'stdscr' undeclared (first use in this function)
Dialog.c: In function 'XS_Dialog_attrset':
Dialog.c:349: error: 'chtype' undeclared (first use in this function)
Dialog.c:349: error: expected ';' before 'attr'
Dialog.c:351: error: 'attr' undeclared (first use in this function)
Dialog.xs: In function 'XS_Dialog_gotoyx':
Dialog.xs:234: error: 'stdscr' undeclared (first use in this function)
Dialog.xs: In function 'XS_Dialog_Menu':
Dialog.xs:317: error: 'na' undeclared (first use in this function)
Dialog.xs: In function 'XS_Dialog_CheckList':
Dialog.xs:349: error: 'na' undeclared (first use in this function)
Dialog.xs: In function 'XS_Dialog_RadioList':
Dialog.xs:389: error: 'na' undeclared (first use in this function)
Dialog.xs: In function 'XS_Dialog_InputBox':
Dialog.xs:414: error: 'MAX_LEN' undeclared (first use in this
function)
make: ** [Dialog.o] Erro 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

best regards,

Faria

Re: Dialog

am 12.04.2007 22:05:48 von Sherm Pendley

"Faria" writes:

> I made a login in repository CPAN.
> After i run command : install Dialog
>
> It could be a bug ?

No, it's not a bug.

> Checking if your kit is complete...
> Looks good
> Note (probably harmless): No library found for -ldialog

Not so harmless. This module appears to be a "wrapper" for libdialog, which
isn't present on your system. Also...

> Dialog.xs:16:20: error: dialog.h: Arquivo ou diretório não encontrado

The dialog.h header wasn't found either. I assume that dialog.h would have
included curses.h in turn, as that's where most of these undeclared functions
would have been found.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Re: Dialog

am 13.04.2007 13:38:26 von faria

On 12 abr, 17:05, Sherm Pendley wrote:
> "Faria" writes:
> > I made a login in repository CPAN.
> > After i run command : install Dialog
>
> > It could be a bug ?
>
> No, it's not a bug.
>
> > Checking if your kit is complete...
> > Looks good
> > Note (probably harmless): No library found for -ldialog
>
> Not so harmless. This module appears to be a "wrapper" for libdialog, whi=
ch
> isn't present on your system. Also...
>
> > Dialog.xs:16:20: error: dialog.h: Arquivo ou diret=F3rio n=E3o encontra=
do
>
> The dialog.h header wasn't found either. I assume that dialog.h would have
> included curses.h in turn, as that's where most of these undeclared funct=
ions
> would have been found.
>
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net

Hello Sherm,

I'm using Debian. I found this files in my filesystem:


/usr/include/dialog.h
/usr/include/InterViews/dialog.h
/usr/include/IV-2_6/InterViews/dialog.h
/usr/include/IV-3_1/InterViews/dialog.h
/usr/include/cdk/dialog.h
/usr/src/linux-source-2.6.18/scripts/kconfig/lxdialog/dialog .h

Nothing about ncurses and dialog.h isn't found.

I try to make again, the error messages was changed.

perl: warning: Falling back to the standard locale ("C").
cp Dialog/Const.pm blib/lib/Dialog/Const.pm
AutoSplitting blib/lib/Dialog/Const.pm (blib/lib/auto/Dialog/Const)
cp Dialog/TButton.pm blib/lib/Dialog/TButton.pm
cp Dialog/TInputLine.pm blib/lib/Dialog/TInputLine.pm
cp Dialog.pod blib/lib/Dialog.pod
cp Dialog.pm blib/lib/Dialog.pm
AutoSplitting blib/lib/Dialog.pm (blib/lib/auto/Dialog)
cp Dialog/TLabel.pm blib/lib/Dialog/TLabel.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/
perl/5.8/ExtUtils/typemap -typemap typemap Dialog.xs > Dialog.xsc &&
mv Dialog.xsc Dialog.c
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE =3D "pt_BR:pt:en",
LC_ALL =3D (unset),
LANG =3D "pt_BR"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-
strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=3D64 -O2 -DVERSION=3D\"0.03\" -DXS_VERSION=3D\"0.03\" -
fPIC "-I/usr/lib/perl/5.8/CORE" Dialog.c
Dialog.xs:15:1: warning: "instr" redefined
In file included from /usr/lib/perl/5.8/CORE/perl.h:756,
from Dialog.xs:7:
/usr/lib/perl/5.8/CORE/embed.h:2375:1: warning: this is the location
of the previous definition
Dialog.xs: In function 'constant':
Dialog.xs:37: error: 'ATTRIBUTE_COUNT' undeclared (first use in this
function)
Dialog.xs:37: error: (Each undeclared identifier is reported only once
Dialog.xs:37: error: for each function it appears in.)
Dialog.xs:46: error: 'HAVE_NCURSES' undeclared (first use in this
function)
Dialog.xs: In function 'XS_Dialog_Init':
Dialog.xs:137: error: too few arguments to function 'init_dialog'
Dialog.xs: In function 'XS_Dialog_Menu':
Dialog.xs:317: error: 'na' undeclared (first use in this function)
Dialog.xs:325: warning: passing argument 7 of 'dialog_menu' from
incompatible pointer type
Dialog.xs:325: error: too many arguments to function 'dialog_menu'
Dialog.xs: In function 'XS_Dialog_CheckList':
Dialog.xs:349: error: 'na' undeclared (first use in this function)
Dialog.xs:357: warning: passing argument 7 of 'dialog_checklist' from
incompatible pointer type
Dialog.xs:357: warning: passing argument 8 of 'dialog_checklist' makes
integer from pointer without a cast
Dialog.xs: In function 'XS_Dialog_RadioList':
Dialog.xs:389: error: 'na' undeclared (first use in this function)
Dialog.xs: In function 'XS_Dialog_InputBox':
Dialog.xs:416: error: too few arguments to function 'dialog_inputbox'
make: *** [Dialog.o] Error 1

Best regards,

Faria