Compile perl-curses1.06 on HPUX 11.23 (191 Views)
Reply
Occasional Visitor
Jason Xu
Posts: 2
Registered: ‎12-01-2004
Message 1 of 6 (191 Views)

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.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,387
Registered: ‎03-06-2006
Message 2 of 6 (191 Views)

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?
Please use plain text.
Occasional Visitor
Jason Xu
Posts: 2
Registered: ‎12-01-2004
Message 3 of 6 (191 Views)

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]

Please use plain text.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,185
Registered: ‎10-13-1997
Message 4 of 6 (191 Views)

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
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,387
Registered: ‎03-06-2006
Message 5 of 6 (191 Views)

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?
Please use plain text.
Occasional Advisor
Holger Dietze
Posts: 7
Registered: ‎05-20-2003
Message 6 of 6 (190 Views)

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'        ],

Please use plain text.
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