02-18-2002 12:04 PM
I get the follow errors and compiling terminates:-
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
Anyone had any success with this before or have any suggestions?
02-19-2002 08:24 AM
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)
find . -type f | xargs grep A_ALCHARSET
See also on perl directories.
02-19-2002 08:29 AM
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.
02-27-2002 03:31 AM - edited 11-09-2011 12:36 AM
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/b
in c-config.h and your problems will disappear :)
11-08-2011 02:58 AM
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
11-08-2011 07:06 AM
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.
11-08-2011 09:41 PM
>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.
11-09-2011 12:38 AM
I now have huge black unused areas and wrapped columns