Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 4.3.4-dev-6 on Solaris



Doing "make CFLAGS=-I/usr/local/include/ncursesw"  (or
"CFLAGS=-I/usr/local/include/ncursesw ./configure") helps, since the
compiler then includes /usr/local/include/ncursesw/term.h instead of
/usr/include/term.h

On 24/12/07 12:35, Zvi Har'El wrote:
> Conflict between  /usr/local/include/ncursesw/ncurses.h and
> /usr/include/term.h on Solaris 2.8 and 2.9
>
>
> gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H
> -DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o terminfo..o terminfo.c
>
> In file included from terminfo.c:75:
> /usr/include/term.h:1060: error: syntax error before "SGTTY"
> /usr/include/term.h:1078: error: 'timeout' redeclared as different kind
> of symbol
> /usr/local/include/ncursesw/ncurses.h:748: error: previous declaration
> of 'timeout' was here
> /usr/include/term.h:1078: error: 'timeout' redeclared as different kind
> of symbol
> /usr/local/include/ncursesw/ncurses.h:748: error: previous declaration
> of 'timeout' was here
> /usr/include/term.h:1120: error: syntax error before '}' token
> /usr/include/term.h:1197: error: conflicting types for 'tparm'
> /usr/include/term.h:1197: note: a parameter list with an ellipsis can't
> match an empty parameter name list declaration
> /usr/local/include/ncursesw/ncurses.h:828: error: previous declaration
> of 'tparm' was here
> /usr/include/term.h:1197: error: conflicting types for 'tparm'
> /usr/include/term.h:1197: note: a parameter list with an ellipsis can't
> match an empty parameter name list declaration
> /usr/local/include/ncursesw/ncurses.h:828: error: previous declaration
> of 'tparm' was here
> /usr/include/term.h:1205: error: conflicting types for 'putp'
> /usr/local/include/ncursesw/ncurses.h:825: error: previous declaration
> of 'putp' was here
> /usr/include/term.h:1205: error: conflicting types for 'putp'
> /usr/local/include/ncursesw/ncurses.h:825: error: previous declaration
> of 'putp' was here
> /usr/include/term.h:1207: error: conflicting types for 'vidputs'
> /usr/local/include/ncursesw/ncurses.h:756: error: previous declaration
> of 'vidputs' was here
> /usr/include/term.h:1207: error: conflicting types for 'vidputs'
> /usr/local/include/ncursesw/ncurses.h:756: error: previous declaration
> of 'vidputs' was here
> In file included from terminfo.c:75:
> /usr/include/term.h:1209:26: macro "resetterm" passed 1 arguments, but
> takes just 0
> /usr/include/term.h:1209:41: macro "fixterm" passed 1 arguments, but
> takes just 0
> /usr/include/term.h:1209:57: macro "saveterm" passed 1 arguments, but
> takes just 0
> terminfo.c: In function `boot_':
> terminfo.c:362: warning: implicit declaration of function `setupterm'
> make[3]: *** [terminfo..o] Error 1
> make[3]: Leaving directory `/usr/local/src/build/zsh/Src/Modules'
> make[2]: *** [modules] Error 1
>
>
>
>   

-- 
Dr. Zvi Har'El      mailto:rl@xxxxxxxxxxxxxxxxxxx    Department of Mathematics
tel:+972-54-4227607                  Technion - Israel Institute of Technology
fax:+972-4-8293388  http://www.math.technion.ac.il/~rl/    Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)



Messages sorted by: Reverse Date, Date, Thread, Author