From: Hans-Bernhard B. <br...@ph...> - 2004-04-21 14:16:30
|
On Wed, 21 Apr 2004, Lars Hecking wrote: > This is mainly an exercise to test whether gnuplot 4 compiles with K&R > compilers - it should, with ansi2knr, but it doesn't. Any ideas? > > make[3]: Entering directory `/tmp/gnuplot-4.0.0/src' > cc -E -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.0\" -DCONTACT=\"gnu...@li...\" -DHELPFILE=\"/usr/local/share/gnuplot/4.0/gnuplot.gih\" -I/usr/include/X11 `if test -f ./axis.c; then echo ./axis.c; else echo axis.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | ./ansi2knr > axis_.c || rm -f axis_.c > ./axis.h: 521: bad formal: \ > > ./axis.h: 576: bad formal: \ Hmmm... looks like that preprocessor can't cope with \ continuation in the middle of a macro definition's argument list. A look into _axis.c might tell, if it's not removed immediately. > source='axis_.c' object='axis_.o' libtool=no \ > depfile='.deps/axis_.Po' tmpdepfile='.deps/axis_.TPo' \ > depmode=none /usr/local/gnu/bin/bash ../depcomp \ > cc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.0\" -DCONTACT=\"gnu...@li...\" -DHELPFILE=\"/usr/local/share/gnuplot/4.0/gnuplot.gih\" -I/usr/include/X11 -g -c `test -f 'axis_.c' || echo './'`axis_.c > "./axis.c", line 58: operands of = have incompatible types > "./axis.c", line 58: operands of = have incompatible types > "./axis.c", line 58: illegal initialization > "./axis.c", line 58: operands of = have incompatible types > "./axis.c", line 58: illegal initialization > "./axis.c", line 58: too many initializers > "./axis.c", line 58: too many initializers [...] Same here: I'll need a copy of _axis.c to see what's wrong here. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |