Re: a problem compiling on Solaris/SPARC 7, gcc 3.1
> 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
a problem compiling on Solaris/SPARC 7, gcc 3.1
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' dvi-draw.c:1513: conflicting types for `load_n_set_char' dvi-draw.c:1513: an argument type that has a default promotion can't match an em pty parameter name list declaration xdvi.h:1118: previous declaration of `load_n_set_char' dvi-draw.c: In function `load_n_set_char': dvi-draw.c:1517: warning: assignment from incompatible pointer type dvi-draw.c: At top level: dvi-draw.c:1546: conflicting types for `set_vf_char' dvi-draw.c:1546: an argument type that has a default promotion can't match an em pty parameter name list declaration xdvi.h:1119: previous declaration of `set_vf_char' dvi-draw.c:1616: conflicting types for `set_no_char' dvi-draw.c:1616: an argument type that has a default promotion can't match an em pty parameter name list declaration dvi-draw.c:590: previous declaration of `set_no_char' dvi-draw.c: In function `draw_part': dvi-draw.c:1673: warning: assignment from incompatible pointer type dvi-draw.c: In function `geom_do_char': etc and compile fails... I took an (extremely brief) look at the stuff and it appears that dvi-draw seems to try declaring a function of typedef set_char with four parameter, whule set_char has been typedef'ed to have two parameters... Sigh... Any comments? What am I doing wrong? Should not be using gcc 3.1 at all? Is any more data needed to identify a problem? --Boris