> Trying to compile on Solaris/SPARC 7, under gcc-3.1,
> in xdvik get:
>
> gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./.. -I../../libs/libwww -I./../../libs/libwww 
>-DHAVE_LIBWWW -DHAVE_WWWLIB_H -I../../libs/t1lib -I./../../libs/t1lib 
>-I../../libs/t1lib/../type1 -I./../../libs/t1lib/../type1 -DPS_GS -DOmega 
>-I../../libs/t1lib/lib/t1lib -I../kpathsea   -g -O2  -c dvi-draw.c
> dvi-draw.c:1418: conflicting types for `set_char'
> dvi-draw.c:1418: an argument type that has a default promotion can't match an em
> pty parameter name list declaration
> xdvi.h:1117: previous declaration of `set_char'

If NeedFunctionPrototypes is not set, then
  dvi-draw.c has     void set_char (cmd, ch) wide_ubyte cmd; wide_ubyte ch; { ... }
  xdvi.h     has     void set_char ();

If NeedFunctionPrototypes is set, then
  dvi-draw.c has     void set_char (wide_ubyte cmd, wide_ubyte ch) { ... }
  xdvi.h     has     void set_char (wide_ubyte, wide_ubyte);

Can you please check if adding
  -DNeedFunctionPrototypes
fixes your problem?

Thomas

Reply via email to