Operating System - HP-UX
1748066 Members
5251 Online
108758 Solutions
New Discussion юеВ

Compiling Curses.pm on HP-UX 11.00

 
Phil Smith
Occasional Advisor

Compiling Curses.pm on HP-UX 11.00

I have a requirement for the perlmenu.pm module. This has a dependancy on the Curses.pm module which seems to be living up to it's name.

I get the follow errors and compiling terminates:-

# make
gcc -c -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" -fPIC -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE Curses.c
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:347:
CursesBoot.c: In function `boot_Curses':
CursesBoot.c:459: `A_INVIS' undeclared (first use in this function)
CursesBoot.c:459: (Each undeclared identifier is reported only once
CursesBoot.c:459: for each function it appears in.)
CursesBoot.c:459: `A_PROTECT' undeclared (first use in this function)
CursesBoot.c:459: `A_ALTCHARSET' undeclared (first use in this function)
CursesBoot.c:459: `A_COLOR' undeclared (first use in this function)
*** Error exit code 1

Stop.

Anyone had any success with this before or have any suggestions?

Regards


Phil.
7 REPLIES 7
Carlos Fernandez Riera
Honored Contributor

Re: Compiling Curses.pm on HP-UX 11.00


I have not work whit perlmenu but:

A_ALTCHARSET and other refers to attibutes of chars, and should be defined in a header file (.h)


do:

cd /usr/include

find . -type f | xargs grep A_ALCHARSET

See also on perl directories.



unsupported
A. Clay Stephenson
Acclaimed Contributor

Re: Compiling Curses.pm on HP-UX 11.00

Hi Phil:

I seldom use gcc though it is a solid compiler but any gcc build that uses curses depends upon the ncurses package rather than standard curses. You need to download and build the ncurses library from any of the HP-UX Porting Centres.
If it ain't broke, I can fix that.
H.Merijn Brand (procura
Honored Contributor

Re: Compiling Curses.pm on HP-UX 11.00

gcc does not *need* ncurses. IMHO ncurses is a hell to maintain on HP-UX.

The easy solution is probably to just switch to xcurses or curses_color, standard shipped with hpux. I don't have any gcc built perls around (nor do I want to compared to the HPc build perl performance.

I just tried to compile Curses-1.06 from ftp://download.xs4all.nl/pub/mirror/CPAN/modules/by-module/Curses/Curses-1.06.tar.gz with the HPc compiler on perl-5.6.1 (HPc built), and got the same errors.

Change

 '#include <curses.h>'

to

 '#include <curses_colr.h>'

in c-config.h and your problems will disappear :)

Enjoy, Have FUN! H.Merijn
Holger Dietze
Occasional Advisor

Re: Compiling Curses.pm on HP-UX 11.00

I do not understand the differenz between these two include statements, howevver I got it to compile with

a change in line 116 from Makefile.PL

 

   116    'hpux'      => [ '-I/usr/local/include/ncurses'   => '-lcurses -ltermcap'        ],

 

BTW this is same question as in thread 4161656 and thread 3902305

H.Merijn Brand (procura
Honored Contributor

Re: Compiling Curses.pm on HP-UX 11.00

These two #include statements originally had real content that got lost in the conversion to this forum format. I agree that that posts now makes close to no sense at all.

Enjoy, Have FUN! H.Merijn
Dennis Handly
Acclaimed Contributor

Re: Compiling Curses.pm on HP-UX 11.00

>These two #include statements originally had real content that got lost in the conversion to this forum format.

 

By looking at the raw html, you can guess what the was in the <>.  If you are the author, you can edit the post.

H.Merijn Brand (procura
Honored Contributor

Re: Compiling Curses.pm on HP-UX 11.00

Updated. Looking at the raw html needs Ctrl-U now under Opera. The styling of this forum is not improving over time :(
I now have huge black unused areas and wrapped columns
Enjoy, Have FUN! H.Merijn