Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Compile perl-curses1.06 on HPUX 11.23

Highlighted
Jason Xu
Occasional Visitor

Compile perl-curses1.06 on HPUX 11.23

I have perl 5.8.8 with Oracle DBD abd DBI installed. I try to install perl-curse-1.0.6, and here is the error when I am try to compiler. Has any one succefully comipled on HPUX?
Warning 181: "CursesFun.c", line 3766 # Expected 1 argument(s) for "void c_setmevent(sv *)"; had 2 instead.
c_setmevent(ST(0), event);
^^^^^^^^^^^^^^^^^^^^^^^^^
Error 172: "CursesBoot.c", line 459 # Undeclared variable 'A_INVIS'.
C_NEWCS("A_ATTRIBUTES", A_ATTRIBUTES);
^^^^^^^
*** Error exit code 2

Stop.
5 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Compile perl-curses1.06 on HPUX 11.23

From the line in question, it seems it has two arguments. If you create a .i file (-E -.i), you can see what the prototype has by just looking at the .i file. A .i file also expands the macros, so you may be able to find A_INVIS for your line 459.

You seems to have a very old (aCC5) aC++ compiler, what version do you have?
Jason Xu
Occasional Visitor

Re: Compile perl-curses1.06 on HPUX 11.23

Here is my compiler version

(Bundled) cc: HP aC++/ANSI C B3910B A.05.50 [May 15 2003]

H.Merijn Brand (procura
Honored Contributor

Re: Compile perl-curses1.06 on HPUX 11.23

Did you supply the correct include dir? Did you specify you want curses instead of ncurses? ncurses is by default not available on HP-UX

a5:/usr/local/include 102 > fgrep -w -r A_INVIS *
ncurses/curses.h:#define WA_INVIS A_INVIS
ncurses/curses.h:#define A_INVIS NCURSES_BITS(1UL,15)

a5:/usr/include 104 > fgrep -w -r A_INVIS *
curses.h:#define A_INVIS 000020000000
curses.h:#define WA_INVIS A_INVIS
curses.h:#define A_ATTRIBUTES A_STANDOUT|A_UNDERLINE|A_REVERSE|A_BLINK|A_DIM|A_BOLD|A_INVIS|A_PROTECT|A_ALTCHARSET|A_COLOR
curses_colr/curses.h:#define A_INVIS 000020000000L

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

Re: Compile perl-curses1.06 on HPUX 11.23

Did you get a chance to look at the .i file? Or did Merijn's suggestion help?
Holger Dietze
Occasional Advisor

Re: Compile perl-curses1.06 on HPUX 11.23

see thread 4161656.

It is possible to include ncurses with a little change in Makefile.PL line 116, change it to

 

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