Re: Compiling Curses.pm on HP-UX 11.00 (1677 Views)
Reply
Occasional Advisor
Phil Smith
Posts: 8
Registered: ‎01-09-1997
Message 1 of 8 (1,696 Views)

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.
Honored Contributor
Carlos Fernandez Riera
Posts: 1,172
Registered: ‎09-16-1998
Message 2 of 8 (1,696 Views)

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
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 3 of 8 (1,696 Views)

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.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,188
Registered: ‎10-13-1997
Message 4 of 8 (1,696 Views)

Re: Compiling Curses.pm on HP-UX 11.00

[ Edited ]

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
Occasional Advisor
Holger Dietze
Posts: 7
Registered: ‎05-20-2003
Message 5 of 8 (1,695 Views)

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

Honored Contributor
H.Merijn Brand (procura
Posts: 6,188
Registered: ‎10-13-1997
Message 6 of 8 (1,691 Views)

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
Acclaimed Contributor
Dennis Handly
Posts: 25,096
Registered: ‎03-06-2006
Message 7 of 8 (1,682 Views)

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.

Honored Contributor
H.Merijn Brand (procura
Posts: 6,188
Registered: ‎10-13-1997
Message 8 of 8 (1,677 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.