help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-nano] RE: compiling nano on HP-UX


From: Jay
Subject: [Help-nano] RE: compiling nano on HP-UX
Date: Tue, 17 Feb 2009 21:50:39 +0000

The include is of stdarg.h with angle brackets.
My email is getting munged, sorry.
 
 - Jay



----------------------------------------
> From: address@hidden
> To: address@hidden
> Subject: FW: compiling nano on HP-UX
> Date: Tue, 17 Feb 2009 15:34:44 +0000
>
>
> [bounced there]
>
>
>
> From: jay.krell@
> To: nano-devel@
> Subject: compiling nano on HP-UX
> Date: Tue, 17 Feb 2009 15:20:58 +0000
>
>
>
> nano-2.1.9
>
>
> -bash-3.2$ gcc -v
> Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.6/specs
> Configured with: /src/gcc-3.3.6/configure -verbose 
> -with-as=/usr/local/bin/gas -with-gnu-as
> Thread model: single
> gcc version 3.3.6
>
>
> -bash-3.2$ uname -a
> HP-UX jkhpux1 B.11.11 U 9000/800 1595760578 unlimited-user license
> This is I think "11v1".
>
>
> color.c: In function `color_init':
> color.c:86: error: `COLOR_WHITE' undeclared (first use in this function)
> color.c:86: error: (Each undeclared identifier is reported only once
> color.c:86: error: for each function it appears in.)
> color.c:93: error: `COLOR_BLACK' undeclared (first use in this function)
> gmake: *** [color.o] Error 1
> -bash-3.2$ pwd
> /src/nano-2.1.9/src
> -bash-3.2$ cp color.c color.c.orig
>
>
>
> put #define _XOPEN_SOURCE_EXTENDED at the top of color.c
> => /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.6/include/curses.h:755: 
> error: syntax error
> before "va_list"
>
>
> put #include at the top of color.c
> => works
>
>
> I don't have GNU diff yet:
> -bash-3.2$ diff color.c.orig color.c
> 23a24,25
>> #define _XOPEN_SOURCE_EXTENDED
>> #include
>
>
> Either order compiles, but this seems better.
>
>
> rcfile.c: In function `color_to_short':
> rcfile.c:543: error: `COLOR_GREEN' undeclared (first use in this function)
> rcfile.c:543: error: (Each undeclared identifier is reported only once
> rcfile.c:543: error: for each function it appears in.)
> rcfile.c:545: error: `COLOR_RED' undeclared (first use in this function)
>
> same thing.
>
> -bash-3.2$ diff rcfile.c.orig rcfile.c
> 23a24,25
>> #define _XOPEN_SOURCE_EXTENDED
>> #include
>
>
> and then it builds and works.
>
>
> Thanks,
> - Jay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]