=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/cad/spice", "stage-install", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Installing for spice-3f5.1nb6 => Generating pre-install file lists => Creating installation directories cd /home/pbulk/work/cad/spice/work && env WRKSRC=/home/pbulk/work/cad/spice/work USETOOLS=no CC=gcc CFLAGS=-Wno-implicit-function-declaration\ -Wno-implicit-int\ -Wno-incompatible-pointer-types\ -Wno-int-conversion\ -pipe\ -O2\ -msave-args\ -fno-aggressive-loop-optimizations\ -I/opt/pkg/include/ncurses\ -I/opt/pkg/include CPPFLAGS=-I/opt/pkg/include/ncurses\ -I/opt/pkg/include CXX=g++ CXXFLAGS=-Wno-implicit-function-declaration\ -Wno-implicit-int\ -Wno-incompatible-pointer-types\ -Wno-int-conversion\ -pipe\ -O2\ -msave-args\ -fno-aggressive-loop-optimizations\ -I/opt/pkg/include/ncurses\ -I/opt/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/opt/pkg/lib\ -Wl,-R/opt/pkg/lib LINKER_RPATH_FLAG=-R PATH=/home/pbulk/work/cad/spice/work/.cwrapper/bin:/home/pbulk/work/cad/spice/work/.buildlink/bin:/home/pbulk/work/cad/spice/work/.gcc/bin:/home/pbulk/work/cad/spice/work/.tools/bin:/opt/pkg/bin:/sbin:/usr/bin:/usr/sbin:/opt/tools/bin:/opt/pkg/bin:/opt/pkg/bin PREFIX=/opt/pkg MAKELEVEL=0 CONFIG_SITE= ftp_proxy=downloads-forbidden-except-during-fetch http_proxy=downloads-forbidden-except-during-fetch https_proxy=downloads-forbidden-except-during-fetch no_proxy= PKG_SYSCONFDIR=/etc/opt/pkg CXXCPP=cpp HOME=/home/pbulk/work/cad/spice/work/.home CWRAPPERS_CONFIG_DIR=/home/pbulk/work/cad/spice/work/.cwrapper/config CPP=cpp LOCALBASE=/opt/pkg X11BASE=/opt/pkg PKGMANDIR=share/man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/opt/pkg/bin/bsdinstall\ -c\ \ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_SCRIPT=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_LIB=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_DATA=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 644 BSD_INSTALL_MAN=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 644 BSD_INSTALL=/opt/pkg/bin/bsdinstall BSD_INSTALL_PROGRAM_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_LIB_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_DATA_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_MAN_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_GAME=/opt/pkg/bin/bsdinstall\ -c\ \ -o\ pbulk\ -g\ pbulk\ -m\ 2555 BSD_INSTALL_GAME_DATA=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 664 BSD_INSTALL_GAME_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 775 INSTALL_INFO= MAKEINFO=/home/pbulk/work/cad/spice/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/home/pbulk/work/cad/spice/work/.tools/bin/itstool GDBUS_CODEGEN=/home/pbulk/work/cad/spice/work/.tools/bin/gdbus-codegen PKG_CONFIG=/home/pbulk/work/cad/spice/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/home/pbulk/work/cad/spice/work/.buildlink/lib/amd64/pkgconfig:/home/pbulk/work/cad/spice/work/.buildlink/lib/pkgconfig:/home/pbulk/work/cad/spice/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/home/pbulk/work/cad/spice/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/home/pbulk/work/cad/spice/work/.cwrapper/config DESTDIR=/home/pbulk/work/cad/spice/work/.destdir util/build NetBSD install Begin build on pkgsrc-upstream-trunk for NetBSD on Tue May 19 17:34:15 UTC 2026: Making "install" in work Creating "/home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3" Creating "/home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/helpdir" Creating "/home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/scripts" UPDATING /home/pbulk/work/cad/spice/work/NetBSD/tmp/spice Making "install" in src Making "install" in lib Making "install" in dev Making "install" in disto Done with work/src/lib/dev/disto Making "install" in asrc gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcacld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcacld.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcacld.c: In function 'ASRCacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcacld.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | ASRCacLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcask.c:20: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcask.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcask.c: In function 'ASRCask': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcask.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | ASRCask(ckt,instPtr,which,value,select) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:8: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c: In function 'ASRCconvTest': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | ASRCconvTest( inModel, ckt) | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:38:29: note: in expansion of macro 'NEWN' 38 | asrc_vals = NEWN(double, i); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcconv.c:39:31: note: in expansion of macro 'NEWN' 39 | asrc_derivs = NEWN(double, i); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdel.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdel.c: In function 'ASRCdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdel.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | ASRCdelete(model,name,fast) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcfbr.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcfbr.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcfbr.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcfbr.c: In function 'ASRCfindBr': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcfbr.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | ASRCfindBr(ckt,inputModel,name) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c: In function 'ASRCload': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | ASRCload(inModel,ckt) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c:60:33: note: in expansion of macro 'NEWN' 60 | asrc_vals = NEWN(double, i); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c:61:35: note: in expansion of macro 'NEWN' 61 | asrc_derivs = NEWN(double, i); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcload.c:113:42: note: in expansion of macro 'NEWN' 113 | here->ASRCacValues = NEWN(double, size); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcmdel.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcmdel.c: In function 'ASRCmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcmdel.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | ASRCmDelete(modList,modname,killModel) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpar.c: In function 'ASRCparam': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpar.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | ASRCparam(param,value,fast,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c: In function 'ASRCpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | ASRCpzLoad(inModel,ckt,s) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c:11: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c:50:33: note: in expansion of macro 'NEWN' 50 | asrc_vals = NEWN(double, i); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcpzld.c:51:35: note: in expansion of macro 'NEWN' 51 | asrc_derivs = NEWN(double, i); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c: In function 'ASRCsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | ASRCsetup(matrix,inModel,ckt,states) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:43:43: note: in expansion of macro 'MALLOC' 43 | here->ASRCposptr = (double **)MALLOC(0); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:88:29: note: in expansion of macro 'REALLOC' 88 | REALLOC(here->ASRCposptr, (sizeof(double *)*(j+5))); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:97:29: note: in expansion of macro 'REALLOC' 97 | REALLOC(here->ASRCposptr, (sizeof(double *)*(j+1))); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:103:13: note: in expansion of macro 'REALLOC' 103 | REALLOC(here->ASRCposptr, (sizeof(double *) * (j+2))); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:115:25: note: in expansion of macro 'REALLOC' 115 | REALLOC(here->ASRCposptr, (sizeof(double *) * (j+5))); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:124:25: note: in expansion of macro 'REALLOC' 124 | REALLOC(here->ASRCposptr, (sizeof(double *) * (j+1))); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:130:21: note: in expansion of macro 'REALLOC' 130 | REALLOC(here->ASRCposptr, (sizeof(double *) * (j+2))); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c: In function 'ASRCunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/asrc//asrcset.c:147:1: warning: old-style function definition [-Wold-style-definition] 147 | ASRCunsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/asrc Making "install" in bjt gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtacld.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtacld.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtacld.c: In function 'BJTacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtacld.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | BJTacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c: In function 'BJTask': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTask(ckt,instPtr,which,value,select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c:207:26: note: in expansion of macro 'MALLOC' 207 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c:222:26: note: in expansion of macro 'MALLOC' 222 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtask.c:237:26: note: in expansion of macro 'MALLOC' 237 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtconv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtconv.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtconv.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtconv.c: In function 'BJTconvTest': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtconv.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | BJTconvTest(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdel.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdefs.h:9, from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdel.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdel.c: In function 'BJTdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdel.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | BJTdelete(inModel,name,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdisto.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdisto.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdisto.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdisto.c: In function 'BJTdisto': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdisto.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | BJTdisto(mode,genmodel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdset.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdset.c: In function 'BJTdSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTdSetup(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtgetic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtgetic.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtgetic.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtgetic.c: In function 'BJTgetic': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtgetic.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | BJTgetic(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtload.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtload.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtload.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtload.c: In function 'BJTload': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtload.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTload(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmask.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmask.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmask.c: In function 'BJTmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmask.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | BJTmAsk(ckt,instPtr,which,value) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmdel.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdefs.h:9, from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmdel.c:17: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmdel.c: In function 'BJTmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmdel.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTmDelete(inModels,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmpar.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdefs.h:9, from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmpar.c:18: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmpar.c: In function 'BJTmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtmpar.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | BJTmParam(param,value,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c: In function 'BJTnoise': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:30:1: warning: old-style function definition [-Wold-style-definition] 30 | BJTnoise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:80:33: error: too many arguments to function 'trealloc'; expected 0, have 2 80 | trealloc((char *)data->namelist, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:96:33: error: too many arguments to function 'trealloc'; expected 0, have 2 96 | trealloc((char *)data->namelist, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:107:27: error: too many arguments to function 'trealloc'; expected 0, have 2 107 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:123:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 123 | NevalSrc(&noizDens[BJTRCNOIZ],&lnNdens[BJTRCNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:127:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 127 | NevalSrc(&noizDens[BJTRBNOIZ],&lnNdens[BJTRBNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:131:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 131 | NevalSrc(&noizDens[BJT_RE_NOISE],&lnNdens[BJT_RE_NOISE], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:135:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 135 | NevalSrc(&noizDens[BJTICNOIZ],&lnNdens[BJTICNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:139:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 139 | NevalSrc(&noizDens[BJTIBNOIZ],&lnNdens[BJTIBNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:143:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 143 | NevalSrc(&noizDens[BJTFLNOIZ],(double*)NULL,ckt, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:187:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 187 | tempOnoise = Nintegrate(noizDens[i], lnNdens[i], | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:189:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 189 | tempInoise = Nintegrate(noizDens[i] * data->GainSqInv , | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtnoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtparam.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtdefs.h:9, from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtparam.c:18: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtparam.c: In function 'BJTparam': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtparam.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | BJTparam(param,value,instPtr,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtpzld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtpzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtpzld.c: In function 'BJTpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtpzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | BJTpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsacl.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsacl.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsacl.c: In function 'BJTsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsacl.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTsAcLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsetup.c:20: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsetup.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsetup.c: In function 'BJTsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsetup.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | BJTsetup(matrix,inModel,ckt,states) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsetup.c: In function 'BJTunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsetup.c:218:1: warning: old-style function definition [-Wold-style-definition] 218 | BJTunsetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsload.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsload.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsload.c: In function 'BJTsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsload.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTsLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsprt.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsprt.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsprt.c: In function 'BJTsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsprt.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTsPrint(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsset.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsset.c: In function 'BJTsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | BJTsSetup(info,inModel) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsset.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsset.c:46:43: note: in expansion of macro 'MALLOC' 46 | if((here->BJTsens = (double *)MALLOC(55*sizeof(double))) == | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsupd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsupd.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsupd.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsupd.c: In function 'BJTsUpdate': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjtsupd.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | BJTsUpdate(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttemp.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttemp.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttemp.c: In function 'BJTtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttemp.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | BJTtemp(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttrunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttrunc.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttrunc.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttrunc.c: In function 'BJTtrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/bjt//bjttrunc.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | BJTtrunc(inModel,ckt,timeStep) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/bjt Making "install" in bsim1 gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1acld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1acld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1acld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1acld.c: In function 'B1acLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1acld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B1acLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ask.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ask.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ask.c: In function 'B1ask': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ask.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B1ask(ckt,inst,which,value,select) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1cvtest.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1cvtest.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1cvtest.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1cvtest.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1cvtest.c: In function 'B1convTest': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1cvtest.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B1convTest(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1del.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1del.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//bsim1def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1del.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1del.c: In function 'B1delete': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1del.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B1delete(inModel,name,inInst) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1disto.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1disto.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1disto.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1disto.c: In function 'B1disto': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1disto.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | B1disto(mode,genmodel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1dset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1dset.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1dset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1dset.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1dset.c: In function 'B1dSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1dset.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | B1dSetup(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1eval.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1eval.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1eval.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1eval.c: In function 'B1evaluate': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1eval.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | B1evaluate(vds,vbs,vgs,here,model,gmPointer,gdsPointer,gmbsPointer, | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1getic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1getic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1getic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1getic.c: In function 'B1getic': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1getic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B1getic(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ld.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ld.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ld.c: In function 'B1load': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1ld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B1load(inModel,ckt) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mask.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mask.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mask.c: In function 'B1mAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mask.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | B1mAsk(ckt,inst,which,value) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//bsim1def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mdel.c: In function 'B1mDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B1mDelete(inModel,modname,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//bsim1def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mpar.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mpar.c: In function 'B1mParam': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1mpar.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B1mParam(param,value,inMod) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1par.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1par.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//bsim1def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1par.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1par.c: In function 'B1param': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1par.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | B1param(param,value,inst,select) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1pzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1pzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1pzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1pzld.c: In function 'B1pzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1pzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B1pzLoad(inModel,ckt,s) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1set.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1set.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1set.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1set.c: In function 'B1setup': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1set.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B1setup(matrix,inModel,ckt,states) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1set.c: In function 'B1unsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1set.c:383:1: warning: old-style function definition [-Wold-style-definition] 383 | B1unsetup(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1temp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1temp.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1temp.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1temp.c: In function 'B1temp': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1temp.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B1temp(inModel,ckt) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1trunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1trunc.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1trunc.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1trunc.c: In function 'B1trunc': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim1//b1trunc.c:14:1: warning: old-style function definition [-Wold-style-definition] 14 | B1trunc(inModel,ckt,timeStep) | ^~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/bsim1 Making "install" in bsim2 gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2acld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2acld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2acld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2acld.c: In function 'B2acLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2acld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B2acLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ask.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ask.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ask.c: In function 'B2ask': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ask.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B2ask(ckt,inst,which,value,select) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2cvtest.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2cvtest.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2cvtest.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2cvtest.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2cvtest.c: In function 'B2convTest': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2cvtest.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B2convTest(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2del.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2del.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//bsim2def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2del.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2del.c: In function 'B2delete': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2del.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B2delete(inModel,name,inInst) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2eval.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2eval.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2eval.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2eval.c: In function 'B2evaluate': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2eval.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | B2evaluate(Vds,Vbs,Vgs,here,model,gm,gds,gmb,qg,qb,qd,cgg,cgd,cgs, | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2getic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2getic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2getic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2getic.c: In function 'B2getic': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2getic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B2getic(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ld.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ld.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ld.c: In function 'B2load': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2ld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B2load(inModel,ckt) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mask.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mask.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mask.c: In function 'B2mAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mask.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | B2mAsk(ckt,inst,which,value) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//bsim2def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mdel.c: In function 'B2mDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B2mDelete(inModel,modname,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//bsim2def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mpar.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mpar.c: In function 'B2mParam': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2mpar.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B2mParam(param,value,inMod) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2par.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2par.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//bsim2def.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2par.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2par.c: In function 'B2param': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2par.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | B2param(param,value,inst,select) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2pzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2pzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2pzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2pzld.c: In function 'B2pzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2pzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B2pzLoad(inModel,ckt,s) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2set.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2set.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2set.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2set.c: In function 'B2setup': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2set.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | B2setup(matrix,inModel,ckt,states) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2set.c: In function 'B2unsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2set.c:551:1: warning: old-style function definition [-Wold-style-definition] 551 | B2unsetup(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2temp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2temp.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2temp.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2temp.c: In function 'B2temp': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2temp.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | B2temp(inModel,ckt) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -fno-strength-reduce -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2trunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2trunc.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2trunc.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2trunc.c: In function 'B2trunc': /home/pbulk/work/cad/spice/work/src/lib/dev/bsim2//b2trunc.c:14:1: warning: old-style function definition [-Wold-style-definition] 14 | B2trunc(inModel,ckt,timeStep) | ^~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/bsim2 Making "install" in cap gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capacld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capacld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capacld.c: In function 'CAPacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capacld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CAPacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c: In function 'CAPask': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CAPask(ckt,inst, which, value, select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c:48:26: note: in expansion of macro 'MALLOC' 48 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capask.c:64:26: note: in expansion of macro 'MALLOC' 64 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdefs.h:13, from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdel.c: In function 'CAPdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CAPdelete(inModel,name,inst) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capgetic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capgetic.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capgetic.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capgetic.c: In function 'CAPgetic': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capgetic.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | CAPgetic(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capload.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capload.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capload.c: In function 'CAPload': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capload.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | CAPload(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmask.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmask.c: In function 'CAPmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmask.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | CAPmAsk(ckt,inst,which,value) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdefs.h:13, from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmdel.c: In function 'CAPmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CAPmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdefs.h:13, from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmpar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmpar.c: In function 'CAPmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capmpar.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CAPmParam(param,value,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capdefs.h:13, from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capparam.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capparam.c: In function 'CAPparam': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capparam.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CAPparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//cappzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//cappzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//cappzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//cappzld.c: In function 'CAPpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//cappzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CAPpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsacl.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsacl.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsacl.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsacl.c: In function 'CAPsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsacl.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CAPsAcLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsetup.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsetup.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsetup.c: In function 'CAPsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsetup.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CAPsetup(matrix,inModel,ckt,states) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsload.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsload.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsload.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsload.c: In function 'CAPsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsload.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CAPsLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsprt.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsprt.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsprt.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsprt.c: In function 'CAPsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsprt.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CAPsPrint(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsset.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsset.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsset.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsset.c: In function 'CAPsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CAPsSetup(info,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsupd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsupd.c:15: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsupd.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsupd.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsupd.c: In function 'CAPsUpdate': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//capsupd.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | CAPsUpdate(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captemp.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captemp.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captemp.c: In function 'CAPtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captemp.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CAPtemp(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captrunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captrunc.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captrunc.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captrunc.c: In function 'CAPtrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/cap//captrunc.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CAPtrunc(inModel,ckt,timeStep) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/cap Making "install" in cccs gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c: In function 'CCCSask': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | CCCSask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c:18: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c:57:26: note: in expansion of macro 'MALLOC' 57 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsask.c:72:26: note: in expansion of macro 'MALLOC' 72 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdel.c: In function 'CCCSdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CCCSdelete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsload.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsload.c: In function 'CCCSload': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsload.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CCCSload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsmdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsmdel.c: In function 'CCCSmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CCCSmDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspar.c: In function 'CCCSparam': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CCCSparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspzld.c: In function 'CCCSpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccspzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CCCSpzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssacl.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssacl.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssacl.c: In function 'CCCSsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssacl.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CCCSsAcLoad(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsset.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsset.c: In function 'CCCSsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccsset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CCCSsetup(matrix,inModel,ckt,states) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssld.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssld.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssld.c: In function 'CCCSsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssld.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CCCSsLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssprt.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssprt.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssprt.c: In function 'CCCSsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssprt.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CCCSsPrint(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssset.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssset.c: In function 'CCCSsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/cccs//cccssset.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CCCSsSetup(info,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/cccs Making "install" in ccvs gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c: In function 'CCVSask': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CCVSask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c:18: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c:58:26: note: in expansion of macro 'MALLOC' 58 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsask.c:72:26: note: in expansion of macro 'MALLOC' 72 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdel.c: In function 'CCVSdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CCVSdelete(inModel,name,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsfbr.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsfbr.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsfbr.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsfbr.c: In function 'CCVSfindBr': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsfbr.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CCVSfindBr(ckt,inModel,name) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsload.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsload.c: In function 'CCVSload': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsload.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CCVSload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsmdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsmdel.c: In function 'CCVSmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CCVSmDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspar.c: In function 'CCVSparam': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CCVSparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspzld.c: In function 'CCVSpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvspzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CCVSpzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssacl.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssacl.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssacl.c: In function 'CCVSsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssacl.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | CCVSsAcLoad(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsset.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsset.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsset.c: In function 'CCVSsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsset.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | CCVSsetup(matrix,inModel,ckt,states) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsset.c: In function 'CCVSunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvsset.c:70:1: warning: old-style function definition [-Wold-style-definition] 70 | CCVSunsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssld.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssld.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssld.c: In function 'CCVSsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssld.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CCVSsLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssprt.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssprt.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssprt.c: In function 'CCVSsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssprt.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CCVSsPrint(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssset.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssset.c: In function 'CCVSsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ccvs//ccvssset.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CCVSsSetup(info,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/ccvs Making "install" in csw gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswacld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswacld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswacld.c: In function 'CSWacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswacld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CSWacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c: In function 'CSWask': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | CSWask(ckt,inst,which,value,select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c:20: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c:47:26: note: in expansion of macro 'MALLOC' 47 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswask.c:59:26: note: in expansion of macro 'MALLOC' 59 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdel.c: In function 'CSWdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CSWdelete(inModel,name,inst) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswload.c:10: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswload.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswload.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswload.c: In function 'CSWload': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswload.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | CSWload(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmask.c: In function 'CSWmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmask.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CSWmAsk(ckt,inst,which,value) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmdel.c: In function 'CSWmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | CSWmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmpar.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmpar.c: In function 'CSWmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswmpar.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CSWmParam(param,value,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c: In function 'CSWnoise': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:30:1: warning: old-style function definition [-Wold-style-definition] 30 | CSWnoise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:66:27: error: too many arguments to function 'trealloc'; expected 0, have 2 66 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:78:27: error: too many arguments to function 'trealloc'; expected 0, have 2 78 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:88:27: error: too many arguments to function 'trealloc'; expected 0, have 2 88 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:105:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 105 | NevalSrc(&noizDens,&lnNdens,ckt,THERMNOISE, | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:124:40: error: too many arguments to function 'Nintegrate'; expected 0, have 4 124 | tempOutNoise = Nintegrate(noizDens, lnNdens, | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:126:39: error: too many arguments to function 'Nintegrate'; expected 0, have 4 126 | tempInNoise = Nintegrate(noizDens * | ^~~~~~~~~~ ~~~~~~~~~~ 127 | data->GainSqInv ,lnNdens + data->lnGainInv, | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswnoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswparam.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswparam.c: In function 'CSWparam': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswparam.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CSWparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswpzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswpzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswpzld.c: In function 'CSWpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswpzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CSWpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswsetup.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswsetup.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswsetup.c: In function 'CSWsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/csw//cswsetup.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CSWsetup(matrix,inModel,ckt,states) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/csw Making "install" in dio gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioacld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioacld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioacld.c: In function 'DIOacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioacld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | DIOacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioask.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioask.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioask.c: In function 'DIOask': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioask.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | DIOask (ckt,inst,which,value,select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioask.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioask.c:67:26: note: in expansion of macro 'MALLOC' 67 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioconv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioconv.c:13: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioconv.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioconv.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioconv.c: In function 'DIOconvTest': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioconv.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | DIOconvTest(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodel.c: In function 'DIOdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | DIOdelete(inModel,name,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodisto.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodisto.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodisto.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodisto.c: In function 'DIOdisto': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodisto.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | DIOdisto(mode,genmodel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodset.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodset.c: In function 'DIOdSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodset.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | DIOdSetup(model,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diogetic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diogetic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diogetic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diogetic.c: In function 'DIOgetic': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diogetic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | DIOgetic(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioload.c:13: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioload.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioload.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioload.c: In function 'DIOload': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioload.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | DIOload(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomask.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomask.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomask.c: In function 'DIOmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomask.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | DIOmAsk (ckt,inModel,which, value) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomdel.c: In function 'DIOmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diomdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | DIOmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diompar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diompar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diompar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diompar.c: In function 'DIOmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diompar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | DIOmParam(param,value,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c: In function 'DIOnoise': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:30:1: warning: old-style function definition [-Wold-style-definition] 30 | DIOnoise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:75:27: error: too many arguments to function 'trealloc'; expected 0, have 2 75 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:90:27: error: too many arguments to function 'trealloc'; expected 0, have 2 90 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:101:27: error: too many arguments to function 'trealloc'; expected 0, have 2 101 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:119:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 119 | NevalSrc(&noizDens[DIORSNOIZ],&lnNdens[DIORSNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:123:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 123 | NevalSrc(&noizDens[DIOIDNOIZ],&lnNdens[DIOIDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:127:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 127 | NevalSrc(&noizDens[DIOFLNOIZ],(double*)NULL,ckt, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:168:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 168 | tempOnoise = Nintegrate(noizDens[i], lnNdens[i], | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:170:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 170 | tempInoise = Nintegrate(noizDens[i] * data->GainSqInv , | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dionoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioparam.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diodefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioparam.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioparam.c: In function 'DIOparam': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//dioparam.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | DIOparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diopzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diopzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diopzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diopzld.c: In function 'DIOpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diopzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | DIOpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosacl.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosacl.c:17: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosacl.c: In function 'DIOsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosacl.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | DIOsAcLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosetup.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosetup.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosetup.c: In function 'DIOsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosetup.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | DIOsetup(matrix,inModel,ckt,states) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosetup.c: In function 'DIOunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosetup.c:111:1: warning: old-style function definition [-Wold-style-definition] 111 | DIOunsetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosload.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosload.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosload.c: In function 'DIOsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosload.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | DIOsLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosprt.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosprt.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosprt.c: In function 'DIOsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosprt.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | DIOsPrint(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosset.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosset.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosset.c: In function 'DIOsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | DIOsSetup(info,inModel) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosset.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosset.c:41:43: note: in expansion of macro 'MALLOC' 41 | if((here->DIOsens = (double *)MALLOC(7*sizeof(double))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosupd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosupd.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosupd.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosupd.c: In function 'DIOsUpdate': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diosupd.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | DIOsUpdate(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c: In function 'DIOtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | DIOtemp(inModel,ckt) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c:10: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c:120:28: note: in expansion of macro 'MALLOC' 120 | emsg = MALLOC(100); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotemp.c:142:28: note: in expansion of macro 'MALLOC' 142 | emsg = MALLOC(100); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotrunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotrunc.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotrunc.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotrunc.c: In function 'DIOtrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/dio//diotrunc.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | DIOtrunc(inModel,ckt,timeStep) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/dio Making "install" in ind gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indacld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indacld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indacld.c: In function 'INDacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indacld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | INDacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c: In function 'INDask': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | INDask(ckt,inst,which,value,select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c:46:26: note: in expansion of macro 'MALLOC' 46 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indask.c:56:26: note: in expansion of macro 'MALLOC' 56 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddel.c: In function 'INDdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | INDdelete(inModel,name,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indload.c:15: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indload.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indload.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indload.c: In function 'INDload': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indload.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | INDload(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indmdel.c: In function 'INDmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | INDmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indparam.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indparam.c: In function 'INDparam': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indparam.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | INDparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indpzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indpzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indpzld.c: In function 'INDpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indpzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | INDpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsacl.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsacl.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsacl.c: In function 'INDsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsacl.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | INDsAcLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsetup.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsetup.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsetup.c: In function 'INDsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsetup.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | INDsetup(matrix,inModel,ckt,states) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsetup.c: In function 'INDunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsetup.c:66:1: warning: old-style function definition [-Wold-style-definition] 66 | INDunsetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsload.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsload.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsload.c: In function 'INDsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsload.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | INDsLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsprt.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsprt.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsprt.c: In function 'INDsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsprt.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | INDsPrint(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsset.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsset.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsset.c: In function 'INDsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsset.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | INDsSetup(info,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsupd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsupd.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsupd.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsupd.c: In function 'INDsUpdate': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indsupd.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | INDsUpdate(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indtrunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indtrunc.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indtrunc.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indtrunc.c: In function 'INDtrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//indtrunc.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | INDtrunc(inModel,ckt,timeStep) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutacld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutacld.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutacld.c: In function 'MUTacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutacld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MUTacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutask.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutask.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutask.c: In function 'MUTask': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutask.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MUTask(ckt,inst,which,value,select) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutdel.c: In function 'MUTdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutdel.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MUTdelete(inModel,name,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutmdel.c: In function 'MUTmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutmdel.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MUTmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//inddefs.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutparam.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutparam.c: In function 'MUTparam': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutparam.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MUTparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutpzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutpzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutpzld.c: In function 'MUTpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutpzld.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MUTpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsetup.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsetup.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsetup.c: In function 'MUTsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsetup.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | MUTsetup(matrix,inModel,ckt,states) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsprt.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsprt.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsprt.c: In function 'MUTsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsprt.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | MUTsPrint(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsset.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsset.c: In function 'MUTsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ind//mutsset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | MUTsSetup(info,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/ind Making "install" in isrc gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacct.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacct.c:10: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacct.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacct.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacct.c: In function 'ISRCaccept': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacct.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | ISRCaccept(ckt,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacld.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacld.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacld.c: In function 'ISRCacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcacld.c:14:1: warning: old-style function definition [-Wold-style-definition] 14 | ISRCacLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c: In function 'ISRCask': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | ISRCask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c:20: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c:56:21: note: in expansion of macro 'MALLOC' 56 | MALLOC(here->ISRCfunctionOrder * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcask.c:85:26: note: in expansion of macro 'MALLOC' 85 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdel.c: In function 'ISRCdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | ISRCdelete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcload.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcload.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcload.c: In function 'ISRCload': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcload.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | ISRCload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcmdel.c: In function 'ISRCmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | ISRCmDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcpar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcpar.c: In function 'ISRCparam': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrcpar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | ISRCparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrctemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrctemp.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrctemp.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrctemp.c: In function 'ISRCtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/isrc//isrctemp.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | ISRCtemp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/isrc Making "install" in jfet gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetacld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetacld.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetacld.c: In function 'JFETacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetacld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | JFETacLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c: In function 'JFETask': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | JFETask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c:16: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c:103:26: note: in expansion of macro 'MALLOC' 103 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetask.c:114:26: note: in expansion of macro 'MALLOC' 114 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdel.c: In function 'JFETdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | JFETdelete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdist.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdist.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdist.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdist.c: In function 'JFETdisto': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdist.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | JFETdisto(mode,genmodel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdset.c:13: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/distodef.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdset.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdset.c: In function 'JFETdSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdset.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | JFETdSetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetic.c: In function 'JFETgetic': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | JFETgetic(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetload.c:15: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetload.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetload.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetload.c: In function 'JFETload': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetload.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | JFETload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmask.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmask.c: In function 'JFETmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmask.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | JFETmAsk(ckt,inModel,which,value) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmdel.c: In function 'JFETmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | JFETmDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmpar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmpar.c: In function 'JFETmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetmpar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | JFETmParam(param,value,inModels) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c: In function 'JFETnoise': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | JFETnoise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:75:27: error: too many arguments to function 'trealloc'; expected 0, have 2 75 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:91:27: error: too many arguments to function 'trealloc'; expected 0, have 2 91 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:102:27: error: too many arguments to function 'trealloc'; expected 0, have 2 102 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:119:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 119 | NevalSrc(&noizDens[JFETRDNOIZ],&lnNdens[JFETRDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:123:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 123 | NevalSrc(&noizDens[JFETRSNOIZ],&lnNdens[JFETRSNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:127:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 127 | NevalSrc(&noizDens[JFETIDNOIZ],&lnNdens[JFETIDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:132:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 132 | NevalSrc(&noizDens[JFETFLNOIZ],(double*)NULL,ckt, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:171:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 171 | tempOnoise = Nintegrate(noizDens[i], lnNdens[i], | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:173:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 173 | tempInoise = Nintegrate(noizDens[i] * data->GainSqInv , | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetnoi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpar.c: In function 'JFETparam': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpar.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | JFETparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpzld.c: In function 'JFETpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetpzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | JFETpzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetset.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetset.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetset.c: In function 'JFETsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetset.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | JFETsetup(matrix,inModel,ckt,states) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetset.c: In function 'JFETunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfetset.c:152:1: warning: old-style function definition [-Wold-style-definition] 152 | JFETunsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettemp.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettemp.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettemp.c: In function 'JFETtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettemp.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | JFETtemp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettrun.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettrun.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettrun.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettrun.c: In function 'JFETtrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/jfet//jfettrun.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | JFETtrunc(inModel,ckt,timeStep) | ^~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/jfet Making "install" in ltra gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c: In function 'LTRAaccept': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | LTRAaccept(ckt,inModel) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:8: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:37:24: note: in expansion of macro 'MALLOC' 37 | a = (double *) MALLOC( b * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:42:13: note: in expansion of macro 'LTRAmemMANAGE' 42 | LTRAmemMANAGE(model->LTRAh1dashCoeffs,model->LTRAmodelListSize) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:37:24: note: in expansion of macro 'MALLOC' 37 | a = (double *) MALLOC( b * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:43:13: note: in expansion of macro 'LTRAmemMANAGE' 43 | LTRAmemMANAGE(model->LTRAh2Coeffs,model->LTRAmodelListSize) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:37:24: note: in expansion of macro 'MALLOC' 37 | a = (double *) MALLOC( b * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:44:13: note: in expansion of macro 'LTRAmemMANAGE' 44 | LTRAmemMANAGE(model->LTRAh3dashCoeffs,model->LTRAmodelListSize) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:54:30: note: in expansion of macro 'REALLOC' 54 | REALLOC( (char *) model->LTRAh1dashCoeffs, | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:57:30: note: in expansion of macro 'REALLOC' 57 | REALLOC( (char *) model->LTRAh2Coeffs, | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:60:30: note: in expansion of macro 'REALLOC' 60 | REALLOC( (char *) model->LTRAh3dashCoeffs, | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:37:24: note: in expansion of macro 'MALLOC' 37 | a = (double *) MALLOC( b * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:71:17: note: in expansion of macro 'LTRAmemMANAGE' 71 | LTRAmemMANAGE(here->LTRAv1,here->LTRAinstListSize) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:37:24: note: in expansion of macro 'MALLOC' 37 | a = (double *) MALLOC( b * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:72:17: note: in expansion of macro 'LTRAmemMANAGE' 72 | LTRAmemMANAGE(here->LTRAi1,here->LTRAinstListSize) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:37:24: note: in expansion of macro 'MALLOC' 37 | a = (double *) MALLOC( b * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:73:17: note: in expansion of macro 'LTRAmemMANAGE' 73 | LTRAmemMANAGE(here->LTRAv2,here->LTRAinstListSize) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:37:24: note: in expansion of macro 'MALLOC' 37 | a = (double *) MALLOC( b * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:74:17: note: in expansion of macro 'LTRAmemMANAGE' 74 | LTRAmemMANAGE(here->LTRAi2,here->LTRAinstListSize) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:87:51: note: in expansion of macro 'REALLOC' 87 | here->LTRAv1 = (double *) REALLOC( (char *) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:89:51: note: in expansion of macro 'REALLOC' 89 | here->LTRAi1 = (double *) REALLOC( (char *) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:91:51: note: in expansion of macro 'REALLOC' 91 | here->LTRAi2 = (double *) REALLOC( (char *) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacct.c:93:51: note: in expansion of macro 'REALLOC' 93 | here->LTRAv2 = (double *) REALLOC( (char *) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacld.c:12: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacld.c: In function 'LTRAacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraacld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | LTRAacLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraask.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraask.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraask.c: In function 'LTRAask': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraask.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | LTRAask(ckt,inst,which,value,select) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradel.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradel.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradel.c: In function 'LTRAdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradel.c:14:1: warning: old-style function definition [-Wold-style-definition] 14 | LTRAdelete(inModel,name,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraload.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraload.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraload.c: In function 'LTRAload': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraload.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | LTRAload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramdel.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramdel.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramdel.c: In function 'LTRAmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramdel.c:14:1: warning: old-style function definition [-Wold-style-definition] 14 | LTRAmDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrampar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrampar.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrampar.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrampar.c: In function 'LTRAmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrampar.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | LTRAmParam(param,value,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrapar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrapar.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrapar.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrapar.c: In function 'LTRAparam': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltrapar.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | LTRAparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c: In function 'LTRAsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | LTRAsetup(matrix,inModel,ckt,state) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c: In function 'LTRAunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c:252:1: warning: old-style function definition [-Wold-style-definition] 252 | LTRAunsetup(inModel,ckt) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c:267:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 267 | CKTdltNNum(ckt, (GENERIC *) here->LTRAbrEq1); | ^ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltraset.c:271:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 271 | CKTdltNNum(ckt, (GENERIC *) here->LTRAbrEq2); | ^ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratemp.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratemp.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratemp.c: In function 'LTRAtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratemp.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | LTRAtemp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratrun.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratrun.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratrun.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratrun.c: In function 'LTRAtrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltratrun.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | LTRAtrunc(inModel,ckt,timeStep) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramask.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltradefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramask.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramask.c: In function 'LTRAmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/ltra//ltramask.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | LTRAmAsk(ckt,inModel,param,value) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/ltra Making "install" in mes gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesacl.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesacl.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesacl.c: In function 'MESacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesacl.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MESacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c: In function 'MESask': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | MESask(ckt,inst,which,value,select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c:15: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c:96:27: note: in expansion of macro 'MALLOC' 96 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesask.c:107:27: note: in expansion of macro 'MALLOC' 107 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdel.c: In function 'MESdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MESdelete(inModel,name,inst) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdisto.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdisto.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdisto.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdisto.c: In function 'MESdisto': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdisto.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MESdisto(mode,genmodel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdset.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdset.c: In function 'MESdSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdset.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MESdSetup(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesgetic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesgetic.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesgetic.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesgetic.c: In function 'MESgetic': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesgetic.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MESgetic(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c:13: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c: In function 'MESload': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | MESload(inModel,ckt) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c: In function 'qggnew': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesload.c:462:1: warning: old-style function definition [-Wold-style-definition] 462 | qggnew(vgs,vgd,phib,vcap,vto,cgs,cgd,cgsnew,cgdnew) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmask.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmask.c: In function 'MESmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmask.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MESmAsk(ckt,inst,which,value) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmdel.c: In function 'MESmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MESmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmpar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmpar.c: In function 'MESmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesmpar.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MESmParam(param,value,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c: In function 'MESnoise': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | MESnoise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:75:27: error: too many arguments to function 'trealloc'; expected 0, have 2 75 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:91:27: error: too many arguments to function 'trealloc'; expected 0, have 2 91 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:106:27: error: too many arguments to function 'trealloc'; expected 0, have 2 106 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:124:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 124 | NevalSrc(&noizDens[MESRDNOIZ],&lnNdens[MESRDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:128:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 128 | NevalSrc(&noizDens[MESRSNOIZ],&lnNdens[MESRSNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:132:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 132 | NevalSrc(&noizDens[MESIDNOIZ],&lnNdens[MESIDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:137:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 137 | NevalSrc(&noizDens[MESFLNOIZ],(double*)NULL,ckt, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:176:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 176 | tempOnoise = Nintegrate(noizDens[i], lnNdens[i], | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:178:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 178 | tempInoise = Nintegrate(noizDens[i] * data->GainSqInv , | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesnoise.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesparam.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesparam.c: In function 'MESparam': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mesparam.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MESparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mespzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mespzld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mespzld.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mespzld.c: In function 'MESpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mespzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MESpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//messetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//messetup.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//messetup.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//messetup.c: In function 'MESsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//messetup.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MESsetup(matrix,inModel,ckt,states) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//messetup.c: In function 'MESunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//messetup.c:138:1: warning: old-style function definition [-Wold-style-definition] 138 | MESunsetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestemp.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestemp.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestemp.c: In function 'MEStemp': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestemp.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MEStemp(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestrunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestrunc.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestrunc.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestrunc.c: In function 'MEStrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/mes//mestrunc.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MEStrunc(inModel,ckt,timeStep) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/mes Making "install" in mos1 gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1acld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1acld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1acld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1acld.c: In function 'MOS1acLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1acld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS1acLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c: In function 'MOS1ask': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS1ask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:342:26: note: in expansion of macro 'MALLOC' 342 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:353:26: note: in expansion of macro 'MALLOC' 353 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:370:26: note: in expansion of macro 'MALLOC' 370 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ask.c:388:26: note: in expansion of macro 'MALLOC' 388 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1conv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1conv.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1conv.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1conv.c: In function 'MOS1convTest': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1conv.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | MOS1convTest(inModel,ckt) | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1del.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1del.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1del.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1del.c: In function 'MOS1delete': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1del.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS1delete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dist.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dist.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dist.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dist.c: In function 'MOS1disto': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dist.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS1disto(mode,genmodel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dset.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dset.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dset.c: In function 'MOS1dSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1dset.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS1dSetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ic.c: In function 'MOS1getic': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1ic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS1getic(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1load.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1load.c:12: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1load.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1load.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1load.c: In function 'MOS1load': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1load.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS1load(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mask.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mask.c: In function 'MOS1mAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mask.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS1mAsk(ckt,inst,which,value) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mdel.c: In function 'MOS1mDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS1mDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mpar.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mpar.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mpar.c: In function 'MOS1mParam': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1mpar.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS1mParam(param,value,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c: In function 'MOS1noise': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | MOS1noise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:85:27: error: too many arguments to function 'trealloc'; expected 0, have 2 85 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:101:27: error: too many arguments to function 'trealloc'; expected 0, have 2 101 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:112:27: error: too many arguments to function 'trealloc'; expected 0, have 2 112 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:130:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 130 | NevalSrc(&noizDens[MOS1RDNOIZ],&lnNdens[MOS1RDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:134:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 134 | NevalSrc(&noizDens[MOS1RSNOIZ],&lnNdens[MOS1RSNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:138:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 138 | NevalSrc(&noizDens[MOS1IDNOIZ],&lnNdens[MOS1IDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:142:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 142 | NevalSrc(&noizDens[MOS1FLNOIZ],(double*)NULL,ckt, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:182:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 182 | tempOnoise = Nintegrate(noizDens[i], lnNdens[i], | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:184:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 184 | tempInoise = Nintegrate(noizDens[i] * data->GainSqInv , | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1noi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1par.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1par.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1par.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1par.c: In function 'MOS1param': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1par.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS1param(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1pzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1pzld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1pzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1pzld.c: In function 'MOS1pzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1pzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS1pzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sacl.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sacl.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sacl.c: In function 'MOS1sAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sacl.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | MOS1sAcLoad(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1set.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1set.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1set.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1set.c: In function 'MOS1setup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1set.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS1setup(matrix,inModel,ckt,states) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1set.c: In function 'MOS1unsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1set.c:191:1: warning: old-style function definition [-Wold-style-definition] 191 | MOS1unsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sld.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sld.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sld.c: In function 'MOS1sLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sld.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS1sLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sprt.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sprt.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sprt.c: In function 'MOS1sPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sprt.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS1sPrint(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sset.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sset.c: In function 'MOS1sSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sset.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS1sSetup(info,inModel) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sset.c:11: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1sset.c:42:44: note: in expansion of macro 'MALLOC' 42 | if((here->MOS1sens = (double *)MALLOC(70*sizeof(double))) == NULL) { | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1supd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1supd.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1supd.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1supd.c: In function 'MOS1sUpdate': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1supd.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS1sUpdate(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1temp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1temp.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1temp.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1temp.c: In function 'MOS1temp': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1temp.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS1temp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1trun.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1trun.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1trun.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1trun.c: In function 'MOS1trunc': /home/pbulk/work/cad/spice/work/src/lib/dev/mos1//mos1trun.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS1trunc(inModel,ckt,timeStep) | ^~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/mos1 Making "install" in mos2 gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2acld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2acld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2acld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2acld.c: In function 'MOS2acLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2acld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS2acLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c: In function 'MOS2ask': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS2ask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:342:26: note: in expansion of macro 'MALLOC' 342 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:353:26: note: in expansion of macro 'MALLOC' 353 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:370:26: note: in expansion of macro 'MALLOC' 370 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ask.c:388:26: note: in expansion of macro 'MALLOC' 388 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2conv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2conv.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2conv.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2conv.c: In function 'MOS2convTest': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2conv.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | MOS2convTest(inModel,ckt) | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2del.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2del.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2del.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2del.c: In function 'MOS2delete': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2del.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS2delete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dist.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dist.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dist.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dist.c: In function 'MOS2disto': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dist.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS2disto(mode,genmodel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dset.c:13: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/distodef.h:16, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dset.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dset.c: In function 'MOS2dSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2dset.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | MOS2dSetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ic.c: In function 'MOS2getic': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2ic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS2getic(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2load.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2load.c:12: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2load.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2load.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2load.c: In function 'MOS2load': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2load.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | MOS2load(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mdel.c: In function 'MOS2mDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS2mDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mpar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mpar.c: In function 'MOS2mParam': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mpar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS2mParam(param,value,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c: In function 'MOS2noise': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | MOS2noise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:75:27: error: too many arguments to function 'trealloc'; expected 0, have 2 75 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:91:27: error: too many arguments to function 'trealloc'; expected 0, have 2 91 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:102:27: error: too many arguments to function 'trealloc'; expected 0, have 2 102 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:120:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 120 | NevalSrc(&noizDens[MOS2RDNOIZ],&lnNdens[MOS2RDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:124:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 124 | NevalSrc(&noizDens[MOS2RSNOIZ],&lnNdens[MOS2RSNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:128:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 128 | NevalSrc(&noizDens[MOS2IDNOIZ],&lnNdens[MOS2IDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:132:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 132 | NevalSrc(&noizDens[MOS2FLNOIZ],(double*)NULL,ckt, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:173:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 173 | tempOnoise = Nintegrate(noizDens[i], lnNdens[i], | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:175:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 175 | tempInoise = Nintegrate(noizDens[i] * data->GainSqInv , | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2noi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2par.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2par.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2par.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2par.c: In function 'MOS2param': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2par.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS2param(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2pzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2pzld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2pzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2pzld.c: In function 'MOS2pzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2pzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS2pzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sacl.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sacl.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sacl.c: In function 'MOS2sAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sacl.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | MOS2sAcLoad(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2set.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2set.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2set.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2set.c: In function 'MOS2setup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2set.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS2setup(matrix,inModel,ckt,states) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2set.c: In function 'MOS2unsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2set.c:217:1: warning: old-style function definition [-Wold-style-definition] 217 | MOS2unsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sld.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sld.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sld.c: In function 'MOS2sLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sld.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS2sLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sprt.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sprt.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sprt.c: In function 'MOS2sPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sprt.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS2sPrint(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sset.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sset.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sset.c: In function 'MOS2sSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sset.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS2sSetup(info,inModel) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sset.c:11: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2sset.c:44:44: note: in expansion of macro 'MALLOC' 44 | if((here->MOS2sens = (double *)MALLOC(70*sizeof(double))) == NULL) { | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2supd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2supd.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2supd.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2supd.c: In function 'MOS2sUpdate': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2supd.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS2sUpdate(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2temp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2temp.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2temp.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2temp.c: In function 'MOS2temp': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2temp.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS2temp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2trun.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2trun.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2trun.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2trun.c: In function 'MOS2trunc': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2trun.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS2trunc(inModel,ckt,timeStep) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mask.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mask.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mask.c: In function 'MOS2mAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/mos2//mos2mask.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS2mAsk(ckt,inModel,param,value) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/mos2 Making "install" in mos3 gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3acld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3acld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3acld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3acld.c: In function 'MOS3acLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3acld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS3acLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c: In function 'MOS3ask': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS3ask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:342:26: note: in expansion of macro 'MALLOC' 342 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:353:26: note: in expansion of macro 'MALLOC' 353 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:370:26: note: in expansion of macro 'MALLOC' 370 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ask.c:388:26: note: in expansion of macro 'MALLOC' 388 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3conv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3conv.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3conv.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3conv.c: In function 'MOS3convTest': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3conv.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | MOS3convTest(inModel,ckt) | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3del.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3del.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3del.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3del.c: In function 'MOS3delete': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3del.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS3delete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dist.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dist.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dist.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dist.c: In function 'MOS3disto': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dist.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS3disto(mode,genmodel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dset.c:12: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dset.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dset.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dset.c: In function 'MOS3dSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3dset.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS3dSetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ic.c: In function 'MOS3getic': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3ic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS3getic(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3load.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3load.c:12: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3load.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3load.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3load.c: In function 'MOS3load': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3load.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS3load(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mask.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mask.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mask.c: In function 'MOS3mAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mask.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | MOS3mAsk(ckt,inst,which,value) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mdel.c: In function 'MOS3mDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS3mDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mpar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mpar.c: In function 'MOS3mParam': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3mpar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS3mParam(param,value,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c: In function 'MOS3noise': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | MOS3noise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:75:27: error: too many arguments to function 'trealloc'; expected 0, have 2 75 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:91:27: error: too many arguments to function 'trealloc'; expected 0, have 2 91 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:102:27: error: too many arguments to function 'trealloc'; expected 0, have 2 102 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:121:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 121 | NevalSrc(&noizDens[MOS3RDNOIZ],&lnNdens[MOS3RDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:125:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 125 | NevalSrc(&noizDens[MOS3RSNOIZ],&lnNdens[MOS3RSNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:129:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 129 | NevalSrc(&noizDens[MOS3IDNOIZ],&lnNdens[MOS3IDNOIZ], | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:133:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 133 | NevalSrc(&noizDens[MOS3FLNOIZ],(double*)NULL,ckt, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:174:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 174 | tempOnoise = Nintegrate(noizDens[i], lnNdens[i], | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:176:46: error: too many arguments to function 'Nintegrate'; expected 0, have 4 176 | tempInoise = Nintegrate(noizDens[i] * data->GainSqInv , | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3noi.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3par.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3par.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3par.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3par.c: In function 'MOS3param': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3par.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS3param(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3pzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3pzld.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3pzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3pzld.c: In function 'MOS3pzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3pzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS3pzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sacl.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sacl.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sacl.c: In function 'MOS3sAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sacl.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | MOS3sAcLoad(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3set.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3set.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3set.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3set.c: In function 'MOS3setup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3set.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS3setup(matrix,inModel,ckt,states) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3set.c: In function 'MOS3unsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3set.c:235:1: warning: old-style function definition [-Wold-style-definition] 235 | MOS3unsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sld.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sld.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sld.c: In function 'MOS3sLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sld.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS3sLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sprt.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sprt.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sprt.c: In function 'MOS3sPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sprt.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS3sPrint(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sset.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sset.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sset.c: In function 'MOS3sSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sset.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS3sSetup(info,inModel) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sset.c:15: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3sset.c:45:44: note: in expansion of macro 'MALLOC' 45 | if((here->MOS3sens = (double *)MALLOC(72*sizeof(double))) == NULL) { | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3supd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3supd.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3supd.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3supd.c: In function 'MOS3sUpdate': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3supd.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS3sUpdate(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3temp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3temp.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3temp.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3temp.c: In function 'MOS3temp': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3temp.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS3temp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3trun.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3trun.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3trun.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3trun.c: In function 'MOS3trunc': /home/pbulk/work/cad/spice/work/src/lib/dev/mos3//mos3trun.c:14:1: warning: old-style function definition [-Wold-style-definition] 14 | MOS3trunc(inModel,ckt,timeStep) | ^~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/mos3 Making "install" in mos6 gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c: In function 'MOS6ask': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS6ask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:338:26: note: in expansion of macro 'MALLOC' 338 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:349:26: note: in expansion of macro 'MALLOC' 349 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:366:26: note: in expansion of macro 'MALLOC' 366 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ask.c:384:26: note: in expansion of macro 'MALLOC' 384 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6conv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6conv.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6conv.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6conv.c: In function 'MOS6convTest': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6conv.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | MOS6convTest(inModel,ckt) | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ic.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ic.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ic.c: In function 'MOS6getic': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6ic.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS6getic(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6load.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6load.c:12: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6load.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6load.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6load.c: In function 'MOS6load': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6load.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | MOS6load(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mpar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mpar.c: In function 'MOS6mParam': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mpar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | MOS6mParam(param,value,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6par.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6par.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6par.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6par.c: In function 'MOS6param': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6par.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS6param(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6set.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6set.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6set.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6set.c: In function 'MOS6setup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6set.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | MOS6setup(matrix,inModel,ckt,states) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6set.c: In function 'MOS6unsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6set.c:207:1: warning: old-style function definition [-Wold-style-definition] 207 | MOS6unsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6temp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6temp.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6temp.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6temp.c: In function 'MOS6temp': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6temp.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS6temp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6trun.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6trun.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6trun.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6trun.c: In function 'MOS6trunc': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6trun.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | MOS6trunc(inModel,ckt,timeStep) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mask.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6defs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mask.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mask.c: In function 'MOS6mAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/mos6//mos6mask.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | MOS6mAsk(ckt,inModel,param,value) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/mos6 Making "install" in res gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c: In function 'RESask': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | RESask(ckt,inst,which,value,select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c:110:26: note: in expansion of macro 'MALLOC' 110 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resask.c:122:26: note: in expansion of macro 'MALLOC' 122 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdel.c: In function 'RESdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | RESdelete(inModel,name,inst) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resload.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resload.c: In function 'RESload': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resload.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | RESload(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmask.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmask.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmask.c: In function 'RESmodAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmask.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | RESmodAsk(ckt,inModel,which,value) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmdel.c: In function 'RESmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | RESmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmpar.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmpar.c: In function 'RESmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resmpar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | RESmParam(param,value,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c: In function 'RESnoise': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | RESnoise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:65:27: error: too many arguments to function 'trealloc'; expected 0, have 2 65 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:79:27: error: too many arguments to function 'trealloc'; expected 0, have 2 79 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:90:27: error: too many arguments to function 'trealloc'; expected 0, have 2 90 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:107:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 107 | NevalSrc(&noizDens,&lnNdens,ckt,THERMNOISE, | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:25:15: note: declared here 25 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:125:40: error: too many arguments to function 'Nintegrate'; expected 0, have 4 125 | tempOutNoise = Nintegrate(noizDens, lnNdens, | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:127:39: error: too many arguments to function 'Nintegrate'; expected 0, have 4 127 | tempInNoise = Nintegrate(noizDens * | ^~~~~~~~~~ ~~~~~~~~~~ 128 | data->GainSqInv ,lnNdens + data->lnGainInv, | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resnoise.c:26:15: note: declared here 26 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//resparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resparam.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resparam.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//resparam.c: In function 'RESparam': /home/pbulk/work/cad/spice/work/src/lib/dev/res//resparam.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | RESparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//respzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//respzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//respzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//respzld.c: In function 'RESpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/res//respzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | RESpzLoad(inModel,ckt,s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressacl.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressacl.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressacl.c: In function 'RESsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressacl.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | RESsAcLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressetup.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressetup.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressetup.c: In function 'RESsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressetup.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | RESsetup(matrix,inModel,ckt,state) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressload.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressload.c: In function 'RESsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressload.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | RESsLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressprt.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressprt.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressprt.c: In function 'RESsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressprt.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | RESsPrint(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressset.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//resdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressset.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressset.c: In function 'RESsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/res//ressset.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | RESsSetup(info,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/res//restemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//restemp.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/res//restemp.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/res//restemp.c: In function 'REStemp': /home/pbulk/work/cad/spice/work/src/lib/dev/res//restemp.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | REStemp(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/res Making "install" in sw gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swacload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swacload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swacload.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swacload.c: In function 'SWacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swacload.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | SWacLoad(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c: In function 'SWask': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | SWask(ckt,inst,which,value,select) | ^~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c:20: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c:51:26: note: in expansion of macro 'MALLOC' 51 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swask.c:63:26: note: in expansion of macro 'MALLOC' 63 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdelete.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdelete.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdelete.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdelete.c: In function 'SWdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdelete.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | SWdelete(inModel,name,inst) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swload.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swload.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swload.c: In function 'SWload': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swload.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | SWload(inModel,ckt) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmask.c: In function 'SWmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmask.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | SWmAsk(ckt,inModel,which,value) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmdel.c: In function 'SWmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | SWmDelete(inModel,modname,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmparam.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmparam.c: In function 'SWmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swmparam.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | SWmParam(param,value,inModel) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c: In function 'SWnoise': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:30:1: warning: old-style function definition [-Wold-style-definition] 30 | SWnoise (mode, operation, genmodel, ckt, data, OnDens) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:66:27: error: too many arguments to function 'trealloc'; expected 0, have 2 66 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:80:27: error: too many arguments to function 'trealloc'; expected 0, have 2 80 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:91:27: error: too many arguments to function 'trealloc'; expected 0, have 2 91 | data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:109:21: error: too many arguments to function 'NevalSrc'; expected 0, have 7 109 | NevalSrc(&noizDens,&lnNdens,ckt,THERMNOISE, | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:26:15: note: declared here 26 | extern void NevalSrc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:128:40: error: too many arguments to function 'Nintegrate'; expected 0, have 4 128 | tempOutNoise = Nintegrate(noizDens, lnNdens, | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:130:39: error: too many arguments to function 'Nintegrate'; expected 0, have 4 130 | tempInNoise = Nintegrate(noizDens * | ^~~~~~~~~~ ~~~~~~~~~~ 131 | data->GainSqInv ,lnNdens + data->lnGainInv, | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swnoise.c:27:15: note: declared here 27 | extern double Nintegrate(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swparam.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swparam.c: In function 'SWparam': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swparam.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | SWparam(param,value,inst,select) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swpzload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swpzload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swpzload.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swpzload.c: In function 'SWpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swpzload.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | SWpzLoad(inModel,ckt,s) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swsetup.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swsetup.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swsetup.c: In function 'SWsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/sw//swsetup.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | SWsetup(matrix,inModel,ckt,states) | ^~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/sw Making "install" in tra gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacct.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacct.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacct.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacct.c: In function 'TRAaccept': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacct.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | TRAaccept(ckt,inModel) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacct.c:10: /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacct.c:57:49: note: in expansion of macro 'REALLOC' 57 | here->TRAdelays = (double *)REALLOC((char *)here->TRAdelays, | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacld.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacld.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacld.c: In function 'TRAacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traacld.c:14:1: warning: old-style function definition [-Wold-style-definition] 14 | TRAacLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traask.c: In function 'TRAask': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traask.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | TRAask(ckt,inst,which,value,select) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traask.c:20: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traask.c:93:44: note: in expansion of macro 'MALLOC' 93 | value->v.vec.rVec = (double *) MALLOC(here->TRAsizeDelay); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradel.c: In function 'TRAdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | TRAdelete(inModel,name,kill) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traload.c:13: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traload.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traload.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traload.c: In function 'TRAload': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traload.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | TRAload(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tramdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tramdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tramdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tramdel.c: In function 'TRAmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tramdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | TRAmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tradefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traparam.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traparam.c: In function 'TRAparam': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//traparam.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | TRAparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c: In function 'TRAsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | TRAsetup(matrix,inModel,ckt,state) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c:10: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c:66:41: note: in expansion of macro 'MALLOC' 66 | here->TRAdelays = (double *)MALLOC(15*sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c: In function 'TRAunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//trasetup.c:122:1: warning: old-style function definition [-Wold-style-definition] 122 | TRAunsetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratemp.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratemp.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratemp.c: In function 'TRAtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratemp.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | TRAtemp(inModel,ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratrunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratrunc.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratrunc.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratrunc.c: In function 'TRAtrunc': /home/pbulk/work/cad/spice/work/src/lib/dev/tra//tratrunc.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | TRAtrunc(inModel,ckt,timeStep) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/tra Making "install" in urc gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcask.c:20: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcask.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcask.c: In function 'URCask': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcask.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | URCask(ckt,inst,which,value,select) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdel.c: In function 'URCdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | URCdelete(inModel,name,inst) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmask.c: In function 'URCmAsk': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmask.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | URCmAsk(ckt,inst,which,value) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmdel.c: In function 'URCmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | URCmDelete(inModel,modname,kill) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmpar.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmpar.c: In function 'URCmParam': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcmpar.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | URCmParam(param,value,inModel) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcparam.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcparam.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcparam.c: In function 'URCparam': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcparam.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | URCparam(param,value,inst,select) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c: In function 'URCsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | URCsetup(matrix,inModel,ckt,state) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:9: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:136:34: note: in expansion of macro 'MALLOC' 136 | namehi = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:144:38: note: in expansion of macro 'MALLOC' 144 | namelo = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:154:35: note: in expansion of macro 'MALLOC' 154 | nameelt = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:170:35: note: in expansion of macro 'MALLOC' 170 | nameelt = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:188:39: note: in expansion of macro 'MALLOC' 188 | nameelt = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:207:39: note: in expansion of macro 'MALLOC' 207 | nameelt = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:229:43: note: in expansion of macro 'MALLOC' 229 | nameelt = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:248:43: note: in expansion of macro 'MALLOC' 248 | nameelt = (char *)MALLOC(10*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c: In function 'URCunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/urc//urcsetup.c:278:1: warning: old-style function definition [-Wold-style-definition] 278 | URCunsetup(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/urc Making "install" in vccs gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c: In function 'VCCSask': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | VCCSask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c:18: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c:118:26: note: in expansion of macro 'MALLOC' 118 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsask.c:134:26: note: in expansion of macro 'MALLOC' 134 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdel.c: In function 'VCCSdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VCCSdelete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsload.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsload.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsload.c: In function 'VCCSload': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsload.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | VCCSload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsmdel.c: In function 'VCCSmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VCCSmDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspar.c: In function 'VCCSparam': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | VCCSparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspzld.c: In function 'VCCSpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccspzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | VCCSpzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssacl.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssacl.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssacl.c: In function 'VCCSsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssacl.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | VCCSsAcLoad(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsset.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsset.c: In function 'VCCSsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccsset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | VCCSsetup(matrix,inModel,ckt,states) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssld.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssld.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssld.c: In function 'VCCSsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssld.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | VCCSsLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssprt.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssprt.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssprt.c: In function 'VCCSsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssprt.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | VCCSsPrint(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssset.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssset.c: In function 'VCCSsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vccs//vccssset.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | VCCSsSetup(info,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/vccs Making "install" in vcvs gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c: In function 'VCVSask': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | VCVSask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c:18: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c:126:26: note: in expansion of macro 'MALLOC' 126 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsask.c:140:26: note: in expansion of macro 'MALLOC' 140 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdel.c: In function 'VCVSdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VCVSdelete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsfbr.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsfbr.c:13: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsfbr.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsfbr.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsfbr.c: In function 'VCVSfindBr': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsfbr.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | VCVSfindBr(ckt,inModel,name) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsload.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsload.c: In function 'VCVSload': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsload.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | VCVSload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsmdel.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsmdel.c: In function 'VCVSmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VCVSmDelete(inModel,modname,kill) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspar.c: In function 'VCVSparam': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | VCVSparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspzld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspzld.c: In function 'VCVSpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvspzld.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | VCVSpzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssacl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssacl.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssacl.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssacl.c: In function 'VCVSsAcLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssacl.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | VCVSsAcLoad(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsset.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsset.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsset.c: In function 'VCVSsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsset.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | VCVSsetup(matrix,inModel,ckt,states) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsset.c: In function 'VCVSunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvsset.c:63:1: warning: old-style function definition [-Wold-style-definition] 63 | VCVSunsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssld.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssld.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssld.c: In function 'VCVSsLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssld.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | VCVSsLoad(inModel,ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssprt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssprt.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssprt.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssprt.c: In function 'VCVSsPrint': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssprt.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | VCVSsPrint(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssset.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssset.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssset.c: In function 'VCVSsSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vcvs//vcvssset.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | VCVSsSetup(info,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/vcvs Making "install" in vsrc gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacct.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacct.c:10: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacct.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacct.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacct.c: In function 'VSRCaccept': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacct.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | VSRCaccept(ckt,inModel) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacld.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacld.c: In function 'VSRCacLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcacld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VSRCacLoad(inModel,ckt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c: In function 'VSRCask': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | VSRCask(ckt,inst,which,value,select) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:20: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:56:21: note: in expansion of macro 'MALLOC' 56 | MALLOC (here->VSRCfunctionOrder * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:65:21: note: in expansion of macro 'MALLOC' 65 | MALLOC (value->v.numValue * sizeof (double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:89:26: note: in expansion of macro 'MALLOC' 89 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcask.c:99:26: note: in expansion of macro 'MALLOC' 99 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdel.c: In function 'VSRCdelete': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VSRCdelete(inModel,name,inst) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcfbr.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcfbr.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcfbr.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcfbr.c: In function 'VSRCfindBr': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcfbr.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | VSRCfindBr(ckt,inModel,name) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcload.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcload.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcload.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcload.c: In function 'VSRCload': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcload.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | VSRCload(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcmdel.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcmdel.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcmdel.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcmdel.c: In function 'VSRCmDelete': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcmdel.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VSRCmDelete(inModel,modname,fast) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpar.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpar.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpar.c: In function 'VSRCparam': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpar.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | VSRCparam(param,value,inst,select) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzld.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzld.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzld.c: In function 'VSRCpzLoad': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzld.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VSRCpzLoad(inModel,ckt,s) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzs.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzs.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzs.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzs.c: In function 'VSRCpzSetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcpzs.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VSRCpzSetup(matrix,inModel,ckt,state) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcset.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcset.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcset.c: In function 'VSRCsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcset.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VSRCsetup(matrix,inModel,ckt,state) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcset.c: In function 'VSRCunsetup': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrcset.c:60:1: warning: old-style function definition [-Wold-style-definition] 60 | VSRCunsetup(inModel,ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrctemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrctemp.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrctemp.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrctemp.c: In function 'VSRCtemp': /home/pbulk/work/cad/spice/work/src/lib/dev/vsrc//vsrctemp.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | VSRCtemp(inModel,ckt) | ^~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[5]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/dev/vsrc Done with work/src/lib/dev Making "install" in ckt gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//acan.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//acan.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//acan.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//acan.c: In function 'ACan': /home/pbulk/work/cad/spice/work/src/lib/ckt//acan.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | ACan(ckt,restart) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//acan.c: In function 'CKTacLoad': /home/pbulk/work/cad/spice/work/src/lib/ckt//acan.c:180:1: warning: old-style function definition [-Wold-style-definition] 180 | CKTacLoad(ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//acsetp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//acsetp.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//acsetp.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//acsetp.c: In function 'ACsetParm': /home/pbulk/work/cad/spice/work/src/lib/ckt//acsetp.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | ACsetParm(ckt,anal,which,value) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//acsetp.c:27:22: error: too many arguments to function 'copy'; expected 0, have 1 27 | errMsg = copy("Frequency of 0 is invalid"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//acsetp.c:37:22: error: too many arguments to function 'copy'; expected 0, have 1 37 | errMsg = copy("Frequency of 0 is invalid"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaccpt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaccpt.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaccpt.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaccpt.c: In function 'CKTaccept': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaccpt.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTaccept(ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktacdum.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktacdum.c: In function 'CKTacDump': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktacdum.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTacDump(ckt,freq,plot) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktacdum.c:17: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktacdum.c:38:26: note: in expansion of macro 'MALLOC' 38 | data = (IFcomplex *) MALLOC((ckt->CKTmaxEqNum-1)*sizeof(IFcomplex)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktask.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktask.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktask.c: In function 'CKTask': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktask.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTask(ckt,fast,which,value,selector) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaskaq.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaskaq.c: In function 'CKTaskAnalQ': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaskaq.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | CKTaskAnalQ(ckt,analPtr,parm,value,selector) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaskaq.c:30:14: error: too many arguments to function 'analInfo[type]->askQuest'; expected 0, have 4 30 | return( (*(analInfo[type]->askQuest))((CKTcircuit*)ckt,analPtr,parm,value)); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/tskdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktaskaq.c:8: /home/pbulk/work/cad/spice/work/src/include/jobdefs.h:25:12: note: declared here 25 | int (*(askQuest))( ); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktbindn.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktbindn.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktbindn.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktbindn.c: In function 'CKTbindNode': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktbindn.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CKTbindNode(ckt,fast,term,node) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktclrbk.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktclrbk.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktclrbk.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktclrbk.c: In function 'CKTclrBreak': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktclrbk.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | CKTclrBreak(ckt) | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktclrbk.c:15: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktclrbk.c:29:25: note: in expansion of macro 'MALLOC' 29 | tmp = (double *)MALLOC((ckt->CKTbreakSize-1)*sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktcrte.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktcrte.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktcrte.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktcrte.c: In function 'CKTcrtElt': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktcrte.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CKTcrtElt(ckt,inModPtr,inInstPtr,name) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktcrte.c:19: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktcrte.c:44:30: note: in expansion of macro 'MALLOC' 44 | instPtr = (GENinstance *)MALLOC(*DEVices[type]->DEVinstSize); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdest.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdest.c:20: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdest.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdest.c: In function 'CKTdestroy': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdest.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | CKTdestroy(inCkt) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdisto.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdisto.c:24: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdisto.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdisto.c: In function 'CKTdisto': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdisto.c:30:1: warning: old-style function definition [-Wold-style-definition] 30 | CKTdisto (ckt, mode) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdlti.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdlti.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdlti.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdlti.c: In function 'CKTdltInst': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdlti.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CKTdltInst(ckt,instance) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c:11: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c: In function 'CKTdltMod': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTdltMod(cktp,modPtr) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c:44:13: note: in expansion of macro 'tfree' 44 | tfree(h); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltm.c:47:5: note: in expansion of macro 'tfree' 47 | tfree(m); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c:14: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c:9: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c: In function 'CKTdltNod': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | CKTdltNod(ckt,node) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c: In function 'CKTdltNNum': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c:28:1: warning: old-style function definition [-Wold-style-definition] 28 | CKTdltNNum(cktp, num) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdltn.c:60:5: note: in expansion of macro 'tfree' 60 | tfree(node); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c:9: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c:7: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c:10: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c: In function 'CKTdoJob': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CKTdoJob(inCkt,reset,inTask) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c:130:30: error: too many arguments to function 'analInfo[i]->an_init'; expected 0, have 2 130 | error = (*(analInfo[i]->an_init))(ckt, job); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/acdefs.h:9, from /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:13: /home/pbulk/work/cad/spice/work/src/include/jobdefs.h:26:11: note: declared here 26 | int (*an_init)( ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktdojob.c:134:30: error: too many arguments to function 'analInfo[i]->an_func'; expected 0, have 2 134 | error = (*(analInfo[i]->an_func))(ckt, reset); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/jobdefs.h:27:11: note: declared here 27 | int (*an_func)( ); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfdev.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfdev.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfdev.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfdev.c: In function 'CKTfndDev': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfdev.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | CKTfndDev(Ckt,type,fast,name,modfast,modname) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnda.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnda.c:18: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnda.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnda.c: In function 'CKTfndAnal': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnda.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | CKTfndAnal(ckt,analIndex,anal,name,inTask,taskName) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfndm.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfndm.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfndm.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfndm.c: In function 'CKTfndMod': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfndm.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CKTfndMod(ckt,type,modfast,modname) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnode.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnode.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnode.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnode.c: In function 'CKTfndNode': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktfnode.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTfndNode(ckt,node,name) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktftask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktftask.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktftask.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktftask.c: In function 'CKTfndTask': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktftask.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CKTfndTask(ckt,taskPtr,taskName) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktgrnd.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktgrnd.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktgrnd.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktgrnd.c: In function 'CKTground': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktgrnd.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTground(inCkt,node,name) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktgrnd.c:17: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktgrnd.c:40:36: note: in expansion of macro 'MALLOC' 40 | ckt->CKTnodes = (CKTnode *)MALLOC(sizeof(CKTnode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//ckti2nod.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckti2nod.c:17: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckti2nod.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//ckti2nod.c: In function 'CKTinst2Node': /home/pbulk/work/cad/spice/work/src/lib/ckt//ckti2nod.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | CKTinst2Node(ckt,instPtr,terminal,node,nodeName) | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktic.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktic.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktic.c: In function 'CKTic': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktic.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CKTic(ckt) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c: In function 'CKTinit': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | CKTinit(ckt) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c:10: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c:23:43: note: in expansion of macro 'MALLOC' 23 | sckt = (CKTcircuit *)( *ckt = (char *)MALLOC(sizeof(CKTcircuit)) ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktinit.c:61:37: note: in expansion of macro 'MALLOC' 61 | (sckt)->CKTstat = (STATistics *)MALLOC(sizeof(STATistics)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktlnkeq.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktlnkeq.c: In function 'CKTlinkEq': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktlnkeq.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | CKTlinkEq(ckt,node) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktlnkeq.c:17: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktlnkeq.c:26:37: note: in expansion of macro 'MALLOC' 26 | ckt->CKTnodes = (CKTnode *) MALLOC(sizeof(CKTnode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:17: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c: In function 'CKTload': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CKTload(ckt) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:69:25: error: too many arguments to function 'ZeroNoncurRow'; expected 0, have 3 69 | if (ZeroNoncurRow(ckt->CKTmatrix, ckt->CKTnodes, | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:22:12: note: declared here 22 | static int ZeroNoncurRow( ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:84:25: error: too many arguments to function 'ZeroNoncurRow'; expected 0, have 3 84 | if (ZeroNoncurRow(ckt->CKTmatrix, ckt->CKTnodes, | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:22:12: note: declared here 22 | static int ZeroNoncurRow( ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c: In function 'ZeroNoncurRow': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktload.c:104:1: warning: old-style function definition [-Wold-style-definition] 104 | ZeroNoncurRow(matrix, nodes, rownum) | ^~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmapn.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmapn.c:17: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmapn.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmapn.c: In function 'CKTmapNode': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmapn.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CKTmapNode(ckt,node,name) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmask.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmask.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmask.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmask.c: In function 'CKTmodAsk': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmask.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CKTmodAsk(ckt,modfast,which,value,selector) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmcrt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmcrt.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmcrt.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmcrt.c: In function 'CKTmodCrt': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmcrt.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CKTmodCrt(ckt,type,modfast,name) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmcrt.c:18: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmcrt.c:35:33: note: in expansion of macro 'MALLOC' 35 | mymodfast = (GENmodel *)MALLOC(*DEVices[type]->DEVmodSize); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkcur.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkcur.c:17: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkcur.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkcur.c: In function 'CKTmkCur': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkcur.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | CKTmkCur(ckt,node,basename,suffix) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmknod.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmknod.c: In function 'CKTmkNode': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmknod.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTmkNode(ckt,node) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmknod.c:17: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmknod.c:29:25: note: in expansion of macro 'MALLOC' 29 | mynode = (CKTnode *)MALLOC(sizeof(CKTnode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkvol.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkvol.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkvol.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkvol.c: In function 'CKTmkVolt': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmkvol.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTmkVolt(ckt,node,basename,suffix) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmpar.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmpar.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmpar.c: In function 'CKTmodParam': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktmpar.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | CKTmodParam(ckt,modfast,param,val,selector) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnames.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnames.c: In function 'CKTnames': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnames.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | CKTnames(ckt,numNames,nameList) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnames.c:17: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnames.c:29:26: note: in expansion of macro 'MALLOC' 29 | *nameList = (IFuid *)MALLOC(*numNames * sizeof(IFuid )); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnames.c: In function 'CKTdnames': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnames.c:39:1: warning: old-style function definition [-Wold-style-definition] 39 | CKTdnames(ckt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewan.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewan.c: In function 'CKTnewAnal': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewan.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CKTnewAnal(ckt,type,name,analPtr,taskPtr) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewan.c:11: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewan.c:33:27: note: in expansion of macro 'MALLOC' 33 | *analPtr = (GENERIC *)MALLOC(analInfo[type]->size); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewn.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewn.c: In function 'CKTnewNode': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewn.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CKTnewNode(inCkt,node,name) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewn.c:20: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewn.c:33:37: note: in expansion of macro 'MALLOC' 33 | ckt->CKTnodes = (CKTnode *) MALLOC(sizeof(CKTnode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnewn.c:40:41: note: in expansion of macro 'MALLOC' 40 | ckt->CKTlastNode->next = (CKTnode *)MALLOC(sizeof(CKTnode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:22: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:17: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c: In function 'CKTnoise': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | CKTnoise (ckt, mode, operation, data) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:62:39: error: too many arguments to function 'trealloc'; expected 0, have 2 62 | data->namelist = (IFuid *)trealloc((char *)data->namelist, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:23: /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:68:39: error: too many arguments to function 'trealloc'; expected 0, have 2 68 | data->namelist = (IFuid *)trealloc((char *)data->namelist, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:77:27: note: in expansion of macro 'MALLOC' 77 | (double *)MALLOC(data->numPlots * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:82:39: error: too many arguments to function 'trealloc'; expected 0, have 2 82 | data->namelist = (IFuid *)trealloc((char *)data->namelist, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:87:39: error: too many arguments to function 'trealloc'; expected 0, have 2 87 | data->namelist = (IFuid *)trealloc((char *)data->namelist, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnoise.c:94:28: note: in expansion of macro 'MALLOC' 94 | (double *) MALLOC(data->numPlots * sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktntask.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktntask.c: In function 'CKTnewTask': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktntask.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | CKTnewTask(ckt,taskPtr,taskName) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktntask.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktntask.c:25:27: note: in expansion of macro 'MALLOC' 25 | *taskPtr = (GENERIC *)MALLOC(sizeof(TSKtask)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnum2n.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnum2n.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnum2n.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnum2n.c: In function 'CKTnum2nod': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktnum2n.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTnum2nod(ckt,node) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktop.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktop.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktop.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktop.c: In function 'CKTop': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktop.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | CKTop(ckt,firstmode, continuemode, iterlim) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktop.c: In function 'CKTconvTest': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktop.c:112:1: warning: old-style function definition [-Wold-style-definition] 112 | CKTconvTest(ckt) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktparam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktparam.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktparam.c:12: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktparam.c: In function 'CKTparam': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktparam.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | CKTparam(ckt,fast,param,val,selector) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpmnam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpmnam.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpmnam.c:16: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpmnam.c: In function 'CKTpModName': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpmnam.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | CKTpModName(parm,val,ckt,type,name,modfast) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpname.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpname.c:21: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpname.c:18: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpname.c: In function 'CKTpName': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpname.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | CKTpName(parm,val,ckt,dev,name,fast) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzld.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzld.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzld.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzld.c: In function 'CKTpzLoad': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzld.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | CKTpzLoad(ckt, s) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzset.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzset.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzset.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzset.c: In function 'CKTpzSetup': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzset.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | CKTpzSetup(ckt, type) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:16: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'CKTpzFindZeros': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:107:1: warning: old-style function definition [-Wold-style-definition] 107 | CKTpzFindZeros(ckt, rootinfo, rootcount) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:137:5: error: too many arguments to function 'CKTpzReset'; expected 0, have 1 137 | CKTpzReset(neighborhood); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:47: note: declared here 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:153:17: error: too many arguments to function 'PZeval'; expected 0, have 3 153 | error = PZeval(strat, neighborhood, &new_trial); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:103:5: note: declared here 103 | int PZeval( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:164:17: error: too many arguments to function 'CKTpzReset'; expected 0, have 1 164 | CKTpzReset(neighborhood); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:47: note: declared here 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:167:17: error: too many arguments to function 'CKTpzUpdateSet'; expected 0, have 2 167 | CKTpzUpdateSet(neighborhood, new_trial); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:17: note: declared here 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:169:13: error: too many arguments to function 'CKTpzReset'; expected 0, have 1 169 | CKTpzReset(neighborhood); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:47: note: declared here 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:177:13: error: too many arguments to function 'CKTpzUpdateSet'; expected 0, have 2 177 | CKTpzUpdateSet(neighborhood, new_trial); /* Replace a value */ | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:17: note: declared here 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:204:9: error: too many arguments to function 'clear_trials'; expected 0, have 1 204 | clear_trials(ISAROOT); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:28:17: note: declared here 28 | static void clear_trials( ), check_flat( ); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:207:9: note: in expansion of macro 'ERROR' 207 | ERROR(E_SHORT, "The input signal is shorted on the way to the output"); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:209:9: error: too many arguments to function 'clear_trials'; expected 0, have 1 209 | clear_trials(0); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:28:17: note: declared here 28 | static void clear_trials( ), check_flat( ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'PZeval': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:236:1: warning: old-style function definition [-Wold-style-definition] 236 | PZeval(strat, set, new_trial_p) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:240:1: error: number of arguments doesn't match prototype 240 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:103:5: error: prototype declaration 103 | int PZeval( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:59:35: note: in expansion of macro 'MALLOC' 59 | #define NEW(TYPE) ((TYPE *) MALLOC(sizeof(TYPE))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:245:17: note: in expansion of macro 'NEW' 245 | new_trial = NEW(PZtrial); | ^~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:397:9: note: in expansion of macro 'ERROR' 397 | ERROR(E_PANIC, "Step type unkown"); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'CKTpzStrat': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:409:1: warning: old-style function definition [-Wold-style-definition] 409 | CKTpzStrat(set) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:445:13: error: too many arguments to function 'zaddeq'; expected 0, have 6 445 | zaddeq(&a, &a_mag, set[1]->f_def.real, set[1]->mag_def, | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:36: note: declared here 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:447:13: error: too many arguments to function 'zaddeq'; expected 0, have 6 447 | zaddeq(&b, &b_mag, set[2]->f_def.real, set[2]->mag_def, | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:36: note: declared here 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'CKTpzRunTrial': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:521:1: warning: old-style function definition [-Wold-style-definition] 521 | CKTpzRunTrial(ckt, new_trialp, set) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:592:25: error: too many arguments to function 'alter'; expected 0, have 4 592 | || !alter(new_trial, set[1], abstol, reltol)) { | ^~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:105:12: note: declared here 105 | static int alter( ); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:764:17: error: too many arguments to function 'check_flat'; expected 0, have 2 764 | check_flat(match, new_trial); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:28:34: note: declared here 28 | static void clear_trials( ), check_flat( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'CKTpzVerify': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:779:1: warning: old-style function definition [-Wold-style-definition] 779 | CKTpzVerify(set, new_trial) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:854:17: error: too many arguments to function 'check_flat'; expected 0, have 2 854 | check_flat(prev, t); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:28:34: note: declared here 28 | static void clear_trials( ), check_flat( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'pzseek': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: warning: old-style function definition [-Wold-style-definition] 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'clear_trials': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:901:1: warning: old-style function definition [-Wold-style-definition] 901 | clear_trials(mode) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'CKTpzUpdateSet': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:929:1: warning: old-style function definition [-Wold-style-definition] 929 | CKTpzUpdateSet(set, new) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:931:1: error: number of arguments doesn't match prototype 931 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:17: error: prototype declaration 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'zaddeq': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:992:1: warning: old-style function definition [-Wold-style-definition] 992 | zaddeq(a, amag, x, xmag, y, ymag) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:995:1: error: number of arguments doesn't match prototype 995 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:36: error: prototype declaration 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'check_flat': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1045:1: warning: old-style function definition [-Wold-style-definition] 1045 | check_flat(a, b) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'CKTpzStep': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1070:1: warning: old-style function definition [-Wold-style-definition] 1070 | CKTpzStep(strat, set) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1077:22: error: too many arguments to function 'pzseek'; expected 0, have 2 1077 | set[1] = pzseek(ZeroTrial, 0); | ^~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1079:22: error: too many arguments to function 'pzseek'; expected 0, have 2 1079 | set[2] = pzseek(set[1], 1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1081:22: error: too many arguments to function 'pzseek'; expected 0, have 2 1081 | set[0] = pzseek(set[1], -1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1085:18: error: too many arguments to function 'pzseek'; expected 0, have 2 1085 | set[0] = pzseek(set[0], -1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1089:18: error: too many arguments to function 'pzseek'; expected 0, have 2 1089 | set[2] = pzseek(set[2], 1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1095:18: error: too many arguments to function 'pzseek'; expected 0, have 2 1095 | set[0] = pzseek(set[0], -1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1101:18: error: too many arguments to function 'pzseek'; expected 0, have 2 1101 | set[2] = pzseek(set[2], 1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'CKTpzReset': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1112:1: warning: old-style function definition [-Wold-style-definition] 1112 | CKTpzReset(set) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1114:1: error: number of arguments doesn't match prototype 1114 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:29:47: error: prototype declaration 29 | void CKTpzUpdateSet( ), zaddeq( ), CKTpzReset( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1118:14: error: too many arguments to function 'pzseek'; expected 0, have 2 1118 | set[1] = pzseek(ZeroTrial, 0); | ^~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1120:18: error: too many arguments to function 'pzseek'; expected 0, have 2 1120 | set[0] = pzseek(set[1], -1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1121:18: error: too many arguments to function 'pzseek'; expected 0, have 2 1121 | set[2] = pzseek(set[1], 1); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:879:1: note: declared here 879 | pzseek(t, dir) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c: In function 'alter': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktpzstr.c:1129:1: warning: old-style function definition [-Wold-style-definition] 1129 | alter(new, nearto, abstol, reltol) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetap.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetap.c: In function 'CKTsetAnalPm': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetap.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | CKTsetAnalPm(ckt,analPtr,parm,value,selector) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetap.c:29:14: error: too many arguments to function 'analInfo[type]->setParm'; expected 0, have 4 29 | return( (*(analInfo[type]->setParm))(ckt,analPtr,parm,value) ); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/tskdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetap.c:8: /home/pbulk/work/cad/spice/work/src/include/jobdefs.h:24:12: note: declared here 24 | int (*(setParm))( ); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c: In function 'CKTsetBreak': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | CKTsetBreak(ckt,time) | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c:15: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c:47:29: note: in expansion of macro 'MALLOC' 47 | tmp = (double *)MALLOC((ckt->CKTbreakSize+1)*sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetbk.c:68:32: note: in expansion of macro 'REALLOC' 68 | ckt->CKTbreaks = (double *)REALLOC(ckt->CKTbreaks, | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:13: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c: In function 'CKTsetup': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:31:1: warning: old-style function definition [-Wold-style-definition] 31 | CKTsetup(ckt) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:17: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:24:32: note: in expansion of macro 'MALLOC' 24 | if(size && (!(var =(type *)MALLOC((size)*sizeof(type))))){\ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:64:9: note: in expansion of macro 'CKALLOC' 64 | CKALLOC(ckt->CKTstates[i],ckt->CKTnumStates,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c: In function 'CKTunsetup': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:84:1: warning: old-style function definition [-Wold-style-definition] 84 | CKTunsetup(ckt) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsetup.c:94:9: note: in expansion of macro 'tfree' 94 | tfree(ckt->CKTstates[i]); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c: In function 'sgen_init': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | sgen_init(ckt, is_dc) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:21:1: error: number of arguments doesn't match prototype 21 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:11: /home/pbulk/work/cad/spice/work/src/include/sensgen.h:19:14: error: prototype declaration 19 | extern sgen *sgen_init( ); | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:6: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:59:35: note: in expansion of macro 'MALLOC' 59 | #define NEW(TYPE) ((TYPE *) MALLOC(sizeof(TYPE))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:24:14: note: in expansion of macro 'NEW' 24 | sg = NEW(sgen); | ^~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:40:9: error: too many arguments to function 'sgen_next'; expected 0, have 1 40 | sgen_next(&sg); /* get the ball rolling XXX check return val? */ | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/sensgen.h:20:12: note: declared here 20 | extern int sgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c: In function 'sgen_next': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:46:1: warning: old-style function definition [-Wold-style-definition] 46 | sgen_next(xsg) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:48:1: error: number of arguments doesn't match prototype 48 | { | ^ /home/pbulk/work/cad/spice/work/src/include/sensgen.h:20:12: error: prototype declaration 20 | extern int sgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c: In function 'set_inst': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:180:1: warning: old-style function definition [-Wold-style-definition] 180 | set_inst(sg) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c: In function 'set_model': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:186:1: warning: old-style function definition [-Wold-style-definition] 186 | set_model(sg) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c: In function 'set_dev': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:192:1: warning: old-style function definition [-Wold-style-definition] 192 | set_dev(sg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c: In function 'set_param': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:198:1: warning: old-style function definition [-Wold-style-definition] 198 | set_param(sg) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:206:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 206 | strlen(Sfilter))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsgen.c:12:1: note: include '' or provide a declaration of 'strlen' 11 | #include "sensgen.h" +++ |+#include 12 | #include *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsopt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsopt.c:20: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsopt.c:19: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsopt.c: In function 'CKTsetOpt': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsopt.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CKTsetOpt(ckt,anal,opt,val) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttemp.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttemp.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttemp.c: In function 'CKTtemp': /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttemp.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CKTtemp(ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c:7: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c:6: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c:9: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c:8: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c: In function 'CKTtrouble': /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | CKTtrouble(cktp, optmsg) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c:19: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttroub.c:101:12: note: in expansion of macro 'MALLOC' 101 | emsg = MALLOC(strlen(msg_buf)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttrunc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttrunc.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttrunc.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttrunc.c: In function 'CKTtrunc': /home/pbulk/work/cad/spice/work/src/lib/ckt//ckttrunc.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | CKTtrunc(ckt,timeStep) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//dcoaskq.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dcoaskq.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:285:5: error: conflicting types for 'DCOaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 285 | int DCOaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dcoaskq.c:10: /home/pbulk/work/cad/spice/work/src/include/opdefs.h:24:12: note: previous declaration of 'DCOaskQuest' with type 'int(void)' 24 | extern int DCOaskQuest(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:286:5: error: conflicting types for 'DCOsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 286 | int DCOsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/opdefs.h:23:12: note: previous declaration of 'DCOsetParm' with type 'int(void)' 23 | extern int DCOsetParm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcoaskq.c:16:1: error: conflicting types for 'DCOaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 16 | DCOaskQuest(ckt,anal,which,value) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/opdefs.h:24:12: note: previous declaration of 'DCOaskQuest' with type 'int(void)' 24 | extern int DCOaskQuest(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcoaskq.c: In function 'DCOaskQuest': /home/pbulk/work/cad/spice/work/src/lib/ckt//dcoaskq.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | DCOaskQuest(ckt,anal,which,value) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcoaskq.c:21:1: error: number of arguments doesn't match prototype 21 | { | ^ /home/pbulk/work/cad/spice/work/src/include/opdefs.h:24:12: error: prototype declaration 24 | extern int DCOaskQuest(); | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c:10: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c: In function 'DCop': /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | DCop(ckt) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c:19:9: error: conflicting types for 'CKTload'; have 'int(void)' 19 | int CKTload(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:245:5: note: previous declaration of 'CKTload' with type 'int(CKTcircuit *)' 245 | int CKTload( CKTcircuit *); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c:65:17: error: too many arguments to function 'CKTload'; expected 0, have 1 65 | converged = CKTload(ckt); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcop.c:19:9: note: declared here 19 | int CKTload(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//dcosetp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dcosetp.c:11: /home/pbulk/work/cad/spice/work/src/include/opdefs.h:23:12: error: conflicting types for 'DCOsetParm'; have 'int(void)' 23 | extern int DCOsetParm(); | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dcosetp.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:286:5: note: previous declaration of 'DCOsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 286 | int DCOsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/opdefs.h:24:12: error: conflicting types for 'DCOaskQuest'; have 'int(void)' 24 | extern int DCOaskQuest(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:285:5: note: previous declaration of 'DCOaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 285 | int DCOaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcosetp.c:16:1: error: conflicting types for 'DCOsetParm'; have 'int(void)' 16 | DCOsetParm(ckt,anal,which,value) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:286:5: note: previous declaration of 'DCOsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 286 | int DCOsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dcosetp.c: In function 'DCOsetParm': /home/pbulk/work/cad/spice/work/src/lib/ckt//dcosetp.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | DCOsetParm(ckt,anal,which,value) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:11: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:10: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:12: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c: In function 'DCtran': /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | DCtran(ckt,restart) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:14: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:72:34: note: in expansion of macro 'NEWN' 72 | ckt->CKTtimePoints = NEWN(double, ckt->CKTtimeListSize); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:76:34: note: in expansion of macro 'MALLOC' 76 | ckt->CKTbreaks=(double *)MALLOC(2*sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dctran.c:174:45: note: in expansion of macro 'REALLOC' 174 | ckt->CKTtimePoints = (double *) REALLOC( (char *) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//dctrcurv.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctrcurv.c:8: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctrcurv.c:7: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctrcurv.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src//lib/dev/vsrc/vsrcdefs.h:10, from /home/pbulk/work/cad/spice/work/src/lib/ckt//dctrcurv.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dctrcurv.c: In function 'DCtrCurv': /home/pbulk/work/cad/spice/work/src/lib/ckt//dctrcurv.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | DCtrCurv(ckt,restart) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:11: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c: In function 'DISswap': /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | DISswap(a,b) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c: In function 'DmemAlloc': /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | DmemAlloc(a,size) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:10: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:30:17: note: in expansion of macro 'MALLOC' 30 | *a = (double *) MALLOC( sizeof(double) * size + 1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c: In function 'DstorAlloc': /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:36:1: warning: old-style function definition [-Wold-style-definition] 36 | DstorAlloc(header,size) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:40:23: note: in expansion of macro 'MALLOC' 40 | *header = (double **) MALLOC( sizeof(double *)*size); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c: In function 'DISTOan': /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:54:1: warning: old-style function definition [-Wold-style-definition] 54 | DISTOan(ckt,restart) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:144:17: error: too many arguments to function 'CKTdisto'; expected 0, have 2 144 | error = CKTdisto(ckt,D_SETUP); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:296:17: error: too many arguments to function 'CKTdisto'; expected 0, have 2 296 | error = CKTdisto(ckt,D_RHSF1); /* sets up the RHS vector | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:321:17: error: too many arguments to function 'CKTdisto'; expected 0, have 2 321 | error = CKTdisto(ckt,D_TWOF1); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:342:25: error: too many arguments to function 'CKTdisto'; expected 0, have 2 342 | error = CKTdisto(ckt,D_THRF1); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:369:25: error: too many arguments to function 'CKTdisto'; expected 0, have 2 369 | error = CKTdisto(ckt,D_RHSF2); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:388:25: error: too many arguments to function 'CKTdisto'; expected 0, have 2 388 | error = CKTdisto(ckt,D_F1PF2); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:408:25: error: too many arguments to function 'CKTdisto'; expected 0, have 2 408 | error = CKTdisto(ckt,D_F1MF2); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:427:25: error: too many arguments to function 'CKTdisto'; expected 0, have 2 427 | error = CKTdisto(ckt,D_2F1MF2); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:48:12: note: declared here 48 | extern int CKTdisto(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:442:18: note: in expansion of macro 'MALLOC' 442 | errMsg = MALLOC(strlen(nof2src)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:545:9: error: too many arguments to function 'DkerProc'; expected 0, have 5 545 | DkerProc(D_TWOF1,*(job->r2H11stor + i), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:49:12: note: declared here 49 | extern int DkerProc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:564:9: error: too many arguments to function 'DkerProc'; expected 0, have 5 564 | DkerProc(D_THRF1,*(job->r3H11stor + i), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:49:12: note: declared here 49 | extern int DkerProc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:585:9: error: too many arguments to function 'DkerProc'; expected 0, have 5 585 | DkerProc(D_F1PF2,*(job->r2H12stor + i), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:49:12: note: declared here 49 | extern int DkerProc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:604:9: error: too many arguments to function 'DkerProc'; expected 0, have 5 604 | DkerProc(D_F1MF2, | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:49:12: note: declared here 49 | extern int DkerProc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:624:9: error: too many arguments to function 'DkerProc'; expected 0, have 5 624 | DkerProc(D_2F1MF2, | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//distoan.c:49:12: note: declared here 49 | extern int DkerProc(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//dkerproc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dkerproc.c:8: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dkerproc.c:7: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dkerproc.c: In function 'DkerProc': /home/pbulk/work/cad/spice/work/src/lib/ckt//dkerproc.c:13:1: warning: old-style function definition [-Wold-style-definition] 13 | DkerProc(type,rPtr,iPtr,size,job) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//dsetparm.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//dsetparm.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//dsetparm.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dsetparm.c: In function 'DsetParm': /home/pbulk/work/cad/spice/work/src/lib/ckt//dsetparm.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | DsetParm(ckt,anal,which,value) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dsetparm.c:27:22: error: too many arguments to function 'copy'; expected 0, have 1 27 | errMsg = copy("Frequency of 0 is invalid"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//dsetparm.c:37:22: error: too many arguments to function 'copy'; expected 0, have 1 37 | errMsg = copy("Frequency of 0 is invalid"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//naskq.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//naskq.c: In function 'NaskQuest': /home/pbulk/work/cad/spice/work/src/lib/ckt//naskq.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | NaskQuest(ckt,anal,which,value) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//naskq.c:20:1: error: number of arguments doesn't match prototype 20 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//naskq.c:11: /home/pbulk/work/cad/spice/work/src/include/noisedef.h:126:12: error: prototype declaration 126 | extern int NaskQuest(); | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c: In function 'NOISEan': /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | NOISEan (ckt, restart) | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c:22: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c:58:22: note: in expansion of macro 'MALLOC' 58 | errMsg = MALLOC(strlen(noacinput)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c:76:22: note: in expansion of macro 'MALLOC' 76 | errMsg = MALLOC(strlen(noacinput)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//noisean.c:112:24: note: in expansion of macro 'MALLOC' 112 | data = (Ndata*)MALLOC(sizeof(Ndata)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c: In function 'NsetParm': /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | NsetParm(ckt,anal,which,value) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c:21:1: error: number of arguments doesn't match prototype 21 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c:11: /home/pbulk/work/cad/spice/work/src/include/noisedef.h:125:12: error: prototype declaration 125 | extern int NsetParm(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c:54:22: error: too many arguments to function 'copy'; expected 0, have 1 54 | errMsg = copy("Frequency of 0 is invalid"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//nsetparm.c:64:22: error: too many arguments to function 'copy'; expected 0, have 1 64 | errMsg = copy("Frequency of 0 is invalid"); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:11: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c: In function 'PZan': /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | PZan(ckt,reset) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c: In function 'PZinit': /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:84:1: warning: old-style function definition [-Wold-style-definition] 84 | PZinit(ckt) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:97:9: note: in expansion of macro 'ERROR' 97 | ERROR(E_XMISSIONLINE, "Transmission lines not supported") | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:105:9: note: in expansion of macro 'ERROR' 105 | ERROR(E_SHORT, "Input is shorted") | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:108:9: note: in expansion of macro 'ERROR' 108 | ERROR(E_SHORT, "Output is shorted") | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:113:9: note: in expansion of macro 'ERROR' 113 | ERROR(E_INISOUT, "Transfer function is unity") | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:117:9: note: in expansion of macro 'ERROR' 117 | ERROR(E_INISOUT, "Transfer function is -1") | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c: In function 'PZpost': /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:127:1: warning: old-style function definition [-Wold-style-definition] 127 | PZpost(ckt) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:139:26: note: in expansion of macro 'MALLOC' 139 | namelist = (IFuid *) MALLOC((pzan->PZnPoles | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//pzan.c:141:29: note: in expansion of macro 'MALLOC' 141 | out_list = (IFcomplex *)MALLOC((pzan->PZnPoles | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//sensaskq.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//sensaskq.c: In function 'SENSask': /home/pbulk/work/cad/spice/work/src/lib/ckt//sensaskq.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | SENSask(ckt,anal,which,value) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//sensaskq.c:20:1: error: number of arguments doesn't match prototype 20 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//sensaskq.c:10: /home/pbulk/work/cad/spice/work/src/include/sensdefs.h:69:8: error: prototype declaration 69 | extern SENSask( ); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//senssetp.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ckt//senssetp.c: In function 'SENSsetParam': /home/pbulk/work/cad/spice/work/src/lib/ckt//senssetp.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | SENSsetParam(ckt,anal,which,value) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//senssetp.c:20:1: error: number of arguments doesn't match prototype 20 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//senssetp.c:10: /home/pbulk/work/cad/spice/work/src/include/sensdefs.h:70:8: error: prototype declaration 70 | extern SENSsetParam( ); | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c:15: /home/pbulk/work/cad/spice/work/src/include/tfdefs.h:35:12: error: conflicting types for 'TFsetParm'; have 'int(void)' 35 | extern int TFsetParm(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:307:5: note: previous declaration of 'TFsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 307 | int TFsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/tfdefs.h:36:12: error: conflicting types for 'TFaskQuest'; have 'int(void)' 36 | extern int TFaskQuest(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:306:5: note: previous declaration of 'TFaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 306 | int TFaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c: In function 'TFanal': /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | TFanal(ckt,restart) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//tfanal.c:119:5: note: in expansion of macro 'MALLOC' 119 | MALLOC(sizeof(char)*(strlen(((TFan*)ckt->CKTcurJob)->TFoutName)+22)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//tfsetp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//tfsetp.c:10: /home/pbulk/work/cad/spice/work/src/include/tfdefs.h:35:12: error: conflicting types for 'TFsetParm'; have 'int(void)' 35 | extern int TFsetParm(); | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/tfdefs.h:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:307:5: note: previous declaration of 'TFsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 307 | int TFsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/tfdefs.h:36:12: error: conflicting types for 'TFaskQuest'; have 'int(void)' 36 | extern int TFaskQuest(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:306:5: note: previous declaration of 'TFaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 306 | int TFaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//tfsetp.c:17:1: error: conflicting types for 'TFsetParm'; have 'int(void)' 17 | TFsetParm(ckt,anal,which,value) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:307:5: note: previous declaration of 'TFsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 307 | int TFsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//tfsetp.c: In function 'TFsetParm': /home/pbulk/work/cad/spice/work/src/lib/ckt//tfsetp.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | TFsetParm(ckt,anal,which,value) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//tranaskq.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//tranaskq.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//tranaskq.c:10: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//tranaskq.c:16:1: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 16 | TRANaskQuest(ckt,anal,which,value) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//tranaskq.c: In function 'TRANaskQuest': /home/pbulk/work/cad/spice/work/src/lib/ckt//tranaskq.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | TRANaskQuest(ckt,anal,which,value) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//tranaskq.c:21:1: error: number of arguments doesn't match prototype 21 | { | ^ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: prototype declaration 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//traninit.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//traninit.c:7: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: conflicting types for 'TRANsetParm'; have 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//traninit.c:6: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: note: previous declaration of 'TRANsetParm' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: error: conflicting types for 'TRANaskQuest'; have 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: note: previous declaration of 'TRANaskQuest' with type 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//traninit.c: In function 'TRANinit': /home/pbulk/work/cad/spice/work/src/lib/ckt//traninit.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | TRANinit(ckt,job) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//transetp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//transetp.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//transetp.c:10: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//transetp.c:16:1: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 16 | TRANsetParm(ckt,anal,which,value) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//transetp.c: In function 'TRANsetParm': /home/pbulk/work/cad/spice/work/src/lib/ckt//transetp.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | TRANsetParm(ckt,anal,which,value) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//transetp.c:21:1: error: number of arguments doesn't match prototype 21 | { | ^ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: error: prototype declaration 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/devdefs.h:12, from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:11: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:8: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'sens_sens': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:50:1: warning: old-style function definition [-Wold-style-definition] 50 | sens_sens(ckt, restart) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:53:1: error: number of arguments doesn't match prototype 53 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:14: /home/pbulk/work/cad/spice/work/src/include/sensdefs.h:71:8: error: prototype declaration 71 | extern sens_sens( ); | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:6: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:138:27: note: in expansion of macro 'NEWN' 138 | delta_I = NEWN(double, size); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:139:28: note: in expansion of macro 'NEWN' 139 | delta_iI = NEWN(double, size); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:141:35: note: in expansion of macro 'NEWN' 141 | delta_I_delta_Y = NEWN(double, size); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:142:36: note: in expansion of macro 'NEWN' 142 | delta_iI_delta_Y = NEWN(double, size); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:146:27: error: too many arguments to function 'sgen_init'; expected 0, have 2 146 | for (sg = sgen_init(ckt, is_dc); sg; sgen_next(&sg)) { | ^~~~~~~~~ ~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:15: /home/pbulk/work/cad/spice/work/src/include/sensgen.h:19:14: note: declared here 19 | extern sgen *sgen_init( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:146:54: error: too many arguments to function 'sgen_next'; expected 0, have 1 146 | for (sg = sgen_init(ckt, is_dc); sg; sgen_next(&sg)) { | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/sensgen.h:20:12: note: declared here 20 | extern int sgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:154:32: note: in expansion of macro 'NEWN' 154 | output_names = NEWN(IFuid, num_vars); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:155:27: error: too many arguments to function 'sgen_init'; expected 0, have 2 155 | for (sg = sgen_init(ckt, is_dc); sg; sgen_next(&sg)) { | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/sensgen.h:19:14: note: declared here 19 | extern sgen *sgen_init( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:155:54: error: too many arguments to function 'sgen_next'; expected 0, have 1 155 | for (sg = sgen_init(ckt, is_dc); sg; sgen_next(&sg)) { | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/sensgen.h:20:12: note: declared here 20 | extern int sgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:195:41: note: in expansion of macro 'NEWN' 195 | output_values = NEWN(double, num_vars); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:199:42: note: in expansion of macro 'NEWN' 199 | output_cvalues = NEWN(IFcomplex, num_vars); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:310:27: error: too many arguments to function 'sgen_init'; expected 0, have 2 310 | for (sg = sgen_init(ckt, is_dc /* sen_info->plist */); | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/sensgen.h:19:14: note: declared here 19 | extern sgen *sgen_init( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:311:29: error: too many arguments to function 'sgen_next'; expected 0, have 1 311 | sg; sgen_next(&sg)) | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/sensgen.h:20:12: note: declared here 20 | extern int sgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:350:34: error: too many arguments to function 'fn'; expected 0, have 4 350 | (*fn)(delta_Y, sg->model, ckt, | ~^~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:359:32: error: too many arguments to function 'sens_temp'; expected 0, have 2 359 | (void) sens_temp(sg, ckt); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:29:40: note: declared here 29 | static int sens_setp( ), sens_load( ), sens_temp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:364:29: error: too many arguments to function 'sens_load'; expected 0, have 3 364 | if (sens_load(sg, ckt, is_dc)) { | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:29:26: note: declared here 29 | static int sens_setp( ), sens_load( ), sens_temp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:399:25: error: too many arguments to function 'sens_setp'; expected 0, have 3 399 | sens_setp(sg, ckt, &nvalue); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:29:12: note: declared here 29 | static int sens_setp( ), sens_load( ), sens_temp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:420:32: error: too many arguments to function 'sens_temp'; expected 0, have 2 420 | (void) sens_temp(sg, ckt); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:29:40: note: declared here 29 | static int sens_setp( ), sens_load( ), sens_temp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:433:25: error: too many arguments to function 'sens_load'; expected 0, have 3 433 | sens_load(sg, ckt, is_dc); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:29:26: note: declared here 29 | static int sens_setp( ), sens_load( ), sens_temp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:449:25: error: too many arguments to function 'sens_setp'; expected 0, have 3 449 | sens_setp(sg, ckt, &value); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:29:12: note: declared here 29 | static int sens_setp( ), sens_load( ), sens_temp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:450:32: error: too many arguments to function 'sens_temp'; expected 0, have 2 450 | (void) sens_temp(sg, ckt); /* XXX is this necessary? */ | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:29:40: note: declared here 29 | static int sens_setp( ), sens_load( ), sens_temp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:554:24: error: too many arguments to function 'inc_freq'; expected 0, have 3 554 | freq = inc_freq(freq, sen_info->step_type, step_size); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:48:25: note: declared here 48 | extern double inc_freq( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'inc_freq': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:588:1: warning: old-style function definition [-Wold-style-definition] 588 | inc_freq(freq, type, step_size) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:592:1: error: number of arguments doesn't match prototype 592 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:48:25: error: prototype declaration 48 | extern double inc_freq( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'next_freq': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:602:1: warning: old-style function definition [-Wold-style-definition] 602 | next_freq(type, freq, stepsize) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'count_steps': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:626:1: warning: old-style function definition [-Wold-style-definition] 626 | count_steps(type, low, high, steps, stepsize) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'sens_load': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:677:1: warning: old-style function definition [-Wold-style-definition] 677 | sens_load(sg, ckt, is_dc) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:692:26: error: too many arguments to function 'fn'; expected 0, have 2 692 | error = (*fn)(sg->model, ckt); | ~^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'sens_temp': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:701:1: warning: old-style function definition [-Wold-style-definition] 701 | sens_temp(sg, ckt) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:712:26: error: too many arguments to function 'fn'; expected 0, have 2 712 | error = (*fn)(sg->model, ckt); | ~^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'sens_getp': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:721:1: warning: old-style function definition [-Wold-style-definition] 721 | sens_getp(sg, ckt, val) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:725:1: error: number of arguments doesn't match prototype 725 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:30:5: error: prototype declaration 30 | int sens_getp( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:735:34: error: too many arguments to function 'fn'; expected 0, have 5 735 | error = (*fn)(ckt, sg->instance, pid, val, NULL); | ~^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:742:34: error: too many arguments to function 'fn'; expected 0, have 5 742 | error = (*fn)(ckt, sg->model, pid, val, NULL); | ~^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c: In function 'sens_setp': /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:767:1: warning: old-style function definition [-Wold-style-definition] 767 | sens_setp(sg, ckt, val) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:781:34: error: too many arguments to function 'fn'; expected 0, have 4 781 | error = (*fn)(pid, val, sg->instance, NULL); | ~^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/ckt//cktsens.c:788:34: error: too many arguments to function 'fn'; expected 0, have 3 788 | error = (*fn)(pid, val, sg->model); | ~^~~~ ~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/ckt Making "install" in cp gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c: In function 'cp_doalias': /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | cp_doalias(wlist) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:21:1: error: number of arguments doesn't match prototype 21 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:21:18: error: prototype declaration 21 | extern wordlist *cp_doalias(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:35:13: error: too many arguments to function 'wl_copy'; expected 0, have 1 35 | realw = wl_copy(cp_lastone->hi_wlist); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:47:9: error: too many arguments to function 'wl_free'; expected 0, have 1 47 | wl_free(cp_lastone->hi_wlist); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:48:32: error: too many arguments to function 'wl_copy'; expected 0, have 1 48 | cp_lastone->hi_wlist = wl_copy(comm); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:50:19: error: too many arguments to function 'asubst'; expected 0, have 1 50 | nwl = asubst(comm); | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:14:18: note: declared here 14 | static wordlist *asubst(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:55:17: error: too many arguments to function 'wl_free'; expected 0, have 1 55 | wl_free(comm); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:59:17: error: too many arguments to function 'wl_free'; expected 0, have 1 59 | wl_free(comm); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:84:5: error: too many arguments to function 'wl_free'; expected 0, have 1 84 | wl_free(cp_lastone->hi_wlist); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c: In function 'asubst': /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:95:1: warning: old-style function definition [-Wold-style-definition] 95 | asubst(wlist) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:112:23: error: too many arguments to function 'wl_copy'; expected 0, have 1 112 | wl = cp_histsubst(wl_copy(al->al_text)); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:112:10: error: too many arguments to function 'cp_histsubst'; expected 0, have 1 112 | wl = cp_histsubst(wl_copy(al->al_text)); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:99:18: note: declared here 99 | extern wordlist *cp_histsubst(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:116:9: error: too many arguments to function 'wl_free'; expected 0, have 1 116 | wl_free(cp_lastone->hi_wlist); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:117:32: error: too many arguments to function 'wl_copy'; expected 0, have 1 117 | cp_lastone->hi_wlist = wl_copy(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:121:22: error: too many arguments to function 'wl_copy'; expected 0, have 1 121 | w->wl_next = wl_copy(wlist->wl_next); | ^~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c: In function 'cp_setalias': /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:131:1: warning: old-style function definition [-Wold-style-definition] 131 | cp_setalias(word, wlist) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:134:1: error: number of arguments doesn't match prototype 134 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: error: prototype declaration 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:137:5: error: too many arguments to function 'cp_unalias'; expected 0, have 1 137 | cp_unalias(word); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:20:13: note: declared here 20 | extern void cp_unalias(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:138:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 138 | cp_addkword(CT_ALIASES, word); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:141:27: note: in expansion of macro 'alloc' 141 | al = cp_aliases = alloc(struct alias); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:155:27: note: in expansion of macro 'alloc' 155 | al->al_next = alloc(struct alias); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:161:26: note: in expansion of macro 'alloc' 161 | cp_aliases = alloc(struct alias); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:168:19: error: too many arguments to function 'copy'; expected 0, have 1 168 | al->al_name = copy(word); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:169:19: error: too many arguments to function 'wl_copy'; expected 0, have 1 169 | al->al_text = wl_copy(wlist); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:170:5: error: too many arguments to function 'cp_striplist'; expected 0, have 1 170 | cp_striplist(al->al_text); | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:134:13: note: declared here 134 | extern void cp_striplist(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:175:5: error: too many arguments to function 'cp_addcomm'; expected 0, have 5 175 | cp_addcomm(word, (long) 1, (long) 1, (long) 1, (long) 1); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:33:13: note: declared here 33 | extern void cp_addcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c: In function 'cp_unalias': /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:183:1: warning: old-style function definition [-Wold-style-definition] 183 | cp_unalias(word) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:185:1: error: number of arguments doesn't match prototype 185 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:20:13: error: prototype declaration 20 | extern void cp_unalias(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:188:5: error: too many arguments to function 'cp_remkword'; expected 0, have 2 188 | cp_remkword(CT_ALIASES, word); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:39:13: note: declared here 39 | extern void cp_remkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:202:5: error: too many arguments to function 'wl_free'; expected 0, have 1 202 | wl_free(al->al_text); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:203:5: note: in expansion of macro 'tfree' 203 | tfree(al->al_name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:204:5: note: in expansion of macro 'tfree' 204 | tfree(al); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:205:5: error: too many arguments to function 'cp_remcomm'; expected 0, have 1 205 | cp_remcomm(word); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:38:13: note: declared here 38 | extern void cp_remcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c: In function 'cp_paliases': /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:210:1: warning: old-style function definition [-Wold-style-definition] 210 | cp_paliases(word) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:212:1: error: number of arguments doesn't match prototype 212 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:18:13: error: prototype declaration 18 | extern void cp_paliases(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:219:13: error: too many arguments to function 'wl_print'; expected 0, have 2 219 | wl_print(al->al_text, cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c: In function 'com_alias': /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:228:1: warning: old-style function definition [-Wold-style-definition] 228 | com_alias(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:230:1: error: number of arguments doesn't match prototype 230 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:16:13: error: prototype declaration 16 | extern void com_alias(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:232:9: error: too many arguments to function 'cp_paliases'; expected 0, have 1 232 | cp_paliases((char *) NULL); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:210:1: note: declared here 210 | cp_paliases(word) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:234:9: error: too many arguments to function 'cp_paliases'; expected 0, have 1 234 | cp_paliases(wl->wl_word); | ^~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:210:1: note: declared here 210 | cp_paliases(word) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:236:9: error: too many arguments to function 'cp_setalias'; expected 0, have 2 236 | cp_setalias(wl->wl_word, wl->wl_next); | ^~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:131:1: note: declared here 131 | cp_setalias(word, wlist) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c: In function 'com_unalias': /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:241:1: warning: old-style function definition [-Wold-style-definition] 241 | com_unalias(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:243:1: error: number of arguments doesn't match prototype 243 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:17:13: error: prototype declaration 17 | extern void com_unalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:249:13: error: too many arguments to function 'wl_free'; expected 0, have 1 249 | wl_free(al->al_text); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:250:13: note: in expansion of macro 'tfree' 250 | tfree(al->al_name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:251:13: note: in expansion of macro 'tfree' 251 | tfree(al); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:257:9: error: too many arguments to function 'cp_unalias'; expected 0, have 1 257 | cp_unalias(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//alias.c:183:1: note: declared here 183 | cp_unalias(word) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c: In function 'cp_bquote': /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | cp_bquote(wlist) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:23:1: error: number of arguments doesn't match prototype 23 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:26:18: error: prototype declaration 26 | extern wordlist *cp_bquote(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:49:21: error: too many arguments to function 'backeval'; expected 0, have 1 49 | if (!(nwl = backeval(buf))) { | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:16:18: note: declared here 16 | static wordlist *backeval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:57:17: note: in expansion of macro 'tfree' 57 | tfree(nwl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:59:28: error: too many arguments to function 'copy'; expected 0, have 1 59 | nwl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:61:14: error: too many arguments to function 'wl_splice'; expected 0, have 2 61 | wl = wl_splice(wl, nwl); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:72:18: note: declared here 72 | extern wordlist *wl_splice(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:65:9: note: in expansion of macro 'tfree' 65 | tfree(wl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:66:23: error: too many arguments to function 'copy'; expected 0, have 1 66 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c: In function 'backeval': /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | backeval(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:88:18: error: conflicting types for 'popen'; have 'FILE *(void)' 88 | extern FILE *popen( ); | ^~~~~ /usr/include/stdio.h:325:18: note: previous declaration of 'popen' with type 'FILE *(const char *, const char *)' 325 | extern FILE *popen(const char *, const char *); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:90:12: error: too many arguments to function 'popen'; expected 0, have 2 90 | proc = popen(string, "r"); | ^~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:88:18: note: declared here 88 | extern FILE *popen( ); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//backq.c:100:10: error: too many arguments to function 'cp_lexer'; expected 0, have 1 100 | wl = cp_lexer((char *) NULL); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:17: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_ccom': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:89:1: warning: old-style function definition [-Wold-style-definition] 89 | cp_ccom(wlist, buf, esc) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:93:1: error: number of arguments doesn't match prototype 93 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:35:13: error: prototype declaration 35 | extern void cp_ccom(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:99:22: error: too many arguments to function 'copy'; expected 0, have 1 99 | buf = cp_unquote(copy(buf)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:99:11: error: too many arguments to function 'cp_unquote'; expected 0, have 1 99 | buf = cp_unquote(copy(buf)); | ^~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:100:5: error: too many arguments to function 'cp_wstrip'; expected 0, have 1 100 | cp_wstrip(buf); | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:135:13: note: declared here 135 | extern void cp_wstrip(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:102:14: error: too many arguments to function 'getccom'; expected 0, have 1 102 | cc = getccom(wlist->wl_word); | ^~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:60:21: note: declared here 60 | static struct ccom *getccom(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:105:15: error: too many arguments to function 'wl_length'; expected 0, have 1 105 | arg = wl_length(wlist) - 2; | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:62:12: note: declared here 62 | extern int wl_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:110:24: error: too many arguments to function 'ccfilec'; expected 0, have 1 110 | pmatches = ccfilec(buf); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:55:18: note: declared here 55 | static wordlist *ccfilec(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:121:21: error: too many arguments to function 'ccmatch'; expected 0, have 2 121 | a = ccmatch(buf, &keywords[j]); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:56:18: note: declared here 56 | static wordlist *ccmatch(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:124:32: error: too many arguments to function 'wl_append'; expected 0, have 2 124 | pmatches = wl_append(pmatches, a); | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:66:18: note: declared here 66 | extern wordlist *wl_append(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:129:9: error: too many arguments to function 'wl_sort'; expected 0, have 1 129 | wl_sort(pmatches); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:65:13: note: declared here 65 | extern void wl_sort(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:131:20: error: too many arguments to function 'ccmatch'; expected 0, have 2 131 | pmatches = ccmatch(buf, &commands); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:56:18: note: declared here 56 | static wordlist *ccmatch(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:135:9: error: too many arguments to function 'printem'; expected 0, have 1 135 | printem(pmatches); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:61:13: note: declared here 61 | static void printem(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:136:9: error: too many arguments to function 'wl_free'; expected 0, have 1 136 | wl_free(pmatches); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:166:5: error: too many arguments to function 'wl_free'; expected 0, have 1 166 | wl_free(pmatches); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'getccom': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:176:1: warning: old-style function definition [-Wold-style-definition] 176 | getccom(first) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:198:13: error: too many arguments to function 'clookup'; expected 0, have 4 198 | return (clookup(first, &commands, false, false)); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:59:21: note: declared here 59 | static struct ccom *clookup(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'ccfilec': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:204:1: warning: old-style function definition [-Wold-style-definition] 204 | ccfilec(buf) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:213:11: error: too many arguments to function 'copy'; expected 0, have 1 213 | buf = copy(buf); /* Don't mangle anything... */ | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:222:21: error: too many arguments to function 'prefix'; expected 0, have 2 222 | if (prefix(buf, pw->pw_name)) { | ^~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:224:30: note: in expansion of macro 'alloc' 224 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:229:30: note: in expansion of macro 'alloc' 229 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:234:35: error: too many arguments to function 'copy'; expected 0, have 1 234 | wl->wl_word = copy(pw->pw_name); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:245:19: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 245 | dir = cp_tildexpand(dir); | ^~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: note: declared here 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:253:14: error: too many arguments to function 'prefix'; expected 0, have 2 253 | if ((prefix(lcomp, de->d_name)) && (*lcomp || | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:256:22: note: in expansion of macro 'alloc' 256 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:261:22: note: in expansion of macro 'alloc' 261 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:266:27: error: too many arguments to function 'copy'; expected 0, have 1 266 | wl->wl_word = copy(de->d_name); | ^~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:270:5: error: too many arguments to function 'wl_sort'; expected 0, have 1 270 | wl_sort(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:65:13: note: declared here 65 | extern void wl_sort(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'ccmatch': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:280:1: warning: old-style function definition [-Wold-style-definition] 280 | ccmatch(word, dbase) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:287:10: error: too many arguments to function 'clookup'; expected 0, have 4 287 | cc = clookup(word, dbase, true, false); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:59:21: note: declared here 59 | static struct ccom *clookup(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:290:18: error: too many arguments to function 'cctowl'; expected 0, have 2 290 | wl = cctowl(cc, false); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:57:18: note: declared here 57 | static wordlist *cctowl(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:292:18: error: too many arguments to function 'cctowl'; expected 0, have 2 292 | wl = cctowl(cc, true); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:57:18: note: declared here 57 | static wordlist *cctowl(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'printem': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:303:1: warning: old-style function definition [-Wold-style-definition] 303 | printem(wl) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:313:11: error: too many arguments to function 'wl_length'; expected 0, have 1 313 | num = wl_length(wl); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:62:12: note: declared here 62 | extern int wl_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:330:25: error: too many arguments to function 'wl_nthelem'; expected 0, have 2 330 | wl_nthelem(j, wl)->wl_word); | ^~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:70:18: note: declared here 70 | extern wordlist *wl_nthelem(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cctowl': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:351:1: warning: old-style function definition [-Wold-style-definition] 351 | cctowl(cc, sib) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:360:14: note: in expansion of macro 'alloc' 360 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:361:23: error: too many arguments to function 'copy'; expected 0, have 1 361 | wl->wl_word = copy(cc->cc_name); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:363:23: error: too many arguments to function 'cctowl'; expected 0, have 2 363 | wl->wl_next = cctowl(cc->cc_child, true); | ^~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:351:1: note: declared here 351 | cctowl(cc, sib) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:367:14: error: too many arguments to function 'cctowl'; expected 0, have 2 367 | wl = cctowl(cc->cc_child, true); | ^~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:351:1: note: declared here 351 | cctowl(cc, sib) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:372:28: error: too many arguments to function 'cctowl'; expected 0, have 2 372 | end->wl_next = cctowl(cc->cc_sibling, true); | ^~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:351:1: note: declared here 351 | cctowl(cc, sib) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:376:18: error: too many arguments to function 'cctowl'; expected 0, have 2 376 | wl = cctowl(cc->cc_sibling, true); | ^~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:351:1: note: declared here 351 | cctowl(cc, sib) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_cctowl': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:384:1: warning: old-style function definition [-Wold-style-definition] 384 | cp_cctowl(stuff) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:386:1: error: number of arguments doesn't match prototype 386 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:40:18: error: prototype declaration 40 | extern wordlist *cp_cctowl(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:387:13: error: too many arguments to function 'cctowl'; expected 0, have 2 387 | return (cctowl((struct ccom *) stuff, true)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:351:1: note: declared here 351 | cctowl(cc, sib) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_ccon': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:393:1: warning: old-style function definition [-Wold-style-definition] 393 | cp_ccon(on) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:395:1: error: number of arguments doesn't match prototype 395 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: error: prototype declaration 36 | extern void cp_ccon(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_comlook': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:471:1: warning: old-style function definition [-Wold-style-definition] 471 | cp_comlook(word) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:473:1: error: number of arguments doesn't match prototype 473 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:31:13: error: prototype declaration 31 | extern bool cp_comlook(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:474:26: error: too many arguments to function 'clookup'; expected 0, have 4 474 | if (word && *word && clookup(word, &commands, false, false)) | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:59:21: note: declared here 59 | static struct ccom *clookup(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_addcomm': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:483:1: warning: old-style function definition [-Wold-style-definition] 483 | cp_addcomm(word, bits0, bits1, bits2, bits3) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:486:1: error: number of arguments doesn't match prototype 486 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:33:13: error: prototype declaration 33 | extern void cp_addcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:489:10: error: too many arguments to function 'clookup'; expected 0, have 4 489 | cc = clookup(word, &commands, false, true); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:59:21: note: declared here 59 | static struct ccom *clookup(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_remcomm': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:501:1: warning: old-style function definition [-Wold-style-definition] 501 | cp_remcomm(word) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:503:1: error: number of arguments doesn't match prototype 503 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:38:13: error: prototype declaration 38 | extern void cp_remcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:506:10: error: too many arguments to function 'clookup'; expected 0, have 4 506 | cc = clookup(word, &commands, false, false); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:59:21: note: declared here 59 | static struct ccom *clookup(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:508:9: error: too many arguments to function 'cdelete'; expected 0, have 1 508 | cdelete(cc); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:58:13: note: declared here 58 | static void cdelete(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_addkword': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:515:1: warning: old-style function definition [-Wold-style-definition] 515 | cp_addkword(class, word) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:518:1: error: number of arguments doesn't match prototype 518 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: error: prototype declaration 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:526:12: error: too many arguments to function 'copy'; expected 0, have 1 526 | word = copy(word); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:527:10: error: too many arguments to function 'clookup'; expected 0, have 4 527 | cc = clookup(word, &keywords[class], false, true); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:59:21: note: declared here 59 | static struct ccom *clookup(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_remkword': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:535:1: warning: old-style function definition [-Wold-style-definition] 535 | cp_remkword(class, word) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:537:1: error: number of arguments doesn't match prototype 537 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:39:13: error: prototype declaration 39 | extern void cp_remkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:545:10: error: too many arguments to function 'clookup'; expected 0, have 4 545 | cc = clookup(word, &keywords[class], false, false); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:59:21: note: declared here 59 | static struct ccom *clookup(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:547:9: error: too many arguments to function 'cdelete'; expected 0, have 1 547 | cdelete(cc); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:58:13: note: declared here 58 | static void cdelete(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_kwswitch': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:557:1: warning: old-style function definition [-Wold-style-definition] 557 | cp_kwswitch(class, tree) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:560:1: error: number of arguments doesn't match prototype 560 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: error: prototype declaration 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cp_ccrestart': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:577:1: warning: old-style function definition [-Wold-style-definition] 577 | cp_ccrestart(kwords) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:579:1: error: number of arguments doesn't match prototype 579 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:37:13: error: prototype declaration 37 | extern void cp_ccrestart(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'throwaway': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:585:1: warning: old-style function definition [-Wold-style-definition] 585 | throwaway(dbase) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:589:9: error: too many arguments to function 'throwaway'; expected 0, have 1 589 | throwaway(dbase->cc_child); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:585:1: note: declared here 585 | throwaway(dbase) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:591:9: error: too many arguments to function 'throwaway'; expected 0, have 1 591 | throwaway(dbase->cc_sibling); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:585:1: note: declared here 585 | throwaway(dbase) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:592:5: note: in expansion of macro 'tfree' 592 | tfree(dbase); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'clookup': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:603:1: warning: old-style function definition [-Wold-style-definition] 603 | clookup(word, dd, pref, create) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:621:27: note: in expansion of macro 'alloc' 621 | *dd = place = alloc(struct ccom); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:625:30: error: too many arguments to function 'copy'; expected 0, have 1 625 | place->cc_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:639:37: note: in expansion of macro 'alloc' 639 | place->cc_sibling = alloc(struct ccom); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:644:34: error: too many arguments to function 'tmalloc'; expected 0, have 1 644 | place->cc_name = tmalloc(ind + 2); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:655:24: note: in expansion of macro 'alloc' 655 | tmpc = alloc(struct ccom); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:668:34: error: too many arguments to function 'tmalloc'; expected 0, have 1 668 | place->cc_name = tmalloc(ind + 2); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:686:28: note: in expansion of macro 'alloc' 686 | tmpc = alloc(struct ccom); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:691:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 691 | place->cc_name = tmalloc(ind + 3); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c: In function 'cdelete': /home/pbulk/work/cad/spice/work/src/lib/cp//complete.c:716:1: warning: old-style function definition [-Wold-style-definition] 716 | cdelete(node) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'cp_parse': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:74:1: warning: old-style function definition [-Wold-style-definition] 74 | cp_parse(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:76:1: error: number of arguments doesn't match prototype 76 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:61:18: error: prototype declaration 61 | extern wordlist *cp_parse(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:79:13: error: too many arguments to function 'cp_lexer'; expected 0, have 1 79 | wlist = cp_lexer(string); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:87:5: error: too many arguments to function 'pwlist'; expected 0, have 2 87 | pwlist(wlist, "Initial parse"); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:54:13: note: declared here 54 | static void pwlist(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:89:13: error: too many arguments to function 'cp_histsubst'; expected 0, have 1 89 | wlist = cp_histsubst(wlist); | ^~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:99:18: note: declared here 99 | extern wordlist *cp_histsubst(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:92:5: error: too many arguments to function 'pwlist'; expected 0, have 2 92 | pwlist(wlist, "After history substitution"); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:54:13: note: declared here 54 | static void pwlist(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:94:9: error: too many arguments to function 'wl_print'; expected 0, have 2 94 | wl_print(wlist, stdout); | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:100:9: error: too many arguments to function 'cp_addhistent'; expected 0, have 2 100 | cp_addhistent(cp_event - 1, wlist); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:97:13: note: declared here 97 | extern void cp_addhistent(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:102:13: error: too many arguments to function 'cp_doalias'; expected 0, have 1 102 | wlist = cp_doalias(wlist); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:21:18: note: declared here 21 | extern wordlist *cp_doalias(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:103:5: error: too many arguments to function 'pwlist'; expected 0, have 2 103 | pwlist(wlist, "After alias substitution"); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:54:13: note: declared here 54 | static void pwlist(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:112:5: error: too many arguments to function 'pwlist'; expected 0, have 2 112 | pwlist(wlist, "Returning "); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:54:13: note: declared here 54 | static void pwlist(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'pwlist': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:117:1: warning: old-style function definition [-Wold-style-definition] 117 | pwlist(wlist, name) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'com_echo': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:135:1: warning: old-style function definition [-Wold-style-definition] 135 | com_echo(wlist) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:137:1: error: number of arguments doesn't match prototype 137 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:55:13: error: prototype declaration 55 | extern void com_echo(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:146:15: error: too many arguments to function 'cp_unquote'; expected 0, have 1 146 | fputs(cp_unquote(wlist->wl_word), cp_out); | ^~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'cp_redirect': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:160:1: warning: old-style function definition [-Wold-style-definition] 160 | cp_redirect(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:162:1: error: number of arguments doesn't match prototype 162 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:60:18: error: prototype declaration 60 | extern wordlist *cp_redirect(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:188:31: error: too many arguments to function 'cp_unquote'; expected 0, have 1 188 | tmpfp = fopen(cp_unquote(w->wl_word), "r"); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:206:13: error: too many arguments to function 'wl_free'; expected 0, have 1 206 | wl_free(bt); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:245:17: error: too many arguments to function 'cp_unquote'; expected 0, have 1 245 | s = cp_unquote(w->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:246:33: error: too many arguments to function 'fileexists'; expected 0, have 1 246 | if (cp_noclobber && fileexists(s)) { | ^~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:52:13: note: declared here 52 | static bool fileexists(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:272:13: error: too many arguments to function 'wl_free'; expected 0, have 1 272 | wl_free(bt); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:280:9: error: too many arguments to function 'wl_free'; expected 0, have 1 280 | error: wl_free(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'fileexists': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:317:1: warning: old-style function definition [-Wold-style-definition] 317 | fileexists(name) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'com_shell': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:332:1: warning: old-style function definition [-Wold-style-definition] 332 | com_shell(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:334:1: error: number of arguments doesn't match prototype 334 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:58:13: error: prototype declaration 58 | extern void com_shell(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:347:9: error: too many arguments to function 'cp_ccon'; expected 0, have 1 347 | cp_ccon(false); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: note: declared here 36 | extern void cp_ccon(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:359:23: error: too many arguments to function 'wl_flatten'; expected 0, have 1 359 | com = wl_flatten(wl); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'com_rehash': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:416:1: warning: old-style function definition [-Wold-style-definition] 416 | com_rehash(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:418:1: error: number of arguments doesn't match prototype 418 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:57:13: error: prototype declaration 57 | extern void com_rehash(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:427:9: error: too many arguments to function 'cp_rehash'; expected 0, have 2 427 | cp_rehash(s, true); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:147:13: note: declared here 147 | extern void cp_rehash(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'com_chdir': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:435:1: warning: old-style function definition [-Wold-style-definition] 435 | com_chdir(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:437:1: error: number of arguments doesn't match prototype 437 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:54:13: error: prototype declaration 54 | extern void com_chdir(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:440:27: error: conflicting types for 'getpwuid'; have 'struct passwd *(void)' 440 | extern struct passwd *getpwuid( ); | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:28: /usr/include/pwd.h:69:23: note: previous declaration of 'getpwuid' with type 'struct passwd *(uid_t)' {aka 'struct passwd *(unsigned int)'} 69 | extern struct passwd *getpwuid(uid_t); /* MT-unsafe */ | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:454:18: error: too many arguments to function 'getpwuid'; expected 0, have 1 454 | pw = getpwuid(getuid()); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:440:27: note: declared here 440 | extern struct passwd *getpwuid( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:463:13: error: too many arguments to function 'cp_unquote'; expected 0, have 1 463 | s = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:480:9: note: in expansion of macro 'tfree' 480 | tfree(s); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c: In function 'com_strcmp': /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:508:1: warning: old-style function definition [-Wold-style-definition] 508 | com_strcmp(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:510:1: error: number of arguments doesn't match prototype 510 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:56:13: error: prototype declaration 56 | extern void com_strcmp(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:515:10: error: too many arguments to function 'cp_unquote'; expected 0, have 1 515 | s1 = cp_unquote(wl->wl_next->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:516:10: error: too many arguments to function 'cp_unquote'; expected 0, have 1 516 | s2 = cp_unquote(wl->wl_next->wl_next->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//cshpar.c:520:5: error: too many arguments to function 'cp_vset'; expected 0, have 3 520 | cp_vset(var, VT_NUM, (char *) &i); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//front.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'cp_evloop': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:98:1: warning: old-style function definition [-Wold-style-definition] 98 | cp_evloop(string) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:100:1: error: number of arguments doesn't match prototype 100 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: error: prototype declaration 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:113:17: error: too many arguments to function 'getcommand'; expected 0, have 1 113 | wlist = getcommand(string); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:19:18: note: declared here 19 | static wordlist *getcommand(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:145:37: note: in expansion of macro 'alloc' 145 | cend[stackp]->co_next = alloc(struct control); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:152:46: note: in expansion of macro 'alloc' 152 | control[stackp] = cend[stackp] = alloc(struct control); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:106:49: note: in expansion of macro 'alloc' 106 | #define newblock cend[stackp]->co_children = alloc(struct control); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:163:13: note: in expansion of macro 'newblock' 163 | newblock; | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:106:49: note: in expansion of macro 'alloc' 106 | #define newblock cend[stackp]->co_children = alloc(struct control); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:171:13: note: in expansion of macro 'newblock' 171 | newblock; | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:180:35: error: too many arguments to function 'wl_copy'; expected 0, have 1 180 | cp_doglob(wl_copy(wlist)))); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:180:25: error: too many arguments to function 'cp_doglob'; expected 0, have 1 180 | cp_doglob(wl_copy(wlist)))); | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: note: declared here 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:179:42: error: too many arguments to function 'cp_bquote'; expected 0, have 1 179 | wlist = cp_variablesubst(cp_bquote( | ^~~~~~~~~ 180 | cp_doglob(wl_copy(wlist)))); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:26:18: note: declared here 26 | extern wordlist *cp_bquote(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:179:25: error: too many arguments to function 'cp_variablesubst'; expected 0, have 1 179 | wlist = cp_variablesubst(cp_bquote( | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~ 180 | cp_doglob(wl_copy(wlist)))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:163:18: note: declared here 163 | extern wordlist *cp_variablesubst(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:183:22: error: too many arguments to function 'ft_numparse'; expected 0, have 2 183 | dd = ft_numparse(&s, false); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:178:16: note: declared here 178 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:106:49: note: in expansion of macro 'alloc' 106 | #define newblock cend[stackp]->co_children = alloc(struct control); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:196:13: note: in expansion of macro 'newblock' 196 | newblock; | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:106:49: note: in expansion of macro 'alloc' 106 | #define newblock cend[stackp]->co_children = alloc(struct control); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:204:13: note: in expansion of macro 'newblock' 204 | newblock; | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:210:25: error: too many arguments to function 'copy'; expected 0, have 1 210 | copy(wlist->wl_word); | ^~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:215:21: error: too many arguments to function 'cp_doglob'; expected 0, have 1 215 | wlist = cp_doglob(wlist); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: note: declared here 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:216:37: error: too many arguments to function 'wl_copy'; expected 0, have 1 216 | cend[stackp]->co_text = wl_copy(wlist); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:106:49: note: in expansion of macro 'alloc' 106 | #define newblock cend[stackp]->co_children = alloc(struct control); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:217:13: note: in expansion of macro 'newblock' 217 | newblock; | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:221:41: error: too many arguments to function 'wl_copy'; expected 0, have 1 221 | cend[stackp]->co_text = wl_copy(wlist->wl_next); | ^~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:223:17: error: too many arguments to function 'cp_addkword'; expected 0, have 2 223 | cp_addkword(CT_LABEL, wlist->wl_next->wl_word); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:236:41: error: too many arguments to function 'wl_copy'; expected 0, have 1 236 | cend[stackp]->co_text = wl_copy(wlist->wl_next); | ^~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:245:45: error: too many arguments to function 'scannum'; expected 0, have 1 245 | cend[stackp]->co_numtimes = scannum(wlist-> | ^~~~~~~ ~~~~~~~ 246 | wl_next->wl_word); | ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:256:45: error: too many arguments to function 'scannum'; expected 0, have 1 256 | cend[stackp]->co_numtimes = scannum(wlist-> | ^~~~~~~ ~~~~~~~ 257 | wl_next->wl_word); | ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:273:17: note: in expansion of macro 'tfree' 273 | tfree(x); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:278:17: note: in expansion of macro 'tfree' 278 | tfree(x); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:306:21: error: too many arguments to function 'doblock'; expected 0, have 2 306 | i = doblock(x, &nn); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:15:14: note: declared here 15 | static char *doblock(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:319:29: error: too many arguments to function 'findlabel'; expected 0, have 2 319 | x = findlabel(i, | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:18:24: note: declared here 18 | static struct control *findlabel(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'doblock': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:350:1: warning: old-style function definition [-Wold-style-definition] 350 | doblock(bl, num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:362:31: error: too many arguments to function 'cp_istrue'; expected 0, have 1 362 | while (bl->co_cond && cp_istrue(bl->co_cond)) { | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:172:13: note: declared here 172 | extern bool cp_istrue(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:365:21: error: too many arguments to function 'doblock'; expected 0, have 2 365 | i = doblock(ch, &nn); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:350:1: note: declared here 350 | doblock(bl, num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:389:26: error: too many arguments to function 'findlabel'; expected 0, have 2 389 | cn = findlabel(i, bl->co_children); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:18:24: note: declared here 18 | static struct control *findlabel(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:401:21: error: too many arguments to function 'doblock'; expected 0, have 2 401 | i = doblock(ch, &nn); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:350:1: note: declared here 350 | doblock(bl, num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:425:26: error: too many arguments to function 'findlabel'; expected 0, have 2 425 | cn = findlabel(i, bl->co_children); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:18:24: note: declared here 18 | static struct control *findlabel(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:430:33: error: too many arguments to function 'cp_istrue'; expected 0, have 1 430 | } while (bl->co_cond && cp_istrue(bl->co_cond)); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:172:13: note: declared here 172 | extern bool cp_istrue(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:440:21: error: too many arguments to function 'doblock'; expected 0, have 2 440 | i = doblock(ch, &nn); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:350:1: note: declared here 350 | doblock(bl, num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:464:26: error: too many arguments to function 'findlabel'; expected 0, have 2 464 | cn = findlabel(i, bl->co_children); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:18:24: note: declared here 18 | static struct control *findlabel(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:473:28: error: too many arguments to function 'cp_istrue'; expected 0, have 1 473 | if (bl->co_cond && cp_istrue(bl->co_cond)) { | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:172:13: note: declared here 172 | extern bool cp_istrue(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:476:21: error: too many arguments to function 'doblock'; expected 0, have 2 476 | i = doblock(ch, &nn); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:350:1: note: declared here 350 | doblock(bl, num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:478:26: error: too many arguments to function 'findlabel'; expected 0, have 2 478 | cn = findlabel(i, | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:18:24: note: declared here 18 | static struct control *findlabel(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:490:21: error: too many arguments to function 'doblock'; expected 0, have 2 490 | i = doblock(ch, &nn); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:350:1: note: declared here 350 | doblock(bl, num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:492:26: error: too many arguments to function 'findlabel'; expected 0, have 2 492 | cn = findlabel(i, | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:18:24: note: declared here 18 | static struct control *findlabel(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:505:56: error: too many arguments to function 'wl_copy'; expected 0, have 1 505 | for (wl = cp_variablesubst(cp_bquote(cp_doglob(wl_copy(bl-> | ^~~~~~~ ~~~~ 506 | co_text)))); wl; wl = wl->wl_next) { | ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:505:46: error: too many arguments to function 'cp_doglob'; expected 0, have 1 505 | for (wl = cp_variablesubst(cp_bquote(cp_doglob(wl_copy(bl-> | ^~~~~~~~~ ~~~~~~~~~~~~ 506 | co_text)))); wl; wl = wl->wl_next) { | ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: note: declared here 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:505:36: error: too many arguments to function 'cp_bquote'; expected 0, have 1 505 | for (wl = cp_variablesubst(cp_bquote(cp_doglob(wl_copy(bl-> | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ 506 | co_text)))); wl; wl = wl->wl_next) { | ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:26:18: note: declared here 26 | extern wordlist *cp_bquote(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:505:19: error: too many arguments to function 'cp_variablesubst'; expected 0, have 1 505 | for (wl = cp_variablesubst(cp_bquote(cp_doglob(wl_copy(bl-> | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | co_text)))); wl; wl = wl->wl_next) { | ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:163:18: note: declared here 163 | extern wordlist *cp_variablesubst(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:507:13: error: too many arguments to function 'cp_vset'; expected 0, have 3 507 | cp_vset(bl->co_foreachvar, VT_STRING, | ^~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:511:21: error: too many arguments to function 'doblock'; expected 0, have 2 511 | i = doblock(ch, &nn); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:350:1: note: declared here 350 | doblock(bl, num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:535:26: error: too many arguments to function 'findlabel'; expected 0, have 2 535 | cn = findlabel(i, bl->co_children); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:18:24: note: declared here 18 | static struct control *findlabel(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:565:17: error: too many arguments to function 'wl_copy'; expected 0, have 1 565 | wl_copy(bl->co_text)))); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:564:41: error: too many arguments to function 'cp_doglob'; expected 0, have 1 564 | wl = cp_variablesubst(cp_bquote(cp_doglob( | ^~~~~~~~~ 565 | wl_copy(bl->co_text)))); | ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: note: declared here 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:564:31: error: too many arguments to function 'cp_bquote'; expected 0, have 1 564 | wl = cp_variablesubst(cp_bquote(cp_doglob( | ^~~~~~~~~ ~~~~~~~~~~ 565 | wl_copy(bl->co_text)))); | ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:26:18: note: declared here 26 | extern wordlist *cp_bquote(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:564:14: error: too many arguments to function 'cp_variablesubst'; expected 0, have 1 564 | wl = cp_variablesubst(cp_bquote(cp_doglob( | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ 565 | wl_copy(bl->co_text)))); | ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:163:18: note: declared here 163 | extern wordlist *cp_variablesubst(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:573:19: error: too many arguments to function 'wl_copy'; expected 0, have 1 573 | docommand(wl_copy(bl->co_text)); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:573:9: error: too many arguments to function 'docommand'; expected 0, have 1 573 | docommand(wl_copy(bl->co_text)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:16:13: note: declared here 16 | static void docommand(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'findlabel': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:591:1: warning: old-style function definition [-Wold-style-definition] 591 | findlabel(s, ct) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'cp_resetcontrol': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:613:12: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 613 | (void) cp_kwswitch(CT_LABEL, (char *) NULL); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'docommand': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:664:1: warning: old-style function definition [-Wold-style-definition] 664 | docommand(wlist) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:676:9: error: too many arguments to function 'wl_print'; expected 0, have 2 676 | wl_print(wlist, stdout); | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:683:13: error: too many arguments to function 'cp_variablesubst'; expected 0, have 1 683 | wlist = cp_variablesubst(wlist); | ^~~~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:163:18: note: declared here 163 | extern wordlist *cp_variablesubst(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:684:5: error: too many arguments to function 'pwlist'; expected 0, have 2 684 | pwlist(wlist, "After variable substitution"); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:20:13: note: declared here 20 | static void pwlist(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:686:13: error: too many arguments to function 'cp_bquote'; expected 0, have 1 686 | wlist = cp_bquote(wlist); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:26:18: note: declared here 26 | extern wordlist *cp_bquote(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:687:5: error: too many arguments to function 'pwlist'; expected 0, have 2 687 | pwlist(wlist, "After backquote substitution"); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:20:13: note: declared here 20 | static void pwlist(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:689:13: error: too many arguments to function 'cp_doglob'; expected 0, have 1 689 | wlist = cp_doglob(wlist); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: note: declared here 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:690:5: error: too many arguments to function 'pwlist'; expected 0, have 2 690 | pwlist(wlist, "After globbing"); | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:20:13: note: declared here 20 | static void pwlist(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:720:27: error: too many arguments to function 'cp_redirect'; expected 0, have 1 720 | if (!(wlist = cp_redirect(wlist))) { | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:60:18: note: declared here 60 | extern wordlist *cp_redirect(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:727:9: error: too many arguments to function 'cp_striplist'; expected 0, have 1 727 | cp_striplist(wlist); | ^~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:134:13: note: declared here 134 | extern void cp_striplist(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:743:36: error: too many arguments to function 'cp_oddcomm'; expected 0, have 2 743 | if (!cp_coms[i].co_func && cp_oddcomm(s, wlist->wl_next)) | ^~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:173:13: note: declared here 173 | extern bool cp_oddcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:748:33: error: too many arguments to function 'cp_unixcom'; expected 0, have 1 748 | if (cp_dounixcom && cp_unixcom(wlist)) | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:145:13: note: declared here 145 | extern bool cp_unixcom(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:768:20: error: too many arguments to function 'wl_flatten'; expected 0, have 1 768 | lcom = wl_flatten(wlist->wl_next); | ^~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:769:14: error: too many arguments to function 'command->co_func'; expected 0, have 1 769 | (*command->co_func) (lcom); | ~^~~~~~~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:22:12: note: declared here 22 | void (*co_func) (); /* The function that handles the command. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:773:18: error: too many arguments to function 'command->co_argfn'; expected 0, have 2 773 | (*command->co_argfn) (wlist->wl_next, command); | ~^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:30:11: note: declared here 30 | int (*co_argfn) (); /* The fn that prompts the user. */ | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:780:18: error: too many arguments to function 'command->co_func'; expected 0, have 1 780 | (*command->co_func) (wlist->wl_next); | ~^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:22:12: note: declared here 22 | void (*co_func) (); /* The function that handles the command. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:792:5: error: too many arguments to function 'wl_free'; expected 0, have 1 792 | wl_free(rwlist); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'getcommand': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:806:1: warning: old-style function definition [-Wold-style-definition] 806 | getcommand(string) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:832:13: error: too many arguments to function 'cp_parse'; expected 0, have 1 832 | wlist = cp_parse(string); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:61:18: note: declared here 61 | extern wordlist *cp_parse(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:836:9: error: too many arguments to function 'wl_print'; expected 0, have 2 836 | wl_print(wlist, stdout); | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'pwlist': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:845:1: warning: old-style function definition [-Wold-style-definition] 845 | pwlist(wlist, name) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'com_cdump': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:864:1: warning: old-style function definition [-Wold-style-definition] 864 | com_cdump(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:866:1: error: number of arguments doesn't match prototype 866 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:69:13: error: prototype declaration 69 | extern void com_cdump(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:871:9: error: too many arguments to function 'dodump'; expected 0, have 1 871 | dodump(c); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:17:13: note: declared here 17 | static void dodump(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c: In function 'dodump': /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:878:1: warning: old-style function definition [-Wold-style-definition] 878 | dodump(cc) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:891:13: error: too many arguments to function 'wl_print'; expected 0, have 2 891 | wl_print(cc->co_text, cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:897:13: error: too many arguments to function 'wl_print'; expected 0, have 2 897 | wl_print(cc->co_cond, cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:901:17: error: too many arguments to function 'dodump'; expected 0, have 1 901 | dodump(tc); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:878:1: note: declared here 878 | dodump(cc) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:915:17: error: too many arguments to function 'dodump'; expected 0, have 1 915 | dodump(tc); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:878:1: note: declared here 878 | dodump(cc) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:923:13: error: too many arguments to function 'wl_print'; expected 0, have 2 923 | wl_print(cc->co_cond, cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:927:17: error: too many arguments to function 'dodump'; expected 0, have 1 927 | dodump(tc); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:878:1: note: declared here 878 | dodump(cc) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:935:13: error: too many arguments to function 'wl_print'; expected 0, have 2 935 | wl_print(cc->co_cond, cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:939:17: error: too many arguments to function 'dodump'; expected 0, have 1 939 | dodump(tc); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:878:1: note: declared here 878 | dodump(cc) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:947:13: error: too many arguments to function 'wl_print'; expected 0, have 2 947 | wl_print(cc->co_text, cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:951:17: error: too many arguments to function 'dodump'; expected 0, have 1 951 | dodump(tc); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//front.c:878:1: note: declared here 878 | dodump(cc) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'cp_doglob': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:57:1: warning: old-style function definition [-Wold-style-definition] 57 | cp_doglob(wlist) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:59:1: error: number of arguments doesn't match prototype 59 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: error: prototype declaration 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:66:13: error: too many arguments to function 'bracexpand'; expected 0, have 1 66 | w = bracexpand(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:37:18: note: declared here 37 | static wordlist *bracexpand(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:71:15: error: too many arguments to function 'wl_splice'; expected 0, have 2 71 | nwl = wl_splice(wl, w); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:72:18: note: declared here 72 | extern wordlist *wl_splice(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:81:17: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 81 | s = cp_tildexpand(wl->wl_word); | ^~~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: note: declared here 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:97:13: error: too many arguments to function 'noglobs'; expected 0, have 1 97 | if (noglobs(wl->wl_word)) | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:39:13: note: declared here 39 | static bool noglobs(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:99:13: error: too many arguments to function 'globexpand'; expected 0, have 1 99 | w = globexpand(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:38:18: note: declared here 38 | static wordlist *globexpand(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:102:15: error: too many arguments to function 'wl_splice'; expected 0, have 2 102 | nwl = wl_splice(wl, w); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:72:18: note: declared here 72 | extern wordlist *wl_splice(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'bracexpand': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:111:1: warning: old-style function definition [-Wold-style-definition] 111 | bracexpand(string) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:119:10: error: too many arguments to function 'brac1'; expected 0, have 1 119 | wl = brac1(string); | ^~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:35:18: note: declared here 35 | static wordlist *brac1(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:124:22: error: too many arguments to function 'copy'; expected 0, have 1 124 | w->wl_word = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:125:9: note: in expansion of macro 'tfree' 125 | tfree(s); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'brac1': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:136:1: warning: old-style function definition [-Wold-style-definition] 136 | brac1(string) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:143:13: note: in expansion of macro 'alloc' 143 | words = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:144:22: error: too many arguments to function 'tmalloc'; expected 0, have 1 144 | words->wl_word = tmalloc(BSIZE_SP); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:150:19: error: too many arguments to function 'brac2'; expected 0, have 1 150 | nwl = brac2(s); | ^~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:36:18: note: declared here 36 | static wordlist *brac2(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:169:26: note: in expansion of macro 'alloc' 169 | nw = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:172:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 172 | nw->wl_word = tmalloc(BSIZE_SP); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:175:29: error: too many arguments to function 'wl_append'; expected 0, have 2 175 | newwl = wl_append(newwl, nw); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:66:18: note: declared here 66 | extern wordlist *wl_append(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:177:13: error: too many arguments to function 'wl_free'; expected 0, have 1 177 | wl_free(words); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:181:17: error: too many arguments to function 'appendc'; expected 0, have 2 181 | appendc(wl->wl_word, *s); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:45:13: note: declared here 45 | extern void appendc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'brac2': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:191:1: warning: old-style function definition [-Wold-style-definition] 191 | brac2(string) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:222:15: error: too many arguments to function 'brac1'; expected 0, have 1 222 | nwl = brac1(buf); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:136:1: note: declared here 136 | brac1(string) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:223:17: error: too many arguments to function 'wl_append'; expected 0, have 2 223 | wlist = wl_append(wlist, nwl); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:66:18: note: declared here 66 | extern wordlist *wl_append(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'globexpand': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:237:1: warning: old-style function definition [-Wold-style-definition] 237 | globexpand(string) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:253:14: error: too many arguments to function 'pcanon'; expected 0, have 1 253 | string = pcanon(string); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:40:14: note: declared here 40 | static char *pcanon(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:257:19: error: too many arguments to function 'copy'; expected 0, have 1 257 | poss[0] = copy(DIR_PATHSEP); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:259:19: error: too many arguments to function 'copy'; expected 0, have 1 259 | poss[0] = copy(DIR_CWD); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:273:22: note: in expansion of macro 'alloc' 273 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:274:31: error: too many arguments to function 'copy'; expected 0, have 1 274 | wl->wl_word = copy(string); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:284:17: error: too many arguments to function 'cp_globmatch'; expected 0, have 2 284 | if (cp_globmatch(buf, de->d_name)) { | ^~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:77:13: note: declared here 77 | extern bool cp_globmatch(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:294:27: error: too many arguments to function 'tmalloc'; expected 0, have 1 294 | poss[j] = tmalloc(BSIZE_SP); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:299:9: note: in expansion of macro 'tfree' 299 | tfree(poss[i]); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:304:22: note: in expansion of macro 'alloc' 304 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:305:31: error: too many arguments to function 'copy'; expected 0, have 1 305 | wl->wl_word = copy(string); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:350:14: note: in expansion of macro 'alloc' 350 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:353:28: error: too many arguments to function 'pcanon'; expected 0, have 1 353 | wl->wl_word = copy(pcanon(poss[i])); | ^~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:40:14: note: declared here 40 | static char *pcanon(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:353:23: error: too many arguments to function 'copy'; expected 0, have 1 353 | wl->wl_word = copy(pcanon(poss[i])); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:354:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 354 | if (((int) poss[i]) % 2) | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:356:9: note: in expansion of macro 'tfree' 356 | tfree(poss[i]); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:369:13: note: in expansion of macro 'tfree' 369 | tfree(poss[i]); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'pcanon': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:384:1: warning: old-style function definition [-Wold-style-definition] 384 | pcanon(string) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:389:13: error: too many arguments to function 'tmalloc'; expected 0, have 1 389 | s = p = tmalloc(strlen(string) + 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'sortcmp': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:414:1: warning: old-style function definition [-Wold-style-definition] 414 | sortcmp(s1, s2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'cp_tildexpand': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:436:1: warning: old-style function definition [-Wold-style-definition] 436 | cp_tildexpand(string) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:438:1: error: number of arguments doesn't match prototype 438 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: error: prototype declaration 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:441:14: error: too many arguments to function 'tilde_expand'; expected 0, have 1 441 | result = tilde_expand(string); | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:52:14: note: declared here 52 | extern char *tilde_expand( ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:445:20: error: too many arguments to function 'copy'; expected 0, have 1 445 | return copy(string); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'cp_globmatch': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:457:1: warning: old-style function definition [-Wold-style-definition] 457 | cp_globmatch(p, s) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:459:1: error: number of arguments doesn't match prototype 459 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:77:13: error: prototype declaration 77 | extern bool cp_globmatch(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:473:21: error: too many arguments to function 'cp_globmatch'; expected 0, have 2 473 | if (cp_globmatch(p, s)) | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:457:1: note: declared here 457 | cp_globmatch(p, s) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c: In function 'noglobs': /home/pbulk/work/cad/spice/work/src/lib/cp//glob.c:524:1: warning: old-style function definition [-Wold-style-definition] 524 | noglobs(string) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//history.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'cp_histsubst': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:49:1: warning: old-style function definition [-Wold-style-definition] 49 | cp_histsubst(wlist) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:51:1: error: number of arguments doesn't match prototype 51 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:99:18: error: prototype declaration 99 | extern wordlist *cp_histsubst(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:61:9: note: in expansion of macro 'tfree' 61 | tfree(wlist->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:62:26: error: too many arguments to function 'copy'; expected 0, have 1 62 | wlist->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:69:21: error: too many arguments to function 'dohsubst'; expected 0, have 1 69 | n = dohsubst(s + 1); | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:25:18: note: declared here 25 | static wordlist *dohsubst(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:77:21: note: in expansion of macro 'tfree' 77 | tfree(n->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:78:34: error: too many arguments to function 'copy'; expected 0, have 1 78 | n->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:80:23: error: too many arguments to function 'wl_splice'; expected 0, have 2 80 | nwl = wl_splice(w, n); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:72:18: note: declared here 72 | extern wordlist *wl_splice(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'dohsubst': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:96:1: warning: old-style function definition [-Wold-style-definition] 96 | dohsubst(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:114:38: error: too many arguments to function 'scannum'; expected 0, have 1 114 | wl = getevent(cp_event - scannum(++string)); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:114:18: error: too many arguments to function 'getevent'; expected 0, have 1 114 | wl = getevent(cp_event - scannum(++string)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:26:18: note: declared here 26 | static wordlist *getevent(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:125:18: error: too many arguments to function 'hpattern'; expected 0, have 1 125 | wl = hpattern(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:27:18: note: declared here 27 | static wordlist *hpattern(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:129:25: error: too many arguments to function 'wl_copy'; expected 0, have 1 129 | return (wl_copy(wl)); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:133:18: note: in expansion of macro 'alloc' 133 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:134:27: error: too many arguments to function 'copy'; expected 0, have 1 134 | wl->wl_word = copy("!"); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:142:31: error: too many arguments to function 'scannum'; expected 0, have 1 142 | wl = getevent(scannum(string)); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:142:22: error: too many arguments to function 'getevent'; expected 0, have 1 142 | wl = getevent(scannum(string)); | ^~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:26:18: note: declared here 26 | static wordlist *getevent(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:164:26: error: too many arguments to function 'hprefix'; expected 0, have 1 164 | wl = hprefix(buf); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:28:18: note: declared here 28 | static wordlist *hprefix(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:174:27: error: too many arguments to function 'wl_copy'; expected 0, have 1 174 | nwl = dohmod(&string, wl_copy(wl)); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:174:11: error: too many arguments to function 'dohmod'; expected 0, have 2 174 | nwl = dohmod(&string, wl_copy(wl)); | ^~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:24:18: note: declared here 24 | static wordlist *dohmod(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:181:9: note: in expansion of macro 'tfree' 181 | tfree(wl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:182:23: error: too many arguments to function 'copy'; expected 0, have 1 182 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'dohmod': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:188:1: warning: old-style function definition [-Wold-style-definition] 188 | dohmod(string, wl) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:199:16: error: too many arguments to function 'wl_length'; expected 0, have 1 199 | numwords = wl_length(wl); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:62:12: note: declared here 62 | extern int wl_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:231:27: error: too many arguments to function 'scannum'; expected 0, have 1 231 | eventhi = scannum(*string + 1); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:240:13: error: too many arguments to function 'wl_print'; expected 0, have 2 240 | wl_print(wl, cp_out); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:245:21: error: too many arguments to function 'dohs'; expected 0, have 2 245 | s = dohs(*string + 1, w->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:22:14: note: declared here 22 | static char *dohs(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:247:21: note: in expansion of macro 'tfree' 247 | tfree(w->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:266:17: error: too many arguments to function 'scannum'; expected 0, have 1 266 | i = scannum(*string); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:281:31: error: too many arguments to function 'scannum'; expected 0, have 1 281 | eventhi = scannum(++*string); | ^~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:290:10: error: too many arguments to function 'wl_range'; expected 0, have 3 290 | wl = wl_range(wl, eventlo, eventhi); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:69:18: note: declared here 69 | extern wordlist *wl_range(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:291:16: error: too many arguments to function 'wl_length'; expected 0, have 1 291 | numwords = wl_length(wl); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:62:12: note: declared here 62 | extern int wl_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'hpattern': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:300:1: warning: old-style function definition [-Wold-style-definition] 300 | hpattern(buf) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:312:17: error: too many arguments to function 'substring'; expected 0, have 2 312 | if (substring(buf, wl->wl_word)) | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'hprefix': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:319:1: warning: old-style function definition [-Wold-style-definition] 319 | hprefix(buf) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:329:29: error: too many arguments to function 'prefix'; expected 0, have 2 329 | if (hi->hi_wlist && prefix(buf, hi->hi_wlist->wl_word)) | ^~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'cp_addhistent': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:341:1: warning: old-style function definition [-Wold-style-definition] 341 | cp_addhistent(event, wlist) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:343:1: error: number of arguments doesn't match prototype 343 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:97:13: error: prototype declaration 97 | extern void cp_addhistent(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:347:33: note: in expansion of macro 'alloc' 347 | cp_lastone = histlist = alloc(struct histent); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:350:31: note: in expansion of macro 'alloc' 350 | cp_lastone->hi_next = alloc(struct histent); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:356:28: error: too many arguments to function 'wl_copy'; expected 0, have 1 356 | cp_lastone->hi_wlist = wl_copy(wlist); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:358:5: error: too many arguments to function 'freehist'; expected 0, have 1 358 | freehist(histlength - cp_maxhistlength); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:23:13: note: declared here 23 | static void freehist(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'getevent': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:369:1: warning: old-style function definition [-Wold-style-definition] 369 | getevent(num) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:380:13: error: too many arguments to function 'wl_copy'; expected 0, have 1 380 | return (wl_copy(hi->hi_wlist)); | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'cp_hprint': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:388:1: warning: old-style function definition [-Wold-style-definition] 388 | cp_hprint(eventhi, eventlo, rev) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:390:1: error: number of arguments doesn't match prototype 390 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:98:13: error: prototype declaration 98 | extern void cp_hprint(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:401:17: error: too many arguments to function 'wl_print'; expected 0, have 2 401 | wl_print(hi->hi_wlist, cp_out); | ^~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:410:17: error: too many arguments to function 'wl_print'; expected 0, have 2 410 | wl_print(hi->hi_wlist, cp_out); | ^~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'freehist': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:422:1: warning: old-style function definition [-Wold-style-definition] 422 | freehist(num) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:438:9: error: too many arguments to function 'wl_free'; expected 0, have 1 438 | wl_free(hi->hi_wlist); | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:440:9: note: in expansion of macro 'tfree' 440 | tfree(hi->hi_prev); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:442:5: error: too many arguments to function 'wl_free'; expected 0, have 1 442 | wl_free(hi->hi_wlist); | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:443:5: note: in expansion of macro 'tfree' 443 | tfree(hi); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'dohs': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:450:1: warning: old-style function definition [-Wold-style-definition] 450 | dohs(pat, str) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:457:11: error: too many arguments to function 'copy'; expected 0, have 1 457 | pat = copy(pat); /* Don't want to mangle anything. */ | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:470:31: error: too many arguments to function 'prefix'; expected 0, have 2 470 | if ((*str == *pat) && prefix(pat, str) && (ok == false)) { | ^~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:480:17: error: too many arguments to function 'copy'; expected 0, have 1 480 | return (copy(buf)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c: In function 'com_history': /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:488:1: warning: old-style function definition [-Wold-style-definition] 488 | com_history(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:490:1: error: number of arguments doesn't match prototype 490 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:96:13: error: prototype declaration 96 | extern void com_history(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:523:9: error: too many arguments to function 'cp_hprint'; expected 0, have 3 523 | cp_hprint(cp_event - 1, cp_event - histlength, rev); | ^~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:388:1: note: declared here 388 | cp_hprint(eventhi, eventlo, rev) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:525:9: error: too many arguments to function 'cp_hprint'; expected 0, have 3 525 | cp_hprint(cp_event - 1, cp_event - 1 - atoi(wl->wl_word), rev); | ^~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//history.c:388:1: note: declared here 388 | cp_hprint(eventhi, eventlo, rev) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//input.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/include/fteinput.h:25, from /home/pbulk/work/cad/spice/work/src/lib/cp//input.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/fteinput.h:24: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//input.c: In function 'Input': /home/pbulk/work/cad/spice/work/src/lib/cp//input.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | Input(request, response) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//input.c:24:30: error: too many arguments to function 'inchar'; expected 0, have 1 24 | response->reply.ch = inchar(request->fp); | ^~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//input.c:14:12: note: declared here 14 | extern int inchar(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c: In function 'cp_lexer': /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:73:1: warning: old-style function definition [-Wold-style-definition] 73 | cp_lexer(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:75:1: error: number of arguments doesn't match prototype 75 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: error: prototype declaration 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:86:9: error: too many arguments to function 'cp_ccon'; expected 0, have 1 86 | cp_ccon(true); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: note: declared here 36 | extern void cp_ccon(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:94:18: note: in expansion of macro 'alloc' 94 | wlist = cw = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:104:17: error: too many arguments to function 'input'; expected 0, have 1 104 | c = input(cp_inp_cur); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:49:12: note: declared here 49 | static int input(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:125:44: error: too many arguments to function 'input'; expected 0, have 1 125 | c = quote(string ? *string++ : input(cp_inp_cur)); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:106:23: note: in definition of macro 'quote' 106 | #define quote(c) ((c) | 0200) | ^ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:49:12: note: declared here 49 | static int input(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:135:26: error: too many arguments to function 'input'; expected 0, have 1 135 | while (((c = input(cp_inp_cur)) != '\n') && | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:49:12: note: declared here 49 | static int input(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:64:31: error: too many arguments to function 'copy'; expected 0, have 1 64 | #define newword cw->wl_word = copy(buf); \ | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:149:17: note: in expansion of macro 'newword' 149 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:65:23: note: in expansion of macro 'alloc' 65 | cw->wl_next = alloc(struct wordlist); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:149:17: note: in expansion of macro 'newword' 149 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:156:31: error: too many arguments to function 'copy'; expected 0, have 1 156 | cw->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:159:17: note: in expansion of macro 'tfree' 159 | tfree(cw); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:167:21: error: too many arguments to function 'input'; expected 0, have 1 167 | input(cp_inp_cur))) != '\'') | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:49:12: note: declared here 49 | static int input(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:183:48: error: too many arguments to function 'input'; expected 0, have 1 183 | while (((c = (string ? *string++ : input(cp_inp_cur))) | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:49:12: note: declared here 49 | static int input(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:190:29: error: too many arguments to function 'input'; expected 0, have 1 190 | input(cp_inp_cur)); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:49:12: note: declared here 49 | static int input(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:218:17: error: too many arguments to function 'cp_ccom'; expected 0, have 3 218 | cp_ccom(wlist, buf, false); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:35:13: note: declared here 35 | extern void cp_ccom(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:219:17: error: too many arguments to function 'wl_free'; expected 0, have 1 219 | wl_free(wlist); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:248:17: error: too many arguments to function 'cp_ccom'; expected 0, have 3 248 | cp_ccom(wlist, buf, true); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:35:13: note: declared here 35 | extern void cp_ccom(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:249:17: error: too many arguments to function 'wl_free'; expected 0, have 1 249 | wl_free(wlist); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:64:31: error: too many arguments to function 'copy'; expected 0, have 1 64 | #define newword cw->wl_word = copy(buf); \ | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:254:17: note: in expansion of macro 'newword' 254 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:65:23: note: in expansion of macro 'alloc' 65 | cw->wl_next = alloc(struct wordlist); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:254:17: note: in expansion of macro 'newword' 254 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:64:31: error: too many arguments to function 'copy'; expected 0, have 1 64 | #define newword cw->wl_word = copy(buf); \ | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:263:21: note: in expansion of macro 'newword' 263 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:65:23: note: in expansion of macro 'alloc' 65 | cw->wl_next = alloc(struct wordlist); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:263:21: note: in expansion of macro 'newword' 263 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:64:31: error: too many arguments to function 'copy'; expected 0, have 1 64 | #define newword cw->wl_word = copy(buf); \ | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:270:21: note: in expansion of macro 'newword' 270 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:65:23: note: in expansion of macro 'alloc' 65 | cw->wl_next = alloc(struct wordlist); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:270:21: note: in expansion of macro 'newword' 270 | newword; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c: In function 'inchar': /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:324:1: warning: old-style function definition [-Wold-style-definition] 324 | inchar(fp) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:326:1: error: number of arguments doesn't match prototype 326 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:111:12: error: prototype declaration 111 | extern int inchar(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c: In function 'input': /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:349:12: warning: old-style function definition [-Wold-style-definition] 349 | static int input(fp) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:358:5: error: too many arguments to function 'Input'; expected 0, have 2 358 | Input(&request, &response); | ^~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//lexical.c:50:13: note: declared here 50 | extern void Input(); | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//modify.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//modify.c:10: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//modify.c: In function 'cp_init': /home/pbulk/work/cad/spice/work/src/lib/cp//modify.c:22:15: error: conflicting types for 'getenv'; have 'char *(void)' 22 | char *s, *getenv(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from /home/pbulk/work/cad/spice/work/src/include/misc.h:8: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//modify.c:27:5: error: too many arguments to function 'cp_vset'; expected 0, have 3 27 | cp_vset("history", VT_NUM, (char *) &cp_maxhistlength); | ^~~~~~~ ~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//output.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c: In function 'out_init': /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:55:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 55 | if (cp_getvar("nomoremode", VT_BOOL, (char *) &moremode)) | ^~~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:80:16: error: too many arguments to function 'cp_getvar'; expected 0, have 3 80 | (void) cp_getvar("width", VT_NUM, (char *) &xsize); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:82:16: error: too many arguments to function 'cp_getvar'; expected 0, have 3 82 | (void) cp_getvar("height", VT_NUM, (char *) &ysize); | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c: In function 'fbufputc': /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:120:1: warning: old-style function definition [-Wold-style-definition] 120 | fbufputc(c) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c: In function 'out_send': /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:175:1: warning: old-style function definition [-Wold-style-definition] 175 | out_send(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:177:1: error: number of arguments doesn't match prototype 177 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: error: prototype declaration 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c: In function 'out_printf': /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:226:1: warning: old-style function definition [-Wold-style-definition] 226 | out_printf(fmt, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:228:1: error: number of arguments doesn't match prototype 228 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: error: prototype declaration 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:233:5: error: too many arguments to function 'out_send'; expected 0, have 1 233 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:175:1: note: declared here 175 | out_send(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c: In function 'outfn': /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:268:1: warning: old-style function definition [-Wold-style-definition] 268 | outfn(c) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c: In function 'tcap_init': /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:292:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 292 | clear_chars = (char *) tgetstr("cl", &charbuf); | ^ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:293:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 293 | motion_chars = (char *) tgetstr("cm", &charbuf); | ^ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:294:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 294 | home_chars = (char *) tgetstr("ho", &charbuf); | ^ /home/pbulk/work/cad/spice/work/src/lib/cp//output.c:295:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 295 | cleol_chars = (char *) tgetstr("ce", &charbuf); | ^ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:14: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c: In function 'cp_wstrip': /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | cp_wstrip(str) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:22:1: error: number of arguments doesn't match prototype 22 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:135:13: error: prototype declaration 135 | extern void cp_wstrip(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c: In function 'cp_quoteword': /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:38:1: warning: old-style function definition [-Wold-style-definition] 38 | cp_quoteword(str) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:40:1: error: number of arguments doesn't match prototype 40 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:133:13: error: prototype declaration 133 | extern void cp_quoteword(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c: In function 'cp_printword': /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:52:1: warning: old-style function definition [-Wold-style-definition] 52 | cp_printword(string, fp) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:55:1: error: number of arguments doesn't match prototype 55 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:56:13: error: prototype declaration 56 | extern void cp_printword(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c: In function 'cp_striplist': /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | cp_striplist(wlist) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:69:1: error: number of arguments doesn't match prototype 69 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:134:13: error: prototype declaration 134 | extern void cp_striplist(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:73:9: error: too many arguments to function 'cp_wstrip'; expected 0, have 1 73 | cp_wstrip(wl->wl_word); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:20:1: note: declared here 20 | cp_wstrip(str) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c: In function 'cp_unquote': /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:80:1: warning: old-style function definition [-Wold-style-definition] 80 | cp_unquote(string) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:82:1: error: number of arguments doesn't match prototype 82 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: error: prototype declaration 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//quote.c:86:13: error: too many arguments to function 'copy'; expected 0, have 1 86 | s = copy(string); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//std.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//std.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c: In function 'cp_rehash': /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:60:1: warning: old-style function definition [-Wold-style-definition] 60 | cp_rehash(pathlist, docc) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:63:1: error: number of arguments doesn't match prototype 63 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:147:13: error: prototype declaration 147 | extern void cp_rehash(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:77:13: note: in expansion of macro 'tfree' 77 | tfree(hh); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:106:19: error: too many arguments to function 'copy'; expected 0, have 1 106 | curpath = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:117:18: note: in expansion of macro 'alloc' 117 | hh = alloc(struct hashent); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:118:26: error: too many arguments to function 'copy'; expected 0, have 1 118 | hh->h_name = copy(entry->d_name); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:120:17: error: too many arguments to function 'hash'; expected 0, have 1 120 | i = hash(entry->d_name); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:40:12: note: declared here 40 | static int hash(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:133:17: error: too many arguments to function 'cp_addcomm'; expected 0, have 5 133 | cp_addcomm(entry->d_name, (long) 0, (long) 0, (long) 0, | ^~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:33:13: note: declared here 33 | extern void cp_addcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c: In function 'cp_unixcom': /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | cp_unixcom(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:147:1: error: number of arguments doesn't match prototype 147 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:145:13: error: prototype declaration 145 | extern bool cp_unixcom(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:157:12: error: too many arguments to function 'wl_mkvec'; expected 0, have 1 157 | argv = wl_mkvec(wl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:60:15: note: declared here 60 | extern char **wl_mkvec(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:160:9: error: too many arguments to function 'wl_print'; expected 0, have 2 160 | wl_print(wl, stdout); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:164:17: error: too many arguments to function 'tryexec'; expected 0, have 2 164 | return (tryexec(name, argv)); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:38:13: note: declared here 38 | static bool tryexec(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:165:9: error: too many arguments to function 'hash'; expected 0, have 1 165 | i = hash(name); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:40:12: note: declared here 40 | static int hash(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:169:17: error: too many arguments to function 'tryexec'; expected 0, have 2 169 | if (tryexec(buf, argv)) | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:38:13: note: declared here 38 | static bool tryexec(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c: In function 'tryexec': /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:177:1: warning: old-style function definition [-Wold-style-definition] 177 | tryexec(name, argv) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c: In function 'hash': /home/pbulk/work/cad/spice/work/src/lib/cp//unixcom.c:214:1: warning: old-style function definition [-Wold-style-definition] 214 | hash(str) | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:9: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:8: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c: In function 'cp_varwl': /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | cp_varwl(var) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:26:1: error: number of arguments doesn't match prototype 26 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:164:18: error: prototype declaration 164 | extern wordlist *cp_varwl(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:45:32: error: too many arguments to function 'cp_unquote'; expected 0, have 1 45 | (void) strcpy(buf, cp_unquote(var->va_string)); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:49:21: error: too many arguments to function 'cp_varwl'; expected 0, have 1 49 | w = cp_varwl(vt); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:24:1: note: declared here 24 | cp_varwl(var) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:65:10: note: in expansion of macro 'alloc' 65 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:67:19: error: too many arguments to function 'copy'; expected 0, have 1 67 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c: In function 'cp_vset': /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:74:1: warning: old-style function definition [-Wold-style-definition] 74 | cp_vset(varname, type, value) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:78:1: error: number of arguments doesn't match prototype 78 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: error: prototype declaration 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:85:15: error: too many arguments to function 'cp_unquote'; expected 0, have 1 85 | varname = cp_unquote(varname); | ^~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:95:13: note: in expansion of macro 'alloc' 95 | v = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:96:22: error: too many arguments to function 'copy'; expected 0, have 1 96 | v->va_name = copy(varname); | ^~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:102:13: error: too many arguments to function 'cp_remvar'; expected 0, have 1 102 | cp_remvar(varname); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:160:13: note: declared here 160 | extern void cp_remvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:117:24: error: too many arguments to function 'copy'; expected 0, have 1 117 | v->va_string = copy(value); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:149:27: error: too many arguments to function 'copy'; expected 0, have 1 149 | cp_promptstring = copy(v->va_string); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:160:17: error: too many arguments to function 'cp_usrset'; expected 0, have 2 160 | switch (i = cp_usrset(v, true)) { | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:183:12: note: declared here 183 | extern int cp_usrset(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:216:9: note: in expansion of macro 'tfree' 216 | tfree(v); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c: In function 'cp_setparse': /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:228:1: warning: old-style function definition [-Wold-style-definition] 228 | cp_setparse(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:230:1: error: number of arguments doesn't match prototype 230 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:165:25: error: prototype declaration 165 | extern struct variable *cp_setparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:238:16: error: too many arguments to function 'cp_unquote'; expected 0, have 1 238 | name = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:242:18: note: in expansion of macro 'alloc' 242 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:243:27: error: too many arguments to function 'copy'; expected 0, have 1 243 | vv->va_name = copy(name); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:279:15: error: too many arguments to function 'cp_unquote'; expected 0, have 1 279 | val = cp_unquote(val); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:293:22: note: in expansion of macro 'alloc' 293 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:295:22: error: too many arguments to function 'cp_unquote'; expected 0, have 1 295 | ss = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:296:22: error: too many arguments to function 'ft_numparse'; expected 0, have 2 296 | td = ft_numparse(&ss, false); | ^~~~~~~~~~~ ~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:11: /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:302:37: error: too many arguments to function 'copy'; expected 0, have 1 302 | vv->va_string = copy(ss); | ^~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:316:18: note: in expansion of macro 'alloc' 316 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:317:27: error: too many arguments to function 'copy'; expected 0, have 1 317 | vv->va_name = copy(name); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:327:14: error: too many arguments to function 'cp_unquote'; expected 0, have 1 327 | ss = cp_unquote(val); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:328:14: error: too many arguments to function 'ft_numparse'; expected 0, have 2 328 | td = ft_numparse(&ss, false); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:329:14: note: in expansion of macro 'alloc' 329 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:330:23: error: too many arguments to function 'copy'; expected 0, have 1 330 | vv->va_name = copy(name); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:339:29: error: too many arguments to function 'copy'; expected 0, have 1 339 | vv->va_string = copy(val); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c: In function 'cp_remvar': /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:346:1: warning: old-style function definition [-Wold-style-definition] 346 | cp_remvar(varname) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:348:1: error: number of arguments doesn't match prototype 348 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:160:13: error: prototype declaration 160 | extern void cp_remvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:360:13: note: in expansion of macro 'alloc' 360 | v = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:384:17: error: too many arguments to function 'cp_usrset'; expected 0, have 2 384 | switch (i = cp_usrset(v, false)) { | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:183:12: note: declared here 183 | extern int cp_usrset(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:426:17: note: in expansion of macro 'tfree' 426 | tfree(u); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//variable.c:436:5: note: in expansion of macro 'tfree' 436 | tfree(v); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'cp_variablesubst': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:42:1: warning: old-style function definition [-Wold-style-definition] 42 | cp_variablesubst(wlist) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:44:1: error: number of arguments doesn't match prototype 44 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:163:18: error: prototype declaration 163 | extern wordlist *cp_variablesubst(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:66:19: error: too many arguments to function 'vareval'; expected 0, have 1 66 | nwl = vareval(buf); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:168:11: note: declared here 168 | wordlist *vareval(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:71:21: note: in expansion of macro 'tfree' 71 | tfree(nwl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:73:27: note: in expansion of macro 'alloc' 73 | nwl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:76:32: error: too many arguments to function 'copy'; expected 0, have 1 76 | nwl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:78:24: error: too many arguments to function 'wl_splice'; expected 0, have 2 78 | if (!(wl = wl_splice(wl, nwl))) | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:72:18: note: declared here 72 | extern wordlist *wl_splice(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:86:13: note: in expansion of macro 'tfree' 86 | tfree(wl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:87:27: error: too many arguments to function 'copy'; expected 0, have 1 87 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'vareval': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:100:1: warning: old-style function definition [-Wold-style-definition] 100 | vareval(string) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:102:1: error: number of arguments doesn't match prototype 102 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:168:11: error: prototype declaration 168 | wordlist *vareval(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:106:23: error: too many arguments to function 'copy'; expected 0, have 1 106 | char *oldstring = copy(string); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:110:5: error: too many arguments to function 'cp_wstrip'; expected 0, have 1 110 | cp_wstrip(string); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:135:13: note: declared here 135 | extern void cp_wstrip(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:119:14: note: in expansion of macro 'alloc' 119 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:126:23: error: too many arguments to function 'copy'; expected 0, have 1 126 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:138:14: error: too many arguments to function 'cp_lexer'; expected 0, have 1 138 | wl = cp_lexer(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:141:27: error: too many arguments to function 'copy'; expected 0, have 1 141 | wl->wl_word = copy(""); | ^~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:145:14: note: in expansion of macro 'alloc' 145 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:152:17: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 152 | v = cp_enqvar(string); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:181:25: note: declared here 181 | extern struct variable *cp_enqvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:153:23: error: too many arguments to function 'copy'; expected 0, have 1 153 | wl->wl_word = copy(v ? "1" : "0"); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:157:14: note: in expansion of macro 'alloc' 157 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:164:17: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 164 | v = cp_enqvar(string); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:181:25: note: declared here 181 | extern struct variable *cp_enqvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:176:23: error: too many arguments to function 'copy'; expected 0, have 1 176 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:180:14: note: in expansion of macro 'alloc' 180 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:182:23: error: too many arguments to function 'copy'; expected 0, have 1 182 | wl->wl_word = copy("$"); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:202:13: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 202 | v = cp_enqvar(string); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:181:25: note: declared here 181 | extern struct variable *cp_enqvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:205:14: note: in expansion of macro 'alloc' 205 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:207:23: error: too many arguments to function 'copy'; expected 0, have 1 207 | wl->wl_word = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:214:10: error: too many arguments to function 'cp_varwl'; expected 0, have 1 214 | wl = cp_varwl(v); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:164:18: note: declared here 164 | extern wordlist *cp_varwl(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:224:18: error: too many arguments to function 'wl_length'; expected 0, have 1 224 | up = wl_length(wl); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:62:12: note: declared here 62 | extern int wl_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:228:14: error: too many arguments to function 'wl_range'; expected 0, have 3 228 | wl = wl_range(wl, low, up); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:69:18: note: declared here 69 | extern wordlist *wl_range(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'cp_vprint': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:251:5: error: too many arguments to function 'cp_usrvars'; expected 0, have 2 251 | cp_usrvars(&uv1, &uv2); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:182:13: note: declared here 182 | extern void cp_usrvars(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:260:27: error: too many arguments to function 'tmalloc'; expected 0, have 1 260 | vars = (struct xxx *) tmalloc(sizeof (struct xxx) * i); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:285:10: error: too many arguments to function 'out_send'; expected 0, have 1 285 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:287:13: error: too many arguments to function 'out_printf'; expected 0, have 3 287 | out_printf("%c %s\t", vars[j].x_char, v->va_name); | ^~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:288:18: error: too many arguments to function 'vareval'; expected 0, have 1 288 | wl = vareval(v->va_name); | ^~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:100:1: note: declared here 100 | vareval(string) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:289:17: error: too many arguments to function 'wl_flatten'; expected 0, have 1 289 | s = wl_flatten(wl); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:291:17: error: too many arguments to function 'out_printf'; expected 0, have 2 291 | out_printf("( %s )\n", s); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:293:17: error: too many arguments to function 'out_printf'; expected 0, have 2 293 | out_printf("%s\n", s); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:297:5: note: in expansion of macro 'tfree' 297 | tfree(vars); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'vcmp': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:302:1: warning: old-style function definition [-Wold-style-definition] 302 | vcmp(v1, v2) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'com_set': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:320:1: warning: old-style function definition [-Wold-style-definition] 320 | com_set(wl) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:322:1: error: number of arguments doesn't match prototype 322 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:157:13: error: prototype declaration 157 | extern void com_set(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:330:12: error: too many arguments to function 'cp_setparse'; expected 0, have 1 330 | vars = cp_setparse(wl); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:165:25: note: declared here 165 | extern struct variable *cp_setparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:351:9: error: too many arguments to function 'cp_vset'; expected 0, have 3 351 | cp_vset(vars->va_name, vars->va_type, s); | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'com_unset': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:358:1: warning: old-style function definition [-Wold-style-definition] 358 | com_unset(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:360:1: error: number of arguments doesn't match prototype 360 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:158:13: error: prototype declaration 158 | extern void com_unset(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:367:13: error: too many arguments to function 'cp_remvar'; expected 0, have 1 367 | cp_remvar(var->va_name); | ^~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:160:13: note: declared here 160 | extern void cp_remvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:373:9: error: too many arguments to function 'cp_remvar'; expected 0, have 1 373 | cp_remvar(name); | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:160:13: note: declared here 160 | extern void cp_remvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'com_shift': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:384:1: warning: old-style function definition [-Wold-style-definition] 384 | com_shift(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:386:1: error: number of arguments doesn't match prototype 386 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:159:13: error: prototype declaration 159 | extern void com_shift(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:396:15: error: too many arguments to function 'scannum'; expected 0, have 1 396 | num = scannum(wl->wl_word); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c: In function 'cp_getvar': /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:425:1: warning: old-style function definition [-Wold-style-definition] 425 | cp_getvar(name, type, retval) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:428:1: error: number of arguments doesn't match prototype 428 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: error: prototype declaration 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:458:21: error: too many arguments to function 'cp_unquote'; expected 0, have 1 458 | s = cp_unquote(v->va_string); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//var2.c:459:17: error: too many arguments to function 'cp_wstrip'; expected 0, have 1 459 | cp_wstrip(s); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:135:13: note: declared here 135 | extern void cp_wstrip(); | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_length': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | wl_length(wlist) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:22:1: error: number of arguments doesn't match prototype 22 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:62:12: error: prototype declaration 62 | extern int wl_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_free': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:34:1: warning: old-style function definition [-Wold-style-definition] 34 | wl_free(wlist) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:36:1: error: number of arguments doesn't match prototype 36 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: error: prototype declaration 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:41:9: note: in expansion of macro 'tfree' 41 | tfree(wl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:42:9: note: in expansion of macro 'tfree' 42 | tfree(wl); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_copy': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:50:1: warning: old-style function definition [-Wold-style-definition] 50 | wl_copy(wlist) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:52:1: error: number of arguments doesn't match prototype 52 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: error: prototype declaration 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:57:23: note: in expansion of macro 'alloc' 57 | nwl = w = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:61:26: note: in expansion of macro 'alloc' 61 | w->wl_next = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:66:22: error: too many arguments to function 'copy'; expected 0, have 1 66 | w->wl_word = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_splice': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:76:1: warning: old-style function definition [-Wold-style-definition] 76 | wl_splice(elt, list) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:78:1: error: number of arguments doesn't match prototype 78 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:72:18: error: prototype declaration 72 | extern wordlist *wl_splice(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:90:5: note: in expansion of macro 'tfree' 90 | tfree(elt->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:91:5: note: in expansion of macro 'tfree' 91 | tfree(elt); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_print': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:98:1: warning: old-style function definition [-Wold-style-definition] 98 | wl_print(wlist, fp) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:101:1: error: number of arguments doesn't match prototype 101 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: error: prototype declaration 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:105:9: error: too many arguments to function 'cp_printword'; expected 0, have 2 105 | cp_printword(wl->wl_word, fp); | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:56:13: note: declared here 56 | extern void cp_printword(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_build': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:115:1: warning: old-style function definition [-Wold-style-definition] 115 | wl_build(v) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:117:1: error: number of arguments doesn't match prototype 117 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:67:18: error: prototype declaration 67 | extern wordlist *wl_build(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:121:15: note: in expansion of macro 'alloc' 121 | cwl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:129:24: error: too many arguments to function 'copy'; expected 0, have 1 129 | cwl->wl_word = copy(*v); | ^~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_mkvec': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:137:1: warning: old-style function definition [-Wold-style-definition] 137 | wl_mkvec(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:139:1: error: number of arguments doesn't match prototype 139 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:60:15: error: prototype declaration 60 | extern char **wl_mkvec(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:143:11: error: too many arguments to function 'wl_length'; expected 0, have 1 143 | len = wl_length(wl); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:20:1: note: declared here 20 | wl_length(wlist) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:144:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 144 | v = (char **) tmalloc((len + 1) * sizeof (char **)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:146:16: error: too many arguments to function 'copy'; expected 0, have 1 146 | v[i] = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_append': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:156:1: warning: old-style function definition [-Wold-style-definition] 156 | wl_append(wlist, nwl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:158:1: error: number of arguments doesn't match prototype 158 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:66:18: error: prototype declaration 66 | extern wordlist *wl_append(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_reverse': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:173:1: warning: old-style function definition [-Wold-style-definition] 173 | wl_reverse(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:175:1: error: number of arguments doesn't match prototype 175 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:71:18: error: prototype declaration 71 | extern wordlist *wl_reverse(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_flatten': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:191:1: warning: old-style function definition [-Wold-style-definition] 191 | wl_flatten(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:193:1: error: number of arguments doesn't match prototype 193 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: error: prototype declaration 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:200:11: error: too many arguments to function 'tmalloc'; expected 0, have 1 200 | buf = tmalloc(i + 1); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_nthelem': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:217:1: warning: old-style function definition [-Wold-style-definition] 217 | wl_nthelem(i, wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:220:1: error: number of arguments doesn't match prototype 220 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:70:18: error: prototype declaration 70 | extern wordlist *wl_nthelem(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_sort': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:229:1: warning: old-style function definition [-Wold-style-definition] 229 | wl_sort(wl) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:231:1: error: number of arguments doesn't match prototype 231 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:65:13: error: prototype declaration 65 | extern void wl_sort(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:240:23: error: too many arguments to function 'tmalloc'; expected 0, have 1 240 | stuff = (char **) tmalloc(i * sizeof (char *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:246:5: note: in expansion of macro 'tfree' 246 | tfree(stuff); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wlcomp': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:251:1: warning: old-style function definition [-Wold-style-definition] 251 | wlcomp(s, t) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c: In function 'wl_range': /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:260:1: warning: old-style function definition [-Wold-style-definition] 260 | wl_range(wl, low, up) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:263:1: error: number of arguments doesn't match prototype 263 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:69:18: error: prototype declaration 69 | extern wordlist *wl_range(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:277:9: note: in expansion of macro 'tfree' 277 | tfree(wl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:278:9: note: in expansion of macro 'tfree' 278 | tfree(wl); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:290:9: error: too many arguments to function 'wl_free'; expected 0, have 1 290 | wl_free(tt->wl_next); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:34:1: note: declared here 34 | wl_free(wlist) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:294:14: error: too many arguments to function 'wl_reverse'; expected 0, have 1 294 | wl = wl_reverse(wl); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/cp//wlist.c:173:1: note: declared here 173 | wl_reverse(wl) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c: In function 'pow10': /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | pow10(num) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c: In function 'ft_numparse': /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c:40:1: warning: old-style function definition [-Wold-style-definition] 40 | ft_numparse(s, whole) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c:43:1: error: number of arguments doesn't match prototype 43 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/cp//numparse.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: error: prototype declaration 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp Making "install" in fte gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c: In function 'ft_agraf': /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | ft_agraf(xlims, ylims, xscale, plot, vecs, xdel, ydel, xlog, ylog, nointerp) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:35:1: error: number of arguments doesn't match prototype 35 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:22:13: error: prototype declaration 22 | extern void ft_agraf(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:61:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 61 | if (!cp_getvar("noasciiplotvalue", VT_BOOL, (char *) &novalue) && | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:62:14: error: too many arguments to function 'vec_eq'; expected 0, have 2 62 | !vec_eq(xscale, vecs)) { | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:454:13: note: declared here 454 | extern bool vec_eq(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:69:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 69 | if (!cp_getvar("width", VT_NUM, (char *) &maxy)) { | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:72:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 72 | if (!cp_getvar("height", VT_NUM, (char *) &height)) | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:77:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 77 | cp_getvar("nobreak", VT_BOOL, (char *) &nobreakp); | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:100:13: error: too many arguments to function 'tmalloc'; expected 0, have 1 100 | field = tmalloc((maxy + 1) * (maxx + 1)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:101:13: error: too many arguments to function 'tmalloc'; expected 0, have 1 101 | line1 = tmalloc(maxy + margin + FUDGE + 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:102:13: error: too many arguments to function 'tmalloc'; expected 0, have 1 102 | line2 = tmalloc(maxy + margin + FUDGE + 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:104:29: error: too many arguments to function 'tmalloc'; expected 0, have 1 104 | values = (double *) tmalloc(maxx * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:239:19: error: too many arguments to function 'ft_findpoint'; expected 0, have 5 239 | ypt = ft_findpoint(y, yrange, maxy, 0, ylogscale); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:341:12: note: declared here 341 | extern int ft_findpoint(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:250:9: error: too many arguments to function 'out_send'; expected 0, have 1 250 | out_send("-"); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:251:5: error: too many arguments to function 'out_send'; expected 0, have 1 251 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:254:9: error: too many arguments to function 'out_send'; expected 0, have 1 254 | out_send(" "); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:257:5: error: too many arguments to function 'out_send'; expected 0, have 1 257 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:258:5: error: too many arguments to function 'out_send'; expected 0, have 1 258 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:263:9: error: too many arguments to function 'out_send'; expected 0, have 1 263 | out_send(" "); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:264:5: error: too many arguments to function 'out_send'; expected 0, have 1 264 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:265:5: error: too many arguments to function 'out_send'; expected 0, have 1 265 | out_send("\n\n"); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:267:5: error: too many arguments to function 'out_send'; expected 0, have 1 267 | out_send("Legend: "); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:276:9: error: too many arguments to function 'out_printf'; expected 0, have 3 276 | out_printf("%s = %-17s", out_pbuf, v->v_name); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:278:13: error: too many arguments to function 'out_send'; expected 0, have 1 278 | out_send("\n "); | ^~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:282:5: error: too many arguments to function 'out_send'; expected 0, have 1 282 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:284:9: error: too many arguments to function 'out_send'; expected 0, have 1 284 | out_send("-"); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:285:5: error: too many arguments to function 'out_send'; expected 0, have 1 285 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:287:5: error: too many arguments to function 'out_printf'; expected 0, have 3 287 | out_printf("%s\n%s\n", line2, line1); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:300:13: error: too many arguments to function 'out_send'; expected 0, have 1 300 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:304:13: error: too many arguments to function 'out_send'; expected 0, have 1 304 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:310:17: error: too many arguments to function 'out_send'; expected 0, have 1 310 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:314:17: error: too many arguments to function 'out_send'; expected 0, have 1 314 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:320:9: error: too many arguments to function 'out_send'; expected 0, have 1 320 | out_send(&field[i * omaxy]); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:322:9: error: too many arguments to function 'out_send'; expected 0, have 1 322 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:325:13: error: too many arguments to function 'out_printf'; expected 0, have 5 325 | out_printf("%s\n%s\n\014\n%s\n%s\n", line1, line2, | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:330:5: error: too many arguments to function 'out_printf'; expected 0, have 3 330 | out_printf("%s\n%s\n", line1, line2); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:332:5: note: in expansion of macro 'tfree' 332 | tfree(field); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:333:5: note: in expansion of macro 'tfree' 333 | tfree(line1); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:334:5: note: in expansion of macro 'tfree' 334 | tfree(line2); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//agraf.c:336:9: note: in expansion of macro 'tfree' 336 | tfree(values); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/include/fteinput.h:25, from /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/fteinput.h:24: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'prompt': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:25:7: warning: old-style function definition [-Wold-style-definition] 25 | char *prompt(fp) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:36:18: error: too many arguments to function 'tmalloc'; expected 0, have 1 36 | p = (char *) tmalloc(n + 1); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'countargs': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:41:1: warning: old-style function definition [-Wold-style-definition] 41 | countargs(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'process': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:55:11: warning: old-style function definition [-Wold-style-definition] 55 | wordlist *process(wlist) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:59:13: error: too many arguments to function 'cp_variablesubst'; expected 0, have 1 59 | wlist = cp_variablesubst(wlist); | ^~~~~~~~~~~~~~~~ ~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118, from /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:13: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:163:18: note: declared here 163 | extern wordlist *cp_variablesubst(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:60:13: error: too many arguments to function 'cp_bquote'; expected 0, have 1 60 | wlist = cp_bquote(wlist); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:26:18: note: declared here 26 | extern wordlist *cp_bquote(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:61:13: error: too many arguments to function 'cp_doglob'; expected 0, have 1 61 | wlist = cp_doglob(wlist); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: note: declared here 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'arg_print': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:66:1: warning: old-style function definition [-Wold-style-definition] 66 | arg_print(wl, command) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:69:1: error: number of arguments doesn't match prototype 69 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:28:12: error: prototype declaration 28 | extern int arg_print(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:71:5: error: too many arguments to function 'common'; expected 0, have 3 71 | common("which variable", wl, command); | ^~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:21:13: note: declared here 21 | static void common( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'arg_plot': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:75:1: warning: old-style function definition [-Wold-style-definition] 75 | arg_plot(wl, command) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:78:1: error: number of arguments doesn't match prototype 78 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:26:12: error: prototype declaration 26 | extern int arg_plot(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:80:5: error: too many arguments to function 'common'; expected 0, have 3 80 | common("which variable", wl, command); | ^~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:21:13: note: declared here 21 | static void common( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'arg_load': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:84:1: warning: old-style function definition [-Wold-style-definition] 84 | arg_load(wl, command) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:87:1: error: number of arguments doesn't match prototype 87 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:30:12: error: prototype declaration 30 | extern int arg_load(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:89:8: error: too many arguments to function 'command->co_func'; expected 0, have 1 89 | (*command->co_func) (wl); | ~^~~~~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:22:12: note: declared here 22 | void (*co_func) (); /* The function that handles the command. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'arg_let': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:93:1: warning: old-style function definition [-Wold-style-definition] 93 | arg_let(wl, command) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:96:1: error: number of arguments doesn't match prototype 96 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:29:12: error: prototype declaration 29 | extern int arg_let(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:98:5: error: too many arguments to function 'common'; expected 0, have 3 98 | common("which vector", wl, command); | ^~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:21:13: note: declared here 21 | static void common( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'arg_set': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:102:1: warning: old-style function definition [-Wold-style-definition] 102 | arg_set(wl, command) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:105:1: error: number of arguments doesn't match prototype 105 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:31:12: error: prototype declaration 31 | extern int arg_set(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:107:5: error: too many arguments to function 'common'; expected 0, have 3 107 | common("which variable", wl, command); | ^~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:21:13: note: declared here 21 | static void common( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'common': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:120:1: warning: old-style function definition [-Wold-style-definition] 120 | common(string, wl, command) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:130:7: error: too many arguments to function 'outmenuprompt'; expected 0, have 1 130 | outmenuprompt(string); | ^~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:20:6: note: declared here 20 | void outmenuprompt( ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:134:11: note: in expansion of macro 'alloc' 134 | w = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:140:8: error: too many arguments to function 'command->co_func'; expected 0, have 1 140 | (*command->co_func) (w); | ~^~~~~~~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:22:12: note: declared here 22 | void (*co_func) (); /* The function that handles the command. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c: In function 'outmenuprompt': /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:146:1: warning: old-style function definition [-Wold-style-definition] 146 | outmenuprompt(string) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:148:1: error: number of arguments doesn't match prototype 148 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//arg.c:20:6: error: prototype declaration 20 | void outmenuprompt( ); | ^~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c: In function 'com_aspice': /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:57:1: warning: old-style function definition [-Wold-style-definition] 57 | com_aspice(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:59:1: error: number of arguments doesn't match prototype 59 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:36:13: error: prototype declaration 36 | extern void com_aspice(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:68:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 68 | if (!cp_getvar("spicepath", VT_STRING, spicepath)) { | ^~~~~~~~~ ~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:81:18: error: too many arguments to function 'smktemp'; expected 0, have 1 81 | output = smktemp("spout"); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:98:11: error: too many arguments to function 'smktemp'; expected 0, have 1 98 | raw = smktemp("raw"); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:112:16: warning: incompatible implicit declaration of built-in function 'execl' [-Wbuiltin-declaration-mismatch] 112 | (void) execl(spicepath, spicepath, "-r", raw, 0); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:120:9: note: in expansion of macro 'alloc' 120 | p = alloc(struct proc); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:122:18: error: too many arguments to function 'copy'; expected 0, have 1 122 | p->pr_name = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:123:21: error: too many arguments to function 'copy'; expected 0, have 1 123 | p->pr_rawfile = copy(raw); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:124:21: error: too many arguments to function 'copy'; expected 0, have 1 124 | p->pr_inpfile = copy(deck); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:125:21: error: too many arguments to function 'copy'; expected 0, have 1 125 | p->pr_outfile = copy(output); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c: In function 'com_jobs': /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:142:1: warning: old-style function definition [-Wold-style-definition] 142 | com_jobs(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:144:1: error: number of arguments doesn't match prototype 144 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:37:13: error: prototype declaration 37 | extern void com_jobs(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c: In function 'ft_checkkids': /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:219:9: error: too many arguments to function 'ft_loadfile'; expected 0, have 1 219 | ft_loadfile(p->pr_rawfile); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: note: declared here 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:228:13: error: too many arguments to function 'out_send'; expected 0, have 1 228 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c: In function 'com_rspice': /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:247:1: warning: old-style function definition [-Wold-style-definition] 247 | com_rspice(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:249:1: error: number of arguments doesn't match prototype 249 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:38:13: error: prototype declaration 38 | extern void com_rspice(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:266:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 266 | if (!cp_getvar("rhost", VT_STRING, rhost)) | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:268:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 268 | if (!cp_getvar("rprogram", VT_STRING, program)) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:270:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 270 | if (!cp_getvar("remote_shell", VT_STRING, remote_shell)) | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:318:9: warning: incompatible implicit declaration of built-in function 'execlp' [-Wbuiltin-declaration-mismatch] 318 | execlp(remote_shell, remote_shell, rhost, program, "-s", 0); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:358:9: error: too many arguments to function 'inp_list'; expected 0, have 4 358 | inp_list(srv_input, ft_curckt->ci_deck, ft_curckt->ci_options, | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:268:13: note: declared here 268 | extern void inp_list(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:369:15: error: too many arguments to function 'smktemp'; expected 0, have 1 369 | outfile = smktemp("rsp"); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:405:10: error: too many arguments to function 'raw_read'; expected 0, have 1 405 | pl = raw_read(outfile); | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:376:21: note: declared here 376 | extern struct plot *raw_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//aspice.c:407:9: error: too many arguments to function 'plot_add'; expected 0, have 1 407 | plot_add(pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:464:13: note: declared here 464 | extern void plot_add(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'com_stop': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:34:1: warning: old-style function definition [-Wold-style-definition] 34 | com_stop(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:36:1: error: number of arguments doesn't match prototype 36 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:53:13: error: prototype declaration 53 | extern void com_stop(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:44:27: note: in expansion of macro 'alloc' 44 | thisone = d = alloc(struct dbcomm); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:46:26: note: in expansion of macro 'alloc' 46 | d->db_also = alloc(struct dbcomm); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:77:19: error: too many arguments to function 'ft_numparse'; expected 0, have 2 77 | val = ft_numparse(&s, false); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:81:35: error: too many arguments to function 'copy'; expected 0, have 1 81 | d->db_nodename1 = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:103:19: error: too many arguments to function 'ft_numparse'; expected 0, have 2 103 | val = ft_numparse(&s, false); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:107:35: error: too many arguments to function 'copy'; expected 0, have 1 107 | d->db_nodename2 = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:119:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 119 | cp_addkword(CT_DBNUMS, buf); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'com_trce': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:132:1: warning: old-style function definition [-Wold-style-definition] 132 | com_trce(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:134:1: error: number of arguments doesn't match prototype 134 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:55:13: error: prototype declaration 55 | extern void com_trce(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'com_iplot': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:142:1: warning: old-style function definition [-Wold-style-definition] 142 | com_iplot(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:144:1: error: number of arguments doesn't match prototype 144 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:50:13: error: prototype declaration 50 | extern void com_iplot(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:155:13: error: too many arguments to function 'cp_unquote'; expected 0, have 1 155 | s = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:156:13: note: in expansion of macro 'alloc' 156 | d = alloc(struct dbcomm); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:163:31: error: too many arguments to function 'copy'; expected 0, have 1 163 | d->db_nodename1 = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'com_step': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:183:1: warning: old-style function definition [-Wold-style-definition] 183 | com_step(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:185:1: error: number of arguments doesn't match prototype 185 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:52:13: error: prototype declaration 52 | extern void com_step(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:190:5: error: too many arguments to function 'com_resume'; expected 0, have 1 190 | com_resume((wordlist *) NULL); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:392:13: note: declared here 392 | extern void com_resume(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'com_sttus': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:203:1: warning: old-style function definition [-Wold-style-definition] 203 | com_sttus(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:205:1: error: number of arguments doesn't match prototype 205 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:54:13: error: prototype declaration 54 | extern void com_sttus(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:252:13: error: too many arguments to function 'printcond'; expected 0, have 2 252 | printcond(d, cp_out); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:18:13: note: declared here 18 | static void printcond(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'dbfree': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:272:1: warning: old-style function definition [-Wold-style-definition] 272 | dbfree(db) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:274:1: error: number of arguments doesn't match prototype 274 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:20:6: error: prototype declaration 20 | void dbfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:279:9: note: in expansion of macro 'tfree' 279 | tfree(dd->db_nodename1); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:280:9: note: in expansion of macro 'tfree' 280 | tfree(dd->db_nodename2); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:281:9: note: in expansion of macro 'tfree' 281 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'com_delete': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:289:1: warning: old-style function definition [-Wold-style-definition] 289 | com_delete(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:291:1: error: number of arguments doesn't match prototype 291 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:49:13: error: prototype declaration 49 | extern void com_delete(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:299:13: error: too many arguments to function 'dbfree'; expected 0, have 1 299 | dbfree(dt); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:272:1: note: declared here 272 | dbfree(db) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:330:17: error: too many arguments to function 'dbfree'; expected 0, have 1 330 | dbfree(d); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:272:1: note: declared here 272 | dbfree(db) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:332:17: error: too many arguments to function 'cp_remkword'; expected 0, have 2 332 | cp_remkword(CT_DBNUMS, buf); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:39:13: note: declared here 39 | extern void cp_remkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'ft_bpcheck': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:347:1: warning: old-style function definition [-Wold-style-definition] 347 | ft_bpcheck(runplot, iteration) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:350:1: error: number of arguments doesn't match prototype 350 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:48:13: error: prototype declaration 48 | extern bool ft_bpcheck(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:378:25: error: too many arguments to function 'satisfied'; expected 0, have 2 378 | if (satisfied(dt, runplot)) | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:17:13: note: declared here 17 | static bool satisfied(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:391:13: error: too many arguments to function 'printcond'; expected 0, have 2 391 | printcond(d, cp_err); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:18:13: note: declared here 18 | static void printcond(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'satisfied': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:403:1: warning: old-style function definition [-Wold-style-definition] 403 | satisfied(d, plot) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:411:19: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 411 | if ((v1 = vec_fromplot(d->db_nodename1, plot)) == NULL) { | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:456:21: note: declared here 456 | extern struct dvec *vec_fromplot(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:424:19: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 424 | if ((v2 = vec_fromplot(d->db_nodename2, plot)) == NULL) { | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:456:21: note: declared here 456 | extern struct dvec *vec_fromplot(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c: In function 'printcond': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp.c:471:1: warning: old-style function definition [-Wold-style-definition] 471 | printcond(d, fp) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c: In function 'ft_setccirc': /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | ft_setccirc(name) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:29:1: error: number of arguments doesn't match prototype 29 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:64:13: error: prototype declaration 64 | extern void ft_setccirc(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c: In function 'ft_newcirc': /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:35:1: warning: old-style function definition [-Wold-style-definition] 35 | ft_newcirc(ckt) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:37:1: error: number of arguments doesn't match prototype 37 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:65:13: error: prototype declaration 65 | extern void ft_newcirc(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c: In function 'ft_newsubcirc': /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:47:1: warning: old-style function definition [-Wold-style-definition] 47 | ft_newsubcirc(sckt) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//circuits.c:49:1: error: number of arguments doesn't match prototype 49 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:66:13: error: prototype declaration 66 | extern void ft_newsubcirc(); | ^~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c:14: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c: In function 'clip_line': /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c:46:1: warning: old-style function definition [-Wold-style-definition] 46 | clip_line(pX1,pY1,pX2,pY2,l,b,r,t) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c:48:1: error: number of arguments doesn't match prototype 48 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c:15: /home/pbulk/work/cad/spice/work/src/include/fteext.h:70:13: error: prototype declaration 70 | extern bool clip_line(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c: In function 'clip_to_circle': /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c:99:1: warning: old-style function definition [-Wold-style-definition] 99 | clip_to_circle(x1, y1, x2, y2, cx, cy, rad) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//clip.c:101:1: error: number of arguments doesn't match prototype 101 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:71:13: error: prototype declaration 71 | extern bool clip_to_circle(); | ^~~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:20: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_mag': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:33:1: warning: old-style function definition [-Wold-style-definition] 33 | cx_mag(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:39:1: error: number of arguments doesn't match prototype 39 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:21: /home/pbulk/work/cad/spice/work/src/include/fteext.h:76:14: error: prototype declaration 76 | extern char *cx_mag(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:23: /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:40:17: note: in expansion of macro 'alloc_d' 40 | double *d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_ph': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:57:1: warning: old-style function definition [-Wold-style-definition] 57 | cx_ph(data, type, length, newlength, newtype) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:63:1: error: number of arguments doesn't match prototype 63 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:77:14: error: prototype declaration 77 | extern char *cx_ph(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:64:17: note: in expansion of macro 'alloc_d' 64 | double *d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_j': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | cx_j(data, type, length, newlength, newtype) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:87:1: error: number of arguments doesn't match prototype 87 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:78:14: error: prototype declaration 78 | extern char *cx_j(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:88:18: note: in expansion of macro 'alloc_c' 88 | complex *c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_real': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:109:1: warning: old-style function definition [-Wold-style-definition] 109 | cx_real(data, type, length, newlength, newtype) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:115:1: error: number of arguments doesn't match prototype 115 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:79:14: error: prototype declaration 79 | extern char *cx_real(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:116:17: note: in expansion of macro 'alloc_d' 116 | double *d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_imag': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:133:1: warning: old-style function definition [-Wold-style-definition] 133 | cx_imag(data, type, length, newlength, newtype) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:139:1: error: number of arguments doesn't match prototype 139 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:80:14: error: prototype declaration 80 | extern char *cx_imag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:140:17: note: in expansion of macro 'alloc_d' 140 | double *d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_pos': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:159:1: warning: old-style function definition [-Wold-style-definition] 159 | cx_pos(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:165:1: error: number of arguments doesn't match prototype 165 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:81:14: error: prototype declaration 81 | extern char *cx_pos(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:166:17: note: in expansion of macro 'alloc_d' 166 | double *d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_db': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:183:1: warning: old-style function definition [-Wold-style-definition] 183 | cx_db(data, type, length, newlength, newtype) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:189:1: error: number of arguments doesn't match prototype 189 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:82:14: error: prototype declaration 82 | extern char *cx_db(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:190:17: note: in expansion of macro 'alloc_d' 190 | double *d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_log': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:223:1: warning: old-style function definition [-Wold-style-definition] 223 | cx_log(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:229:1: error: number of arguments doesn't match prototype 229 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:83:14: error: prototype declaration 83 | extern char *cx_log(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:237:13: note: in expansion of macro 'alloc_d' 237 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:240:13: note: in expansion of macro 'alloc_c' 240 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_ln': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:274:1: warning: old-style function definition [-Wold-style-definition] 274 | cx_ln(data, type, length, newlength, newtype) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:280:1: error: number of arguments doesn't match prototype 280 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:84:14: error: prototype declaration 84 | extern char *cx_ln(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:288:13: note: in expansion of macro 'alloc_d' 288 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:291:13: note: in expansion of macro 'alloc_c' 291 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_exp': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:322:1: warning: old-style function definition [-Wold-style-definition] 322 | cx_exp(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:328:1: error: number of arguments doesn't match prototype 328 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:85:14: error: prototype declaration 85 | extern char *cx_exp(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:336:13: note: in expansion of macro 'alloc_d' 336 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:339:13: note: in expansion of macro 'alloc_c' 339 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_sqrt': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:358:1: warning: old-style function definition [-Wold-style-definition] 358 | cx_sqrt(data, type, length, newlength, newtype) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:364:1: error: number of arguments doesn't match prototype 364 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:86:14: error: prototype declaration 86 | extern char *cx_sqrt(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:376:13: note: in expansion of macro 'alloc_c' 376 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:379:13: note: in expansion of macro 'alloc_d' 379 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_sin': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:447:1: warning: old-style function definition [-Wold-style-definition] 447 | cx_sin(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:453:1: error: number of arguments doesn't match prototype 453 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:87:14: error: prototype declaration 87 | extern char *cx_sin(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:461:13: note: in expansion of macro 'alloc_d' 461 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:464:13: note: in expansion of macro 'alloc_c' 464 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c: In function 'cx_cos': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:484:1: warning: old-style function definition [-Wold-style-definition] 484 | cx_cos(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:490:1: error: number of arguments doesn't match prototype 490 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:88:14: error: prototype declaration 88 | extern char *cx_cos(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:498:13: note: in expansion of macro 'alloc_d' 498 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath1.c:501:13: note: in expansion of macro 'alloc_c' 501 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:19: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_tan': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | cx_tan(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:32:1: error: number of arguments doesn't match prototype 32 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:20: /home/pbulk/work/cad/spice/work/src/include/fteext.h:92:14: error: prototype declaration 92 | extern char *cx_tan(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:22: /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:40:13: note: in expansion of macro 'alloc_d' 40 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:43:13: note: in expansion of macro 'alloc_c' 43 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_atan': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:73:1: warning: old-style function definition [-Wold-style-definition] 73 | cx_atan(data, type, length, newlength, newtype) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:79:1: error: number of arguments doesn't match prototype 79 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:93:14: error: prototype declaration 93 | extern char *cx_atan(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:85:9: note: in expansion of macro 'alloc_d' 85 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_norm': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:101:1: warning: old-style function definition [-Wold-style-definition] 101 | cx_norm(data, type, length, newlength, newtype) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:107:1: error: number of arguments doesn't match prototype 107 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:94:14: error: prototype declaration 94 | extern char *cx_norm(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:115:13: note: in expansion of macro 'alloc_d' 115 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:118:13: note: in expansion of macro 'alloc_c' 118 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_uminus': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:149:1: warning: old-style function definition [-Wold-style-definition] 149 | cx_uminus(data, type, length, newlength, newtype) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:155:1: error: number of arguments doesn't match prototype 155 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:95:14: error: prototype declaration 95 | extern char *cx_uminus(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:163:13: note: in expansion of macro 'alloc_d' 163 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:166:13: note: in expansion of macro 'alloc_c' 166 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_rnd': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:184:1: warning: old-style function definition [-Wold-style-definition] 184 | cx_rnd(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:190:1: error: number of arguments doesn't match prototype 190 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:96:14: error: prototype declaration 96 | extern char *cx_rnd(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:198:13: note: in expansion of macro 'alloc_d' 198 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:201:13: note: in expansion of macro 'alloc_c' 201 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_mean': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:225:1: warning: old-style function definition [-Wold-style-definition] 225 | cx_mean(data, type, length, newlength, newtype) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:231:1: error: number of arguments doesn't match prototype 231 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:97:14: error: prototype declaration 97 | extern char *cx_mean(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:241:13: note: in expansion of macro 'alloc_d' 241 | d = alloc_d(1); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:248:13: note: in expansion of macro 'alloc_c' 248 | c = alloc_c(1); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_length': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:262:1: warning: old-style function definition [-Wold-style-definition] 262 | cx_length(data, type, length, newlength, newtype) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:268:1: error: number of arguments doesn't match prototype 268 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:98:14: error: prototype declaration 98 | extern char *cx_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:273:9: note: in expansion of macro 'alloc_d' 273 | d = alloc_d(1); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_vector': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:284:1: warning: old-style function definition [-Wold-style-definition] 284 | cx_vector(data, type, length, newlength, newtype) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:290:1: error: number of arguments doesn't match prototype 290 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:99:14: error: prototype declaration 99 | extern char *cx_vector(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:302:9: note: in expansion of macro 'alloc_d' 302 | d = alloc_d(len); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_unitvec': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:314:1: warning: old-style function definition [-Wold-style-definition] 314 | cx_unitvec(data, type, length, newlength, newtype) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:320:1: error: number of arguments doesn't match prototype 320 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:100:14: error: prototype declaration 100 | extern char *cx_unitvec(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:332:9: note: in expansion of macro 'alloc_d' 332 | d = alloc_d(len); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_plus': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:351:1: warning: old-style function definition [-Wold-style-definition] 351 | cx_plus(data1, data2, datatype1, datatype2, length) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:354:1: error: number of arguments doesn't match prototype 354 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:101:14: error: prototype declaration 101 | extern char *cx_plus(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:364:13: note: in expansion of macro 'alloc_d' 364 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:369:13: note: in expansion of macro 'alloc_c' 369 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_minus': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:393:1: warning: old-style function definition [-Wold-style-definition] 393 | cx_minus(data1, data2, datatype1, datatype2, length) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:396:1: error: number of arguments doesn't match prototype 396 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:102:14: error: prototype declaration 102 | extern char *cx_minus(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:406:13: note: in expansion of macro 'alloc_d' 406 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:411:13: note: in expansion of macro 'alloc_c' 411 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_times': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:435:1: warning: old-style function definition [-Wold-style-definition] 435 | cx_times(data1, data2, datatype1, datatype2, length) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:438:1: error: number of arguments doesn't match prototype 438 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:103:14: error: prototype declaration 103 | extern char *cx_times(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:448:13: note: in expansion of macro 'alloc_d' 448 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:453:13: note: in expansion of macro 'alloc_c' 453 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c: In function 'cx_mod': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:479:1: warning: old-style function definition [-Wold-style-definition] 479 | cx_mod(data1, data2, datatype1, datatype2, length) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:482:1: error: number of arguments doesn't match prototype 482 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:104:14: error: prototype declaration 104 | extern char *cx_mod(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:492:13: note: in expansion of macro 'alloc_d' 492 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath2.c:503:13: note: in expansion of macro 'alloc_c' 503 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:19: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:25:17: warning: conflicting types for built-in function 'cexp'; expected '_Complex double(_Complex double)' [-Wbuiltin-declaration-mismatch] 25 | static complex *cexp(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:24:1: note: 'cexp' is declared in header '' 23 | #include "suffix.h" +++ |+#include 24 | /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_divide': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:30:1: warning: old-style function definition [-Wold-style-definition] 30 | cx_divide(data1, data2, datatype1, datatype2, length) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:33:1: error: number of arguments doesn't match prototype 33 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:20: /home/pbulk/work/cad/spice/work/src/include/fteext.h:108:14: error: prototype declaration 108 | extern char *cx_divide(); | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:22: /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:43:13: note: in expansion of macro 'alloc_d' 43 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:50:13: note: in expansion of macro 'alloc_c' 50 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_comma': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | cx_comma(data1, data2, datatype1, datatype2, length) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:84:1: error: number of arguments doesn't match prototype 84 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:109:14: error: prototype declaration 109 | extern char *cx_comma(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:92:9: note: in expansion of macro 'alloc_c' 92 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_power': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:116:1: warning: old-style function definition [-Wold-style-definition] 116 | cx_power(data1, data2, datatype1, datatype2, length) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:119:1: error: number of arguments doesn't match prototype 119 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:110:14: error: prototype declaration 110 | extern char *cx_power(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:129:13: note: in expansion of macro 'alloc_d' 129 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:136:13: note: in expansion of macro 'alloc_c' 136 | c = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:158:38: error: too many arguments to function 'cln'; expected 0, have 1 158 | t = cexp(ctimes(&c2, cln(&c1))); | ^~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:26:17: note: declared here 26 | static complex *cln(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:158:26: error: too many arguments to function 'ctimes'; expected 0, have 2 158 | t = cexp(ctimes(&c2, cln(&c1))); | ^~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:27:17: note: declared here 27 | static complex *ctimes(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:158:21: error: too many arguments to function 'cexp'; expected 0, have 1 158 | t = cexp(ctimes(&c2, cln(&c1))); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:25:17: note: declared here 25 | static complex *cexp(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cexp': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:176:1: warning: old-style function definition [-Wold-style-definition] 176 | cexp(c) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cln': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:192:1: warning: old-style function definition [-Wold-style-definition] 192 | cln(c) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'ctimes': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:207:1: warning: old-style function definition [-Wold-style-definition] 207 | ctimes(c1, c2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_eq': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:259:1: warning: old-style function definition [-Wold-style-definition] 259 | cx_eq(data1, data2, datatype1, datatype2, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:262:1: error: number of arguments doesn't match prototype 262 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:111:14: error: prototype declaration 111 | extern char *cx_eq(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:271:9: note: in expansion of macro 'alloc_d' 271 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_gt': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:302:1: warning: old-style function definition [-Wold-style-definition] 302 | cx_gt(data1, data2, datatype1, datatype2, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:305:1: error: number of arguments doesn't match prototype 305 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:112:14: error: prototype declaration 112 | extern char *cx_gt(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:314:9: note: in expansion of macro 'alloc_d' 314 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_lt': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:345:1: warning: old-style function definition [-Wold-style-definition] 345 | cx_lt(data1, data2, datatype1, datatype2, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:348:1: error: number of arguments doesn't match prototype 348 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:113:14: error: prototype declaration 113 | extern char *cx_lt(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:357:9: note: in expansion of macro 'alloc_d' 357 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_ge': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:388:1: warning: old-style function definition [-Wold-style-definition] 388 | cx_ge(data1, data2, datatype1, datatype2, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:391:1: error: number of arguments doesn't match prototype 391 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:114:14: error: prototype declaration 114 | extern char *cx_ge(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:400:9: note: in expansion of macro 'alloc_d' 400 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_le': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:431:1: warning: old-style function definition [-Wold-style-definition] 431 | cx_le(data1, data2, datatype1, datatype2, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:434:1: error: number of arguments doesn't match prototype 434 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:115:14: error: prototype declaration 115 | extern char *cx_le(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:443:9: note: in expansion of macro 'alloc_d' 443 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c: In function 'cx_ne': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:474:1: warning: old-style function definition [-Wold-style-definition] 474 | cx_ne(data1, data2, datatype1, datatype2, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:477:1: error: number of arguments doesn't match prototype 477 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:116:14: error: prototype declaration 116 | extern char *cx_ne(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath3.c:486:9: note: in expansion of macro 'alloc_d' 486 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:19: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c: In function 'cx_and': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | cx_and(data1, data2, datatype1, datatype2, length) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:29:1: error: number of arguments doesn't match prototype 29 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:20: /home/pbulk/work/cad/spice/work/src/include/fteext.h:120:14: error: prototype declaration 120 | extern char *cx_and(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:22: /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:38:9: note: in expansion of macro 'alloc_d' 38 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c: In function 'cx_or': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:66:1: warning: old-style function definition [-Wold-style-definition] 66 | cx_or(data1, data2, datatype1, datatype2, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:69:1: error: number of arguments doesn't match prototype 69 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:121:14: error: prototype declaration 121 | extern char *cx_or(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:78:9: note: in expansion of macro 'alloc_d' 78 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c: In function 'cx_not': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:106:1: warning: old-style function definition [-Wold-style-definition] 106 | cx_not(data, type, length, newlength, newtype) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:112:1: error: number of arguments doesn't match prototype 112 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:122:14: error: prototype declaration 122 | extern char *cx_not(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:118:9: note: in expansion of macro 'alloc_d' 118 | d = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c: In function 'cx_interpolate': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | cx_interpolate(data, type, length, newlength, newtype, pl, newpl, grouping) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:153:1: error: number of arguments doesn't match prototype 153 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:123:14: error: prototype declaration 123 | extern char *cx_interpolate(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:232:9: note: in expansion of macro 'alloc_d' 232 | d = alloc_d(ns->v_length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:234:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 234 | if (!cp_getvar("polydegree", VT_NUM, (char *) °ree)) | ^~~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:238:14: error: too many arguments to function 'ft_interpolate'; expected 0, have 7 238 | if (!ft_interpolate((double *) data + base, d + base, | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:280:13: note: declared here 280 | extern bool ft_interpolate(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:242:13: note: in expansion of macro 'tfree' 242 | tfree(d); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c: In function 'cx_deriv': /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:251:1: warning: old-style function definition [-Wold-style-definition] 251 | cx_deriv(data, type, length, newlength, newtype, pl, newpl, grouping) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:259:1: error: number of arguments doesn't match prototype 259 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:124:14: error: prototype declaration 124 | extern char *cx_deriv(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:275:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 275 | if (!cp_getvar("dpolydegree", VT_NUM, (char *) °ree)) | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:280:13: note: in expansion of macro 'alloc_d' 280 | spare = alloc_d(n); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:281:15: note: in expansion of macro 'alloc_d' 281 | scratch = alloc_d(n * (n + 1)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:291:19: note: in expansion of macro 'alloc_d' 291 | r_coefs = alloc_d(n); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:292:19: note: in expansion of macro 'alloc_d' 292 | i_coefs = alloc_d(n); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:11:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 11 | #define alloc_c(len) ((complex *) tmalloc((len) * sizeof (complex))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:294:21: note: in expansion of macro 'alloc_c' 294 | c_outdata = alloc_c(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:295:17: note: in expansion of macro 'alloc_d' 295 | scale = alloc_d(length); /* XXX */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:310:22: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 310 | if (!ft_polyfit(scale + i + base - degree, | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:315:17: error: too many arguments to function 'ft_polyderiv'; expected 0, have 2 315 | ft_polyderiv(r_coefs, degree); | ^~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:283:13: note: declared here 283 | extern void ft_polyderiv( ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:321:25: error: too many arguments to function 'ft_peval'; expected 0, have 3 321 | ft_peval(x, r_coefs, degree - 1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:327:22: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 327 | if (!ft_polyfit(scale + i - degree + base, | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:332:17: error: too many arguments to function 'ft_polyderiv'; expected 0, have 2 332 | ft_polyderiv(i_coefs, degree); | ^~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:283:13: note: declared here 283 | extern void ft_polyderiv( ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:338:25: error: too many arguments to function 'ft_peval'; expected 0, have 3 338 | ft_peval(x, i_coefs, degree - 1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:347:47: error: too many arguments to function 'ft_peval'; expected 0, have 3 347 | c_outdata[j + base].cx_real = ft_peval(x, r_coefs, degree - 1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:349:47: error: too many arguments to function 'ft_peval'; expected 0, have 3 349 | c_outdata[j + base].cx_imag = ft_peval(x, i_coefs, degree - 1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:353:9: note: in expansion of macro 'tfree' 353 | tfree(r_coefs); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:354:9: note: in expansion of macro 'tfree' 354 | tfree(i_coefs); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:355:9: note: in expansion of macro 'tfree' 355 | tfree(scale); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:365:17: note: in expansion of macro 'alloc_d' 365 | coefs = alloc_d(n); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:367:19: note: in expansion of macro 'alloc_d' 367 | outdata = alloc_d(length); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftecmath.h:12:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 12 | #define alloc_d(len) ((double *) tmalloc((len) * sizeof (double))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:368:17: note: in expansion of macro 'alloc_d' 368 | scale = alloc_d(length); /* XXX */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:374:22: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 374 | if (!ft_polyfit(scale + i - degree + base, | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:379:17: error: too many arguments to function 'ft_polyderiv'; expected 0, have 2 379 | ft_polyderiv(coefs, degree); | ^~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:283:13: note: declared here 283 | extern void ft_polyderiv( ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:384:41: error: too many arguments to function 'ft_peval'; expected 0, have 3 384 | outdata[j + base] = ft_peval(x, coefs, degree - 1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:391:41: error: too many arguments to function 'ft_peval'; expected 0, have 3 391 | outdata[j + base] = ft_peval(x, coefs, degree - 1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:396:9: note: in expansion of macro 'tfree' 396 | tfree(coefs); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cmath4.c:397:9: note: in expansion of macro 'tfree' 397 | tfree(scale); /* XXX */ | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:14: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:13: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c: In function 'com_compose': /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:48:1: warning: old-style function definition [-Wold-style-definition] 48 | com_compose(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:50:1: error: number of arguments doesn't match prototype 50 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:15: /home/pbulk/work/cad/spice/work/src/include/fteext.h:132:13: error: prototype declaration 132 | extern void com_compose(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:80:15: error: too many arguments to function 'cp_unquote'; expected 0, have 1 80 | resname = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:81:5: error: too many arguments to function 'vec_remove'; expected 0, have 1 81 | vec_remove(resname); | ^~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:470:13: note: declared here 470 | extern void vec_remove(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:86:20: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 86 | if (!(pn = ft_getpnames(wl, true))) | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:90:23: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 90 | if (!(v = ft_evaluate(pn))) | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:100:9: error: too many arguments to function 'free_pnode'; expected 0, have 1 100 | free_pnode(first_pn); | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:140:31: error: too many arguments to function 'tmalloc'; expected 0, have 1 140 | data = (double *) tmalloc(sizeof (double) * length * | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 141 | blocksize); | ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:143:33: error: too many arguments to function 'tmalloc'; expected 0, have 1 143 | cdata = (complex *) tmalloc(sizeof (complex) * length * | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 144 | blocksize); | ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:166:13: error: too many arguments to function 'dimxpand'; expected 0, have 3 166 | dimxpand(v, dims, (realflag ? (data + i * blocksize) : | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:20:13: note: declared here 20 | static void dimxpand(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:220:17: error: too many arguments to function 'cieq'; expected 0, have 2 220 | if (cieq(var, "start")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:222:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 222 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:229:24: error: too many arguments to function 'cieq'; expected 0, have 2 229 | } else if (cieq(var, "stop")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:231:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 231 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:238:24: error: too many arguments to function 'cieq'; expected 0, have 2 238 | } else if (cieq(var, "step")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:240:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 240 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:247:24: error: too many arguments to function 'cieq'; expected 0, have 2 247 | } else if (cieq(var, "center")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:249:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 249 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:256:24: error: too many arguments to function 'cieq'; expected 0, have 2 256 | } else if (cieq(var, "span")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:258:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 258 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:265:24: error: too many arguments to function 'cieq'; expected 0, have 2 265 | } else if (cieq(var, "mean")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:267:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 267 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:274:24: error: too many arguments to function 'cieq'; expected 0, have 2 274 | } else if (cieq(var, "sd")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:276:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 276 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:283:24: error: too many arguments to function 'cieq'; expected 0, have 2 283 | } else if (cieq(var, "lin")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:285:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 285 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:292:24: error: too many arguments to function 'cieq'; expected 0, have 2 292 | } else if (cieq(var, "log")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:294:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 294 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:301:24: error: too many arguments to function 'cieq'; expected 0, have 2 301 | } else if (cieq(var, "dec")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:303:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 303 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:310:24: error: too many arguments to function 'cieq'; expected 0, have 2 310 | } else if (cieq(var, "gauss")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:312:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 312 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:319:24: error: too many arguments to function 'cieq'; expected 0, have 2 319 | } else if (cieq(var, "random")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:321:28: error: too many arguments to function 'ft_numparse'; expected 0, have 2 321 | if (!(td = ft_numparse(&val, false))) { | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:328:24: error: too many arguments to function 'cieq'; expected 0, have 2 328 | } else if (cieq(var, "pool")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:376:31: error: too many arguments to function 'tmalloc'; expected 0, have 1 376 | data = (double *) tmalloc(sizeof (double) * (int) lin); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:424:14: note: in expansion of macro 'alloc' 424 | result = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:426:22: error: too many arguments to function 'copy'; expected 0, have 1 426 | result->v_name = copy(resname); | ^~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:436:5: error: too many arguments to function 'vec_new'; expected 0, have 1 436 | vec_new(result); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:437:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 437 | cp_addkword(CT_VECTOR, result->v_name); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c: In function 'dimxpand': /home/pbulk/work/cad/spice/work/src/lib/fte//compose.c:444:1: warning: old-style function definition [-Wold-style-definition] 444 | dimxpand(v, newdims, data) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c: In function 'ft_cpinit': /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:54:5: error: too many arguments to function 'cp_ccon'; expected 0, have 1 54 | cp_ccon(true); /* So the user can type ahead... */ | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: note: declared here 36 | extern void cp_ccon(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:62:13: error: too many arguments to function 'cp_addcomm'; expected 0, have 5 62 | cp_addcomm(c->co_comname, c->co_cctypes[0], | ^~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:33:13: note: declared here 33 | extern void cp_addcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:65:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 65 | cp_addkword(CT_COMMANDS, c->co_comname); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:69:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 69 | cp_addkword(CT_LISTINGARGS, "deck"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:70:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 70 | cp_addkword(CT_LISTINGARGS, "logical"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:71:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 71 | cp_addkword(CT_LISTINGARGS, "physical"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:72:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 72 | cp_addkword(CT_LISTINGARGS, "expand"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:74:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 74 | cp_addkword(CT_STOPARGS, "when"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:75:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 75 | cp_addkword(CT_STOPARGS, "after"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:78:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 78 | cp_addkword(CT_PLOT, "new"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:80:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 80 | cp_addkword(CT_PLOTKEYWORDS, "xlimit"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:81:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 81 | cp_addkword(CT_PLOTKEYWORDS, "ylimit"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:82:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 82 | cp_addkword(CT_PLOTKEYWORDS, "vs"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:83:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 83 | cp_addkword(CT_PLOTKEYWORDS, "xindices"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:84:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 84 | cp_addkword(CT_PLOTKEYWORDS, "xcompress"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:85:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 85 | cp_addkword(CT_PLOTKEYWORDS, "xdelta"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:86:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 86 | cp_addkword(CT_PLOTKEYWORDS, "ydelta"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:87:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 87 | cp_addkword(CT_PLOTKEYWORDS, "lingrid"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:88:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 88 | cp_addkword(CT_PLOTKEYWORDS, "loglog"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:89:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 89 | cp_addkword(CT_PLOTKEYWORDS, "linear"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:90:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 90 | cp_addkword(CT_PLOTKEYWORDS, "xlog"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:91:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 91 | cp_addkword(CT_PLOTKEYWORDS, "ylog"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:92:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 92 | cp_addkword(CT_PLOTKEYWORDS, "polar"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:93:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 93 | cp_addkword(CT_PLOTKEYWORDS, "smith"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:94:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 94 | cp_addkword(CT_PLOTKEYWORDS, "smithgrid"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:95:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 95 | cp_addkword(CT_PLOTKEYWORDS, "nointerp"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:96:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 96 | cp_addkword(CT_PLOTKEYWORDS, "title"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:97:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 97 | cp_addkword(CT_PLOTKEYWORDS, "xlabel"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:98:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 98 | cp_addkword(CT_PLOTKEYWORDS, "ylabel"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:99:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 99 | cp_addkword(CT_PLOTKEYWORDS, "linplot"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:100:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 100 | cp_addkword(CT_PLOTKEYWORDS, "combplot"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:101:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 101 | cp_addkword(CT_PLOTKEYWORDS, "pointplot"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:103:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 103 | cp_addkword(CT_RUSEARGS, "time"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:104:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 104 | cp_addkword(CT_RUSEARGS, "space"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:105:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 105 | cp_addkword(CT_RUSEARGS, "faults"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:106:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 106 | cp_addkword(CT_RUSEARGS, "elapsed"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:107:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 107 | cp_addkword(CT_RUSEARGS, "totiter"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:108:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 108 | cp_addkword(CT_RUSEARGS, "traniter"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:109:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 109 | cp_addkword(CT_RUSEARGS, "tranpoints"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:110:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 110 | cp_addkword(CT_RUSEARGS, "accept"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:111:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 111 | cp_addkword(CT_RUSEARGS, "rejected"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:112:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 112 | cp_addkword(CT_RUSEARGS, "time"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:113:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 113 | cp_addkword(CT_RUSEARGS, "trantime"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:114:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 114 | cp_addkword(CT_RUSEARGS, "lutime"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:115:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 115 | cp_addkword(CT_RUSEARGS, "solvetime"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:116:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 116 | cp_addkword(CT_RUSEARGS, "transolvetime"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:117:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 117 | cp_addkword(CT_RUSEARGS, "loadtime"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:118:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 118 | cp_addkword(CT_RUSEARGS, "all"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:120:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 120 | cp_addkword(CT_VECTOR, "all"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:123:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 123 | cp_addkword(CT_VARIABLES, *x); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:125:23: error: too many arguments to function 'ft_typenames'; expected 0, have 1 125 | if (!(s = ft_typenames(i))) | ^~~~~~~~~~~~ ~ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:8: /home/pbulk/work/cad/spice/work/src/include/fteext.h:448:14: note: declared here 448 | extern char *ft_typenames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:127:13: error: too many arguments to function 'cp_addkword'; expected 0, have 2 127 | cp_addkword(CT_TYPENAMES, s); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:131:5: error: too many arguments to function 'cp_vset'; expected 0, have 3 131 | cp_vset("program", VT_STRING, cp_program); | ^~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:151:5: error: too many arguments to function 'cp_vset'; expected 0, have 3 151 | cp_vset("prompt", VT_STRING, buf); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:152:5: error: too many arguments to function 'cp_vset'; expected 0, have 3 152 | cp_vset("noglob", VT_BOOL, (char *) &t); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:163:5: error: too many arguments to function 'cp_setalias'; expected 0, have 2 163 | cp_setalias("begin", &wl1); | ^~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: note: declared here 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:166:5: error: too many arguments to function 'cp_setalias'; expected 0, have 2 166 | cp_setalias("endif", &wl1); | ^~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: note: declared here 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:167:5: error: too many arguments to function 'cp_setalias'; expected 0, have 2 167 | cp_setalias("endwhile", &wl1); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: note: declared here 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:168:5: error: too many arguments to function 'cp_setalias'; expected 0, have 2 168 | cp_setalias("endforeach", &wl1); | ^~~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: note: declared here 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:169:5: error: too many arguments to function 'cp_setalias'; expected 0, have 2 169 | cp_setalias("endrepeat", &wl1); | ^~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: note: declared here 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:170:5: error: too many arguments to function 'cp_setalias'; expected 0, have 2 170 | cp_setalias("enddowhile", &wl1); | ^~~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: note: declared here 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:172:5: error: too many arguments to function 'cp_setalias'; expected 0, have 2 172 | cp_setalias("?", &wl1); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:19:13: note: declared here 19 | extern void cp_setalias(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:183:9: error: too many arguments to function 'com_let'; expected 0, have 1 183 | com_let(&wl1); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:362:13: note: declared here 362 | extern void com_let(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:190:9: error: too many arguments to function 'com_define'; expected 0, have 1 190 | com_define(&wl1); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:144:13: note: declared here 144 | extern void com_define(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:198:24: error: too many arguments to function 'cp_lexer'; expected 0, have 1 198 | wl = cp_doglob(cp_lexer(buf)); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:198:14: error: too many arguments to function 'cp_doglob'; expected 0, have 1 198 | wl = cp_doglob(cp_lexer(buf)); | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:87:18: note: declared here 87 | extern wordlist *cp_doglob(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:199:9: error: too many arguments to function 'cp_striplist'; expected 0, have 1 199 | cp_striplist(wl); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:134:13: note: declared here 134 | extern void cp_striplist(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:200:9: error: too many arguments to function 'com_set'; expected 0, have 1 200 | com_set(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:157:13: note: declared here 157 | extern void com_set(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:204:18: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 204 | for (s = cp_tildexpand(Lib_Path); s && *s; ) { | ^~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: note: declared here 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:213:17: error: too many arguments to function 'inp_spsource'; expected 0, have 3 213 | inp_spsource(fp, true, buf); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:266:13: note: declared here 266 | extern void inp_spsource(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c: In function 'cp_istrue': /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:233:1: warning: old-style function definition [-Wold-style-definition] 233 | cp_istrue(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:235:1: error: number of arguments doesn't match prototype 235 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:172:13: error: prototype declaration 172 | extern bool cp_istrue(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:242:10: error: too many arguments to function 'wl_copy'; expected 0, have 1 242 | wl = wl_copy(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:243:10: error: too many arguments to function 'cp_variablesubst'; expected 0, have 1 243 | wl = cp_variablesubst(wl); | ^~~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:163:18: note: declared here 163 | extern wordlist *cp_variablesubst(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:244:10: error: too many arguments to function 'cp_bquote'; expected 0, have 1 244 | wl = cp_bquote(wl); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:26:18: note: declared here 26 | extern wordlist *cp_bquote(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:245:5: error: too many arguments to function 'cp_striplist'; expected 0, have 1 245 | cp_striplist(wl); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:134:13: note: declared here 134 | extern void cp_striplist(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:247:10: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 247 | pn = ft_getpnames(wl, true); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:248:9: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 248 | v = ft_evaluate(pn); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:249:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 249 | free_pnode(pn); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c: In function 'cp_doquit': /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:283:5: error: too many arguments to function 'com_quit'; expected 0, have 1 283 | com_quit((wordlist *) NULL); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:305:13: note: declared here 305 | extern void com_quit(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c: In function 'cp_oddcomm': /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:293:1: warning: old-style function definition [-Wold-style-definition] 293 | cp_oddcomm(s, wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:296:1: error: number of arguments doesn't match prototype 296 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:173:13: error: prototype declaration 173 | extern bool cp_oddcomm(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:301:14: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 301 | if (fp = inp_pathopen(s, "r")) { | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:303:52: error: too many arguments to function 'wl_length'; expected 0, have 1 303 | (void) sprintf(buf, "argc = %d argv = ( ", wl_length(wl)); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:62:12: note: declared here 62 | extern int wl_length(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:310:17: error: too many arguments to function 'cp_lexer'; expected 0, have 1 310 | com_set(cp_lexer(buf)); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:310:9: error: too many arguments to function 'com_set'; expected 0, have 1 310 | com_set(cp_lexer(buf)); | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:157:13: note: declared here 157 | extern void com_set(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:311:9: error: too many arguments to function 'inp_source'; expected 0, have 1 311 | inp_source(s); | ^~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:265:13: note: declared here 265 | extern void inp_source(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:312:9: error: too many arguments to function 'cp_remvar'; expected 0, have 1 312 | cp_remvar("argc"); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:160:13: note: declared here 160 | extern void cp_remvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:313:9: error: too many arguments to function 'cp_remvar'; expected 0, have 1 313 | cp_remvar("argv"); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:160:13: note: declared here 160 | extern void cp_remvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//cpitf.c:320:9: error: too many arguments to function 'com_let'; expected 0, have 1 320 | com_let(&ww); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:362:13: note: declared here 362 | extern void com_let(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c: In function 'com_state': /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | com_state(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c:22:1: error: number of arguments doesn't match prototype 22 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:139:13: error: prototype declaration 139 | extern void com_state(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c: In function 'com_dump': /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c:41:1: warning: old-style function definition [-Wold-style-definition] 41 | com_dump(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c:43:1: error: number of arguments doesn't match prototype 43 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:138:13: error: prototype declaration 138 | extern void com_dump(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//debugcom.c:48:5: error: too many arguments to function 'if_dump'; expected 0, have 2 48 | if_dump(ft_curckt->ci_ckt, cp_out); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:431:13: note: declared here 431 | extern void if_dump(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//define.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:20: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:19: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'com_define': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:38:1: warning: old-style function definition [-Wold-style-definition] 38 | com_define(wlist) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:40:1: error: number of arguments doesn't match prototype 40 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:21: /home/pbulk/work/cad/spice/work/src/include/fteext.h:144:13: error: prototype declaration 144 | extern void com_define(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:49:9: error: too many arguments to function 'prdefs'; expected 0, have 1 49 | prdefs((char *) NULL); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:28:13: note: declared here 28 | static void prdefs(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:69:27: error: too many arguments to function 'copy'; expected 0, have 1 69 | wl->wl_word = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:76:9: error: too many arguments to function 'prdefs'; expected 0, have 1 76 | prdefs(buf); | ^~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:28:13: note: declared here 28 | static void prdefs(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:99:16: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 99 | if (!(pn = ft_getpnames(wl, false))) | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:107:5: error: too many arguments to function 'savetree'; expected 0, have 1 107 | savetree(pn); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:31:13: note: declared here 31 | static void savetree(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:110:9: error: too many arguments to function 'copy'; expected 0, have 1 110 | b = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:124:13: error: too many arguments to function 'prefix'; expected 0, have 2 124 | if (prefix(b, udf->ud_name) && (arity == udf->ud_arity)) | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:127:15: note: in expansion of macro 'alloc' 127 | udf = alloc(struct udfunc); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:139:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 139 | cp_addkword(CT_UDFUNCS, b); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'savetree': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:146:1: warning: old-style function definition [-Wold-style-definition] 146 | savetree(pn) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:157:28: note: in expansion of macro 'alloc' 157 | pn->pn_value = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:159:36: error: too many arguments to function 'copy'; expected 0, have 1 159 | pn->pn_value->v_name = copy(d->v_name); | ^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:166:21: error: too many arguments to function 'tmalloc'; expected 0, have 1 166 | tmalloc(sizeof (double) * d->v_length); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:172:21: error: too many arguments to function 'tmalloc'; expected 0, have 1 172 | tmalloc(sizeof (complex) * d->v_length); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:179:9: error: too many arguments to function 'savetree'; expected 0, have 1 179 | savetree(pn->pn_left); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:146:1: note: declared here 146 | savetree(pn) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:181:13: error: too many arguments to function 'savetree'; expected 0, have 1 181 | savetree(pn->pn_right); | ^~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:146:1: note: declared here 146 | savetree(pn) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:183:9: error: too many arguments to function 'savetree'; expected 0, have 1 183 | savetree(pn->pn_left); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:146:1: note: declared here 146 | savetree(pn) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'prdefs': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:191:1: warning: old-style function definition [-Wold-style-definition] 191 | prdefs(name) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:205:17: error: too many arguments to function 'prtree'; expected 0, have 1 205 | prtree(udf); | ^~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:29:13: note: declared here 29 | static void prtree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:208:13: error: too many arguments to function 'prtree'; expected 0, have 1 208 | prtree(udf); | ^~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:29:13: note: declared here 29 | static void prtree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'prtree': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:215:1: warning: old-style function definition [-Wold-style-definition] 215 | prtree(ud) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:236:5: error: too many arguments to function 'prtree1'; expected 0, have 2 236 | prtree1(ud->ud_text, cp_out); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:30:13: note: declared here 30 | static void prtree1(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'prtree1': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:242:1: warning: old-style function definition [-Wold-style-definition] 242 | prtree1(pn, fp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:250:9: error: too many arguments to function 'prtree1'; expected 0, have 2 250 | prtree1(pn->pn_left, fp); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:242:1: note: declared here 242 | prtree1(pn, fp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:254:9: error: too many arguments to function 'prtree1'; expected 0, have 2 254 | prtree1(pn->pn_left, fp); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:242:1: note: declared here 242 | prtree1(pn, fp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:256:9: error: too many arguments to function 'prtree1'; expected 0, have 2 256 | prtree1(pn->pn_right, fp); | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:242:1: note: declared here 242 | prtree1(pn, fp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:260:9: error: too many arguments to function 'prtree1'; expected 0, have 2 260 | prtree1(pn->pn_left, fp); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:242:1: note: declared here 242 | prtree1(pn, fp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'ft_substdef': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:268:1: warning: old-style function definition [-Wold-style-definition] 268 | ft_substdef(name, args) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:271:1: error: number of arguments doesn't match prototype 271 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:143:22: error: prototype declaration 143 | extern struct pnode *ft_substdef(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:306:13: error: too many arguments to function 'trcopy'; expected 0, have 3 306 | return (trcopy(udf->ud_text, s, args)); | ^~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:27:22: note: declared here 27 | static struct pnode *trcopy(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'trcopy': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:316:1: warning: old-style function definition [-Wold-style-definition] 316 | trcopy(tree, args, nn) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:343:25: error: too many arguments to function 'ntharg'; expected 0, have 2 343 | return (ntharg(i, nn)); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:26:22: note: declared here 26 | static struct pnode *ntharg(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:351:16: note: in expansion of macro 'alloc' 351 | func = alloc(struct func); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:352:25: error: too many arguments to function 'copy'; expected 0, have 1 352 | func->fu_name = copy(tree->pn_func->fu_name); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:355:14: note: in expansion of macro 'alloc' 355 | pn = alloc(struct pnode); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:359:23: error: too many arguments to function 'trcopy'; expected 0, have 3 359 | pn->pn_left = trcopy(tree->pn_left, args, nn); | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:316:1: note: declared here 316 | trcopy(tree, args, nn) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:366:14: note: in expansion of macro 'alloc' 366 | op = alloc(struct op); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:370:23: error: too many arguments to function 'copy'; expected 0, have 1 370 | op->op_name = copy(tree->pn_op->op_name); | ^~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:372:14: note: in expansion of macro 'alloc' 372 | pn = alloc(struct pnode); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:376:23: error: too many arguments to function 'trcopy'; expected 0, have 3 376 | pn->pn_left = trcopy(tree->pn_left, args, nn); | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:316:1: note: declared here 316 | trcopy(tree, args, nn) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:378:28: error: too many arguments to function 'trcopy'; expected 0, have 3 378 | pn->pn_right = trcopy(tree->pn_right, args, nn); | ^~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:316:1: note: declared here 316 | trcopy(tree, args, nn) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'ntharg': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:396:1: warning: old-style function definition [-Wold-style-definition] 396 | ntharg(num, args) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'com_undefine': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:419:1: warning: old-style function definition [-Wold-style-definition] 419 | com_undefine(wlist) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:421:1: error: number of arguments doesn't match prototype 421 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:145:13: error: prototype declaration 145 | extern void com_undefine(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:437:17: error: too many arguments to function 'cp_remkword'; expected 0, have 2 437 | cp_remkword(CT_UDFUNCS, wlist->wl_word); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:39:13: note: declared here 39 | extern void cp_remkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c: In function 'ft_pnode': /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:453:1: warning: old-style function definition [-Wold-style-definition] 453 | ft_pnode(pn) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:455:1: error: number of arguments doesn't match prototype 455 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:146:13: error: prototype declaration 146 | extern void ft_pnode(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:456:5: error: too many arguments to function 'prtree1'; expected 0, have 2 456 | prtree1(pn, cp_err); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//define.c:242:1: note: declared here 242 | prtree1(pn, fp) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//device.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/smpdefs.h:13, from /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:12: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'com_showmod': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:41:1: warning: old-style function definition [-Wold-style-definition] 41 | com_showmod(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:43:1: error: number of arguments doesn't match prototype 43 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:151:13: error: prototype declaration 151 | extern void com_showmod(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:44:5: error: too many arguments to function 'all_show'; expected 0, have 2 44 | all_show(wl, 1); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:36:13: note: declared here 36 | static void all_show( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'com_show': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:48:1: warning: old-style function definition [-Wold-style-definition] 48 | com_show(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:50:1: error: number of arguments doesn't match prototype 50 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:150:13: error: prototype declaration 150 | extern void com_show(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:51:5: error: too many arguments to function 'all_show'; expected 0, have 2 51 | all_show(wl, 0); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:36:13: note: declared here 36 | static void all_show( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'all_show': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:55:1: warning: old-style function definition [-Wold-style-definition] 55 | all_show(wl, mode) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:73:9: error: too many arguments to function 'old_show'; expected 0, have 1 73 | old_show(wl->wl_next); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:35:9: note: declared here 35 | void old_show( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:77:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 77 | if (!cp_getvar("width", VT_NUM, (char *) &screen_width)) | ^~~~~~~~~ ~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:126:17: note: in expansion of macro 'tfree' 126 | tfree(w->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:127:17: note: in expansion of macro 'tfree' 127 | tfree(w); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:130:17: note: in expansion of macro 'tfree' 130 | tfree(w->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:131:17: note: in expansion of macro 'tfree' 131 | tfree(w); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:147:21: note: in expansion of macro 'tfree' 147 | tfree(w->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:148:21: note: in expansion of macro 'tfree' 148 | tfree(w); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:158:19: error: too many arguments to function 'dgen_init'; expected 0, have 5 158 | for (dg = dgen_init(ft_curckt->ci_ckt, thisgroup, 1, dev_flag, mode); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:15: /home/pbulk/work/cad/spice/work/src/include/dgen.h:26:18: note: declared here 26 | extern dgen *dgen_init( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'printstr': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:235:1: warning: old-style function definition [-Wold-style-definition] 235 | printstr(dg, name) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:238:1: error: number of arguments doesn't match prototype 238 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:30:9: error: prototype declaration 30 | int printstr( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:243:28: warning: trigraph '??>' ignored, use '-trigraphs' to enable [-Wtrigraphs] 243 | printf(" "); /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:248:28: warning: trigraph '??>' ignored, use '-trigraphs' to enable [-Wtrigraphs] 248 | printf(" "); /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'param_forall': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:255:1: warning: old-style function definition [-Wold-style-definition] 255 | param_forall(dg, flags) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'listparam': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:297:1: warning: old-style function definition [-Wold-style-definition] 297 | listparam(p, dg) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:300:1: error: number of arguments doesn't match prototype 300 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:31:9: error: prototype declaration 31 | int listparam( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:27:20: error: too many arguments to function 'cieq'; expected 0, have 2 27 | #define eqc(a,b) (cieq((a), (b))) | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:316:13: note: in expansion of macro 'eqc' 316 | if (eqc(p->wl_word, plist[i].keyword) && (plist[i].dataType & IF_ASK)) | ^~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'bogus1': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:363:1: warning: old-style function definition [-Wold-style-definition] 363 | bogus1(dg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:365:1: error: number of arguments doesn't match prototype 365 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:33:9: error: prototype declaration 33 | int bogus1( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'bogus2': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:370:1: warning: old-style function definition [-Wold-style-definition] 370 | bogus2(dg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:372:1: error: number of arguments doesn't match prototype 372 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:34:9: error: prototype declaration 34 | int bogus2( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'printvals': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:378:1: warning: old-style function definition [-Wold-style-definition] 378 | printvals(dg, p, i) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:382:1: error: number of arguments doesn't match prototype 382 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:32:9: error: prototype declaration 32 | int printvals( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'old_show': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:478:1: warning: old-style function definition [-Wold-style-definition] 478 | old_show(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:480:1: error: number of arguments doesn't match prototype 480 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:35:9: error: prototype declaration 35 | void old_show( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:500:9: error: too many arguments to function 'inp_casefix'; expected 0, have 1 500 | inp_casefix(devs->wl_word); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: note: declared here 267 | extern void inp_casefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:501:28: error: too many arguments to function 'devexpand'; expected 0, have 1 501 | tw = wl_append(tw, devexpand(devs->wl_word)); | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:18:18: note: declared here 18 | static wordlist *devexpand(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:501:14: error: too many arguments to function 'wl_append'; expected 0, have 2 501 | tw = wl_append(tw, devexpand(devs->wl_word)); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:66:18: note: declared here 66 | extern wordlist *wl_append(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:513:16: error: too many arguments to function 'cp_cctowl'; expected 0, have 1 513 | devs = cp_cctowl(ft_curckt->ci_devices); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:40:18: note: declared here 40 | extern wordlist *cp_cctowl(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:518:9: error: too many arguments to function 'out_printf'; expected 0, have 2 518 | out_printf("%s:\n", devs->wl_word); | ^~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:521:22: error: too many arguments to function 'copy'; expected 0, have 1 521 | nn = copy(devs->wl_word); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:522:22: error: too many arguments to function 'if_getparam'; expected 0, have 5 522 | v = (*if_getparam)(ft_curckt->ci_ckt, | ~^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:525:26: error: too many arguments to function 'if_getparam'; expected 0, have 5 525 | v = (*if_getparam)(ft_curckt->ci_ckt, | ~^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:528:21: error: too many arguments to function 'out_printf'; expected 0, have 2 528 | out_printf("\t%s =", tw->wl_word); | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:529:31: error: too many arguments to function 'cp_varwl'; expected 0, have 1 529 | for (ww = cp_varwl(v); ww; ww = | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:164:18: note: declared here 164 | extern wordlist *cp_varwl(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:531:25: error: too many arguments to function 'out_printf'; expected 0, have 2 531 | out_printf(" %s", ww->wl_word); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:532:21: error: too many arguments to function 'out_send'; expected 0, have 1 532 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:536:18: error: too many arguments to function 'copy'; expected 0, have 1 536 | nn = copy(devs->wl_word); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:537:18: error: too many arguments to function 'if_getparam'; expected 0, have 5 537 | v = (*if_getparam)(ft_curckt->ci_ckt, &nn, "all", 0, 0); | ~^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:539:22: error: too many arguments to function 'if_getparam'; expected 0, have 5 539 | v = (*if_getparam)(ft_curckt->ci_ckt, &nn, "all", 0, 1); | ~^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:541:17: error: too many arguments to function 'out_printf'; expected 0, have 2 541 | out_printf("\t%s =", v->va_name); | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:542:27: error: too many arguments to function 'cp_varwl'; expected 0, have 1 542 | for (ww = cp_varwl(v); ww; ww = ww->wl_next) | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:164:18: note: declared here 164 | extern wordlist *cp_varwl(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:543:21: error: too many arguments to function 'out_printf'; expected 0, have 2 543 | out_printf(" %s", ww->wl_word); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:544:17: error: too many arguments to function 'out_send'; expected 0, have 1 544 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'com_alter': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:562:1: warning: old-style function definition [-Wold-style-definition] 562 | com_alter(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:564:1: error: number of arguments doesn't match prototype 564 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:152:13: error: prototype declaration 152 | extern void com_alter(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'com_altermod': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:574:1: warning: old-style function definition [-Wold-style-definition] 574 | com_altermod(wl) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'com_alter_common': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:596:13: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 596 | names = ft_getpnames(wl, false); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:615:9: error: too many arguments to function 'free_pnode'; expected 0, have 1 615 | free_pnode(names); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:626:9: error: too many arguments to function 'free_pnode'; expected 0, have 1 626 | free_pnode(names); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:636:9: error: too many arguments to function 'free_pnode'; expected 0, have 1 636 | free_pnode(names); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:662:10: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 662 | dv = ft_evaluate(n2->pn_right); | ^~~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:663:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 663 | free_pnode(names); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:671:5: error: too many arguments to function 'if_setparam'; expected 0, have 5 671 | if_setparam(ft_curckt->ci_ckt, &dev, param, dv, do_model); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:434:13: note: declared here 434 | extern void if_setparam(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:673:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 673 | free_pnode(names); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c: In function 'devexpand': /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:755:1: warning: old-style function definition [-Wold-style-definition] 755 | devexpand(name) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:761:19: error: too many arguments to function 'cp_cctowl'; expected 0, have 1 761 | devices = cp_cctowl(ft_curckt->ci_devices); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:40:18: note: declared here 40 | extern wordlist *cp_cctowl(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:763:17: error: too many arguments to function 'cp_globmatch'; expected 0, have 2 763 | if (cp_globmatch(name, devices->wl_word)) { | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:77:13: note: declared here 77 | extern bool cp_globmatch(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:764:22: note: in expansion of macro 'alloc' 764 | tw = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:774:14: error: too many arguments to function 'cp_cctowl'; expected 0, have 1 774 | wl = cp_cctowl(ft_curckt->ci_devices); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:40:18: note: declared here 40 | extern wordlist *cp_cctowl(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:776:14: note: in expansion of macro 'alloc' 776 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//device.c:779:5: error: too many arguments to function 'wl_sort'; expected 0, have 1 779 | wl_sort(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:65:13: note: declared here 65 | extern void wl_sort(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c: In function 'nameeq': /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | nameeq(n1, n2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c: In function 'com_diff': /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:47:1: warning: old-style function definition [-Wold-style-definition] 47 | com_diff(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:49:1: error: number of arguments doesn't match prototype 49 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:156:13: error: prototype declaration 156 | extern void com_diff(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:58:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 58 | if (!cp_getvar("diff_vntol", VT_REAL, (char *) &vntol)) | ^~~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:60:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 60 | if (!cp_getvar("diff_abstol", VT_REAL, (char *) &abstol)) | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:62:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 62 | if (!cp_getvar("diff_reltol", VT_REAL, (char *) &reltol)) | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:211:25: error: too many arguments to function 'printnum'; expected 0, have 1 211 | printnum(d1)); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:215:25: error: too many arguments to function 'printnum'; expected 0, have 1 215 | printnum(d2)); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:231:30: error: too many arguments to function 'printnum'; expected 0, have 1 231 | copy(printnum(realpart(&c1))), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:231:25: error: too many arguments to function 'copy'; expected 0, have 1 231 | copy(printnum(realpart(&c1))), | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:232:30: error: too many arguments to function 'printnum'; expected 0, have 1 232 | copy(printnum(imagpart(&c1))), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:232:25: error: too many arguments to function 'copy'; expected 0, have 1 232 | copy(printnum(imagpart(&c1))), | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:234:30: error: too many arguments to function 'printnum'; expected 0, have 1 234 | copy(printnum(realpart(&c2))), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:234:25: error: too many arguments to function 'copy'; expected 0, have 1 234 | copy(printnum(realpart(&c2))), | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:235:30: error: too many arguments to function 'printnum'; expected 0, have 1 235 | copy(printnum(imagpart(&c2)))); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//diff.c:235:25: error: too many arguments to function 'copy'; expected 0, have 1 235 | copy(printnum(imagpart(&c2)))); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//display.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:6: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'FindDev': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:141:13: warning: old-style function definition [-Wold-style-definition] 141 | DISPDEVICE *FindDev(name) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'DevInit': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:173:30: error: too many arguments to function 'cp_getvar'; expected 0, have 3 173 | if (getenv("DISPLAY") || cp_getvar("display", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118, from /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:9: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'NewViewport': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:209:1: warning: old-style function definition [-Wold-style-definition] 209 | NewViewport(pgraph) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:213:13: error: too many arguments to function 'dispdev->NewViewport'; expected 0, have 1 213 | return (*(dispdev->NewViewport))(pgraph); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:7: /home/pbulk/work/cad/spice/work/src/include/ftedev.h:18:11: note: declared here 18 | int (*NewViewport)(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'DrawLine': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:231:1: warning: old-style function definition [-Wold-style-definition] 231 | DrawLine(x1, y1, x2, y2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:234:6: error: too many arguments to function 'dispdev->DrawLine'; expected 0, have 4 234 | (*(dispdev->DrawLine))(x1, y1, x2, y2); | ~^~~~~~~~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:21:11: note: declared here 21 | int (*DrawLine)(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'Arc': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:238:1: warning: old-style function definition [-Wold-style-definition] 238 | Arc(x0, y0, radius, theta1, theta2) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:243:6: error: too many arguments to function 'dispdev->Arc'; expected 0, have 5 243 | (*(dispdev->Arc))(x0, y0, radius, theta1, theta2); | ~^~~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:22:11: note: declared here 22 | int (*Arc)(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'Text': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:247:1: warning: old-style function definition [-Wold-style-definition] 247 | Text(text, x, y) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:252:6: error: too many arguments to function 'dispdev->Text'; expected 0, have 3 252 | (*(dispdev->Text))(text, x, y); | ~^~~~~~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:23:11: note: declared here 23 | int (*Text)(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'DefineColor': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:256:1: warning: old-style function definition [-Wold-style-definition] 256 | DefineColor(colorid, red, green, blue) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:261:6: error: too many arguments to function 'dispdev->DefineColor'; expected 0, have 4 261 | (*(dispdev->DefineColor))(colorid, red, green, blue); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:24:11: note: declared here 24 | int (*DefineColor)(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'DefineLinestyle': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:265:1: warning: old-style function definition [-Wold-style-definition] 265 | DefineLinestyle(linestyleid, mask) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:270:6: error: too many arguments to function 'dispdev->DefineLinestyle'; expected 0, have 2 270 | (*(dispdev->DefineLinestyle))(linestyleid, mask); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:25:11: note: declared here 25 | int (*DefineLinestyle)(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'SetLinestyle': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:274:1: warning: old-style function definition [-Wold-style-definition] 274 | SetLinestyle(linestyleid) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:278:6: error: too many arguments to function 'dispdev->SetLinestyle'; expected 0, have 1 278 | (*(dispdev->SetLinestyle))(linestyleid); | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:26:11: note: declared here 26 | int (*SetLinestyle)(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'SetColor': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:282:1: warning: old-style function definition [-Wold-style-definition] 282 | SetColor(colorid) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:286:6: error: too many arguments to function 'dispdev->SetColor'; expected 0, have 1 286 | (*(dispdev->SetColor))(colorid); | ~^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:27:11: note: declared here 27 | int (*SetColor)(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'gen_DatatoScreen': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:301:1: warning: old-style function definition [-Wold-style-definition] 301 | gen_DatatoScreen(graph, x, y, screenx, screeny) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'DatatoScreen': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:342:1: warning: old-style function definition [-Wold-style-definition] 342 | DatatoScreen(graph, x, y, screenx, screeny) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:348:6: error: too many arguments to function 'dispdev->DatatoScreen'; expected 0, have 5 348 | (*(dispdev->DatatoScreen))(graph, x, y, screenx, screeny); | ~^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:34:11: note: declared here 34 | int (*DatatoScreen)(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'Input': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:365:1: warning: old-style function definition [-Wold-style-definition] 365 | Input(request, response) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:370:6: error: too many arguments to function 'dispdev->Input'; expected 0, have 2 370 | (*(dispdev->Input))(request, response); | ~^~~~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedev.h:33:11: note: declared here 33 | int (*Input)(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'gen_Input': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:375:1: warning: old-style function definition [-Wold-style-definition] 375 | gen_Input(request, response) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:382:30: error: too many arguments to function 'inchar'; expected 0, have 1 382 | response->reply.ch = inchar(request->fp); | ^~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:111:12: note: declared here 111 | extern int inchar(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'SaveText': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:411:1: warning: old-style function definition [-Wold-style-definition] 411 | SaveText(graph, text, x, y) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:428:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 428 | keyed->text = tmalloc(strlen(text) + 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//display.c: In function 'DevSwitch': /home/pbulk/work/cad/spice/work/src/lib/fte//display.c:440:1: warning: old-style function definition [-Wold-style-definition] 440 | DevSwitch(devname) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/include/fteinput.h:25, from /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/fteinput.h:24: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'com_asciiplot': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:40:1: warning: old-style function definition [-Wold-style-definition] 40 | com_asciiplot(wl) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:42:1: error: number of arguments doesn't match prototype 42 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:15: /home/pbulk/work/cad/spice/work/src/include/fteext.h:160:13: error: prototype declaration 160 | extern void com_asciiplot(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:43:12: error: too many arguments to function 'plotit'; expected 0, have 3 43 | (void) plotit(wl, (char *) NULL, "lpr"); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:27:13: note: declared here 27 | static bool plotit(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'com_xgraph': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:51:1: warning: old-style function definition [-Wold-style-definition] 51 | com_xgraph(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:53:1: error: number of arguments doesn't match prototype 53 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:163:13: error: prototype declaration 163 | extern void com_xgraph(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:67:9: error: too many arguments to function 'cieq'; expected 0, have 2 67 | if (cieq(fname, "temp") || cieq(fname, "tmp")) { | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:67:32: error: too many arguments to function 'cieq'; expected 0, have 2 67 | if (cieq(fname, "temp") || cieq(fname, "tmp")) { | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:68:17: error: too many arguments to function 'smktemp'; expected 0, have 1 68 | fname = smktemp("xg"); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:72:12: error: too many arguments to function 'plotit'; expected 0, have 3 72 | (void) plotit(wl, fname, "xgraph"); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:27:13: note: declared here 27 | static bool plotit(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'com_hardcopy': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:92:1: warning: old-style function definition [-Wold-style-definition] 92 | com_hardcopy(wl) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:94:1: error: number of arguments doesn't match prototype 94 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:161:13: error: prototype declaration 161 | extern void com_hardcopy(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:106:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 106 | if (!cp_getvar("hcopydev", VT_STRING, device)) | ^~~~~~~~~ ~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118, from /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:13: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:115:17: error: too many arguments to function 'smktemp'; expected 0, have 1 115 | fname = smktemp("hc"); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:119:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 119 | if (!cp_getvar("hcopydevtype", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:144:25: error: too many arguments to function 'CopyGraph'; expected 0, have 1 144 | tempgraph = CopyGraph(response.reply.graph); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:12: /home/pbulk/work/cad/spice/work/src/include/ftedbgra.h:18:15: note: declared here 18 | extern GRAPH *CopyGraph(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:164:13: error: too many arguments to function 'outmenuprompt'; expected 0, have 1 164 | outmenuprompt("which variable ? "); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:32:13: note: declared here 32 | extern void outmenuprompt(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:165:25: error: too many arguments to function 'prompt'; expected 0, have 1 165 | if ((buf2 = prompt(cp_in)) == (char *) -1) /* XXXX Sick */ | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:95:18: note: declared here 95 | char *buf2, *prompt( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:167:18: note: in expansion of macro 'alloc' 167 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:170:18: error: too many arguments to function 'process'; expected 0, have 1 170 | wl = process(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:96:15: note: declared here 96 | wordlist *process( ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:179:21: error: too many arguments to function 'plotit'; expected 0, have 3 179 | if (!wl || !plotit(wl, fname, (char *) NULL)) { | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:27:13: note: declared here 27 | static bool plotit(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:195:14: error: too many arguments to function 'cp_getvar'; expected 0, have 3 195 | if (!cp_getvar("lprplot5", VT_STRING, format)) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:206:14: error: too many arguments to function 'cp_getvar'; expected 0, have 3 206 | if (!cp_getvar("lprps", VT_STRING, format)) | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'com_plot': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:245:1: warning: old-style function definition [-Wold-style-definition] 245 | com_plot(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:247:1: error: number of arguments doesn't match prototype 247 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:162:13: error: prototype declaration 162 | extern void com_plot(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:248:12: error: too many arguments to function 'plotit'; expected 0, have 3 248 | (void) plotit(wl, (char *) NULL, (char *) NULL); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:27:13: note: declared here 27 | static bool plotit(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'plotit': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:259:1: warning: old-style function definition [-Wold-style-definition] 259 | plotit(wl, hcopy, devname) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:293:11: error: too many arguments to function 'wl_copy'; expected 0, have 1 293 | wwl = wl_copy(wl); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:68:18: note: declared here 68 | extern wordlist *wl_copy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:294:12: error: too many arguments to function 'getlims'; expected 0, have 3 294 | (void) getlims(wwl, "xl", 2); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:295:12: error: too many arguments to function 'getlims'; expected 0, have 3 295 | (void) getlims(wwl, "xlimit", 2); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:296:12: error: too many arguments to function 'getlims'; expected 0, have 3 296 | (void) getlims(wwl, "yl", 2); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:297:12: error: too many arguments to function 'getlims'; expected 0, have 3 297 | (void) getlims(wwl, "ylimit", 2); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:298:38: error: too many arguments to function 'wl_flatten'; expected 0, have 1 298 | (void) sprintf(cline, "plot %s", wl_flatten(wwl)); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:300:5: error: too many arguments to function 'wl_free'; expected 0, have 1 300 | wl_free(wwl); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:307:10: note: in expansion of macro 'alloc' 307 | tw = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:313:16: error: too many arguments to function 'getflag'; expected 0, have 2 313 | sameflag = getflag(wl, "samep"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:316:16: error: too many arguments to function 'getlims'; expected 0, have 3 316 | xlim = getlims(wl, "xl", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:318:20: error: too many arguments to function 'getlims'; expected 0, have 3 318 | xlim = getlims(wl, "xlimit", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:320:16: error: too many arguments to function 'getlims'; expected 0, have 3 320 | (void) getlims(wl, "xl", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:321:16: error: too many arguments to function 'getlims'; expected 0, have 3 321 | (void) getlims(wl, "xlimit", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:325:16: error: too many arguments to function 'getlims'; expected 0, have 3 325 | ylim = getlims(wl, "yl", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:327:20: error: too many arguments to function 'getlims'; expected 0, have 3 327 | ylim = getlims(wl, "ylimit", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:329:16: error: too many arguments to function 'getlims'; expected 0, have 3 329 | (void) getlims(wl, "yl", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:330:16: error: too many arguments to function 'getlims'; expected 0, have 3 330 | (void) getlims(wl, "ylimit", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:334:21: error: too many arguments to function 'getlims'; expected 0, have 3 334 | xcompress = getlims(wl, "xcompress", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:336:25: error: too many arguments to function 'getlims'; expected 0, have 3 336 | xcompress = getlims(wl, "xcomp", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:338:16: error: too many arguments to function 'getlims'; expected 0, have 3 338 | (void) getlims(wl, "xcompress", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:339:16: error: too many arguments to function 'getlims'; expected 0, have 3 339 | (void) getlims(wl, "xcomp", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:343:20: error: too many arguments to function 'getlims'; expected 0, have 3 343 | xindices = getlims(wl, "xindices", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:345:24: error: too many arguments to function 'getlims'; expected 0, have 3 345 | xindices = getlims(wl, "xind", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:347:16: error: too many arguments to function 'getlims'; expected 0, have 3 347 | (void) getlims(wl, "xindices", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:348:16: error: too many arguments to function 'getlims'; expected 0, have 3 348 | (void) getlims(wl, "xind", 2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:352:18: error: too many arguments to function 'getlims'; expected 0, have 3 352 | xdelta = getlims(wl, "xdelta", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:354:22: error: too many arguments to function 'getlims'; expected 0, have 3 354 | xdelta = getlims(wl, "xdel", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:356:16: error: too many arguments to function 'getlims'; expected 0, have 3 356 | (void) getlims(wl, "xdelta", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:357:16: error: too many arguments to function 'getlims'; expected 0, have 3 357 | (void) getlims(wl, "xdel", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:360:18: error: too many arguments to function 'getlims'; expected 0, have 3 360 | ydelta = getlims(wl, "ydelta", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:362:22: error: too many arguments to function 'getlims'; expected 0, have 3 362 | ydelta = getlims(wl, "ydel", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:364:16: error: too many arguments to function 'getlims'; expected 0, have 3 364 | (void) getlims(wl, "ydelta", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:365:16: error: too many arguments to function 'getlims'; expected 0, have 3 365 | (void) getlims(wl, "ydel", 1); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:24:16: note: declared here 24 | static double *getlims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:371:9: error: too many arguments to function 'getflag'; expected 0, have 2 371 | if (getflag(wl, "lingrid")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:380:9: error: too many arguments to function 'getflag'; expected 0, have 2 380 | if (getflag(wl, "loglog")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:389:9: error: too many arguments to function 'getflag'; expected 0, have 2 389 | if (getflag(wl, "nogrid")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:398:9: error: too many arguments to function 'getflag'; expected 0, have 2 398 | if (getflag(wl, "linear")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:407:9: error: too many arguments to function 'getflag'; expected 0, have 2 407 | if (getflag(wl, "xlog")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:416:9: error: too many arguments to function 'getflag'; expected 0, have 2 416 | if (getflag(wl, "ylog")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:425:9: error: too many arguments to function 'getflag'; expected 0, have 2 425 | if (getflag(wl, "polar")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:434:9: error: too many arguments to function 'getflag'; expected 0, have 2 434 | if (getflag(wl, "smith")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:443:9: error: too many arguments to function 'getflag'; expected 0, have 2 443 | if (getflag(wl, "smithgrid")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:454:13: error: too many arguments to function 'cp_getvar'; expected 0, have 3 454 | if (cp_getvar("gridstyle", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:484:9: error: too many arguments to function 'getflag'; expected 0, have 2 484 | if (getflag(wl, "linplot")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:493:9: error: too many arguments to function 'getflag'; expected 0, have 2 493 | if (getflag(wl, "combplot")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:502:9: error: too many arguments to function 'getflag'; expected 0, have 2 502 | if (getflag(wl, "pointplot")) { | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:513:13: error: too many arguments to function 'cp_getvar'; expected 0, have 3 513 | if (cp_getvar("plotstyle", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:532:18: error: too many arguments to function 'getword'; expected 0, have 2 532 | xlabel = getword(wl, "xlabel"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:22:14: note: declared here 22 | static char *getword(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:534:16: error: too many arguments to function 'getword'; expected 0, have 2 534 | (void) getword(wl, "xlabel"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:22:14: note: declared here 22 | static char *getword(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:536:18: error: too many arguments to function 'getword'; expected 0, have 2 536 | ylabel = getword(wl, "ylabel"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:22:14: note: declared here 22 | static char *getword(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:538:16: error: too many arguments to function 'getword'; expected 0, have 2 538 | (void) getword(wl, "ylabel"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:22:14: note: declared here 22 | static char *getword(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:540:17: error: too many arguments to function 'getword'; expected 0, have 2 540 | title = getword(wl, "title"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:22:14: note: declared here 22 | static char *getword(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:542:16: error: too many arguments to function 'getword'; expected 0, have 2 542 | (void) getword(wl, "title"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:22:14: note: declared here 22 | static char *getword(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:545:20: error: too many arguments to function 'getflag'; expected 0, have 2 545 | nointerp = getflag(wl, "nointerp"); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:546:14: error: too many arguments to function 'getflag'; expected 0, have 2 546 | else if (getflag(wl, "nointerp")) | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:23:13: note: declared here 23 | static bool getflag(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:566:13: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 566 | names = ft_getpnames(wl, false); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:583:22: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 583 | dv = ft_evaluate(n); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:598:14: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 598 | dv = ft_evaluate(n); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:609:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 609 | free_pnode(names); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:626:31: error: too many arguments to function 'vec_mkfamily'; expected 0, have 1 626 | lv->v_link2 = vec_mkfamily(d); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:459:21: note: declared here 459 | extern struct dvec *vec_mkfamily(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:628:29: error: too many arguments to function 'vec_mkfamily'; expected 0, have 1 628 | vecs = lv = vec_mkfamily(d); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:459:21: note: declared here 459 | extern struct dvec *vec_mkfamily(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:707:13: error: too many arguments to function 'xtend'; expected 0, have 2 707 | xtend(d, d->v_scale->v_length); | ^~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:26:13: note: declared here 26 | static void xtend(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:714:13: error: too many arguments to function 'compress'; expected 0, have 3 714 | compress(d, xcompress, xindices); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:25:13: note: declared here 25 | static void compress(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:715:26: error: too many arguments to function 'vec_copy'; expected 0, have 1 715 | d->v_scale = vec_copy(d->v_scale); | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:716:13: error: too many arguments to function 'compress'; expected 0, have 3 716 | compress(d->v_scale, xcompress, xindices); | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:25:13: note: declared here 25 | static void compress(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:730:21: error: too many arguments to function 'vec_copy'; expected 0, have 1 730 | n = vec_copy(d); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:803:22: error: too many arguments to function 'ft_minmax'; expected 0, have 2 803 | dd = ft_minmax(d, true); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:813:18: error: too many arguments to function 'ft_minmax'; expected 0, have 2 813 | dd = ft_minmax(d, true); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:863:22: error: too many arguments to function 'ft_minmax'; expected 0, have 2 863 | dd = ft_minmax(d, false); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:874:18: error: too many arguments to function 'ft_minmax'; expected 0, have 2 874 | dd = ft_minmax(d->v_scale, true); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:992:14: error: too many arguments to function 'if_tranparams'; expected 0, have 4 992 | !if_tranparams(ft_curckt, &tstart, &tstop, &tstep) || | ^~~~~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:422:13: note: declared here 422 | extern bool if_tranparams(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:998:14: error: too many arguments to function 'ciprefix'; expected 0, have 2 998 | !ciprefix("tran", plot_cur->pl_typename))) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1002:33: error: too many arguments to function 'tmalloc'; expected 0, have 1 1002 | newscale = (double *) tmalloc(newlen * sizeof(double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1004:24: note: in expansion of macro 'alloc' 1004 | newv_scale = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1009:32: error: too many arguments to function 'copy'; expected 0, have 1 1009 | newv_scale->v_name = copy(vecs->v_scale->v_name); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1016:34: error: too many arguments to function 'tmalloc'; expected 0, have 1 1016 | newdata = (double *) tmalloc(newlen * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1018:18: error: too many arguments to function 'ft_interpolate'; expected 0, have 7 1018 | if (!ft_interpolate(v->v_realdata, newdata, | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:280:13: note: declared here 280 | extern bool ft_interpolate(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1026:13: note: in expansion of macro 'tfree' 1026 | tfree(v->v_realdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1036:9: error: too many arguments to function 'ft_agraf'; expected 0, have 10 1036 | ft_agraf(xlims, ylims, vecs->v_scale, vecs->v_plot, vecs, | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:22:13: note: declared here 22 | extern void ft_agraf(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1055:31: error: too many arguments to function 'ft_typabbrev'; expected 0, have 1 1055 | xlabel ? xlabel : ft_typabbrev(vecs->v_scale->v_type), | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:447:14: note: declared here 447 | extern char *ft_typabbrev(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1056:31: error: too many arguments to function 'ft_typabbrev'; expected 0, have 1 1056 | ylabel ? ylabel : ft_typabbrev(j), | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:447:14: note: declared here 447 | extern char *ft_typabbrev(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1053:9: error: too many arguments to function 'ft_xgraph'; expected 0, have 9 1053 | ft_xgraph(xlims, ylims, hcopy, | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:29:13: note: declared here 29 | extern void ft_xgraph(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1069:10: error: too many arguments to function 'gr_init'; expected 0, have 16 1069 | if (!gr_init(xlims, ylims, (oneval ? (char *) NULL : xn), | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:238:13: note: declared here 238 | extern bool gr_init(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1077:9: error: too many arguments to function 'ft_graf'; expected 0, have 3 1077 | ft_graf(d, oneval ? (struct dvec *) NULL : d->v_scale, false); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:343:13: note: declared here 343 | extern void ft_graf(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'getlims': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1092:1: warning: old-style function definition [-Wold-style-definition] 1092 | getlims(wl, name, number) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1112:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 1112 | d = (double *) tmalloc(sizeof (double) * | ^~~~~~~ ~~~~~~~~~~~~~~~~~ 1113 | number); | ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1123:26: error: too many arguments to function 'ft_numparse'; expected 0, have 2 1123 | td = ft_numparse(&ss, false); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1139:17: error: too many arguments to function 'wl_free'; expected 0, have 1 1139 | wl_free(beg); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'getword': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1152:1: warning: old-style function definition [-Wold-style-definition] 1152 | getword(wl, name) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1167:17: error: too many arguments to function 'copy'; expected 0, have 1 1167 | s = copy(beg->wl_next->wl_word); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1172:13: error: too many arguments to function 'wl_free'; expected 0, have 1 1172 | wl_free(beg); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'getflag': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1182:1: warning: old-style function definition [-Wold-style-definition] 1182 | getflag(wl, name) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'xtend': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1204:1: warning: old-style function definition [-Wold-style-definition] 1204 | xtend(v, length) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1220:36: error: too many arguments to function 'tmalloc'; expected 0, have 1 1220 | v->v_realdata = (double *) tmalloc(length * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1226:9: note: in expansion of macro 'tfree' 1226 | tfree(od); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1229:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 1229 | v->v_compdata = (complex *) tmalloc(length * sizeof (complex)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1239:9: note: in expansion of macro 'tfree' 1239 | tfree(oc); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c: In function 'compress': /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1251:1: warning: old-style function definition [-Wold-style-definition] 1251 | compress(d, xcomp, xind) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1266:29: error: too many arguments to function 'tmalloc'; expected 0, have 1 1266 | dd = (double *) tmalloc(newlen * sz); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1271:17: note: in expansion of macro 'tfree' 1271 | tfree(d->v_realdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//doplot.c:1276:17: note: in expansion of macro 'tfree' 1276 | tfree(d->v_compdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'ft_dotsaves': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:36:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 36 | if (ciprefix(".save", iline->wl_word)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:38:20: error: too many arguments to function 'gettok'; expected 0, have 1 38 | (void) gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:39:32: error: too many arguments to function 'gettoks'; expected 0, have 1 39 | wl = wl_append(wl, gettoks(s)); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:18:18: note: declared here 18 | static wordlist *gettoks(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:39:18: error: too many arguments to function 'wl_append'; expected 0, have 2 39 | wl = wl_append(wl, gettoks(s)); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:66:18: note: declared here 66 | extern wordlist *wl_append(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:43:5: error: too many arguments to function 'com_save'; expected 0, have 1 43 | com_save(wl); | ^~~~~~~~ ~~ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:13: /home/pbulk/work/cad/spice/work/src/include/fteext.h:51:13: note: declared here 51 | extern void com_save(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'ft_savedotargs': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:75:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 75 | if (ciprefix(".plot", s)) | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:80:24: error: too many arguments to function 'ciprefix'; expected 0, have 2 80 | if (isaplot || ciprefix(".print", s)) { | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:81:20: error: too many arguments to function 'gettok'; expected 0, have 1 81 | (void) gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:82:20: error: too many arguments to function 'gettok'; expected 0, have 1 82 | name = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:84:23: error: too many arguments to function 'gettoks'; expected 0, have 1 84 | if (!(w = gettoks(s))) { | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:18:18: note: declared here 18 | static wordlist *gettoks(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:96:33: note: in expansion of macro 'tfree' 96 | tfree(wl); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:107:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 107 | } else if (ciprefix(".four", s)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:108:20: error: too many arguments to function 'gettok'; expected 0, have 1 108 | (void) gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:109:20: error: too many arguments to function 'gettok'; expected 0, have 1 109 | (void) gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:110:23: error: too many arguments to function 'gettoks'; expected 0, have 1 110 | if (!(w = gettoks(s))) | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:18:18: note: declared here 18 | static wordlist *gettoks(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:117:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 117 | } else if (ciprefix(".op", s)) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:120:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 120 | } else if (ciprefix(".tf", s)) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'ft_cktcoms': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:136:1: warning: old-style function definition [-Wold-style-definition] 136 | ft_cktcoms(terse) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:138:1: error: number of arguments doesn't match prototype 138 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:173:12: error: prototype declaration 173 | extern int ft_cktcoms(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:166:13: error: too many arguments to function 'inp_list'; expected 0, have 4 166 | inp_list(cp_out, ft_curckt->ci_deck, ft_curckt->ci_options, | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:268:13: note: declared here 268 | extern void inp_list(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:170:9: error: too many arguments to function 'setcplot'; expected 0, have 1 170 | if (setcplot("op")) { | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:22:13: note: declared here 22 | static bool setcplot(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:186:25: error: too many arguments to function 'printnum'; expected 0, have 1 186 | printnum(v->v_realdata[0])); | ^~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:193:25: error: too many arguments to function 'printnum'; expected 0, have 1 193 | printnum(v->v_realdata[0])); | ^~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:197:17: error: too many arguments to function 'com_showmod'; expected 0, have 1 197 | com_showmod(&all); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:151:13: note: declared here 151 | extern void com_showmod(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:198:13: error: too many arguments to function 'com_show'; expected 0, have 1 198 | com_show(&all); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:150:13: note: declared here 150 | extern void com_show(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:203:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 203 | if (ciprefix("tf", pl->pl_typename)) { | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:210:13: error: too many arguments to function 'com_print'; expected 0, have 1 210 | com_print(&all); | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:365:13: note: declared here 365 | extern void com_print(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:217:19: error: too many arguments to function 'cp_lexer'; expected 0, have 1 217 | command = cp_lexer(coms->wl_word); | ^~~~~~~~ ~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:223:34: error: too many arguments to function 'ciprefix'; expected 0, have 2 223 | } while (command && !ciprefix("out", command->wl_word)); | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:232:17: error: too many arguments to function 'cp_vset'; expected 0, have 3 232 | cp_vset("width", VT_NUM, (char *) &i); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:247:17: error: too many arguments to function 'fixdotprint'; expected 0, have 1 247 | fixdotprint(command); | ^~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:20:13: note: declared here 20 | static void fixdotprint(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:251:25: error: too many arguments to function 'ciprefix'; expected 0, have 2 251 | if (ciprefix(plottype, pl->pl_typename)) { | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:253:25: error: too many arguments to function 'com_print'; expected 0, have 1 253 | com_print(&twl); | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:365:13: note: declared here 365 | extern void com_print(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:276:17: error: too many arguments to function 'fixdotplot'; expected 0, have 1 276 | fixdotplot(command); | ^~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:19:13: note: declared here 19 | static void fixdotplot(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:279:25: error: too many arguments to function 'ciprefix'; expected 0, have 2 279 | if (ciprefix(plottype, pl->pl_typename)) { | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:281:25: error: too many arguments to function 'com_asciiplot'; expected 0, have 1 281 | com_asciiplot(command); | ^~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:160:13: note: declared here 160 | extern void com_asciiplot(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:290:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 290 | } else if (ciprefix(".four", command->wl_word)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:294:24: error: too many arguments to function 'setcplot'; expected 0, have 1 294 | } else if (setcplot("tran")) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:22:13: note: declared here 22 | static bool setcplot(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:295:17: error: too many arguments to function 'com_fourier'; expected 0, have 1 295 | com_fourier(command->wl_next); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:209:13: note: declared here 209 | extern void com_fourier(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:324:9: error: too many arguments to function 'com_rusage'; expected 0, have 1 324 | com_rusage(&ww); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:380:13: note: declared here 380 | extern void com_rusage(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:326:9: error: too many arguments to function 'com_rusage'; expected 0, have 1 326 | com_rusage((wordlist *) NULL); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:380:13: note: declared here 380 | extern void com_rusage(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'fixdotplot': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:345:1: warning: old-style function definition [-Wold-style-definition] 345 | fixdotplot(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:352:23: error: too many arguments to function 'fixem'; expected 0, have 1 352 | wl->wl_word = fixem(wl->wl_word); | ^~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:21:14: note: declared here 21 | static char *fixem(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:359:17: error: too many arguments to function 'ft_numparse'; expected 0, have 2 359 | d = ft_numparse(&s, false); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:367:17: error: too many arguments to function 'ft_numparse'; expected 0, have 2 367 | d = ft_numparse(&s, false); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:374:13: note: in expansion of macro 'tfree' 374 | tfree(wl->wl_word); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:375:27: error: too many arguments to function 'copy'; expected 0, have 1 375 | wl->wl_word = copy("xlimit"); | ^~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:376:27: note: in expansion of macro 'alloc' 376 | wl->wl_next = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:379:32: error: too many arguments to function 'printnum'; expected 0, have 1 379 | (void) strcpy(buf, printnum(d1)); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:380:27: error: too many arguments to function 'copy'; expected 0, have 1 380 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:381:27: note: in expansion of macro 'alloc' 381 | wl->wl_next = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:384:32: error: too many arguments to function 'printnum'; expected 0, have 1 384 | (void) strcpy(buf, printnum(d2)); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:385:27: error: too many arguments to function 'copy'; expected 0, have 1 385 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'fixdotprint': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:393:1: warning: old-style function definition [-Wold-style-definition] 393 | fixdotprint(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:397:23: error: too many arguments to function 'fixem'; expected 0, have 1 397 | wl->wl_word = fixem(wl->wl_word); | ^~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:21:14: note: declared here 21 | static char *fixem(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'fixem': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:404:1: warning: old-style function definition [-Wold-style-definition] 404 | fixem(string) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:409:9: error: too many arguments to function 'ciprefix'; expected 0, have 2 409 | if (ciprefix("v(", string) && index(string, ',')) { | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:422:9: note: in expansion of macro 'tfree' 422 | tfree(ss); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:423:18: error: too many arguments to function 'copy'; expected 0, have 1 423 | string = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:424:16: error: too many arguments to function 'ciprefix'; expected 0, have 2 424 | } else if (ciprefix("vm(", string)) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:429:9: note: in expansion of macro 'tfree' 429 | tfree(ss); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:430:18: error: too many arguments to function 'copy'; expected 0, have 1 430 | string = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:431:16: error: too many arguments to function 'ciprefix'; expected 0, have 2 431 | } else if (ciprefix("vp(", string)) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:436:9: note: in expansion of macro 'tfree' 436 | tfree(ss); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:437:18: error: too many arguments to function 'copy'; expected 0, have 1 437 | string = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:438:16: error: too many arguments to function 'ciprefix'; expected 0, have 2 438 | } else if (ciprefix("vi(", string)) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:443:9: note: in expansion of macro 'tfree' 443 | tfree(ss); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:444:18: error: too many arguments to function 'copy'; expected 0, have 1 444 | string = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:445:16: error: too many arguments to function 'ciprefix'; expected 0, have 2 445 | } else if (ciprefix("vr(", string)) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:450:9: note: in expansion of macro 'tfree' 450 | tfree(ss); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:451:18: error: too many arguments to function 'copy'; expected 0, have 1 451 | string = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:452:16: error: too many arguments to function 'ciprefix'; expected 0, have 2 452 | } else if (ciprefix("vdb(", string)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:457:9: note: in expansion of macro 'tfree' 457 | tfree(ss); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:458:18: error: too many arguments to function 'copy'; expected 0, have 1 458 | string = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:459:16: error: too many arguments to function 'ciprefix'; expected 0, have 2 459 | } else if (ciprefix("i(", string)) { | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:465:9: note: in expansion of macro 'tfree' 465 | tfree(ss); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:466:18: error: too many arguments to function 'copy'; expected 0, have 1 466 | string = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'setcplot': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:474:1: warning: old-style function definition [-Wold-style-definition] 474 | setcplot(name) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:480:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 480 | if (ciprefix(name, pl->pl_typename)) { | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c: In function 'gettoks': /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:561:1: warning: old-style function definition [-Wold-style-definition] 561 | gettoks(s) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:572:16: error: too many arguments to function 'gettok'; expected 0, have 1 572 | while (t = gettok(&s)) { | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:577:18: note: in expansion of macro 'alloc' 577 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:578:27: error: too many arguments to function 'copy'; expected 0, have 1 578 | wl->wl_word = copy(t); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:593:14: note: in expansion of macro 'alloc' 593 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:598:27: error: too many arguments to function 'copy'; expected 0, have 1 598 | wl->wl_word = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:601:27: error: too many arguments to function 'copy'; expected 0, have 1 601 | wl->wl_word = copy(l + 1); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:608:18: note: in expansion of macro 'alloc' 608 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dotcards.c:609:27: error: too many arguments to function 'copy'; expected 0, have 1 609 | wl->wl_word = copy(c + 1); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//error.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c: In function 'fperror': /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:56:1: warning: old-style function definition [-Wold-style-definition] 56 | fperror(mess, code) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:58:1: error: number of arguments doesn't match prototype 58 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:13: /home/pbulk/work/cad/spice/work/src/include/fteext.h:180:13: error: prototype declaration 180 | extern void fperror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c: In function 'ft_sperror': /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:68:1: warning: old-style function definition [-Wold-style-definition] 68 | ft_sperror(code, mess) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:70:1: error: number of arguments doesn't match prototype 70 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: error: prototype declaration 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:71:39: error: too many arguments to function 'if_errstring'; expected 0, have 1 71 | fprintf(cp_err, "%s: %s\n", mess, if_errstring(code)); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:423:14: note: declared here 423 | extern char *if_errstring(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c: In function 'fatal': /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:78:5: error: too many arguments to function 'cp_ccon'; expected 0, have 1 78 | cp_ccon(false); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: note: declared here 36 | extern void cp_ccon(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c: In function 'internalerror': /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:91:1: warning: old-style function definition [-Wold-style-definition] 91 | internalerror(message) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//error.c: In function 'externalerror': /home/pbulk/work/cad/spice/work/src/lib/fte//error.c:100:1: warning: old-style function definition [-Wold-style-definition] 100 | externalerror(message) | ^~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'ft_evaluate': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: warning: old-style function definition [-Wold-style-definition] 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:55:1: error: number of arguments doesn't match prototype 55 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:13: /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: error: prototype declaration 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:63:13: error: too many arguments to function 'apply_func'; expected 0, have 2 63 | d = apply_func(node->pn_func, node->pn_left); | ^~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:26:21: note: declared here 26 | static struct dvec *apply_func(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:67:19: error: too many arguments to function 'node->pn_op->op_func'; expected 0, have 1 67 | ((*node->pn_op->op_func) (node->pn_left)); | ~^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:16: /home/pbulk/work/cad/spice/work/src/include/fteparse.h:33:20: note: declared here 33 | struct dvec *(*op_func)(); /* The function to do the work. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:69:35: error: too many arguments to function 'node->pn_op->op_func'; expected 0, have 2 69 | d = (struct dvec *) ((*node->pn_op->op_func) | ~^~~~~~~~~~~~~~~~~~~~~~ 70 | (node->pn_left, node->pn_right)); | ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteparse.h:33:20: note: declared here 33 | struct dvec *(*op_func)(); /* The function to do the work. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:81:21: error: too many arguments to function 'copy'; expected 0, have 1 81 | d->v_name = copy(node->pn_name); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_plus': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:93:1: warning: old-style function definition [-Wold-style-definition] 93 | op_plus(arg1, arg2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:95:1: error: number of arguments doesn't match prototype 95 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:201:21: error: prototype declaration 201 | extern struct dvec *op_plus(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:96:13: error: too many arguments to function 'doop'; expected 0, have 4 96 | return (doop('+', cx_plus, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_minus': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:100:1: warning: old-style function definition [-Wold-style-definition] 100 | op_minus(arg1, arg2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:102:1: error: number of arguments doesn't match prototype 102 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:195:21: error: prototype declaration 195 | extern struct dvec *op_minus(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:103:13: error: too many arguments to function 'doop'; expected 0, have 4 103 | return (doop('-', cx_minus, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_comma': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:107:1: warning: old-style function definition [-Wold-style-definition] 107 | op_comma(arg1, arg2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:109:1: error: number of arguments doesn't match prototype 109 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:187:21: error: prototype declaration 187 | extern struct dvec *op_comma(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:110:13: error: too many arguments to function 'doop'; expected 0, have 4 110 | return (doop(',', cx_comma, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_times': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:114:1: warning: old-style function definition [-Wold-style-definition] 114 | op_times(arg1, arg2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:116:1: error: number of arguments doesn't match prototype 116 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:203:21: error: prototype declaration 203 | extern struct dvec *op_times(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:117:13: error: too many arguments to function 'doop'; expected 0, have 4 117 | return (doop('*', cx_times, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_mod': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:121:1: warning: old-style function definition [-Wold-style-definition] 121 | op_mod(arg1, arg2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:123:1: error: number of arguments doesn't match prototype 123 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:196:21: error: prototype declaration 196 | extern struct dvec *op_mod(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:124:13: error: too many arguments to function 'doop'; expected 0, have 4 124 | return (doop('%', cx_mod, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_divide': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:128:1: warning: old-style function definition [-Wold-style-definition] 128 | op_divide(arg1, arg2) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:130:1: error: number of arguments doesn't match prototype 130 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:188:21: error: prototype declaration 188 | extern struct dvec *op_divide(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:131:13: error: too many arguments to function 'doop'; expected 0, have 4 131 | return (doop('/', cx_divide, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_power': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:135:1: warning: old-style function definition [-Wold-style-definition] 135 | op_power(arg1, arg2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:137:1: error: number of arguments doesn't match prototype 137 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:202:21: error: prototype declaration 202 | extern struct dvec *op_power(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:138:13: error: too many arguments to function 'doop'; expected 0, have 4 138 | return (doop('^', cx_power, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_eq': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:142:1: warning: old-style function definition [-Wold-style-definition] 142 | op_eq(arg1, arg2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:144:1: error: number of arguments doesn't match prototype 144 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:189:21: error: prototype declaration 189 | extern struct dvec *op_eq(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:145:13: error: too many arguments to function 'doop'; expected 0, have 4 145 | return (doop('=', cx_eq, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_gt': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:149:1: warning: old-style function definition [-Wold-style-definition] 149 | op_gt(arg1, arg2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:151:1: error: number of arguments doesn't match prototype 151 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:192:21: error: prototype declaration 192 | extern struct dvec *op_gt(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:152:13: error: too many arguments to function 'doop'; expected 0, have 4 152 | return (doop('>', cx_gt, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_lt': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:156:1: warning: old-style function definition [-Wold-style-definition] 156 | op_lt(arg1, arg2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:158:1: error: number of arguments doesn't match prototype 158 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:194:21: error: prototype declaration 194 | extern struct dvec *op_lt(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:159:13: error: too many arguments to function 'doop'; expected 0, have 4 159 | return (doop('<', cx_lt, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_ge': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:163:1: warning: old-style function definition [-Wold-style-definition] 163 | op_ge(arg1, arg2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:165:1: error: number of arguments doesn't match prototype 165 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:191:21: error: prototype declaration 191 | extern struct dvec *op_ge(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:166:13: error: too many arguments to function 'doop'; expected 0, have 4 166 | return (doop('G', cx_ge, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_le': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:170:1: warning: old-style function definition [-Wold-style-definition] 170 | op_le(arg1, arg2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:172:1: error: number of arguments doesn't match prototype 172 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:193:21: error: prototype declaration 193 | extern struct dvec *op_le(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:173:13: error: too many arguments to function 'doop'; expected 0, have 4 173 | return (doop('L', cx_le, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_ne': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:177:1: warning: old-style function definition [-Wold-style-definition] 177 | op_ne(arg1, arg2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:179:1: error: number of arguments doesn't match prototype 179 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:197:21: error: prototype declaration 197 | extern struct dvec *op_ne(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:180:13: error: too many arguments to function 'doop'; expected 0, have 4 180 | return (doop('N', cx_ne, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_and': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:184:1: warning: old-style function definition [-Wold-style-definition] 184 | op_and(arg1, arg2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:186:1: error: number of arguments doesn't match prototype 186 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:186:21: error: prototype declaration 186 | extern struct dvec *op_and(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:187:13: error: too many arguments to function 'doop'; expected 0, have 4 187 | return (doop('&', cx_and, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_or': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:191:1: warning: old-style function definition [-Wold-style-definition] 191 | op_or(arg1, arg2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:193:1: error: number of arguments doesn't match prototype 193 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:199:21: error: prototype declaration 199 | extern struct dvec *op_or(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:194:13: error: too many arguments to function 'doop'; expected 0, have 4 194 | return (doop('|', cx_or, arg1, arg2)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:27:21: note: declared here 27 | static struct dvec *doop(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_range': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:206:1: warning: old-style function definition [-Wold-style-definition] 206 | op_range(arg1, arg2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:208:1: error: number of arguments doesn't match prototype 208 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:205:21: error: prototype declaration 205 | extern struct dvec *op_range(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:214:9: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 214 | v = ft_evaluate(arg1); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: note: declared here 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:215:11: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 215 | ind = ft_evaluate(arg2); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: note: declared here 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:249:11: note: in expansion of macro 'alloc' 249 | res = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:251:19: error: too many arguments to function 'mkcname'; expected 0, have 3 251 | res->v_name = mkcname('R', v->v_name, ind->v_name); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:28:14: note: declared here 28 | static char *mkcname(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:269:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 269 | res->v_realdata = (double *) tmalloc(sizeof (double) * len); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:271:39: error: too many arguments to function 'tmalloc'; expected 0, have 1 271 | res->v_compdata = (complex *) tmalloc(sizeof (complex) * len); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:300:5: error: too many arguments to function 'vec_new'; expected 0, have 1 300 | vec_new(res); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_ind': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:310:1: warning: old-style function definition [-Wold-style-definition] 310 | op_ind(arg1, arg2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:312:1: error: number of arguments doesn't match prototype 312 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:200:21: error: prototype declaration 200 | extern struct dvec *op_ind(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:318:9: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 318 | v = ft_evaluate(arg1); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: note: declared here 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:319:11: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 319 | ind = ft_evaluate(arg2); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: note: declared here 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:396:11: note: in expansion of macro 'alloc' 396 | res = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:398:19: error: too many arguments to function 'mkcname'; expected 0, have 3 398 | res->v_name = mkcname('[', v->v_name, ind->v_name); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:28:14: note: declared here 28 | static char *mkcname(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:417:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 417 | res->v_realdata = (double *) tmalloc(sizeof (double) * length); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:419:39: error: too many arguments to function 'tmalloc'; expected 0, have 1 419 | res->v_compdata = (complex *) tmalloc(sizeof (complex) * length); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:450:5: error: too many arguments to function 'vec_new'; expected 0, have 1 450 | vec_new(res); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'apply_func': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:460:1: warning: old-style function definition [-Wold-style-definition] 460 | apply_func(func, arg) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:479:13: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 479 | t = vec_fromplot(buf, plot_cur); | ^~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:456:21: note: declared here 456 | extern struct dvec *vec_fromplot(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:484:13: error: too many arguments to function 'vec_copy'; expected 0, have 1 484 | t = vec_copy(t); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:485:9: error: too many arguments to function 'vec_new'; expected 0, have 1 485 | vec_new(t); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:488:9: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 488 | v = ft_evaluate(arg); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: note: declared here 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:508:31: error: too many arguments to function 'func->fu_func'; expected 0, have 8 508 | data = (char *) ((*func->fu_func) ((isreal(v) ? (char *) | ~^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ 509 | v->v_realdata : (char *) v->v_compdata), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteparse.h:40:13: note: declared here 40 | char *(*fu_func)(); /* The function. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:514:31: error: too many arguments to function 'func->fu_func'; expected 0, have 5 514 | data = (char *) ((*func->fu_func) ((isreal(v) ? (char *) | ~^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ 515 | v->v_realdata : (char *) v->v_compdata), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteparse.h:40:13: note: declared here 40 | char *(*fu_func)(); /* The function. */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:527:13: note: in expansion of macro 'alloc' 527 | t = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:544:25: error: too many arguments to function 'mkcname'; expected 0, have 3 544 | t->v_name = mkcname('a', func->fu_name, v->v_name); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:28:14: note: declared here 28 | static char *mkcname(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:546:25: error: too many arguments to function 'mkcname'; expected 0, have 3 546 | t->v_name = mkcname('c', func->fu_name, v->v_name); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:28:14: note: declared here 28 | static char *mkcname(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:548:25: error: too many arguments to function 'mkcname'; expected 0, have 3 548 | t->v_name = mkcname('b', v->v_name, (char *) NULL); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:28:14: note: declared here 28 | static char *mkcname(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:561:9: error: too many arguments to function 'vec_new'; expected 0, have 1 561 | vec_new(t); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_uminus': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:576:1: warning: old-style function definition [-Wold-style-definition] 576 | op_uminus(arg) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:578:1: error: number of arguments doesn't match prototype 578 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:204:21: error: prototype declaration 204 | extern struct dvec *op_uminus(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:579:13: error: too many arguments to function 'apply_func'; expected 0, have 2 579 | return (apply_func(&func_uminus, arg)); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:460:1: note: declared here 460 | apply_func(func, arg) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'op_not': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:583:1: warning: old-style function definition [-Wold-style-definition] 583 | op_not(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:585:1: error: number of arguments doesn't match prototype 585 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:198:21: error: prototype declaration 198 | extern struct dvec *op_not(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:586:13: error: too many arguments to function 'apply_func'; expected 0, have 2 586 | return (apply_func(&func_not, arg)); | ^~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:460:1: note: declared here 460 | apply_func(func, arg) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'mkcname': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:595:1: warning: old-style function definition [-Wold-style-definition] 595 | mkcname(what, v1, v2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:613:9: error: too many arguments to function 'copy'; expected 0, have 1 613 | s = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c: In function 'doop': /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:622:1: warning: old-style function definition [-Wold-style-definition] 622 | doop(what, func, arg1, arg2) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:634:10: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 634 | v1 = ft_evaluate(arg1); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: note: declared here 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:635:10: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 635 | v2 = ft_evaluate(arg2); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:53:1: note: declared here 53 | ft_evaluate(node) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:698:29: error: too many arguments to function 'tmalloc'; expected 0, have 1 698 | d1 = (double *) tmalloc(length * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:708:30: error: too many arguments to function 'tmalloc'; expected 0, have 1 708 | c1 = (complex *) tmalloc(length * sizeof (complex)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:725:29: error: too many arguments to function 'tmalloc'; expected 0, have 1 725 | d2 = (double *) tmalloc(length * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:735:30: error: too many arguments to function 'tmalloc'; expected 0, have 1 735 | c2 = (complex *) tmalloc(length * sizeof (complex)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:760:23: error: too many arguments to function 'func'; expected 0, have 5 760 | data = (char *) ((*func) ((isreal(v1) ? (char *) d1 : (char *) c1), | ~^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:773:11: note: in expansion of macro 'alloc' 773 | res = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:785:19: error: too many arguments to function 'mkcname'; expected 0, have 3 785 | res->v_name = mkcname(what, v1->v_name, v2->v_name); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:595:1: note: declared here 595 | mkcname(what, v1, v2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:814:5: error: too many arguments to function 'vec_new'; expected 0, have 1 814 | vec_new(res); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:819:13: note: in expansion of macro 'tfree' 819 | tfree(d1); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:821:13: note: in expansion of macro 'tfree' 821 | tfree(c1); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:826:13: note: in expansion of macro 'tfree' 826 | tfree(d2); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//evaluate.c:828:13: note: in expansion of macro 'tfree' 828 | tfree(c2); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c: In function 'com_fourier': /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:32:1: warning: old-style function definition [-Wold-style-definition] 32 | com_fourier(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:34:1: error: number of arguments doesn't match prototype 34 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:209:13: error: prototype declaration 209 | extern void com_fourier(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:53:11: error: too many arguments to function 'cp_getvar'; expected 0, have 3 53 | if ((!cp_getvar("nfreqs", VT_NUM, (char *) &nfreqs)) || (nfreqs < 1)) | ^~~~~~~~~ ~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:55:11: error: too many arguments to function 'cp_getvar'; expected 0, have 3 55 | if ((!cp_getvar("polydegree", VT_NUM, (char *) &polydegree)) || | ^~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:58:11: error: too many arguments to function 'cp_getvar'; expected 0, have 3 58 | if ((!cp_getvar("fourgridsize", VT_NUM, (char *) &fourgridsize)) || | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:68:16: error: too many arguments to function 'ft_numparse'; expected 0, have 2 68 | if (!(ff = ft_numparse(&s, false)) || (*ff <= 0.0)) { | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:74:23: error: too many arguments to function 'tmalloc'; expected 0, have 1 74 | freq = (double *) tmalloc(nfreqs * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:19: /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:75:22: error: too many arguments to function 'tmalloc'; expected 0, have 1 75 | mag = (double *) tmalloc(nfreqs * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:76:24: error: too many arguments to function 'tmalloc'; expected 0, have 1 76 | phase = (double *) tmalloc(nfreqs * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:77:23: error: too many arguments to function 'tmalloc'; expected 0, have 1 77 | nmag = (double *) tmalloc(nfreqs * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:78:25: error: too many arguments to function 'tmalloc'; expected 0, have 1 78 | nphase = (double *) tmalloc(nfreqs * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:81:13: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 81 | names = ft_getpnames(wl, true); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:84:15: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 84 | vec = ft_evaluate(names); | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:101:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 101 | grid = (double *) tmalloc(fourgridsize * | ^~~~~~~ ~~~~~~~~~~~~~~ 102 | sizeof (double)); | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:103:36: error: too many arguments to function 'tmalloc'; expected 0, have 1 103 | stuff = (double *) tmalloc(fourgridsize * | ^~~~~~~ ~~~~~~~~~~~~~~ 104 | sizeof (double)); | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:105:22: error: too many arguments to function 'ft_minmax'; expected 0, have 2 105 | dp = ft_minmax(time, true); | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:122:22: error: too many arguments to function 'ft_interpolate'; expected 0, have 7 122 | if (!ft_interpolate(vec->v_realdata, stuff, | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:280:13: note: declared here 280 | extern bool ft_interpolate(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:137:19: error: too many arguments to function 'CKTfour'; expected 0, have 11 137 | err = CKTfour(fourgridsize, nfreqs, &thd, timescale, | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:23:12: note: declared here 23 | static int CKTfour(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:141:17: error: too many arguments to function 'ft_sperror'; expected 0, have 2 141 | ft_sperror(err, "fourier"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:167:25: error: too many arguments to function 'pn'; expected 0, have 1 167 | fw, pn(freq[i]), | ^~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:22:14: note: declared here 22 | static char *pn(); | ^~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:168:25: error: too many arguments to function 'pn'; expected 0, have 1 168 | fw, pn(mag[i]), | ^~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:22:14: note: declared here 22 | static char *pn(); | ^~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:169:25: error: too many arguments to function 'pn'; expected 0, have 1 169 | fw, pn(phase[i]), | ^~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:22:14: note: declared here 22 | static char *pn(); | ^~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:170:25: error: too many arguments to function 'pn'; expected 0, have 1 170 | fw, pn(nmag[i]), | ^~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:22:14: note: declared here 22 | static char *pn(); | ^~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:171:25: error: too many arguments to function 'pn'; expected 0, have 1 171 | fw, pn(nphase[i])); | ^~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:22:14: note: declared here 22 | static char *pn(); | ^~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:176:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 176 | free_pnode(first_name); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:177:5: note: in expansion of macro 'tfree' 177 | tfree(freq); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:178:5: note: in expansion of macro 'tfree' 178 | tfree(mag); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:179:5: note: in expansion of macro 'tfree' 179 | tfree(phase); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:180:5: note: in expansion of macro 'tfree' 180 | tfree(nmag); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:181:5: note: in expansion of macro 'tfree' 181 | tfree(nphase); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c: In function 'pn': /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:186:1: warning: old-style function definition [-Wold-style-definition] 186 | pn(num) | ^~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:199:13: error: too many arguments to function 'copy'; expected 0, have 1 199 | return (copy(buf)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c: In function 'CKTfour': /home/pbulk/work/cad/spice/work/src/lib/fte//fourier.c:214:1: warning: old-style function definition [-Wold-style-definition] 214 | CKTfour(ndata,numFreq,thd,Time,Value,FundFreq,Freq,Mag,Phase,nMag,nPhase) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:16: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:67:1: error: conflicting types for 'gr_init'; have 'int()' 67 | gr_init(xlims, ylims, xname, plotname, hcopy, nplots, xdelta, ydelta, gridtype, | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:21: /home/pbulk/work/cad/spice/work/src/include/fteext.h:238:13: note: previous declaration of 'gr_init' with type '_Bool(void)' 238 | extern bool gr_init(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_init': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | gr_init(xlims, ylims, xname, plotname, hcopy, nplots, xdelta, ydelta, gridtype, | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:111:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 111 | if (!cp_getvar("pointchars", VT_STRING, pointchars)) | ^~~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:114:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 114 | if (!cp_getvar("ticmarks", VT_NUM, (char *) &graph->ticmarks)) { | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:115:11: error: too many arguments to function 'cp_getvar'; expected 0, have 3 115 | if (cp_getvar("ticmarks", VT_BOOL, (char *) &b)) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:121:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 121 | if (cp_getvar("ticlist", VT_LIST, ticlist)) { | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:122:26: error: too many arguments to function 'vareval'; expected 0, have 1 122 | wl = (wordlist *)vareval("ticlist"); | ^~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:168:11: note: declared here 168 | wordlist *vareval(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:123:27: error: too many arguments to function 'wl_flatten'; expected 0, have 1 123 | ticlist = (char *)wl_flatten(wl); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:124:37: error: too many arguments to function 'readtics'; expected 0, have 1 124 | graph->ticdata = (double *) readtics(ticlist); | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:53:9: note: declared here 53 | double *readtics(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:203:18: error: too many arguments to function 'tmalloc'; expected 0, have 1 203 | comb_title = tmalloc(strlen(plotname) + strlen(pname) + 3); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:207:5: error: too many arguments to function 'gr_resize_internal'; expected 0, have 1 207 | gr_resize_internal(graph); | ^~~~~~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:29:13: note: declared here 29 | static void gr_resize_internal(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:223:26: error: too many arguments to function 'copy'; expected 0, have 1 223 | graph->commandline = copy(commandline); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_point': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:241:1: warning: old-style function definition [-Wold-style-definition] 241 | gr_point(dv, newx, newy, oldx, oldy, np) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:245:1: error: number of arguments doesn't match prototype 245 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: error: prototype declaration 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:259:11: error: too many arguments to function 'clip_line'; expected 0, have 8 259 | if (clip_line(&fromx, &fromy, &tox, &toy, | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:70:13: note: declared here 70 | extern bool clip_line(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:265:11: error: too many arguments to function 'clip_to_circle'; expected 0, have 7 265 | if (clip_to_circle(&fromx, &fromy, &tox, &toy, | ^~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:71:13: note: declared here 71 | extern bool clip_to_circle(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_start_internal': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:335:1: warning: old-style function definition [-Wold-style-definition] 335 | gr_start_internal(dv, copyvec) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:346:9: error: too many arguments to function 'ft_typenames'; expected 0, have 1 346 | s = ft_typenames(dv->v_type); | ^~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:448:14: note: declared here 448 | extern char *ft_typenames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:385:22: error: too many arguments to function 'vec_copy'; expected 0, have 1 385 | link->vector = vec_copy(dv); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:397:5: error: too many arguments to function 'drawlegend'; expected 0, have 3 397 | drawlegend(currentgraph, plotno, dv); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:28:13: note: declared here 28 | static void drawlegend(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_start': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:405:1: warning: old-style function definition [-Wold-style-definition] 405 | gr_start(dv) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:407:1: error: number of arguments doesn't match prototype 407 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:245:13: error: prototype declaration 245 | extern void gr_start(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_relinestyle': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:415:1: warning: old-style function definition [-Wold-style-definition] 415 | gr_relinestyle(graph) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'drawlegend': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:434:1: warning: old-style function definition [-Wold-style-definition] 434 | drawlegend(graph, plotno, dv) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_end': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:465:1: warning: old-style function definition [-Wold-style-definition] 465 | gr_end(dv) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:467:1: error: number of arguments doesn't match prototype 467 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:240:13: error: prototype declaration 240 | extern void gr_end(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_pmsg': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:483:1: warning: old-style function definition [-Wold-style-definition] 483 | gr_pmsg(text) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:485:1: error: number of arguments doesn't match prototype 485 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:243:13: error: prototype declaration 243 | extern void gr_pmsg(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:491:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 491 | if (cp_getvar("device", VT_STRING, buf) | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_resize': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:512:1: warning: old-style function definition [-Wold-style-definition] 512 | gr_resize(graph) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:526:5: error: too many arguments to function 'gr_resize_internal'; expected 0, have 1 526 | gr_resize_internal(graph); | ^~~~~~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:29:13: note: declared here 29 | static void gr_resize_internal(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_resize_internal': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:553:1: warning: old-style function definition [-Wold-style-definition] 553 | gr_resize_internal(graph) | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:564:5: error: too many arguments to function 'gr_fixgrid'; expected 0, have 5 564 | gr_fixgrid(graph, graph->grid.xdelta, graph->grid.ydelta, | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:257:13: note: declared here 257 | extern void gr_fixgrid(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_redraw': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:581:1: warning: old-style function definition [-Wold-style-definition] 581 | gr_redraw(graph) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:598:7: error: too many arguments to function 'drawlegend'; expected 0, have 3 598 | drawlegend(graph, plotno, link->vector); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:434:1: note: declared here 434 | drawlegend(graph, plotno, dv) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:605:7: error: too many arguments to function 'ft_graf'; expected 0, have 3 605 | ft_graf(link->vector, | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:343:13: note: declared here 343 | extern void ft_graf(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_restoretext': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:619:1: warning: old-style function definition [-Wold-style-definition] 619 | gr_restoretext(graph) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'iplot': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:647:1: warning: old-style function definition [-Wold-style-definition] 647 | iplot(pl, id) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:679:16: error: too many arguments to function 'ft_minmax'; expected 0, have 2 679 | lims = ft_minmax(xs, true); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:686:24: error: too many arguments to function 'ft_minmax'; expected 0, have 2 686 | lims = ft_minmax(v, true); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:726:15: error: too many arguments to function 'ft_graf'; expected 0, have 3 726 | ft_graf(v, xs, true); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:343:13: note: declared here 343 | extern void ft_graf(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:736:14: error: too many arguments to function 'if_tranparams'; expected 0, have 4 736 | if (!if_tranparams(ft_curckt, &start, &stop, &step) || | ^~~~~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:422:13: note: declared here 422 | extern bool if_tranparams(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:737:18: error: too many arguments to function 'ciprefix'; expected 0, have 2 737 | !ciprefix("tran", pl->pl_typename)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:818:13: error: too many arguments to function 'gr_pmsg'; expected 0, have 2 818 | gr_pmsg("Resizing screen", false); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:483:1: note: declared here 483 | gr_pmsg(text) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:828:21: error: too many arguments to function 'gr_point'; expected 0, have 6 828 | gr_point(v, | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:241:1: note: declared here 241 | gr_point(dv, newx, newy, oldx, oldy, np) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'set': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:846:1: warning: old-style function definition [-Wold-style-definition] 846 | set(plot, db, unset, mode) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:866:12: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 866 | v = vec_fromplot(dc->db_nodename1, plot); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:456:21: note: declared here 456 | extern struct dvec *vec_fromplot(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'getitright': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:884:1: warning: old-style function definition [-Wold-style-definition] 884 | getitright(buf, num) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_iplot': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:914:1: warning: old-style function definition [-Wold-style-definition] 914 | gr_iplot(plot) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:916:1: error: number of arguments doesn't match prototype 916 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:241:13: error: prototype declaration 241 | extern void gr_iplot(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:926:46: error: too many arguments to function 'FindGraph'; expected 0, have 1 926 | if (db->db_graphid) PushGraphContext(FindGraph(db->db_graphid)); | ^~~~~~~~~ ~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:24: /home/pbulk/work/cad/spice/work/src/include/ftedbgra.h:16:15: note: declared here 16 | extern GRAPH *FindGraph(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'gr_end_iplot': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:1028:17: error: too many arguments to function 'dbfree'; expected 0, have 1 1028 | dbfree(db); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:57:13: note: declared here 57 | extern void dbfree( ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:1034:19: error: too many arguments to function 'FindGraph'; expected 0, have 1 1034 | graph = FindGraph(db->db_graphid); | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/ftedbgra.h:16:15: note: declared here 16 | extern GRAPH *FindGraph(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:1040:28: error: too many arguments to function 'vec_copy'; expected 0, have 1 1040 | link->vector = vec_copy(dv); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c: In function 'readtics': /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:1065:1: warning: old-style function definition [-Wold-style-definition] 1065 | readtics(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:1067:1: error: number of arguments doesn't match prototype 1067 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:53:9: error: prototype declaration 53 | double *readtics(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graf.c:1072:27: error: too many arguments to function 'tmalloc'; expected 0, have 1 1072 | tics = (double *) tmalloc(MAXTICS * sizeof(double)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c: In function 'FindGraph': /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:84:8: warning: old-style function definition [-Wold-style-definition] 84 | GRAPH *FindGraph(id) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c: In function 'CopyGraph': /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:103:8: warning: old-style function definition [-Wold-style-definition] 103 | GRAPH *CopyGraph(graph) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:126:25: error: too many arguments to function 'vec_copy'; expected 0, have 1 126 | newlink->vector = vec_copy(link->vector); | ^~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:13: /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:134:24: error: too many arguments to function 'copy'; expected 0, have 1 134 | ret->commandline = copy(graph->commandline); | ^~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:135:21: error: too many arguments to function 'copy'; expected 0, have 1 135 | ret->plotname = copy(graph->plotname); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c: In function 'DestroyGraph': /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:142:1: warning: old-style function definition [-Wold-style-definition] 142 | DestroyGraph(id) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:188:11: note: in expansion of macro 'tfree' 188 | tfree(d->vector->v_name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:190:17: note: in expansion of macro 'tfree' 190 | tfree(d->vector->v_realdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:192:17: note: in expansion of macro 'tfree' 192 | tfree(d->vector->v_compdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c: In function 'SetGraphContext': /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:236:1: warning: old-style function definition [-Wold-style-definition] 236 | SetGraphContext(graphid) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c: In function 'PushGraphContext': /home/pbulk/work/cad/spice/work/src/lib/fte//graphdb.c:256:1: warning: old-style function definition [-Wold-style-definition] 256 | PushGraphContext(graph) | ^~~~~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'gr_fixgrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:40:1: warning: old-style function definition [-Wold-style-definition] 40 | gr_fixgrid(graph, xdelta, ydelta, xtype, ytype) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:44:1: error: number of arguments doesn't match prototype 44 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:257:13: error: prototype declaration 257 | extern void gr_fixgrid(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:65:9: error: too many arguments to function 'polargrid'; expected 0, have 1 65 | polargrid(graph); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:23:13: note: declared here 23 | static void polargrid(), smithgrid(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:71:9: error: too many arguments to function 'smithgrid'; expected 0, have 1 71 | smithgrid(graph); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:23:26: note: declared here 23 | static void polargrid(), smithgrid(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:78:14: error: too many arguments to function 'loggrid'; expected 0, have 5 78 | dd = loggrid(graph, graph->data.ymin, graph->data.ymax, | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:22:28: note: declared here 22 | static double *lingrid(), *loggrid(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:81:14: error: too many arguments to function 'lingrid'; expected 0, have 6 81 | dd = lingrid(graph, graph->data.ymin, graph->data.ymax, | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:22:16: note: declared here 22 | static double *lingrid(), *loggrid(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:89:14: error: too many arguments to function 'loggrid'; expected 0, have 5 89 | dd = loggrid(graph, graph->data.xmin, graph->data.xmax, | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:22:28: note: declared here 22 | static double *lingrid(), *loggrid(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:92:14: error: too many arguments to function 'lingrid'; expected 0, have 6 92 | dd = lingrid(graph, graph->data.xmin, graph->data.xmax, | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:22:16: note: declared here 22 | static double *lingrid(), *loggrid(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'gr_redrawgrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:113:1: warning: old-style function definition [-Wold-style-definition] 113 | gr_redrawgrid(graph) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:141:17: error: too many arguments to function 'drawpolargrid'; expected 0, have 1 141 | drawpolargrid(graph); | ^~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:24:13: note: declared here 24 | static void drawpolargrid( ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:144:17: error: too many arguments to function 'drawsmithgrid'; expected 0, have 1 144 | drawsmithgrid(graph); | ^~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:25:13: note: declared here 25 | static void drawsmithgrid( ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:147:17: error: too many arguments to function 'drawsmithgrid'; expected 0, have 1 147 | drawsmithgrid(graph); | ^~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:25:13: note: declared here 25 | static void drawsmithgrid( ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:153:17: error: too many arguments to function 'drawloggrid'; expected 0, have 8 153 | drawloggrid(graph, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:27:13: note: declared here 27 | static void drawloggrid( ); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:162:17: error: too many arguments to function 'drawlingrid'; expected 0, have 12 162 | drawlingrid(graph, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:26:13: note: declared here 26 | static void drawlingrid( ); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:186:17: error: too many arguments to function 'drawloggrid'; expected 0, have 8 186 | drawloggrid(graph, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:27:13: note: declared here 27 | static void drawloggrid( ); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:195:17: error: too many arguments to function 'drawlingrid'; expected 0, have 12 195 | drawlingrid(graph, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:26:13: note: declared here 26 | static void drawlingrid( ); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'lingrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:215:1: warning: old-style function definition [-Wold-style-definition] 215 | lingrid(graph, lo, hi, delta, type, axis) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:355:13: error: too many arguments to function 'ft_typabbrev'; expected 0, have 1 355 | if (s = ft_typabbrev(type)) { | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:447:14: note: declared here 447 | extern char *ft_typabbrev(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'drawlingrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:480:1: warning: old-style function definition [-Wold-style-definition] 480 | drawlingrid(graph, units, spacing, nsp, dst, lmt, hmt, onedec, mult, mag, | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'loggrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:559:1: warning: old-style function definition [-Wold-style-definition] 559 | loggrid(graph, lo, hi, type, axis) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:637:13: error: too many arguments to function 'ft_typabbrev'; expected 0, have 1 637 | if (s = ft_typabbrev(type)) { | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:447:14: note: declared here 447 | extern char *ft_typabbrev(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'drawloggrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:668:1: warning: old-style function definition [-Wold-style-definition] 668 | drawloggrid(graph, units, hmt, lmt, decsp, subs, pp, axis) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'polargrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:758:1: warning: old-style function definition [-Wold-style-definition] 758 | polargrid(graph) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'drawpolargrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:875:1: warning: old-style function definition [-Wold-style-definition] 875 | drawpolargrid(graph) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:933:9: error: too many arguments to function 'cliparc'; expected 0, have 9 933 | cliparc((double) graph->grid.xaxis.circular.center + relcx, | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:30:15: note: declared here 30 | static double cliparc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:945:13: error: too many arguments to function 'addradlabel'; expected 0, have 5 945 | addradlabel(graph, i, theta, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:31:28: note: declared here 31 | static void adddeglabel(), addradlabel(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:967:18: error: too many arguments to function 'clip_to_circle'; expected 0, have 7 967 | if (!clip_to_circle(&x1, &y1, &x2, &y2, | ^~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:71:13: note: declared here 71 | extern bool clip_to_circle(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:975:17: error: too many arguments to function 'adddeglabel'; expected 0, have 8 975 | adddeglabel(graph, i * 30, x2, y2, x1, y1, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:31:13: note: declared here 31 | static void adddeglabel(), addradlabel(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1004:18: error: too many arguments to function 'clip_to_circle'; expected 0, have 7 1004 | if (!clip_to_circle(&x1, &y1, &x2, &y2, | ^~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:71:13: note: declared here 71 | extern bool clip_to_circle(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1010:17: error: too many arguments to function 'adddeglabel'; expected 0, have 8 1010 | adddeglabel(graph, i, x2, y2, x1, y1, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:31:13: note: declared here 31 | static void adddeglabel(), addradlabel(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'adddeglabel': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1036:1: warning: old-style function definition [-Wold-style-definition] 1036 | adddeglabel(graph, deg, x, y, cx, cy, lx, ly) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'addradlabel': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1068:1: warning: old-style function definition [-Wold-style-definition] 1068 | addradlabel(graph, lab, theta, x, y) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'smithgrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1098:1: warning: old-style function definition [-Wold-style-definition] 1098 | smithgrid(graph) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'drawsmithgrid': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1189:1: warning: old-style function definition [-Wold-style-definition] 1189 | drawsmithgrid(graph) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1341:9: error: too many arguments to function 'arcset'; expected 0, have 17 1341 | arcset(graph, rr[k], kr[k], ir[k], ki[k], pixperunit, | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:29:13: note: declared here 29 | static void arcset(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'arcset': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1398:1: warning: old-style function definition [-Wold-style-definition] 1398 | arcset(graph, rad, prevrad, irad, iprevrad, radoff, maxrad, centx, centy, | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1417:5: error: too many arguments to function 'cliparc'; expected 0, have 9 1417 | cliparc((double) (centx + xoffset + radoff - rad), | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:30:15: note: declared here 30 | static double cliparc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1425:5: error: too many arguments to function 'cliparc'; expected 0, have 9 1425 | cliparc((double) (centx + xoffset + radoff + rad), | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:30:15: note: declared here 30 | static double cliparc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1431:13: error: too many arguments to function 'cliparc'; expected 0, have 9 1431 | aclip = cliparc((double) (centx + xoffset + radoff), | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:30:15: note: declared here 30 | static double cliparc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1440:9: error: too many arguments to function 'adddeglabel'; expected 0, have 8 1440 | adddeglabel(graph, pdeg, xlab, ylab, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1036:1: note: declared here 1036 | adddeglabel(graph, deg, x, y, cx, cy, lx, ly) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1450:13: error: too many arguments to function 'cliparc'; expected 0, have 9 1450 | aclip = cliparc((double) (centx + xoffset + radoff), | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:30:15: note: declared here 30 | static double cliparc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1459:9: error: too many arguments to function 'adddeglabel'; expected 0, have 8 1459 | adddeglabel(graph, ndeg, xlab, ylab, | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1036:1: note: declared here 1036 | adddeglabel(graph, deg, x, y, cx, cy, lx, ly) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c: In function 'cliparc': /home/pbulk/work/cad/spice/work/src/lib/fte//grid.c:1492:1: warning: old-style function definition [-Wold-style-definition] 1492 | cliparc(cx, cy, rad, start, end, iclipx, iclipy, icliprad, flag) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'com_listing': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | com_listing(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:27:1: error: number of arguments doesn't match prototype 27 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:262:13: error: prototype declaration 262 | extern void com_listing(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:60:9: error: too many arguments to function 'inp_list'; expected 0, have 4 60 | inp_list(cp_out, expand ? ft_curckt->ci_deck : | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:268:13: note: declared here 268 | extern void inp_list(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'upper': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:69:1: warning: old-style function definition [-Wold-style-definition] 69 | upper(string) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:79:9: error: too many arguments to function 'inp_casefix'; expected 0, have 1 79 | inp_casefix(buf); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: note: declared here 267 | extern void inp_casefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'inp_list': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:94:1: warning: old-style function definition [-Wold-style-definition] 94 | inp_list(file, deck, extras, type) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:98:1: error: number of arguments doesn't match prototype 98 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:268:13: error: prototype declaration 268 | extern void inp_list(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:108:12: error: too many arguments to function 'cp_getvar'; expected 0, have 3 108 | (void) cp_getvar("renumber", VT_BOOL, (char *) &renumber); | ^~~~~~~~~ ~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:114:17: error: too many arguments to function 'ciprefix'; expected 0, have 2 114 | if (ciprefix(".end", here->li_line) && | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:122:13: error: too many arguments to function 'out_send'; expected 0, have 1 122 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:132:25: error: too many arguments to function 'out_printf'; expected 0, have 2 132 | out_printf("%s\n", | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:148:9: error: too many arguments to function 'out_send'; expected 0, have 1 148 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:157:21: error: too many arguments to function 'ciprefix'; expected 0, have 2 157 | if (ciprefix(".end", here->li_line) && | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:165:13: error: too many arguments to function 'out_send'; expected 0, have 1 165 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:172:25: error: too many arguments to function 'out_printf'; expected 0, have 2 172 | out_printf("%s\n", | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:180:25: error: too many arguments to function 'out_printf'; expected 0, have 2 180 | out_printf("%s\n", | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:190:25: error: too many arguments to function 'ciprefix'; expected 0, have 2 190 | if (ciprefix(".end", here->li_line) && | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:198:17: error: too many arguments to function 'out_send'; expected 0, have 1 198 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:205:29: error: too many arguments to function 'out_printf'; expected 0, have 2 205 | out_printf("%s\n", | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:214:29: error: too many arguments to function 'out_printf'; expected 0, have 2 214 | out_printf("%s\n", | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:232:17: error: too many arguments to function 'out_send'; expected 0, have 1 232 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:237:17: error: too many arguments to function 'out_printf'; expected 0, have 1 237 | out_printf(".end\n"); | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'inp_spsource': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:254:1: warning: old-style function definition [-Wold-style-definition] 254 | inp_spsource(fp, comfile, filename) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:258:1: error: number of arguments doesn't match prototype 258 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:266:13: error: prototype declaration 266 | extern void inp_spsource(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:268:5: error: too many arguments to function 'inp_readall'; expected 0, have 2 268 | inp_readall(fp, &deck); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:269:13: note: declared here 269 | extern void inp_readall(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:273:19: error: too many arguments to function 'inp_getopts'; expected 0, have 1 273 | options = inp_getopts(deck); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:326:21: note: declared here 326 | extern struct line *inp_getopts(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:275:16: error: too many arguments to function 'inp_deckcopy'; expected 0, have 1 275 | realdeck = inp_deckcopy(deck); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:439:21: note: declared here 439 | extern struct line *inp_deckcopy(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:279:14: error: too many arguments to function 'copy'; expected 0, have 1 279 | tt = copy(deck->li_line); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:313:18: error: too many arguments to function 'ciprefix'; expected 0, have 2 313 | if (!ciprefix(".control", dd->li_line) && | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:314:22: error: too many arguments to function 'ciprefix'; expected 0, have 2 314 | !ciprefix(".endc", dd->li_line)) | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:316:28: error: too many arguments to function 'cp_evloop'; expected 0, have 1 316 | (void) cp_evloop(dd->li_line + 2); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:318:28: error: too many arguments to function 'cp_evloop'; expected 0, have 1 318 | (void) cp_evloop(dd->li_line); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:319:13: note: in expansion of macro 'tfree' 319 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:320:13: note: in expansion of macro 'tfree' 320 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:337:17: error: too many arguments to function 'ciprefix'; expected 0, have 2 337 | if (ciprefix(".control", dd->li_line)) { | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:339:17: note: in expansion of macro 'tfree' 339 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:340:17: note: in expansion of macro 'tfree' 340 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:346:24: error: too many arguments to function 'ciprefix'; expected 0, have 2 346 | } else if (ciprefix(".endc", dd->li_line)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:348:17: note: in expansion of macro 'tfree' 348 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:349:17: note: in expansion of macro 'tfree' 349 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:355:36: error: too many arguments to function 'prefix'; expected 0, have 2 355 | } else if (commands || prefix("*#", dd->li_line)) { | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:356:22: note: in expansion of macro 'alloc' 356 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:363:21: error: too many arguments to function 'prefix'; expected 0, have 2 363 | if (prefix("*#", dd->li_line)) | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:364:35: error: too many arguments to function 'copy'; expected 0, have 1 364 | wl->wl_word = copy(dd->li_line + 2); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:368:17: note: in expansion of macro 'tfree' 368 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:374:17: note: in expansion of macro 'tfree' 374 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:375:17: note: in expansion of macro 'tfree' 375 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:377:17: error: too many arguments to function 'inp_casefix'; expected 0, have 1 377 | inp_casefix(s); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: note: declared here 267 | extern void inp_casefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:378:17: error: too many arguments to function 'inp_casefix'; expected 0, have 1 378 | inp_casefix(dd->li_line); | ^~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: note: declared here 267 | extern void inp_casefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:379:40: error: too many arguments to function 'ciprefix'; expected 0, have 2 379 | if (eq(s, ".width") || ciprefix(".four", s) || eq(s, ".plot") | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:384:40: note: in expansion of macro 'alloc' 384 | end->wl_next = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:388:42: note: in expansion of macro 'alloc' 388 | wl_first = end = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:389:36: error: too many arguments to function 'copy'; expected 0, have 1 389 | end->wl_word = copy(dd->li_line); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:393:25: note: in expansion of macro 'tfree' 393 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:394:25: note: in expansion of macro 'tfree' 394 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:409:18: error: too many arguments to function 'cp_getvar'; expected 0, have 3 409 | if (!cp_getvar("nosubckt", VT_BOOL, (char *) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:411:33: error: too many arguments to function 'inp_subcktexpand'; expected 0, have 1 411 | deck->li_next = inp_subcktexpand(deck-> | ^~~~~~~~~~~~~~~~ ~~~~~~ 412 | li_next); | ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:440:21: note: declared here 440 | extern struct line *inp_subcktexpand(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:414:13: error: too many arguments to function 'inp_dodeck'; expected 0, have 6 414 | inp_dodeck(deck, tt, wl_first, false, options, filename); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:264:13: note: declared here 264 | extern void inp_dodeck(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:419:29: error: too many arguments to function 'wl_reverse'; expected 0, have 1 419 | for (end = wl = wl_reverse(controls); wl; | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:71:18: note: declared here 71 | extern wordlist *wl_reverse(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:421:24: error: too many arguments to function 'cp_evloop'; expected 0, have 1 421 | (void) cp_evloop(wl->wl_word); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'inp_dodeck': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:444:1: warning: old-style function definition [-Wold-style-definition] 444 | inp_dodeck(deck, tt, end, reuse, options, filename) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:451:1: error: number of arguments doesn't match prototype 451 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:264:13: error: prototype declaration 264 | extern void inp_dodeck(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:465:13: note: in expansion of macro 'tfree' 465 | tfree(dd->li_error); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:473:37: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 473 | ft_curckt->ci_devices = cp_kwswitch(CT_DEVNAMES, | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:475:35: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 475 | ft_curckt->ci_nodes = cp_kwswitch(CT_NODENAMES, | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:478:26: note: in expansion of macro 'alloc' 478 | ft_curckt = ct = alloc(struct circ); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:480:12: error: too many arguments to function 'cp_getvar'; expected 0, have 3 480 | (void) cp_getvar("noparse", VT_BOOL, (char *) &noparse); | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:482:15: error: too many arguments to function 'if_inpdeck'; expected 0, have 2 482 | ckt = if_inpdeck(deck, &tab); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:424:14: note: declared here 424 | extern char *if_inpdeck(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:497:21: error: too many arguments to function 'out_printf'; expected 0, have 4 497 | out_printf("Error on line %d : %s\n\t%s\n", | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:500:21: error: too many arguments to function 'out_printf'; expected 0, have 2 500 | out_printf("\t%s\n", p); | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:520:33: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 520 | ft_curckt->ci_devices = cp_kwswitch(CT_DEVNAMES, | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:522:16: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 522 | (void) cp_kwswitch(CT_DEVNAMES, ft_curckt->ci_devices); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:523:31: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 523 | ft_curckt->ci_nodes = cp_kwswitch(CT_NODENAMES, (char *) NULL); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:524:16: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 524 | (void) cp_kwswitch(CT_NODENAMES, ft_curckt->ci_nodes); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:525:9: error: too many arguments to function 'ft_newcirc'; expected 0, have 1 525 | ft_newcirc(ct); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:65:13: note: declared here 65 | extern void ft_newcirc(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:541:27: error: too many arguments to function 'copy'; expected 0, have 1 541 | ct->ci_filename = copy(filename); | ^~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:551:18: error: too many arguments to function 'cp_lexer'; expected 0, have 1 551 | wl = cp_lexer(s); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:556:32: error: too many arguments to function 'cp_setparse'; expected 0, have 1 556 | eev->va_next = cp_setparse(wl); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:165:25: note: declared here 165 | extern struct variable *cp_setparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:558:37: error: too many arguments to function 'cp_setparse'; expected 0, have 1 558 | ct->ci_vars = eev = cp_setparse(wl); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:165:25: note: declared here 165 | extern struct variable *cp_setparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:566:17: error: too many arguments to function 'if_option'; expected 0, have 4 566 | if_option(ct->ci_ckt, eev->va_name, | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: note: declared here 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:570:17: error: too many arguments to function 'if_option'; expected 0, have 4 570 | if_option(ct->ci_ckt, eev->va_name, | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: note: declared here 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:574:17: error: too many arguments to function 'if_option'; expected 0, have 4 574 | if_option(ct->ci_ckt, eev->va_name, | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: note: declared here 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:578:17: error: too many arguments to function 'if_option'; expected 0, have 4 578 | if_option(ct->ci_ckt, eev->va_name, | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: note: declared here 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:585:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 585 | cp_addkword(CT_CKTNAMES, tt); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'com_edit': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:595:1: warning: old-style function definition [-Wold-style-definition] 595 | com_edit(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:597:1: error: number of arguments doesn't match prototype 597 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:261:13: error: prototype declaration 261 | extern void com_edit(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:606:14: error: too many arguments to function 'doedit'; expected 0, have 1 606 | if (!doedit(wl->wl_word)) { | ^~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:20:13: note: declared here 20 | static bool doedit(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:610:20: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 610 | if (!(fp = inp_pathopen(wl->wl_word, "r"))) { | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:615:9: error: too many arguments to function 'inp_spsource'; expected 0, have 3 615 | inp_spsource(fp, false, wl->wl_word); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:254:1: note: declared here 254 | inp_spsource(fp, comfile, filename) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:622:24: error: too many arguments to function 'smktemp'; expected 0, have 1 622 | filename = smktemp("sp"); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:631:13: error: too many arguments to function 'inp_list'; expected 0, have 4 631 | inp_list(fp, ft_curckt->ci_deck, ft_curckt->ci_options, | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:94:1: note: declared here 94 | inp_list(file, deck, extras, type) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:645:14: error: too many arguments to function 'doedit'; expected 0, have 1 645 | if (!doedit(filename)) { | ^~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:20:13: note: declared here 20 | static bool doedit(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:655:9: error: too many arguments to function 'inp_spsource'; expected 0, have 3 655 | inp_spsource(fp, false, permfile ? filename : (char *) NULL); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:254:1: note: declared here 254 | inp_spsource(fp, comfile, filename) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:672:7: error: too many arguments to function 'com_run'; expected 0, have 1 672 | com_run(NULL); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:393:13: note: declared here 393 | extern void com_run(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'doedit': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:679:1: warning: old-style function definition [-Wold-style-definition] 679 | doedit(filename) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:685:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 685 | if (cp_getvar("editor", VT_STRING, buf2)) { | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'com_source': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:704:1: warning: old-style function definition [-Wold-style-definition] 704 | com_source(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:706:1: error: number of arguments doesn't match prototype 706 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:263:13: error: prototype declaration 263 | extern void com_source(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:718:20: error: too many arguments to function 'smktemp'; expected 0, have 1 718 | tempfile = smktemp("sp"); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:719:20: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 719 | if (!(fp = inp_pathopen(tempfile, "w+"))) { | ^~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:725:24: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 725 | if (!(tp = inp_pathopen(wl->wl_word, "r"))) { | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:741:14: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 741 | fp = inp_pathopen(wl->wl_word, "r"); | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:749:22: error: too many arguments to function 'substring'; expected 0, have 2 749 | if (ft_nutmeg || substring(".spiceinit", owl->wl_word) | ^~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:750:16: error: too many arguments to function 'substring'; expected 0, have 2 750 | || substring("spice.rc", owl->wl_word)) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:751:9: error: too many arguments to function 'inp_spsource'; expected 0, have 3 751 | inp_spsource(fp, true, tempfile ? (char *) NULL : wl->wl_word); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:254:1: note: declared here 254 | inp_spsource(fp, comfile, filename) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:753:9: error: too many arguments to function 'inp_spsource'; expected 0, have 3 753 | inp_spsource(fp, false, tempfile ? (char *) NULL : wl->wl_word); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:254:1: note: declared here 254 | inp_spsource(fp, comfile, filename) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c: In function 'inp_source': /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:763:1: warning: old-style function definition [-Wold-style-definition] 763 | inp_source(file) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:765:1: error: number of arguments doesn't match prototype 765 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:265:13: error: prototype declaration 265 | extern void inp_source(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:769:5: error: too many arguments to function 'com_source'; expected 0, have 1 769 | com_source(&wl); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inp.c:704:1: note: declared here 704 | com_source(wl) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c: In function 'readline': /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | readline(fd) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:38:14: error: too many arguments to function 'tmalloc'; expected 0, have 1 38 | strptr = tmalloc(memlen); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:47:28: error: too many arguments to function 'trealloc'; expected 0, have 2 47 | if( !(strptr = trealloc(strptr, memlen + 1))) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:61:14: error: too many arguments to function 'trealloc'; expected 0, have 2 61 | strptr = trealloc(strptr, strlen + 1); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c: In function 'inp_pathopen': /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:70:1: warning: old-style function definition [-Wold-style-definition] 70 | inp_pathopen(name, mode) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:72:1: error: number of arguments doesn't match prototype 72 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: error: prototype declaration 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:81:17: error: too many arguments to function 'cp_getvar'; expected 0, have 3 81 | || !cp_getvar("sourcepath", VT_LIST, (char *) &v)) | ^~~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:87:17: error: too many arguments to function 'cp_wstrip'; expected 0, have 1 87 | cp_wstrip(v->va_string); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:135:13: note: declared here 135 | extern void cp_wstrip(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c: In function 'inp_readall': /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:109:1: warning: old-style function definition [-Wold-style-definition] 109 | inp_readall(fp, data) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:112:1: error: number of arguments doesn't match prototype 112 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:269:13: error: prototype declaration 269 | extern void inp_readall(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:128:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 128 | if (ciprefix(".include", buffer)) { | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:142:21: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 142 | s = cp_tildexpand(s); | ^~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: note: declared here 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:143:27: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 143 | if (!(newfp = inp_pathopen(s, "r"))) { | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:70:1: note: declared here 70 | inp_pathopen(name, mode) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:147:13: error: too many arguments to function 'inp_readall'; expected 0, have 2 147 | inp_readall(newfp, &newcard); | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:109:1: note: declared here 109 | inp_readall(fp, data) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:153:32: note: in expansion of macro 'alloc' 153 | end->li_next = alloc(struct line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:156:28: note: in expansion of macro 'alloc' 156 | end = cc = alloc(struct line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:161:28: error: too many arguments to function 'copy'; expected 0, have 1 161 | end->li_line = copy(buffer); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:174:28: note: in expansion of macro 'alloc' 174 | end->li_next = alloc(struct line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:177:24: note: in expansion of macro 'alloc' 177 | end = cc = alloc(struct line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:208:41: error: too many arguments to function 'copy'; expected 0, have 1 208 | working->li_error = copy( | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:213:26: error: too many arguments to function 'tmalloc'; expected 0, have 1 213 | buffer = tmalloc(strlen(prev->li_line) + strlen(s) + 2); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:224:21: note: in expansion of macro 'tfree' 224 | tfree(s); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:226:31: note: in expansion of macro 'alloc' 226 | newcard = alloc(struct line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c: In function 'inp_casefix': /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:248:1: warning: old-style function definition [-Wold-style-definition] 248 | inp_casefix(string) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//inpcom.c:250:1: error: number of arguments doesn't match prototype 250 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: error: prototype declaration 267 | extern void inp_casefix(); | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c: In function 'ft_interpolate': /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | ft_interpolate(data, ndata, oscale, olen, nscale, nlen, degree) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:29:1: error: number of arguments doesn't match prototype 29 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:280:13: error: prototype declaration 280 | extern bool ft_interpolate(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:48:26: error: too many arguments to function 'tmalloc'; expected 0, have 1 48 | scratch = (double *) tmalloc((degree + 1) * (degree + 2) * | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 49 | sizeof (double)); | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:50:25: error: too many arguments to function 'tmalloc'; expected 0, have 1 50 | result = (double *) tmalloc((degree + 1) * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:51:24: error: too many arguments to function 'tmalloc'; expected 0, have 1 51 | xdata = (double *) tmalloc((degree + 1) * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:52:24: error: too many arguments to function 'tmalloc'; expected 0, have 1 52 | ydata = (double *) tmalloc((degree + 1) * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:58:13: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 58 | while (!ft_polyfit(xdata, ydata, result, degree, scratch)) { | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:78:19: error: too many arguments to function 'putinterval'; expected 0, have 8 78 | lastone = putinterval(result, degree, ndata, lastone, | ^~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:22:12: note: declared here 22 | static int putinterval(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:95:17: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 95 | while (!ft_polyfit(xdata, ydata, result, degree, scratch)) { | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:102:19: error: too many arguments to function 'putinterval'; expected 0, have 8 102 | lastone = putinterval(result, degree, ndata, lastone, | ^~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:22:12: note: declared here 22 | static int putinterval(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:107:5: note: in expansion of macro 'tfree' 107 | tfree(scratch); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:108:5: note: in expansion of macro 'tfree' 108 | tfree(xdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:109:5: note: in expansion of macro 'tfree' 109 | tfree(ydata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:110:5: note: in expansion of macro 'tfree' 110 | tfree(result); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c: In function 'ft_polyfit': /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:121:1: warning: old-style function definition [-Wold-style-definition] 121 | ft_polyfit(xdata, ydata, result, degree, scratch) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:124:1: error: number of arguments doesn't match prototype 124 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: error: prototype declaration 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:231:13: error: too many arguments to function 'ft_peval'; expected 0, have 3 231 | d = ft_peval(xdata[i], result, degree); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c: In function 'putinterval': /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:264:1: warning: old-style function definition [-Wold-style-definition] 264 | putinterval(poly, degree, nvec, last, nscale, nlen, oval, sign) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:276:19: error: too many arguments to function 'ft_peval'; expected 0, have 3 276 | nvec[i] = ft_peval(nscale[i], poly, degree); | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c: In function 'printmat': /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:281:1: warning: old-style function definition [-Wold-style-definition] 281 | printmat(name, mat, m, n) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c: In function 'ft_peval': /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:299:1: warning: old-style function definition [-Wold-style-definition] 299 | ft_peval(x, coeffs, degree) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:302:1: error: number of arguments doesn't match prototype 302 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: error: prototype declaration 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c: In function 'lincopy': /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:350:1: warning: old-style function definition [-Wold-style-definition] 350 | lincopy(ov, newscale, newlen, oldscale) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:354:1: error: number of arguments doesn't match prototype 354 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:23:6: error: prototype declaration 23 | void lincopy(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:366:9: note: in expansion of macro 'alloc' 366 | v = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:367:17: error: too many arguments to function 'copy'; expected 0, have 1 367 | v->v_name = copy(ov->v_name); | ^~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:373:21: error: too many arguments to function 'tmalloc'; expected 0, have 1 373 | nd = (double *) tmalloc(newlen * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:374:10: error: too many arguments to function 'ft_interpolate'; expected 0, have 7 374 | if (!ft_interpolate(ov->v_realdata, nd, oldscale->v_realdata, | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:27:1: note: declared here 27 | ft_interpolate(data, ndata, oscale, olen, nscale, nlen, degree) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:380:5: error: too many arguments to function 'vec_new'; expected 0, have 1 380 | vec_new(v); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c: In function 'ft_polyderiv': /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:385:1: warning: old-style function definition [-Wold-style-definition] 385 | ft_polyderiv(coeffs, degree) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//interp.c:388:1: error: number of arguments doesn't match prototype 388 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:283:13: error: prototype declaration 283 | extern void ft_polyderiv( ); | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c: In function 'com_linearize': /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | com_linearize(wl) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:19:1: error: number of arguments doesn't match prototype 19 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:8: /home/pbulk/work/cad/spice/work/src/include/fteext.h:284:13: error: prototype declaration 284 | extern void com_linearize(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:28:10: error: too many arguments to function 'if_tranparams'; expected 0, have 4 28 | !if_tranparams(ft_curckt, &tstart, &tstop, &tstep)) { | ^~~~~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:422:13: note: declared here 422 | extern bool if_tranparams(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:48:10: error: too many arguments to function 'ciprefix'; expected 0, have 2 48 | if (!ciprefix("tran", plot_cur->pl_typename)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:54:11: error: too many arguments to function 'plot_alloc'; expected 0, have 1 54 | new = plot_alloc("transient"); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:461:21: note: declared here 461 | extern struct plot *plot_alloc(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:56:20: error: too many arguments to function 'copy'; expected 0, have 1 56 | new->pl_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:57:21: error: too many arguments to function 'copy'; expected 0, have 1 57 | new->pl_title = copy(old->pl_title); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:58:20: error: too many arguments to function 'copy'; expected 0, have 1 58 | new->pl_date = copy(old->pl_date); | ^~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:60:5: error: too many arguments to function 'plot_new'; expected 0, have 1 60 | plot_new(new); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:473:13: note: declared here 473 | extern void plot_new(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:61:5: error: too many arguments to function 'plot_setcur'; expected 0, have 1 61 | plot_setcur(new->pl_typename); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:472:13: note: declared here 472 | extern void plot_setcur(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:64:15: note: in expansion of macro 'alloc' 64 | newtime = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:65:23: error: too many arguments to function 'copy'; expected 0, have 1 65 | newtime->v_name = copy(oldtime->v_name); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:71:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 71 | newtime->v_realdata = (double *) tmalloc(len * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//linear.c:78:17: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 78 | v = vec_fromplot(wl->wl_word, old); | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:456:21: note: declared here 456 | extern struct dvec *vec_fromplot(); | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c: In function 'com_help': /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | com_help(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:27:1: error: number of arguments doesn't match prototype 27 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:8: /home/pbulk/work/cad/spice/work/src/include/fteext.h:304:13: error: prototype declaration 304 | extern void com_help(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:43:9: error: too many arguments to function 'out_printf'; expected 0, have 1 43 | out_printf( | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:47:13: error: too many arguments to function 'out_printf'; expected 0, have 1 47 | out_printf( | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:49:13: error: too many arguments to function 'out_printf'; expected 0, have 1 49 | out_printf( | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:63:13: error: too many arguments to function 'out_printf'; expected 0, have 2 63 | out_printf("%s ", ccc[i]->co_comname); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:64:13: error: too many arguments to function 'out_printf'; expected 0, have 2 64 | out_printf(ccc[i]->co_help, cp_program); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:65:13: error: too many arguments to function 'out_send'; expected 0, have 1 65 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:71:21: error: too many arguments to function 'out_printf'; expected 0, have 2 71 | out_printf("%s ", c->co_comname); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:72:21: error: too many arguments to function 'out_printf'; expected 0, have 2 72 | out_printf(c->co_help, cp_program); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:74:25: error: too many arguments to function 'out_send'; expected 0, have 1 74 | out_send( | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:76:21: error: too many arguments to function 'out_send'; expected 0, have 1 76 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:91:21: error: too many arguments to function 'out_printf'; expected 0, have 2 91 | out_printf("%s is aliased to ", | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:94:21: error: too many arguments to function 'wl_print'; expected 0, have 2 94 | wl_print(al->al_text, cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:95:21: error: too many arguments to function 'out_send'; expected 0, have 1 95 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:101:5: error: too many arguments to function 'out_send'; expected 0, have 1 101 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c: In function 'com_ahelp': /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:106:1: warning: old-style function definition [-Wold-style-definition] 106 | com_ahelp(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:108:1: error: number of arguments doesn't match prototype 108 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:302:13: error: prototype declaration 302 | extern void com_ahelp(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:119:7: error: too many arguments to function 'com_help'; expected 0, have 1 119 | com_help(wl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:25:1: note: declared here 25 | com_help(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:133:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 133 | if (cp_getvar("level", VT_STRING, slevel)) { | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:148:5: error: too many arguments to function 'out_printf'; expected 0, have 1 148 | out_printf( | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:150:5: error: too many arguments to function 'out_printf'; expected 0, have 1 150 | out_printf( | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:152:5: error: too many arguments to function 'out_printf'; expected 0, have 1 152 | out_printf( | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:170:9: error: too many arguments to function 'out_printf'; expected 0, have 2 170 | out_printf("%s ", com->co_comname); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:171:9: error: too many arguments to function 'out_printf'; expected 0, have 2 171 | out_printf(com->co_help, cp_program); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:172:9: error: too many arguments to function 'out_send'; expected 0, have 1 172 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:176:5: error: too many arguments to function 'out_send'; expected 0, have 1 176 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c: In function 'com_ghelp': /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:183:1: warning: old-style function definition [-Wold-style-definition] 183 | com_ghelp(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:185:1: error: number of arguments doesn't match prototype 185 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:303:13: error: prototype declaration 303 | extern void com_ghelp(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:189:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 189 | if (cp_getvar("helppath", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:190:16: error: too many arguments to function 'copy'; expected 0, have 1 190 | path = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:193:9: error: too many arguments to function 'com_help'; expected 0, have 1 193 | com_help(wl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:25:1: note: declared here 25 | com_help(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:196:19: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 196 | if (!(npath = cp_tildexpand(path))) { | ^~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: note: declared here 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:199:9: error: too many arguments to function 'com_help'; expected 0, have 1 199 | com_help(wl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:25:1: note: declared here 25 | com_help(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:203:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 203 | if (cp_getvar("helpregfont", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:204:27: error: too many arguments to function 'copy'; expected 0, have 1 204 | hlp_regfontname = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:205:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 205 | if (cp_getvar("helpboldfont", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:206:28: error: too many arguments to function 'copy'; expected 0, have 1 206 | hlp_boldfontname = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:207:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 207 | if (cp_getvar("helpitalicfont", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:208:30: error: too many arguments to function 'copy'; expected 0, have 1 208 | hlp_italicfontname = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:209:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 209 | if (cp_getvar("helptitlefont", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:210:29: error: too many arguments to function 'copy'; expected 0, have 1 210 | hlp_titlefontname = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:211:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 211 | if (cp_getvar("helpbuttonfont", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:212:30: error: too many arguments to function 'copy'; expected 0, have 1 212 | hlp_buttonfontname = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:213:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 213 | if (cp_getvar("helpinitxpos", VT_NUM, (char *) &i)) | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:215:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 215 | if (cp_getvar("helpinitypos", VT_NUM, (char *) &i)) | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:217:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 217 | if (cp_getvar("helpbuttonstyle", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:218:13: error: too many arguments to function 'cieq'; expected 0, have 2 218 | if (cieq(buf, "left")) | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:220:18: error: too many arguments to function 'cieq'; expected 0, have 2 220 | else if (cieq(buf, "center")) | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:222:18: error: too many arguments to function 'cieq'; expected 0, have 2 222 | else if (cieq(buf, "unif")) | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:228:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 228 | if (cp_getvar("width", VT_NUM, (char *) &i)) | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:230:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 230 | if (cp_getvar("display", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:231:27: error: too many arguments to function 'copy'; expected 0, have 1 231 | hlp_displayname = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:232:14: error: too many arguments to function 'cp_getvar'; expected 0, have 3 232 | else if (cp_getvar("device", VT_STRING, buf)) | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:233:27: error: too many arguments to function 'copy'; expected 0, have 1 233 | hlp_displayname = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:236:5: error: too many arguments to function 'hlp_main'; expected 0, have 2 236 | hlp_main(path, wl); | ^~~~~~~~ ~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:11: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:122:13: note: declared here 122 | extern void hlp_main(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c: In function 'hcomp': /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:241:1: warning: old-style function definition [-Wold-style-definition] 241 | hcomp(c1, c2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:243:1: error: number of arguments doesn't match prototype 243 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:307:12: error: prototype declaration 307 | extern int hcomp(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c: In function 'com_quit': /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:249:1: warning: old-style function definition [-Wold-style-definition] 249 | com_quit(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:251:1: error: number of arguments doesn't match prototype 251 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:305:13: error: prototype declaration 305 | extern void com_quit(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:258:12: error: too many arguments to function 'cp_getvar'; expected 0, have 3 258 | (void) cp_getvar("noaskquit", VT_BOOL, (char *) &noask); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:260:5: error: too many arguments to function 'cp_ccon'; expected 0, have 1 260 | cp_ccon(false); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: note: declared here 36 | extern void cp_ccon(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c: In function 'com_bug': /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:332:1: warning: old-style function definition [-Wold-style-definition] 332 | com_bug(wl) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:334:1: error: number of arguments doesn't match prototype 334 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:301:13: error: prototype declaration 301 | extern void com_bug(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c: In function 'com_version': /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:371:1: warning: old-style function definition [-Wold-style-definition] 371 | com_version(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:373:1: error: number of arguments doesn't match prototype 373 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:306:13: error: prototype declaration 306 | extern void com_version(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:388:13: error: too many arguments to function 'wl_flatten'; expected 0, have 1 388 | s = wl_flatten(wl); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//misccoms.c:396:9: note: in expansion of macro 'tfree' 396 | tfree(s); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//miscvars.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//miscvars.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//nutctab.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//nutctab.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c: In function 'inp_nutsource': /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | inp_nutsource(fp, comfile, filename) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:28:1: error: number of arguments doesn't match prototype 28 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:274:13: error: prototype declaration 274 | extern void inp_nutsource(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:37:5: error: too many arguments to function 'inp_readall'; expected 0, have 2 37 | inp_readall(fp, &deck); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:269:13: note: declared here 269 | extern void inp_readall(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:41:16: error: too many arguments to function 'inp_deckcopy'; expected 0, have 1 41 | realdeck = inp_deckcopy(deck); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:439:21: note: declared here 439 | extern struct line *inp_deckcopy(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:45:14: error: too many arguments to function 'copy'; expected 0, have 1 45 | tt = copy(deck->li_line); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:79:18: error: too many arguments to function 'ciprefix'; expected 0, have 2 79 | if (!ciprefix(".control", dd->li_line) && | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:80:22: error: too many arguments to function 'ciprefix'; expected 0, have 2 80 | !ciprefix(".endc", dd->li_line)) | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:82:28: error: too many arguments to function 'cp_evloop'; expected 0, have 1 82 | (void) cp_evloop(dd->li_line + 2); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:84:28: error: too many arguments to function 'cp_evloop'; expected 0, have 1 84 | (void) cp_evloop(dd->li_line); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:85:13: note: in expansion of macro 'tfree' 85 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:86:13: note: in expansion of macro 'tfree' 86 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:102:17: error: too many arguments to function 'ciprefix'; expected 0, have 2 102 | if (ciprefix(".control", dd->li_line)) { | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:104:17: note: in expansion of macro 'tfree' 104 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:105:17: note: in expansion of macro 'tfree' 105 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:111:24: error: too many arguments to function 'ciprefix'; expected 0, have 2 111 | } else if (ciprefix(".endc", dd->li_line)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:113:17: note: in expansion of macro 'tfree' 113 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:114:17: note: in expansion of macro 'tfree' 114 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:120:36: error: too many arguments to function 'prefix'; expected 0, have 2 120 | } else if (commands || prefix("*#", dd->li_line)) { | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:121:22: note: in expansion of macro 'alloc' 121 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:128:21: error: too many arguments to function 'prefix'; expected 0, have 2 128 | if (prefix("*#", dd->li_line)) | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:129:35: error: too many arguments to function 'copy'; expected 0, have 1 129 | wl->wl_word = copy(dd->li_line + 2); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:133:17: note: in expansion of macro 'tfree' 133 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:139:17: note: in expansion of macro 'tfree' 139 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:140:17: note: in expansion of macro 'tfree' 140 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:142:17: error: too many arguments to function 'inp_casefix'; expected 0, have 1 142 | inp_casefix(s); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: note: declared here 267 | extern void inp_casefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:143:17: error: too many arguments to function 'inp_casefix'; expected 0, have 1 143 | inp_casefix(dd->li_line); | ^~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: note: declared here 267 | extern void inp_casefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:144:40: error: too many arguments to function 'ciprefix'; expected 0, have 2 144 | if (eq(s, ".width") || ciprefix(".four", s) || | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:149:40: note: in expansion of macro 'alloc' 149 | end->wl_next = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:153:36: note: in expansion of macro 'alloc' 153 | wl = end = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:154:36: error: too many arguments to function 'copy'; expected 0, have 1 154 | end->wl_word = copy(dd->li_line); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:156:21: note: in expansion of macro 'tfree' 156 | tfree(dd->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:157:21: note: in expansion of macro 'tfree' 157 | tfree(dd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:170:18: error: too many arguments to function 'cp_getvar'; expected 0, have 3 170 | if (!cp_getvar("nosubckt", VT_BOOL, (char *) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:172:33: error: too many arguments to function 'inp_subcktexpand'; expected 0, have 1 172 | deck->li_next = inp_subcktexpand(deck-> | ^~~~~~~~~~~~~~~~ ~~~~~~ 173 | li_next); | ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:440:21: note: declared here 440 | extern struct line *inp_subcktexpand(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:175:13: error: too many arguments to function 'nutinp_dodeck'; expected 0, have 6 175 | nutinp_dodeck(deck, tt, wl, false, options, filename); | ^~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:275:13: note: declared here 275 | extern void nutinp_dodeck(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:180:29: error: too many arguments to function 'wl_reverse'; expected 0, have 1 180 | for (end = wl = wl_reverse(controls); wl; | ^~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:71:18: note: declared here 71 | extern wordlist *wl_reverse(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:182:24: error: too many arguments to function 'cp_evloop'; expected 0, have 1 182 | (void) cp_evloop(wl->wl_word); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:183:13: error: too many arguments to function 'wl_free'; expected 0, have 1 183 | wl_free(end); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c: In function 'nutcom_source': /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:199:1: warning: old-style function definition [-Wold-style-definition] 199 | nutcom_source(wl) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:201:1: error: number of arguments doesn't match prototype 201 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:276:13: error: prototype declaration 276 | extern void nutcom_source(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:213:20: error: too many arguments to function 'smktemp'; expected 0, have 1 213 | tempfile = smktemp("sp"); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:214:20: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 214 | if (!(fp = inp_pathopen(tempfile, "w+"))) { | ^~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:220:24: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 220 | if (!(tp = inp_pathopen(wl->wl_word, "r"))) { | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:236:14: error: too many arguments to function 'inp_pathopen'; expected 0, have 2 236 | fp = inp_pathopen(wl->wl_word, "r"); | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:270:14: note: declared here 270 | extern FILE *inp_pathopen(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:244:22: error: too many arguments to function 'substring'; expected 0, have 2 244 | if (ft_nutmeg || substring(".spiceinit", owl->wl_word) | ^~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:245:16: error: too many arguments to function 'substring'; expected 0, have 2 245 | || substring("spice.rc", owl->wl_word)) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:246:9: error: too many arguments to function 'inp_nutsource'; expected 0, have 3 246 | inp_nutsource(fp, true, tempfile ? (char *) NULL : wl->wl_word); | ^~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:24:1: note: declared here 24 | inp_nutsource(fp, comfile, filename) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:248:9: error: too many arguments to function 'inp_nutsource'; expected 0, have 3 248 | inp_nutsource(fp, false, tempfile ? (char *) NULL : wl->wl_word); | ^~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:24:1: note: declared here 24 | inp_nutsource(fp, comfile, filename) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c: In function 'nutinp_source': /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:258:1: warning: old-style function definition [-Wold-style-definition] 258 | nutinp_source(file) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:264:5: error: too many arguments to function 'nutcom_source'; expected 0, have 1 264 | nutcom_source(&wl); | ^~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:199:1: note: declared here 199 | nutcom_source(wl) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c: In function 'nutinp_dodeck': /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:276:1: warning: old-style function definition [-Wold-style-definition] 276 | nutinp_dodeck(deck, tt, end, reuse, options, filename) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutinp.c:283:1: error: number of arguments doesn't match prototype 283 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:275:13: error: prototype declaration 275 | extern void nutinp_dodeck(); | ^~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//nutmegif.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//nutmegif.c:10: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutmegif.c: In function 'nutif_getparam': /home/pbulk/work/cad/spice/work/src/lib/fte//nutmegif.c:16:34: warning: old-style function definition [-Wold-style-definition] 16 | /* ARGSUSED */ struct variable * nutif_getparam(ckt, name, param, ind, do_model) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//nutmegif.c:20:9: error: number of arguments doesn't match prototype 20 | { return ((struct variable *) NULL); } | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//nutmegif.c:11: /home/pbulk/work/cad/spice/work/src/include/fteext.h:428:25: error: prototype declaration 428 | extern struct variable *nutif_getparam(); | ^~~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//options.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c: In function 'cp_enqvar': /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:28:1: warning: old-style function definition [-Wold-style-definition] 28 | cp_enqvar(word) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:30:1: error: number of arguments doesn't match prototype 30 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:327:25: error: prototype declaration 327 | extern struct variable *cp_enqvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:38:13: error: too many arguments to function 'vec_get'; expected 0, have 1 38 | d = vec_get(word); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:41:22: note: in expansion of macro 'alloc' 41 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:42:31: error: too many arguments to function 'copy'; expected 0, have 1 42 | vv->va_name = copy(word); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:52:22: note: in expansion of macro 'alloc' 52 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:54:31: error: too many arguments to function 'copy'; expected 0, have 1 54 | vv->va_name = copy(word); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:58:26: note: in expansion of macro 'alloc' 58 | tv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:84:18: note: in expansion of macro 'alloc' 84 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:88:29: error: too many arguments to function 'copy'; expected 0, have 1 88 | vv->va_string = copy(plot_cur->pl_name); | ^~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:90:18: note: in expansion of macro 'alloc' 90 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:94:29: error: too many arguments to function 'copy'; expected 0, have 1 94 | vv->va_string = copy(plot_cur->pl_title); | ^~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:96:18: note: in expansion of macro 'alloc' 96 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:100:29: error: too many arguments to function 'copy'; expected 0, have 1 100 | vv->va_string = copy(plot_cur->pl_date); | ^~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:102:18: note: in expansion of macro 'alloc' 102 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:106:29: error: too many arguments to function 'copy'; expected 0, have 1 106 | vv->va_string = copy(plot_cur->pl_typename); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:108:18: note: in expansion of macro 'alloc' 108 | vv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:115:22: note: in expansion of macro 'alloc' 115 | tv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:117:33: error: too many arguments to function 'copy'; expected 0, have 1 117 | tv->va_string = copy(pl->pl_typename); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c: In function 'cp_usrvars': /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:139:1: warning: old-style function definition [-Wold-style-definition] 139 | cp_usrvars(v1, v2) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:141:1: error: number of arguments doesn't match prototype 141 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:182:13: error: prototype declaration 182 | extern void cp_usrvars(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:148:14: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 148 | if (tv = cp_enqvar("plots")) { | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:28:1: note: declared here 28 | cp_enqvar(word) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:152:14: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 152 | if (tv = cp_enqvar("curplot")) { | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:28:1: note: declared here 28 | cp_enqvar(word) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:156:14: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 156 | if (tv = cp_enqvar("curplottitle")) { | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:28:1: note: declared here 28 | cp_enqvar(word) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:160:14: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 160 | if (tv = cp_enqvar("curplotname")) { | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:28:1: note: declared here 28 | cp_enqvar(word) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:164:14: error: too many arguments to function 'cp_enqvar'; expected 0, have 1 164 | if (tv = cp_enqvar("curplotdate")) { | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:28:1: note: declared here 28 | cp_enqvar(word) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c: In function 'inp_getopts': /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:180:1: warning: old-style function definition [-Wold-style-definition] 180 | inp_getopts(deck) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:182:1: error: number of arguments doesn't match prototype 182 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:326:21: error: prototype declaration 326 | extern struct line *inp_getopts(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:187:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 187 | if (ciprefix(".opt", dd->li_line)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:188:13: error: too many arguments to function 'inp_casefix'; expected 0, have 1 188 | inp_casefix(dd->li_line); | ^~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:267:13: note: declared here 267 | extern void inp_casefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c: In function 'cp_usrset': /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:209:1: warning: old-style function definition [-Wold-style-definition] 209 | cp_usrset(var, isset) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:212:1: error: number of arguments doesn't match prototype 212 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:183:12: error: prototype declaration 183 | extern int cp_usrset(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:230:21: error: too many arguments to function 'setdb'; expected 0, have 1 230 | setdb(tv->va_string); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:201:13: note: declared here 201 | static void setdb(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:232:13: error: too many arguments to function 'setdb'; expected 0, have 1 232 | setdb(var->va_string); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:201:13: note: declared here 201 | static void setdb(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:240:22: error: too many arguments to function 'copy'; expected 0, have 1 240 | cp_program = copy(var->va_string); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:242:22: error: too many arguments to function 'copy'; expected 0, have 1 242 | ft_rawfile = copy(var->va_string); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:281:17: error: too many arguments to function 'cp_rehash'; expected 0, have 2 281 | cp_rehash(s, true); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:147:13: note: declared here 147 | extern void cp_rehash(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:296:13: error: too many arguments to function 'plot_setcur'; expected 0, have 1 296 | plot_setcur(var->va_string); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:472:13: note: declared here 472 | extern void plot_setcur(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:302:33: error: too many arguments to function 'copy'; expected 0, have 1 302 | plot_cur->pl_name = copy(var->va_string); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:308:34: error: too many arguments to function 'copy'; expected 0, have 1 308 | plot_cur->pl_title = copy(var->va_string); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:314:33: error: too many arguments to function 'copy'; expected 0, have 1 314 | plot_cur->pl_date = copy(var->va_string); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:375:13: error: too many arguments to function 'if_option'; expected 0, have 4 375 | if (if_option(ft_curckt->ci_ckt, var->va_name, var->va_type, vv)) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: note: declared here 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:377:16: error: too many arguments to function 'if_option'; expected 0, have 4 377 | } else if (if_option(NULL, var->va_name, var->va_type, vv)) | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: note: declared here 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//options.c: In function 'setdb': /home/pbulk/work/cad/spice/work/src/lib/fte//options.c:383:1: warning: old-style function definition [-Wold-style-definition] 383 | setdb(str) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:15: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:14: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTpBeginPlot': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:89:1: warning: old-style function definition [-Wold-style-definition] 89 | OUTpBeginPlot(circuitPtr, analysisPtr, analName, refName, refType, | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:108:13: error: too many arguments to function 'beginPlot'; expected 0, have 11 108 | return (beginPlot(analysisPtr, circuitPtr, name, | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:64:12: note: declared here 64 | static int beginPlot(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTwBeginPlot': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:115:1: warning: old-style function definition [-Wold-style-definition] 115 | OUTwBeginPlot(circuitPtr, analysisPtr, analName, refName, refType, | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:127:13: error: too many arguments to function 'beginPlot'; expected 0, have 11 127 | return (beginPlot(analysisPtr, circuitPtr, "circuit name", | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:64:12: note: declared here 64 | static int beginPlot(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'beginPlot': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:134:1: warning: old-style function definition [-Wold-style-definition] 134 | beginPlot(analysisPtr, circuitPtr, cktName, analName, refName, refType, | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:158:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 158 | if (cp_getvar("printinfo", VT_BOOL, (char *) &printinfo)) | ^~~~~~~~~ ~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:161:19: note: in expansion of macro 'alloc' 161 | *runp = run = alloc(struct runDesc); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:166:17: error: too many arguments to function 'copy'; expected 0, have 1 166 | run->name = copy(cktName); | ^~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:167:17: error: too many arguments to function 'copy'; expected 0, have 1 167 | run->type = copy(analName); | ^~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:180:30: error: too many arguments to function 'tmalloc'; expected 0, have 1 180 | savesused = (bool *) tmalloc(sizeof (bool) * numsaves); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:183:39: error: too many arguments to function 'cieq'; expected 0, have 2 183 | if (saves[i].analysis && !cieq(saves[i].analysis, an_name)) { | ^~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:188:17: error: too many arguments to function 'cieq'; expected 0, have 2 188 | if (cieq(saves[i].name, "all")) { | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:199:9: error: too many arguments to function 'addDataDesc'; expected 0, have 4 199 | addDataDesc(run, refName, refType, -1); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:65:12: note: declared here 65 | static int addDataDesc(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:201:34: error: too many arguments to function 'name_eq'; expected 0, have 2 201 | if (!savesused[i] && name_eq(saves[i].name, refName)) { | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:79:13: note: declared here 79 | static bool name_eq(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:215:25: error: too many arguments to function 'name_eq'; expected 0, have 2 215 | if (name_eq(saves[i].name, dataNames[j])) { | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:79:13: note: declared here 79 | static bool name_eq(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:216:25: error: too many arguments to function 'addDataDesc'; expected 0, have 4 216 | addDataDesc(run, dataNames[j], dataType, j); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:65:12: note: declared here 65 | static int addDataDesc(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:226:30: error: too many arguments to function 'name_eq'; expected 0, have 2 226 | if (!refName || !name_eq(dataNames[i], refName)) { | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:79:13: note: declared here 79 | static bool name_eq(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:227:17: error: too many arguments to function 'addDataDesc'; expected 0, have 4 227 | addDataDesc(run, dataNames[i], dataType, i); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:65:12: note: declared here 65 | static int addDataDesc(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:235:14: error: too many arguments to function 'parseSpecial'; expected 0, have 4 235 | if (!parseSpecial(saves[i].name, namebuf, parambuf, depbuf)) { | ^~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:78:13: note: declared here 78 | static bool parseSpecial(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:244:21: error: too many arguments to function 'name_eq'; expected 0, have 2 244 | if (name_eq(depbuf, run->data[j].name)) | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:79:13: note: declared here 79 | static bool name_eq(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:249:25: error: too many arguments to function 'name_eq'; expected 0, have 2 249 | if (name_eq(depbuf, dataNames[j])) | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:79:13: note: declared here 79 | static bool name_eq(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:257:17: error: too many arguments to function 'addDataDesc'; expected 0, have 4 257 | addDataDesc(run, dataNames[j], dataType, j); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:65:12: note: declared here 65 | static int addDataDesc(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:264:9: error: too many arguments to function 'addSpecialDesc'; expected 0, have 5 264 | addSpecialDesc(run, saves[i].name, namebuf, parambuf, depind); | ^~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:66:12: note: declared here 66 | static int addSpecialDesc(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:269:13: note: in expansion of macro 'tfree' 269 | tfree(saves[i].analysis); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:270:13: note: in expansion of macro 'tfree' 270 | tfree(saves[i].name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:272:9: note: in expansion of macro 'tfree' 272 | tfree(savesused); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:290:9: error: too many arguments to function 'fileInit'; expected 0, have 1 290 | fileInit(run); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:67:13: note: declared here 67 | static void fileInit(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:292:9: error: too many arguments to function 'plotInit'; expected 0, have 1 292 | plotInit(run); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:74:13: note: declared here 74 | static void plotInit(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'addDataDesc': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:301:1: warning: old-style function definition [-Wold-style-definition] 301 | addDataDesc(run, name, type, ind) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:310:34: error: too many arguments to function 'tmalloc'; expected 0, have 1 310 | run->data = (dataDesc *) tmalloc(sizeof (dataDesc)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:312:34: error: too many arguments to function 'trealloc'; expected 0, have 2 312 | run->data = (dataDesc *) trealloc((char *) run->data, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:318:18: error: too many arguments to function 'copy'; expected 0, have 1 318 | data->name = copy(name); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'addSpecialDesc': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:335:1: warning: old-style function definition [-Wold-style-definition] 335 | addSpecialDesc(run, name, devname, param, depind) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:346:34: error: too many arguments to function 'tmalloc'; expected 0, have 1 346 | run->data = (dataDesc *) tmalloc(sizeof (dataDesc)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:348:34: error: too many arguments to function 'trealloc'; expected 0, have 2 348 | run->data = (dataDesc *) trealloc((char *) run->data, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:354:18: error: too many arguments to function 'copy'; expected 0, have 1 354 | data->name = copy(name); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:360:27: error: too many arguments to function 'copy'; expected 0, have 1 360 | data->specParamName = copy(param); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTpData': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:375:1: warning: old-style function definition [-Wold-style-definition] 375 | OUTpData(plotPtr, refValue, valuePtr) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:388:13: error: too many arguments to function 'fileInit_pass2'; expected 0, have 1 388 | fileInit_pass2(plotPtr); | ^~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:68:13: note: declared here 68 | static void fileInit_pass2( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:389:9: error: too many arguments to function 'fileStartPoint'; expected 0, have 3 389 | fileStartPoint(run->fp, run->binary, run->pointCount); | ^~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:69:13: note: declared here 69 | static void fileStartPoint(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:393:13: error: too many arguments to function 'fileAddComplexValue'; expected 0, have 3 393 | fileAddComplexValue(run->fp, run->binary, refValue->cValue); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:71:13: note: declared here 71 | static void fileAddComplexValue(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:395:13: error: too many arguments to function 'fileAddRealValue'; expected 0, have 3 395 | fileAddRealValue(run->fp, run->binary, refValue->rValue); | ^~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:70:13: note: declared here 70 | static void fileAddRealValue(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:404:19: error: too many arguments to function 'fileAddRealValue'; expected 0, have 3 404 | fileAddRealValue(run->fp, run->binary, | ^~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:70:13: note: declared here 70 | static void fileAddRealValue(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:408:19: error: too many arguments to function 'fileAddComplexValue'; expected 0, have 3 408 | fileAddComplexValue(run->fp, run->binary, | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:71:13: note: declared here 71 | static void fileAddComplexValue(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:415:22: error: too many arguments to function 'getSpecial'; expected 0, have 3 415 | if (!getSpecial(&run->data[i], run, &val)) | ^~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:80:13: note: declared here 80 | static bool getSpecial(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:418:19: error: too many arguments to function 'fileAddRealValue'; expected 0, have 3 418 | fileAddRealValue(run->fp, run->binary, | ^~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:70:13: note: declared here 70 | static void fileAddRealValue(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:421:19: error: too many arguments to function 'fileAddComplexValue'; expected 0, have 3 421 | fileAddComplexValue(run->fp, run->binary, | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:71:13: note: declared here 71 | static void fileAddComplexValue(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:427:9: error: too many arguments to function 'fileEndPoint'; expected 0, have 2 427 | fileEndPoint(run->fp, run->binary); | ^~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:72:13: note: declared here 72 | static void fileEndPoint(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:432:21: error: too many arguments to function 'plotAddRealValue'; expected 0, have 2 432 | plotAddRealValue(&run->data[i], | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:75:13: note: declared here 75 | static void plotAddRealValue(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:435:21: error: too many arguments to function 'plotAddComplexValue'; expected 0, have 2 435 | plotAddComplexValue(&run->data[i], | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:76:13: note: declared here 76 | static void plotAddComplexValue(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:439:21: error: too many arguments to function 'plotAddRealValue'; expected 0, have 2 439 | plotAddRealValue(&run->data[i], | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:75:13: note: declared here 75 | static void plotAddRealValue(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:443:21: error: too many arguments to function 'plotAddComplexValue'; expected 0, have 2 443 | plotAddComplexValue(&run->data[i], | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:76:13: note: declared here 76 | static void plotAddComplexValue(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:448:22: error: too many arguments to function 'getSpecial'; expected 0, have 3 448 | if (!getSpecial(&run->data[i], run, &val)) | ^~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:80:13: note: declared here 80 | static bool getSpecial(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:451:21: error: too many arguments to function 'plotAddRealValue'; expected 0, have 2 451 | plotAddRealValue(&run->data[i], | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:75:13: note: declared here 75 | static void plotAddRealValue(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:454:21: error: too many arguments to function 'plotAddComplexValue'; expected 0, have 2 454 | plotAddComplexValue(&run->data[i], | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:76:13: note: declared here 76 | static void plotAddComplexValue(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:460:9: error: too many arguments to function 'gr_iplot'; expected 0, have 1 460 | gr_iplot(run->runPlot); | ^~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:16: /home/pbulk/work/cad/spice/work/src/include/fteext.h:241:13: note: declared here 241 | extern void gr_iplot(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:463:9: error: too many arguments to function 'ft_bpcheck'; expected 0, have 2 463 | if (ft_bpcheck(run->runPlot, run->pointCount) == false) | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:48:13: note: declared here 48 | extern bool ft_bpcheck(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTwReference': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:473:1: warning: old-style function definition [-Wold-style-definition] 473 | OUTwReference(plotPtr, valuePtr, refPtr) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTwData': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:483:1: warning: old-style function definition [-Wold-style-definition] 483 | OUTwData(plotPtr, dataIndex, valuePtr, refPtr) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTwEnd': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:494:1: warning: old-style function definition [-Wold-style-definition] 494 | OUTwEnd(plotPtr) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTendPlot': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:503:1: warning: old-style function definition [-Wold-style-definition] 503 | OUTendPlot(plotPtr) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:509:9: error: too many arguments to function 'fileEnd'; expected 0, have 1 509 | fileEnd(run); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:73:13: note: declared here 73 | static void fileEnd(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:512:9: error: too many arguments to function 'plotEnd'; expected 0, have 1 512 | plotEnd(run); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:77:13: note: declared here 77 | static void plotEnd(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:515:5: error: too many arguments to function 'freeRun'; expected 0, have 1 515 | freeRun(run); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:81:13: note: declared here 81 | static void freeRun(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTbeginDomain': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:524:1: warning: old-style function definition [-Wold-style-definition] 524 | OUTbeginDomain(plotPtr, refName, refType, outerRefValue) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTendDomain': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:535:1: warning: old-style function definition [-Wold-style-definition] 535 | OUTendDomain(plotPtr) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTattributes': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:545:1: warning: old-style function definition [-Wold-style-definition] 545 | OUTattributes(plotPtr, varName, param, value) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'fileInit': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:590:1: warning: old-style function definition [-Wold-style-definition] 590 | fileInit(run) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'fileInit_pass2': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:634:1: warning: old-style function definition [-Wold-style-definition] 634 | fileInit_pass2(run) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:647:13: error: too many arguments to function 'substring'; expected 0, have 2 647 | if (substring("#branch", name)) | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:649:18: error: too many arguments to function 'cieq'; expected 0, have 2 649 | else if (cieq(name, "time")) | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:651:18: error: too many arguments to function 'cieq'; expected 0, have 2 651 | else if (cieq(name, "frequency")) | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:657:17: error: too many arguments to function 'ft_typenames'; expected 0, have 1 657 | ft_typenames(type)); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:448:14: note: declared here 448 | extern char *ft_typenames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'fileStartPoint': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:670:1: warning: old-style function definition [-Wold-style-definition] 670 | fileStartPoint(fp, bin, num) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'fileAddRealValue': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:682:1: warning: old-style function definition [-Wold-style-definition] 682 | fileAddRealValue(fp, bin, value) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'fileAddComplexValue': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:696:1: warning: old-style function definition [-Wold-style-definition] 696 | fileAddComplexValue(fp, bin, value) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'fileEndPoint': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:714:1: warning: old-style function definition [-Wold-style-definition] 714 | fileEndPoint(fp, bin) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'fileEnd': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:724:1: warning: old-style function definition [-Wold-style-definition] 724 | fileEnd(run) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'plotInit': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:748:1: warning: old-style function definition [-Wold-style-definition] 748 | plotInit(run) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:751:23: error: too many arguments to function 'plot_alloc'; expected 0, have 1 751 | struct plot *pl = plot_alloc(run->type); | ^~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:461:21: note: declared here 461 | extern struct plot *plot_alloc(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:757:20: error: too many arguments to function 'copy'; expected 0, have 1 757 | pl->pl_title = copy(run->name); | ^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:758:19: error: too many arguments to function 'copy'; expected 0, have 1 758 | pl->pl_name = copy(run->type); | ^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:759:19: error: too many arguments to function 'copy'; expected 0, have 1 759 | pl->pl_date = copy(datestring( )); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:761:5: error: too many arguments to function 'plot_new'; expected 0, have 1 761 | plot_new(pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:473:13: note: declared here 473 | extern void plot_new(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:762:5: error: too many arguments to function 'plot_setcur'; expected 0, have 1 762 | plot_setcur(pl->pl_typename); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:472:13: note: declared here 472 | extern void plot_setcur(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:774:13: note: in expansion of macro 'alloc' 774 | v = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:777:25: error: too many arguments to function 'copy'; expected 0, have 1 777 | v->v_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:779:25: error: too many arguments to function 'copy'; expected 0, have 1 779 | v->v_name = copy(dd->name); | ^~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:780:13: error: too many arguments to function 'substring'; expected 0, have 2 780 | if (substring("#branch", v->v_name)) | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:782:18: error: too many arguments to function 'cieq'; expected 0, have 2 782 | else if (cieq(v->v_name, "time")) | ^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:784:18: error: too many arguments to function 'cieq'; expected 0, have 2 784 | else if (cieq(v->v_name, "frequency")) | ^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:800:9: error: too many arguments to function 'vec_new'; expected 0, have 1 800 | vec_new(v); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'plotAddRealValue': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:806:1: warning: old-style function definition [-Wold-style-definition] 806 | plotAddRealValue(desc, value) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:813:34: error: too many arguments to function 'trealloc'; expected 0, have 2 813 | v->v_realdata = (double *) trealloc((char *) v->v_realdata, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:818:35: error: too many arguments to function 'trealloc'; expected 0, have 2 818 | v->v_compdata = (complex *) trealloc((char *) v->v_compdata, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'plotAddComplexValue': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:829:1: warning: old-style function definition [-Wold-style-definition] 829 | plotAddComplexValue(desc, value) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:835:33: error: too many arguments to function 'trealloc'; expected 0, have 2 835 | v->v_compdata = (complex *) trealloc((char *) v->v_compdata, | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'plotEnd': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:846:1: warning: old-style function definition [-Wold-style-definition] 846 | plotEnd(run) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'parseSpecial': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:860:1: warning: old-style function definition [-Wold-style-definition] 860 | parseSpecial(name, dev, param, ind) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'name_eq': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:905:1: warning: old-style function definition [-Wold-style-definition] 905 | name_eq(n1, n2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'getSpecial': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:929:1: warning: old-style function definition [-Wold-style-definition] 929 | getSpecial(desc, run, val) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:943:21: error: too many arguments to function 'if_getstat'; expected 0, have 2 943 | } else if (vv = if_getstat(run->circuit, &desc->name[1])) { | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:435:25: note: declared here 435 | extern struct variable *if_getstat(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:955:7: note: in expansion of macro 'tfree' 955 | tfree(vv); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'freeRun': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:963:1: warning: old-style function definition [-Wold-style-definition] 963 | freeRun(run) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:971:7: note: in expansion of macro 'tfree' 971 | tfree(run->data[i].name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:972:7: note: in expansion of macro 'tfree' 972 | tfree(run->data[i].specParamName); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:974:5: note: in expansion of macro 'tfree' 974 | tfree(run->data); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c: In function 'OUTerror': /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:1010:1: warning: old-style function definition [-Wold-style-definition] 1010 | OUTerror(flags,format,names) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//outitf.c:1020:32: error: too many arguments to function 'cp_getvar'; expected 0, have 3 1020 | if ((flags == ERR_INFO) && cp_getvar("printinfo", VT_BOOL, | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'ft_getpnames': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:34:1: warning: old-style function definition [-Wold-style-definition] 34 | ft_getpnames(wl, check) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:37:1: error: number of arguments doesn't match prototype 37 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: error: prototype declaration 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:48:20: error: too many arguments to function 'wl_flatten'; expected 0, have 1 48 | xsbuf = sbuf = wl_flatten(wl); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:52:13: note: in expansion of macro 'tfree' 52 | tfree(xsbuf); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:62:22: error: too many arguments to function 'copy'; expected 0, have 1 62 | p->pn_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:70:5: note: in expansion of macro 'tfree' 70 | tfree(xsbuf); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:72:14: error: too many arguments to function 'checkvalid'; expected 0, have 1 72 | if (!checkvalid(pn)) | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:20:13: note: declared here 20 | static bool checkvalid(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'checkvalid': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:82:1: warning: old-style function definition [-Wold-style-definition] 82 | checkvalid(pn) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:101:18: error: too many arguments to function 'checkvalid'; expected 0, have 1 101 | if (!checkvalid(pn->pn_left)) | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:82:1: note: declared here 82 | checkvalid(pn) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:104:18: error: too many arguments to function 'checkvalid'; expected 0, have 1 104 | if (!checkvalid(pn->pn_left)) | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:82:1: note: declared here 82 | checkvalid(pn) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:106:18: error: too many arguments to function 'checkvalid'; expected 0, have 1 106 | if (!checkvalid(pn->pn_right)) | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:82:1: note: declared here 82 | checkvalid(pn) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'lexer': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:270:23: error: too many arguments to function 'copy'; expected 0, have 1 270 | el.e_string = copy(++sbuf); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:282:10: error: too many arguments to function 'ft_numparse'; expected 0, have 2 282 | td = ft_numparse(&ss, false); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:338:27: error: too many arguments to function 'copy'; expected 0, have 1 338 | el.e_string = copy(sbuf); /* XXXX !!!! */ | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'parse': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:472:22: error: too many arguments to function 'makepnode'; expected 0, have 1 472 | pn = makepnode(&stack[st]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:28:22: note: declared here 28 | static struct pnode *makepnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:478:23: error: too many arguments to function 'makepnode'; expected 0, have 1 478 | lpn = makepnode(&stack[st]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:28:22: note: declared here 28 | static struct pnode *makepnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:481:22: error: too many arguments to function 'mkunode'; expected 0, have 2 481 | pn = mkunode(stack[sp].e_token, lpn); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:27:22: note: declared here 27 | static struct pnode *mkunode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:484:22: error: too many arguments to function 'makepnode'; expected 0, have 1 484 | pn = makepnode(&stack[sp + 1]); | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:28:22: note: declared here 28 | static struct pnode *makepnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:489:23: error: too many arguments to function 'makepnode'; expected 0, have 1 489 | lpn = makepnode(&stack[sp + 2]); | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:28:22: note: declared here 28 | static struct pnode *makepnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:493:28: error: too many arguments to function 'mkfnode'; expected 0, have 2 493 | if (!(pn = mkfnode(stack[sp].e_string, lpn))) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:25:22: note: declared here 25 | static struct pnode *mkfnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:496:23: error: too many arguments to function 'makepnode'; expected 0, have 1 496 | lpn = makepnode(&stack[sp]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:28:22: note: declared here 28 | static struct pnode *makepnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:497:23: error: too many arguments to function 'makepnode'; expected 0, have 1 497 | rpn = makepnode(&stack[st]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:28:22: note: declared here 28 | static struct pnode *makepnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:500:22: error: too many arguments to function 'mkbnode'; expected 0, have 3 500 | pn = mkbnode(stack[sp + 1].e_token, | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:26:22: note: declared here 26 | static struct pnode *mkbnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:509:10: error: too many arguments to function 'makepnode'; expected 0, have 1 509 | pn = makepnode(&stack[1]); | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:28:22: note: declared here 28 | static struct pnode *makepnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'makepnode': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:523:1: warning: old-style function definition [-Wold-style-definition] 523 | makepnode(elem) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:530:21: error: too many arguments to function 'mksnode'; expected 0, have 1 530 | return (mksnode(elem->e_string)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:23:22: note: declared here 23 | static struct pnode *mksnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:532:21: error: too many arguments to function 'mknnode'; expected 0, have 1 532 | return (mknnode(elem->e_double)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:24:22: note: declared here 24 | static struct pnode *mknnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'mkbnode': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:616:1: warning: old-style function definition [-Wold-style-definition] 616 | mkbnode(opnum, arg1, arg2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:628:9: note: in expansion of macro 'alloc' 628 | p = alloc(struct pnode); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'mkunode': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:641:1: warning: old-style function definition [-Wold-style-definition] 641 | mkunode(op, arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:647:9: note: in expansion of macro 'alloc' 647 | p = alloc(struct pnode); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'mkfnode': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:674:1: warning: old-style function definition [-Wold-style-definition] 674 | mkfnode(func, arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:692:13: error: too many arguments to function 'ft_substdef'; expected 0, have 2 692 | q = ft_substdef(func, arg); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:143:22: note: declared here 143 | extern struct pnode *ft_substdef(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:699:13: error: too many arguments to function 'vec_get'; expected 0, have 1 699 | d = vec_get(buf); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:707:17: error: too many arguments to function 'mksnode'; expected 0, have 1 707 | return (mksnode(buf)); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:23:22: note: declared here 23 | static struct pnode *mksnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:715:28: error: too many arguments to function 'mkfnode'; expected 0, have 2 715 | p = mkbnode(MINUS, mkfnode(func, arg->pn_left), | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:674:1: note: declared here 674 | mkfnode(func, arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:716:17: error: too many arguments to function 'mkfnode'; expected 0, have 2 716 | mkfnode(func, arg->pn_right)); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:674:1: note: declared here 674 | mkfnode(func, arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:715:13: error: too many arguments to function 'mkbnode'; expected 0, have 3 715 | p = mkbnode(MINUS, mkfnode(func, arg->pn_left), | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:616:1: note: declared here 616 | mkbnode(opnum, arg1, arg2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:717:9: note: in expansion of macro 'tfree' 717 | tfree(arg); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:721:9: note: in expansion of macro 'alloc' 721 | p = alloc(struct pnode); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'mknnode': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:735:1: warning: old-style function definition [-Wold-style-definition] 735 | mknnode(number) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:742:9: note: in expansion of macro 'alloc' 742 | p = alloc(struct pnode); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:743:9: note: in expansion of macro 'alloc' 743 | v = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:760:17: error: too many arguments to function 'copy'; expected 0, have 1 760 | v->v_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:763:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 763 | v->v_realdata = (double *) tmalloc(sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:767:5: error: too many arguments to function 'vec_new'; expected 0, have 1 767 | vec_new(v); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'mksnode': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:774:1: warning: old-style function definition [-Wold-style-definition] 774 | mksnode(string) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:780:9: note: in expansion of macro 'alloc' 780 | p = alloc(struct pnode); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:786:9: error: too many arguments to function 'vec_get'; expected 0, have 1 786 | v = vec_get(string); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:788:14: note: in expansion of macro 'alloc' 788 | nv = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:791:22: error: too many arguments to function 'copy'; expected 0, have 1 791 | nv->v_name = copy(string); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:798:14: error: too many arguments to function 'vec_copy'; expected 0, have 1 798 | nv = vec_copy(vs); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:799:9: error: too many arguments to function 'vec_new'; expected 0, have 1 799 | vec_new(nv); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c: In function 'free_pnode': /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:812:1: warning: old-style function definition [-Wold-style-definition] 812 | free_pnode(t) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:814:1: error: number of arguments doesn't match prototype 814 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: error: prototype declaration 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:817:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 817 | free_pnode(t->pn_left); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:812:1: note: declared here 812 | free_pnode(t) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:818:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 818 | free_pnode(t->pn_right); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:812:1: note: declared here 812 | free_pnode(t) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:819:5: error: too many arguments to function 'free_pnode'; expected 0, have 1 819 | free_pnode(t->pn_next); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:812:1: note: declared here 812 | free_pnode(t) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//parse.c:820:5: note: in expansion of macro 'tfree' 820 | tfree(t); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c:6: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c: In function 'Plt5_NewViewport': /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c:34:1: warning: old-style function definition [-Wold-style-definition] 34 | Plt5_NewViewport(graph) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c: In function 'Plt5_DrawLine': /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c:98:1: warning: old-style function definition [-Wold-style-definition] 98 | Plt5_DrawLine(x1, y1, x2, y2) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c: In function 'Plt5_Arc': /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c:111:1: warning: old-style function definition [-Wold-style-definition] 111 | Plt5_Arc(x0, y0, radius, theta1, theta2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c: In function 'Plt5_Text': /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c:119:1: warning: old-style function definition [-Wold-style-definition] 119 | Plt5_Text(text, x, y) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c: In function 'Plt5_SetLinestyle': /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | Plt5_SetLinestyle(linestyleid) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c: In function 'Plt5_SetColor': /home/pbulk/work/cad/spice/work/src/lib/fte//plot5.c:160:1: warning: old-style function definition [-Wold-style-definition] 160 | Plt5_SetColor(colorid) | ^~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c: In function 'ft_graf': /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | ft_graf(v, xs, nostart) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:28:1: error: number of arguments doesn't match prototype 28 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:343:13: error: prototype declaration 343 | extern void ft_graf(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:41:14: error: too many arguments to function 'cp_getvar'; expected 0, have 3 41 | if (!cp_getvar("polydegree", VT_NUM, (char *) °ree)) | ^~~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:53:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 53 | if (!cp_getvar("gridsize", VT_NUM, (char *) &gridsize)) | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:85:9: error: too many arguments to function 'gr_start'; expected 0, have 1 85 | gr_start(v); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:245:13: note: declared here 245 | extern void gr_start(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:107:17: error: too many arguments to function 'gr_point'; expected 0, have 6 107 | gr_point(v, v->v_realdata[i], | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:112:17: error: too many arguments to function 'gr_point'; expected 0, have 6 112 | gr_point(v, realpart(&v->v_compdata[i]), | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:118:9: error: too many arguments to function 'gr_end'; expected 0, have 1 118 | gr_end(v); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:240:13: note: declared here 240 | extern void gr_end(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:137:17: error: too many arguments to function 'gr_point'; expected 0, have 6 137 | gr_point(v, dx, dy, lx, ly, 0); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:139:17: error: too many arguments to function 'gr_point'; expected 0, have 6 139 | gr_point(v, dx, dy, lx, ly, i); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:147:13: error: too many arguments to function 'gr_point'; expected 0, have 6 147 | gr_point(v, dx, dy, lx, ly, 1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:148:9: error: too many arguments to function 'gr_end'; expected 0, have 1 148 | gr_end(v); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:240:13: note: declared here 240 | extern void gr_end(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:157:30: error: too many arguments to function 'tmalloc'; expected 0, have 1 157 | gridbuf = (double *) tmalloc(gridsize * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:158:29: error: too many arguments to function 'tmalloc'; expected 0, have 1 158 | result = (double *) tmalloc(gridsize * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:162:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 162 | ydata = (double *) tmalloc(v->v_length * | ^~~~~~~ ~~~~~~~~~~~~~ 163 | sizeof (double)); | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:170:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 170 | xdata = (double *) tmalloc(xs->v_length * | ^~~~~~~ ~~~~~~~~~~~~~~ 171 | sizeof (double)); | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:176:14: error: too many arguments to function 'ft_minmax'; expected 0, have 2 176 | mm = ft_minmax(xs, true); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: note: declared here 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:184:14: error: too many arguments to function 'ft_interpolate'; expected 0, have 7 184 | if (!ft_interpolate(ydata, result, xdata, v->v_length, gridbuf, | ^~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:280:13: note: declared here 280 | extern bool ft_interpolate(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:195:13: error: too many arguments to function 'gr_point'; expected 0, have 6 195 | gr_point(v, gridbuf[i], result[i], gridbuf[i ? (i - 1) | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:197:9: error: too many arguments to function 'gr_end'; expected 0, have 1 197 | gr_end(v); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:240:13: note: declared here 240 | extern void gr_end(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:198:9: note: in expansion of macro 'tfree' 198 | tfree(gridbuf); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:199:9: note: in expansion of macro 'tfree' 199 | tfree(result); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:201:13: note: in expansion of macro 'tfree' 201 | tfree(ydata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:203:13: note: in expansion of macro 'tfree' 203 | tfree(xdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:210:26: error: too many arguments to function 'tmalloc'; expected 0, have 1 210 | scratch = (double *) tmalloc((degree + 1) * (degree + 2) * | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 211 | sizeof (double)); | ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:212:25: error: too many arguments to function 'tmalloc'; expected 0, have 1 212 | result = (double *) tmalloc((degree + 1) * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:213:24: error: too many arguments to function 'tmalloc'; expected 0, have 1 213 | xdata = (double *) tmalloc((degree + 1) * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:214:24: error: too many arguments to function 'tmalloc'; expected 0, have 1 214 | ydata = (double *) tmalloc((degree + 1) * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:232:13: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 232 | while (!ft_polyfit(xdata, ydata, result, degree, scratch)) { | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:237:13: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 237 | if (ft_polyfit(ydata, xdata, result, degree, scratch)) { | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:250:13: error: too many arguments to function 'plotinterval'; expected 0, have 6 250 | plotinterval(v, ydata[i], ydata[i + 1], result, degree, | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:18:13: note: declared here 18 | static void plotinterval(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:253:13: error: too many arguments to function 'plotinterval'; expected 0, have 6 253 | plotinterval(v, xdata[i], xdata[i + 1], result, degree, | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:18:13: note: declared here 18 | static void plotinterval(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:277:17: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 277 | while (!ft_polyfit(xdata, ydata, result, degree, scratch)) { | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:278:17: error: too many arguments to function 'ft_polyfit'; expected 0, have 5 278 | if (ft_polyfit(ydata, xdata, result, degree, scratch)) { | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:281:13: note: declared here 281 | extern bool ft_polyfit(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:289:13: error: too many arguments to function 'plotinterval'; expected 0, have 6 289 | plotinterval(v, ydata[degree - 1], ydata[degree], | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:18:13: note: declared here 18 | static void plotinterval(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:292:13: error: too many arguments to function 'plotinterval'; expected 0, have 6 292 | plotinterval(v, xdata[degree - 1], xdata[degree], | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:18:13: note: declared here 18 | static void plotinterval(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:295:5: note: in expansion of macro 'tfree' 295 | tfree(scratch); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:296:5: note: in expansion of macro 'tfree' 296 | tfree(xdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:297:5: note: in expansion of macro 'tfree' 297 | tfree(ydata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:298:5: note: in expansion of macro 'tfree' 298 | tfree(result); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:299:5: error: too many arguments to function 'gr_end'; expected 0, have 1 299 | gr_end(v); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:240:13: note: declared here 240 | extern void gr_end(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c: In function 'plotinterval': /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:306:1: warning: old-style function definition [-Wold-style-definition] 306 | plotinterval(v, lo, hi, coeffs, degree, rotated) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:326:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 326 | if (!cp_getvar("polysteps", VT_NUM, (char *) &steps)) | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:332:10: error: too many arguments to function 'ft_peval'; expected 0, have 3 332 | ly = ft_peval(lo, coeffs, degree); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:334:14: error: too many arguments to function 'ft_peval'; expected 0, have 3 334 | dy = ft_peval(dx, coeffs, degree); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:282:15: note: declared here 282 | extern double ft_peval(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:336:13: error: too many arguments to function 'gr_point'; expected 0, have 6 336 | gr_point(v, dy, dx, ly, lx, -1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//plotcurv.c:338:13: error: too many arguments to function 'gr_point'; expected 0, have 6 338 | gr_point(v, dx, dy, lx, ly, -1); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:244:13: note: declared here 244 | extern void gr_point(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//points.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//points.c: In function 'ft_minmax': /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | ft_minmax(v, real) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:23:1: error: number of arguments doesn't match prototype 23 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:8: /home/pbulk/work/cad/spice/work/src/include/fteext.h:342:16: error: prototype declaration 342 | extern double *ft_minmax(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//points.c: In function 'ft_findpoint': /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:51:1: warning: old-style function definition [-Wold-style-definition] 51 | ft_findpoint(pt, lims, maxp, minp, islog) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:54:1: error: number of arguments doesn't match prototype 54 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:341:12: error: prototype declaration 341 | extern int ft_findpoint(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//points.c: In function 'ft_SMITHminmax': /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:76:1: warning: old-style function definition [-Wold-style-definition] 76 | ft_SMITHminmax(v, yval) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//points.c: In function 'SMITH_tfm': /home/pbulk/work/cad/spice/work/src/lib/fte//points.c:106:1: warning: old-style function definition [-Wold-style-definition] 106 | SMITH_tfm(re, im, x, y) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_let': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | com_let(wl) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:26:1: error: number of arguments doesn't match prototype 26 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:362:13: error: prototype declaration 362 | extern void com_let(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:43:9: error: too many arguments to function 'com_display'; expected 0, have 1 43 | com_display((wordlist *) NULL); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:361:13: note: declared here 361 | extern void com_display(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:47:9: error: too many arguments to function 'wl_flatten'; expected 0, have 1 47 | p = wl_flatten(wl); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:89:18: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 89 | nn = ft_getpnames(&fake_wl, true); | ^~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:90:17: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 90 | t = ft_evaluate(nn); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:92:13: error: too many arguments to function 'free_pnode'; expected 0, have 1 92 | free_pnode(nn); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:337:13: note: declared here 337 | extern void free_pnode(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:97:17: note: in expansion of macro 'tfree' 97 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:104:17: note: in expansion of macro 'tfree' 104 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:130:10: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 130 | nn = ft_getpnames(&fake_wl, true); | ^~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:133:9: note: in expansion of macro 'tfree' 133 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:136:9: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 136 | t = ft_evaluate(nn); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:139:9: note: in expansion of macro 'tfree' 139 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:146:9: error: too many arguments to function 'vec_get'; expected 0, have 1 146 | n = vec_get(p); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:155:13: note: in expansion of macro 'tfree' 155 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:160:13: note: in expansion of macro 'alloc' 160 | n = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:162:21: error: too many arguments to function 'copy'; expected 0, have 1 162 | n->v_name = copy(p); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:177:40: error: too many arguments to function 'tmalloc'; expected 0, have 1 177 | n->v_realdata = (double *) tmalloc(n->v_length * sizeof(double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:179:41: error: too many arguments to function 'tmalloc'; expected 0, have 1 179 | n->v_compdata = (complex *) tmalloc(n->v_length * sizeof(complex)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:181:9: error: too many arguments to function 'vec_new'; expected 0, have 1 181 | vec_new(n); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:214:9: note: in expansion of macro 'tfree' 214 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:222:9: note: in expansion of macro 'tfree' 222 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:238:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 238 | cp_addkword(CT_VECTOR, n->v_name); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:241:5: note: in expansion of macro 'tfree' 241 | tfree(p); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_unlet': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:248:1: warning: old-style function definition [-Wold-style-definition] 248 | com_unlet(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:250:1: error: number of arguments doesn't match prototype 250 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:363:13: error: prototype declaration 363 | extern void com_unlet(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:252:9: error: too many arguments to function 'vec_remove'; expected 0, have 1 252 | vec_remove(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:470:13: note: declared here 470 | extern void vec_remove(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_load': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:261:1: warning: old-style function definition [-Wold-style-definition] 261 | com_load(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:263:1: error: number of arguments doesn't match prototype 263 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:364:13: error: prototype declaration 364 | extern void com_load(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:266:9: error: too many arguments to function 'ft_loadfile'; expected 0, have 1 266 | ft_loadfile(ft_rawfile); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: note: declared here 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:269:25: error: too many arguments to function 'cp_unquote'; expected 0, have 1 269 | ft_loadfile(cp_unquote(wl->wl_word)); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:269:13: error: too many arguments to function 'ft_loadfile'; expected 0, have 1 269 | ft_loadfile(cp_unquote(wl->wl_word)); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: note: declared here 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:274:5: error: too many arguments to function 'com_display'; expected 0, have 1 274 | com_display(NULL); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:361:13: note: declared here 361 | extern void com_display(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_print': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:286:1: warning: old-style function definition [-Wold-style-definition] 286 | com_print(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:288:1: error: number of arguments doesn't match prototype 288 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:365:13: error: prototype declaration 365 | extern void com_print(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:311:15: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 311 | for (nn = ft_getpnames(wl, true); nn; nn = nn->pn_next) { | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:312:19: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 312 | if (!(v = ft_evaluate(nn))) | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:348:25: error: too many arguments to function 'vec_basename'; expected 0, have 1 348 | vec_basename(v)); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:474:14: note: declared here 474 | extern char *vec_basename(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:350:36: error: too many arguments to function 'vec_basename'; expected 0, have 1 350 | (void) strcpy(buf, vec_basename(v)); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:474:14: note: declared here 474 | extern char *vec_basename(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:363:25: error: too many arguments to function 'printnum'; expected 0, have 1 363 | printnum(*v->v_realdata)); | ^~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:362:21: error: too many arguments to function 'out_printf'; expected 0, have 3 362 | out_printf("%s = %s\n", buf, | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:366:30: error: too many arguments to function 'printnum'; expected 0, have 1 366 | copy(printnum(realpart(v->v_compdata))), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:366:25: error: too many arguments to function 'copy'; expected 0, have 1 366 | copy(printnum(realpart(v->v_compdata))), | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:367:30: error: too many arguments to function 'printnum'; expected 0, have 1 367 | copy(printnum(imagpart(v->v_compdata)))); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:367:25: error: too many arguments to function 'copy'; expected 0, have 1 367 | copy(printnum(imagpart(v->v_compdata)))); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:365:21: error: too many arguments to function 'out_printf'; expected 0, have 4 365 | out_printf("%s = %s,%s\n", buf, | ^~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:370:17: error: too many arguments to function 'out_printf'; expected 0, have 2 370 | out_printf("%s = ( ", buf); | ^~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:374:28: error: too many arguments to function 'printnum'; expected 0, have 1 374 | printnum(v->v_realdata[i])); | ^~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:375:25: error: too many arguments to function 'out_send'; expected 0, have 1 375 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:380:29: error: too many arguments to function 'out_send'; expected 0, have 1 380 | out_send("\n\t"); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:383:29: error: too many arguments to function 'out_send'; expected 0, have 1 383 | out_send("\t"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:386:34: error: too many arguments to function 'printnum'; expected 0, have 1 386 | copy(printnum(realpart(&v->v_compdata[i]))), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:386:29: error: too many arguments to function 'copy'; expected 0, have 1 386 | copy(printnum(realpart(&v->v_compdata[i]))), | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:387:34: error: too many arguments to function 'printnum'; expected 0, have 1 387 | copy(printnum(imagpart(&v->v_compdata[i])))); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:50:14: note: declared here 50 | extern char *printnum(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:387:29: error: too many arguments to function 'copy'; expected 0, have 1 387 | copy(printnum(imagpart(&v->v_compdata[i])))); | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:388:25: error: too many arguments to function 'out_send'; expected 0, have 1 388 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:393:29: error: too many arguments to function 'out_send'; expected 0, have 1 393 | out_send("\n\t"); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:396:29: error: too many arguments to function 'out_send'; expected 0, have 1 396 | out_send("\t"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:398:17: error: too many arguments to function 'out_send'; expected 0, have 1 398 | out_send(")\n"); | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:402:13: error: too many arguments to function 'cp_getvar'; expected 0, have 3 402 | if (cp_getvar("width", VT_NUM, (char *) &i)) | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:406:13: error: too many arguments to function 'cp_getvar'; expected 0, have 3 406 | if (cp_getvar("height", VT_NUM, (char *) &i)) | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:410:14: error: too many arguments to function 'cp_getvar'; expected 0, have 3 410 | if (!cp_getvar("nobreak", VT_BOOL, (char *) &nobreak) && !ft_nopage) | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:414:16: error: too many arguments to function 'cp_getvar'; expected 0, have 3 414 | (void) cp_getvar("noprintscale", VT_BOOL, (char *) | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:421:42: error: too many arguments to function 'vec_eq'; expected 0, have 2 421 | if (bv->v_plot->pl_scale && !vec_eq(bv, bv->v_plot->pl_scale)) { | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:454:13: note: declared here 454 | extern bool vec_eq(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:422:22: error: too many arguments to function 'vec_copy'; expected 0, have 1 422 | nv = vec_copy(bv->v_plot->pl_scale); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:423:17: error: too many arguments to function 'vec_new'; expected 0, have 1 423 | vec_new(nv); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:447:9: error: too many arguments to function 'out_send'; expected 0, have 1 447 | out_send(buf2); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:448:9: error: too many arguments to function 'out_send'; expected 0, have 1 448 | out_send(p->pl_title); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:449:9: error: too many arguments to function 'out_send'; expected 0, have 1 449 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:450:9: error: too many arguments to function 'out_send'; expected 0, have 1 450 | out_send(buf2); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:453:9: error: too many arguments to function 'out_send'; expected 0, have 1 453 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:454:9: error: too many arguments to function 'out_send'; expected 0, have 1 454 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:459:9: error: too many arguments to function 'out_send'; expected 0, have 1 459 | out_send(buf2); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:475:9: error: too many arguments to function 'out_send'; expected 0, have 1 475 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:476:9: error: too many arguments to function 'out_send'; expected 0, have 1 476 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:481:9: error: too many arguments to function 'out_send'; expected 0, have 1 481 | out_send(buf2); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:487:13: error: too many arguments to function 'out_send'; expected 0, have 1 487 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:491:25: error: too many arguments to function 'out_send'; expected 0, have 1 491 | out_send("\t\t"); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:493:25: error: too many arguments to function 'out_send'; expected 0, have 1 493 | out_send("\t\t\t\t"); | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:498:25: error: too many arguments to function 'out_send'; expected 0, have 1 498 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:503:25: error: too many arguments to function 'out_send'; expected 0, have 1 503 | out_send(out_pbuf); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:507:13: error: too many arguments to function 'out_send'; expected 0, have 1 507 | out_send("\n"); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:515:13: error: too many arguments to function 'out_send'; expected 0, have 1 515 | out_send("\f\n"); /* Form feed. */ | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:524:13: error: too many arguments to function 'out_send'; expected 0, have 1 524 | out_send("\f\n"); /* Form feed. */ | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_write': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:540:1: warning: old-style function definition [-Wold-style-definition] 540 | com_write(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:542:1: error: number of arguments doesn't match prototype 542 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:366:13: error: prototype declaration 366 | extern void com_write(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:557:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 557 | if (cp_getvar("filetype", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:565:12: error: too many arguments to function 'cp_getvar'; expected 0, have 3 565 | (void) cp_getvar("appendwrite", VT_BOOL, (char *) &appendwrite); | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:568:17: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 568 | names = ft_getpnames(wl, true); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:570:17: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 570 | names = ft_getpnames(&all, true); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:574:13: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 574 | d = ft_evaluate(n); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:600:22: error: too many arguments to function 'vec_copy'; expected 0, have 1 600 | vv = vec_copy(d); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:604:30: error: too many arguments to function 'vec_basename'; expected 0, have 1 604 | vv->v_name = vec_basename(vv); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:474:14: note: declared here 474 | extern char *vec_basename(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:612:21: error: too many arguments to function 'vec_eq'; expected 0, have 2 612 | if (vec_eq(d, tpl->pl_scale)) { | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:454:13: note: declared here 454 | extern bool vec_eq(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:624:32: error: too many arguments to function 'vec_copy'; expected 0, have 1 624 | newplot.pl_scale = vec_copy(tpl->pl_scale); | ^~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:638:29: error: too many arguments to function 'vec_eq'; expected 0, have 2 638 | if (vec_eq(vv, d->v_scale)) | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:454:13: note: declared here 454 | extern bool vec_eq(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:641:26: error: too many arguments to function 'vec_copy'; expected 0, have 1 641 | vv = vec_copy(d->v_scale); | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:653:13: error: too many arguments to function 'raw_write'; expected 0, have 4 653 | raw_write(file, &newplot, appendwrite, false); | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:375:13: note: declared here 375 | extern void raw_write(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:655:13: error: too many arguments to function 'raw_write'; expected 0, have 4 655 | raw_write(file, &newplot, appendwrite, true); | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:375:13: note: declared here 375 | extern void raw_write(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_transpose': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:678:1: warning: old-style function definition [-Wold-style-definition] 678 | com_transpose(wl) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:680:1: error: number of arguments doesn't match prototype 680 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:370:13: error: prototype declaration 370 | extern void com_transpose(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:685:13: error: too many arguments to function 'cp_unquote'; expected 0, have 1 685 | s = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:686:13: error: too many arguments to function 'vec_get'; expected 0, have 1 686 | d = vec_get(s); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:692:17: error: too many arguments to function 'vec_transpose'; expected 0, have 1 692 | vec_transpose(d); | ^~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:476:13: note: declared here 476 | extern void vec_transpose(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_setscale': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:706:1: warning: old-style function definition [-Wold-style-definition] 706 | com_setscale(wl) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:708:1: error: number of arguments doesn't match prototype 708 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:369:13: error: prototype declaration 369 | extern void com_setscale(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:714:17: error: too many arguments to function 'cp_unquote'; expected 0, have 1 714 | s = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:715:17: error: too many arguments to function 'vec_get'; expected 0, have 1 715 | d = vec_get(s); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:722:13: error: too many arguments to function 'pvec'; expected 0, have 1 722 | pvec(plot_cur->pl_scale); | ^~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:20:13: note: declared here 20 | static void pvec(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_display': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:735:1: warning: old-style function definition [-Wold-style-definition] 735 | com_display(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:737:1: error: number of arguments doesn't match prototype 737 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:361:13: error: prototype declaration 361 | extern void com_display(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:748:13: error: too many arguments to function 'cp_unquote'; expected 0, have 1 748 | s = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:749:13: error: too many arguments to function 'vec_get'; expected 0, have 1 749 | d = vec_get(s); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:755:17: error: too many arguments to function 'pvec'; expected 0, have 1 755 | pvec(d); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:20:13: note: declared here 20 | static void pvec(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:769:5: error: too many arguments to function 'out_printf'; expected 0, have 1 769 | out_printf("Here are the vectors currently active:\n\n"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:770:28: error: too many arguments to function 'tmalloc'; expected 0, have 1 770 | dvs = (struct dvec **) tmalloc(len * (sizeof (struct dvec *))); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:773:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 773 | if (!cp_getvar("nosort", VT_BOOL, (char *) &b)) | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:776:5: error: too many arguments to function 'out_printf'; expected 0, have 2 776 | out_printf("Title: %s\n", plot_cur->pl_title); | ^~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:777:5: error: too many arguments to function 'out_printf'; expected 0, have 4 777 | out_printf("Name: %s (%s)\nDate: %s\n\n", | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:782:9: error: too many arguments to function 'pvec'; expected 0, have 1 782 | pvec(d); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:20:13: note: declared here 20 | static void pvec(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'pvec': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:788:1: warning: old-style function definition [-Wold-style-definition] 788 | pvec(d) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:795:13: error: too many arguments to function 'ft_typenames'; expected 0, have 1 795 | ft_typenames(d->v_type), isreal(d) ? "real" : | ^~~~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:448:14: note: declared here 448 | extern char *ft_typenames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:851:40: error: too many arguments to function 'dimstring'; expected 0, have 2 851 | sprintf(buf2, ", dims = [%s]", dimstring(d->v_dims, d->v_numdims)); | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:520:14: note: declared here 520 | extern char *dimstring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:859:5: error: too many arguments to function 'out_send'; expected 0, have 1 859 | out_send(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: note: declared here 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'dcomp': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:922:1: warning: old-style function definition [-Wold-style-definition] 922 | dcomp(v1, v2) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_cross': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:960:1: warning: old-style function definition [-Wold-style-definition] 960 | com_cross(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:962:1: error: number of arguments doesn't match prototype 962 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:360:13: error: prototype declaration 360 | extern void com_cross(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:973:15: error: too many arguments to function 'ft_numparse'; expected 0, have 2 973 | if (!(d = ft_numparse(&s, false))) { | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:313:16: note: declared here 313 | extern double *ft_numparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:982:10: error: too many arguments to function 'ft_getpnames'; expected 0, have 2 982 | pn = ft_getpnames(wl, true); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:336:22: note: declared here 336 | extern struct pnode *ft_getpnames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:984:19: error: too many arguments to function 'ft_evaluate'; expected 0, have 1 984 | if (!(n = ft_evaluate(pn))) | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:190:21: note: declared here 190 | extern struct dvec *ft_evaluate(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1000:5: error: too many arguments to function 'vec_remove'; expected 0, have 1 1000 | vec_remove(newvec); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:470:13: note: declared here 470 | extern void vec_remove(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1001:9: note: in expansion of macro 'alloc' 1001 | v = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1002:17: error: too many arguments to function 'copy'; expected 0, have 1 1002 | v->v_name = copy(newvec); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1008:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 1008 | v->v_compdata = (complex *) tmalloc(i * sizeof (complex)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1010:36: error: too many arguments to function 'tmalloc'; expected 0, have 1 1010 | v->v_realdata = (double *) tmalloc(i * sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1029:5: error: too many arguments to function 'vec_new'; expected 0, have 1 1029 | vec_new(v); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1031:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 1031 | cp_addkword(CT_VECTOR, v->v_name); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_destroy': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1036:1: warning: old-style function definition [-Wold-style-definition] 1036 | com_destroy(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1038:1: error: number of arguments doesn't match prototype 1038 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:367:13: error: prototype declaration 367 | extern void com_destroy(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1042:9: error: too many arguments to function 'killplot'; expected 0, have 1 1042 | killplot(plot_cur); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:21:13: note: declared here 21 | static void killplot( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1047:17: error: too many arguments to function 'killplot'; expected 0, have 1 1047 | killplot(pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:21:13: note: declared here 21 | static void killplot( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1055:17: error: too many arguments to function 'killplot'; expected 0, have 1 1055 | killplot(pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:21:13: note: declared here 21 | static void killplot( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'killplot': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1066:1: warning: old-style function definition [-Wold-style-definition] 1066 | killplot(pl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1078:9: error: too many arguments to function 'vec_free'; expected 0, have 1 1078 | vec_free(v); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:465:13: note: declared here 465 | extern void vec_free(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1095:5: note: in expansion of macro 'tfree' 1095 | tfree(pl->pl_title); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1096:5: note: in expansion of macro 'tfree' 1096 | tfree(pl->pl_name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1097:5: note: in expansion of macro 'tfree' 1097 | tfree(pl->pl_typename); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1098:5: error: too many arguments to function 'wl_free'; expected 0, have 1 1098 | wl_free(pl->pl_commands); | ^~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c: In function 'com_splot': /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1106:1: warning: old-style function definition [-Wold-style-definition] 1106 | com_splot(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1108:1: error: number of arguments doesn't match prototype 1108 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:368:13: error: prototype declaration 368 | extern void com_splot(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1113:9: error: too many arguments to function 'plot_setcur'; expected 0, have 1 1113 | plot_setcur(wl->wl_word); | ^~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:472:13: note: declared here 472 | extern void plot_setcur(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1129:15: error: too many arguments to function 'gettok'; expected 0, have 1 1129 | if (!(s = gettok(&t))) | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postcoms.c:1132:5: error: too many arguments to function 'plot_setcur'; expected 0, have 1 1132 | plot_setcur(s); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:472:13: note: declared here 472 | extern void plot_setcur(); | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_Init': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:71:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 71 | if (!cp_getvar("hcopyscale", VT_STRING, psscale)) { | ^~~~~~~~~ ~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:95:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 95 | if (!cp_getvar("hcopyfont", VT_STRING, psfont)) | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:97:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 97 | if (!cp_getvar("hcopyfontsize", VT_STRING, psfontsize)) { | ^~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_NewViewport': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:132:1: warning: old-style function definition [-Wold-style-definition] 132 | PS_NewViewport(graph) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:214:21: error: too many arguments to function 'tmalloc'; expected 0, have 1 214 | graph->devdep = tmalloc(sizeof(PSdevdep)); | ^~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_Close': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:244:22: error: too many arguments to function 'FindGraph'; expected 0, have 1 244 | currentgraph = FindGraph(1); | ^~~~~~~~~ ~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:14: /home/pbulk/work/cad/spice/work/src/include/ftedbgra.h:16:15: note: declared here 16 | extern GRAPH *FindGraph(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_DrawLine': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:255:1: warning: old-style function definition [-Wold-style-definition] 255 | PS_DrawLine(x1, y1, x2, y2) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_Arc': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:288:1: warning: old-style function definition [-Wold-style-definition] 288 | PS_Arc(x0, y0, r, theta1, theta2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_Text': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:311:1: warning: old-style function definition [-Wold-style-definition] 311 | PS_Text(text, x, y) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_SetLinestyle': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:341:1: warning: old-style function definition [-Wold-style-definition] 341 | PS_SetLinestyle(linestyleid) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c: In function 'PS_SetColor': /home/pbulk/work/cad/spice/work/src/lib/fte//postsc.c:371:1: warning: old-style function definition [-Wold-style-definition] 371 | PS_SetColor(colorid) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c: In function 'raw_write': /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | raw_write(name, pl, app, binary) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:31:1: error: number of arguments doesn't match prototype 31 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:375:13: error: prototype declaration 375 | extern void raw_write(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:42:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 42 | if (!cp_getvar("nopadding", VT_BOOL, (char *) &raw_padding)) | ^~~~~~~~~ ~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:94:41: error: too many arguments to function 'dimstring'; expected 0, have 2 94 | fprintf(fp, "Dimensions: %s\n", dimstring(dims, numdims)); | ^~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:520:14: note: declared here 520 | extern char *dimstring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:101:14: error: too many arguments to function 'cp_varwl'; expected 0, have 1 101 | wl = cp_varwl(vv); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:164:18: note: declared here 164 | extern wordlist *cp_varwl(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:108:13: error: too many arguments to function 'wl_print'; expected 0, have 2 108 | wl_print(wl, fp); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:129:17: error: too many arguments to function 'ft_typenames'; expected 0, have 1 129 | ft_typenames(v->v_type)); | ^~~~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:448:14: note: declared here 448 | extern char *ft_typenames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:150:37: error: too many arguments to function 'dimstring'; expected 0, have 2 150 | fprintf(fp, " dims=%s", dimstring(v->v_dims, v->v_numdims)); | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:520:14: note: declared here 520 | extern char *dimstring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c: In function 'raw_read': /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:239:1: warning: old-style function definition [-Wold-style-definition] 239 | raw_read(name) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:241:1: error: number of arguments doesn't match prototype 241 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:376:21: error: prototype declaration 376 | extern struct plot *raw_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:272:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 272 | if (ciprefix("title:", buf)) { | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:276:21: error: too many arguments to function 'copy'; expected 0, have 1 276 | title = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:277:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 277 | } else if (ciprefix("date:", buf)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:281:20: error: too many arguments to function 'copy'; expected 0, have 1 281 | date = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:282:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 282 | } else if (ciprefix("plotname:", buf)) { | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:295:21: note: in expansion of macro 'alloc' 295 | curpl = alloc(struct plot); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:298:30: error: too many arguments to function 'copy'; expected 0, have 1 298 | curpl->pl_name = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:300:24: error: too many arguments to function 'copy'; expected 0, have 1 300 | date = copy(datestring( )); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:302:31: error: too many arguments to function 'copy'; expected 0, have 1 302 | curpl->pl_title = copy(title); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:305:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 305 | } else if (ciprefix("flags:", buf)) { | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:308:24: error: too many arguments to function 'gettok'; expected 0, have 1 308 | while (t = gettok(&s)) { | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:309:21: error: too many arguments to function 'cieq'; expected 0, have 2 309 | if (cieq(t, "real")) | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:311:26: error: too many arguments to function 'cieq'; expected 0, have 2 311 | else if (cieq(t, "complex")) | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:313:26: error: too many arguments to function 'cieq'; expected 0, have 2 313 | else if (cieq(t, "unpadded")) | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:315:26: error: too many arguments to function 'cieq'; expected 0, have 2 315 | else if (cieq(t, "padded")) | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:322:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 322 | } else if (ciprefix("no. variables:", buf)) { | ^~~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:326:21: error: too many arguments to function 'scannum'; expected 0, have 1 326 | nvars = scannum(s); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:327:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 327 | } else if (ciprefix("no. points:", buf)) { | ^~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:331:23: error: too many arguments to function 'scannum'; expected 0, have 1 331 | npoints = scannum(s); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:332:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 332 | } else if (ciprefix("dimensions:", buf)) { | ^~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:340:17: error: too many arguments to function 'atodims'; expected 0, have 3 340 | if (atodims(s, dims, &numdims)) { /* Something's wrong. */ | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:521:12: note: declared here 521 | extern int atodims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:362:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 362 | } else if (ciprefix("command:", buf)) { | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:368:22: note: in expansion of macro 'alloc' 368 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:369:31: error: too many arguments to function 'copy'; expected 0, have 1 369 | wl->wl_word = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:378:20: error: too many arguments to function 'cp_evloop'; expected 0, have 1 378 | (void) cp_evloop(s); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:379:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 379 | } else if (ciprefix("option:", buf)) { | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:384:22: error: too many arguments to function 'cp_lexer'; expected 0, have 1 384 | wl = cp_lexer(s); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:110:18: note: declared here 110 | extern wordlist *cp_lexer(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:389:35: error: too many arguments to function 'cp_setparse'; expected 0, have 1 389 | vv->va_next = cp_setparse(wl); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:165:25: note: declared here 165 | extern struct variable *cp_setparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:391:37: error: too many arguments to function 'cp_setparse'; expected 0, have 1 391 | curpl->pl_env = cp_setparse(wl); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:165:25: note: declared here 165 | extern struct variable *cp_setparse(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:395:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 395 | } else if (ciprefix("variables:", buf)) { | ^~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:414:21: note: in expansion of macro 'alloc' 414 | v = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:432:24: error: too many arguments to function 'gettok'; expected 0, have 1 432 | (void) gettok(&s); /* The index field. */ | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:433:25: error: too many arguments to function 'gettok'; expected 0, have 1 433 | if (t = gettok(&s)) | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:439:21: error: too many arguments to function 'gettok'; expected 0, have 1 439 | t = gettok(&s); /* The type name. */ | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:441:33: error: too many arguments to function 'ft_typnum'; expected 0, have 1 441 | v->v_type = ft_typnum(t); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:450:12: note: declared here 450 | extern int ft_typnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:448:49: error: too many arguments to function 'ft_typabbrev'; expected 0, have 1 448 | if (isdigit(*v->v_name) && (r = ft_typabbrev(v | ^~~~~~~~~~~~ ~ 449 | ->v_type))) { | ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:447:14: note: declared here 447 | extern char *ft_typabbrev(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:452:33: error: too many arguments to function 'copy'; expected 0, have 1 452 | v->v_name = copy(buf2); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:455:28: error: too many arguments to function 'gettok'; expected 0, have 1 455 | while (t = gettok(&s)) { | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:456:25: error: too many arguments to function 'ciprefix'; expected 0, have 2 456 | if (ciprefix("min=", t)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:463:32: error: too many arguments to function 'ciprefix'; expected 0, have 2 463 | } else if (ciprefix("max=", t)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:470:32: error: too many arguments to function 'ciprefix'; expected 0, have 2 470 | } else if (ciprefix("color=", t)) { | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:471:41: error: too many arguments to function 'copy'; expected 0, have 1 471 | v->v_defcolor = copy(t + 6); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:472:32: error: too many arguments to function 'ciprefix'; expected 0, have 2 472 | } else if (ciprefix("scale=", t)) { | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:475:33: error: too many arguments to function 'copy'; expected 0, have 1 475 | copy(t + 6); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:476:32: error: too many arguments to function 'ciprefix'; expected 0, have 2 476 | } else if (ciprefix("grid=", t)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:478:33: error: too many arguments to function 'scannum'; expected 0, have 1 478 | scannum(t + 5); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:479:32: error: too many arguments to function 'ciprefix'; expected 0, have 2 479 | } else if (ciprefix("plot=", t)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:481:33: error: too many arguments to function 'scannum'; expected 0, have 1 481 | scannum(t + 5); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: note: declared here 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:482:32: error: too many arguments to function 'ciprefix'; expected 0, have 2 482 | } else if (ciprefix("dims=", t)) { | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:483:25: error: too many arguments to function 'fixdims'; expected 0, have 2 483 | fixdims(v, t + 5); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:18:13: note: declared here 18 | static void fixdims(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:501:48: error: too many arguments to function 'tmalloc'; expected 0, have 1 501 | v->v_realdata = (double *) tmalloc( | ^~~~~~~ 502 | npoints * sizeof (double)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:504:49: error: too many arguments to function 'tmalloc'; expected 0, have 1 504 | v->v_compdata = (complex *) tmalloc( | ^~~~~~~ 505 | npoints * sizeof (complex)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:507:20: error: too many arguments to function 'ciprefix'; expected 0, have 2 507 | } else if (ciprefix("values:", buf) || | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:508:17: error: too many arguments to function 'ciprefix'; expected 0, have 2 508 | ciprefix("binary:", buf)) { | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:528:29: error: too many arguments to function 'cieq'; expected 0, have 2 528 | if (cieq((char *) v->v_scale, | ^~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c: In function 'fixdims': /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:645:1: warning: old-style function definition [-Wold-style-definition] 645 | fixdims(v, s) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//rawfile.c:651:9: error: too many arguments to function 'atodims'; expected 0, have 3 651 | if (atodims(s, v->v_dims, &(v->v_numdims))) { /* Something's wrong. */ | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:521:12: note: declared here 521 | extern int atodims(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c: In function 'com_rusage': /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:89:1: warning: old-style function definition [-Wold-style-definition] 89 | com_rusage(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:91:1: error: number of arguments doesn't match prototype 91 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:380:13: error: prototype declaration 380 | extern void com_rusage(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:95:9: error: too many arguments to function 'printres'; expected 0, have 1 95 | printres((char *) NULL); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:54:13: note: declared here 54 | static void printres(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:98:22: error: too many arguments to function 'cp_unquote'; expected 0, have 1 98 | printres(cp_unquote(wl->wl_word)); | ^~~~~~~~~~ ~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:98:13: error: too many arguments to function 'printres'; expected 0, have 1 98 | printres(cp_unquote(wl->wl_word)); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:54:13: note: declared here 54 | static void printres(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:103:9: error: too many arguments to function 'printres'; expected 0, have 1 103 | printres("cputime"); | ^~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:54:13: note: declared here 54 | static void printres(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:105:9: error: too many arguments to function 'printres'; expected 0, have 1 105 | printres("totalcputime"); | ^~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:54:13: note: declared here 54 | static void printres(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:107:9: error: too many arguments to function 'printres'; expected 0, have 1 107 | printres("space"); | ^~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:54:13: note: declared here 54 | static void printres(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c: In function 'printres': /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:172:1: warning: old-style function definition [-Wold-style-definition] 172 | printres(name) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:311:17: error: too many arguments to function 'if_getstat'; expected 0, have 2 311 | v = if_getstat(ft_curckt->ci_ckt, NULL); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:435:25: note: declared here 435 | extern struct variable *if_getstat(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:313:17: error: too many arguments to function 'if_getstat'; expected 0, have 2 313 | v = if_getstat(ft_curckt->ci_ckt, name); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:435:25: note: declared here 435 | extern struct variable *if_getstat(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:316:22: error: too many arguments to function 'cp_varwl'; expected 0, have 1 316 | wl_print(cp_varwl(v), cp_out); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:164:18: note: declared here 164 | extern wordlist *cp_varwl(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:316:13: error: too many arguments to function 'wl_print'; expected 0, have 2 316 | wl_print(cp_varwl(v), cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:323:26: error: too many arguments to function 'cp_varwl'; expected 0, have 1 323 | wl_print(cp_varwl(v), cp_out); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:164:18: note: declared here 164 | extern wordlist *cp_varwl(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//resource.c:323:17: error: too many arguments to function 'wl_print'; expected 0, have 2 323 | wl_print(cp_varwl(v), cp_out); | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:64:13: note: declared here 64 | extern void wl_print(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_scirc': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:33:1: warning: old-style function definition [-Wold-style-definition] 33 | com_scirc(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:35:1: error: number of arguments doesn't match prototype 35 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:396:13: error: prototype declaration 396 | extern void com_scirc(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:61:17: error: too many arguments to function 'ciprefix'; expected 0, have 2 61 | if (ciprefix(wl->wl_word, p->ci_name)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:73:17: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 73 | cp_kwswitch(CT_DEVNAMES, p->ci_devices); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:74:31: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 74 | ft_curckt->ci_nodes = cp_kwswitch(CT_NODENAMES, p->ci_nodes); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_pz': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | com_pz(wl) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:83:1: error: number of arguments doesn't match prototype 83 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:389:13: error: prototype declaration 389 | extern void com_pz(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:84:5: error: too many arguments to function 'dosim'; expected 0, have 2 84 | dosim("pz", wl); | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_op': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:89:1: warning: old-style function definition [-Wold-style-definition] 89 | com_op(wl) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:91:1: error: number of arguments doesn't match prototype 91 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:388:13: error: prototype declaration 388 | extern void com_op(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:92:5: error: too many arguments to function 'dosim'; expected 0, have 2 92 | dosim("op", wl); | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_dc': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:97:1: warning: old-style function definition [-Wold-style-definition] 97 | com_dc(wl) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:99:1: error: number of arguments doesn't match prototype 99 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:387:13: error: prototype declaration 387 | extern void com_dc(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:100:5: error: too many arguments to function 'dosim'; expected 0, have 2 100 | dosim("dc", wl); | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_ac': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:105:1: warning: old-style function definition [-Wold-style-definition] 105 | com_ac(wl) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:107:1: error: number of arguments doesn't match prototype 107 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:386:13: error: prototype declaration 386 | extern void com_ac(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:108:5: error: too many arguments to function 'dosim'; expected 0, have 2 108 | dosim("ac", wl); | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_tf': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:113:1: warning: old-style function definition [-Wold-style-definition] 113 | com_tf(wl) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:115:1: error: number of arguments doesn't match prototype 115 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:395:13: error: prototype declaration 395 | extern void com_tf(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:116:5: error: too many arguments to function 'dosim'; expected 0, have 2 116 | dosim("tf", wl); | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_tran': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:121:1: warning: old-style function definition [-Wold-style-definition] 121 | com_tran(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:123:1: error: number of arguments doesn't match prototype 123 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:394:13: error: prototype declaration 394 | extern void com_tran(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:124:5: error: too many arguments to function 'dosim'; expected 0, have 2 124 | dosim("tran", wl); | ^~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_sens': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:129:1: warning: old-style function definition [-Wold-style-definition] 129 | com_sens(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:131:1: error: number of arguments doesn't match prototype 131 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:390:13: error: prototype declaration 390 | extern void com_sens(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:132:5: error: too many arguments to function 'dosim'; expected 0, have 2 132 | dosim("sens", wl); | ^~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_disto': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:137:1: warning: old-style function definition [-Wold-style-definition] 137 | com_disto(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:139:1: error: number of arguments doesn't match prototype 139 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:397:13: error: prototype declaration 397 | extern void com_disto(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:140:5: error: too many arguments to function 'dosim'; expected 0, have 2 140 | dosim("disto", wl); | ^~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_noise': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | com_noise(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:147:1: error: number of arguments doesn't match prototype 147 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:398:13: error: prototype declaration 398 | extern void com_noise(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:148:5: error: too many arguments to function 'dosim'; expected 0, have 2 148 | dosim("noise", wl); | ^~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:19:12: note: declared here 19 | static int dosim(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'dosim': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:153:1: warning: old-style function definition [-Wold-style-definition] 153 | dosim(what, wl) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:167:14: note: in expansion of macro 'alloc' 167 | ww = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:171:23: error: too many arguments to function 'copy'; expected 0, have 1 171 | ww->wl_word = copy(what); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:174:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 174 | if (cp_getvar("filetype", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:203:9: error: too many arguments to function 'com_resume'; expected 0, have 1 203 | com_resume((wordlist *) NULL); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:392:13: note: declared here 392 | extern void com_resume(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:238:12: error: too many arguments to function 'if_sens_run'; expected 0, have 3 238 | if (if_sens_run(ft_curckt->ci_ckt, ww, ft_curckt->ci_symtab) == 1) { | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:426:12: note: declared here 426 | extern int if_sens_run(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:248:15: error: too many arguments to function 'if_run'; expected 0, have 4 248 | err = if_run(ft_curckt->ci_ckt, what, ww, ft_curckt->ci_symtab); | ^~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:425:12: note: declared here 425 | extern int if_run(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'com_run': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:272:1: warning: old-style function definition [-Wold-style-definition] 272 | com_run(wl) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:274:1: error: number of arguments doesn't match prototype 274 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:393:13: error: prototype declaration 393 | extern void com_run(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:276:5: error: too many arguments to function 'dosim'; expected 0, have 2 276 | dosim("run", wl); | ^~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:153:1: note: declared here 153 | dosim(what, wl) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'ft_dorun': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:281:1: warning: old-style function definition [-Wold-style-definition] 281 | ft_dorun(file) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:283:1: error: number of arguments doesn't match prototype 283 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:399:12: error: prototype declaration 399 | extern int ft_dorun(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:288:16: error: too many arguments to function 'dosim'; expected 0, have 2 288 | return dosim("run", &wl); | ^~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:153:1: note: declared here 153 | dosim(what, wl) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:290:16: error: too many arguments to function 'dosim'; expected 0, have 2 290 | return dosim("run", (wordlist *) NULL); | ^~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:153:1: note: declared here 153 | dosim(what, wl) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c: In function 'ft_getOutReq': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms.c:295:1: warning: old-style function definition [-Wold-style-definition] 295 | ft_getOutReq(fpp, plotp, binp, name, title) | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:14: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c: In function 'if_sens_run': /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | if_sens_run(t,args,tab) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:30:1: error: number of arguments doesn't match prototype 30 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:15: /home/pbulk/work/cad/spice/work/src/include/fteext.h:426:12: error: prototype declaration 426 | extern int if_sens_run(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:55:32: error: too many arguments to function 'wl_flatten'; expected 0, have 1 55 | (void) sprintf(buf, ".%s", wl_flatten(args)); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:69:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 69 | ft_sperror(err,"deleteTask"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:76:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 76 | ft_sperror(err,"newTask"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:89:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 89 | ft_sperror(err,"createOptions"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:109:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 109 | ft_sperror(err,"createSense"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:132:17: error: too many arguments to function 'ft_sperror'; expected 0, have 2 132 | ft_sperror(err,"createAC"); /* or similar error message */ | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:176:17: error: too many arguments to function 'ft_sperror'; expected 0, have 2 176 | ft_sperror(err,"createOP"); /* or similar error message */ | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:198:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 198 | ft_sperror(err,"createOP"); /* or similar error message */ | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:245:17: error: too many arguments to function 'ft_sperror'; expected 0, have 2 245 | ft_sperror(err,"createTRAN"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//shyu.c:337:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 337 | ft_sperror(err, "doAnalyses"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c: In function 'sigfloat': /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | sigfloat(sig, code) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c:68:1: error: number of arguments doesn't match prototype 68 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:411:20: error: prototype declaration 411 | extern SIGNAL_TYPE sigfloat(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c:70:5: error: too many arguments to function 'fperror'; expected 0, have 2 70 | fperror("Error", code); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:180:13: note: declared here 180 | extern void fperror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c: In function 'sigstop': /home/pbulk/work/cad/spice/work/src/lib/fte//signal.c:84:5: error: too many arguments to function 'cp_ccon'; expected 0, have 1 84 | cp_ccon(false); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: note: declared here 36 | extern void cp_ccon(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//spcmdtab.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//spcmdtab.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:15: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_inpdeck': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:34:1: warning: old-style function definition [-Wold-style-definition] 34 | if_inpdeck(deck, tab) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:37:1: error: number of arguments doesn't match prototype 37 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:16: /home/pbulk/work/cad/spice/work/src/include/fteext.h:424:14: error: prototype declaration 424 | extern char *if_inpdeck(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:51:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 51 | ft_sperror(err, "CKTinit"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:56:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 56 | ft_sperror(err,"newUid"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:61:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 61 | ft_sperror(err,"newTask"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:74:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 74 | ft_sperror(err,"newUid"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:81:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 81 | ft_sperror(err,"createOptions"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_run': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:103:1: warning: old-style function definition [-Wold-style-definition] 103 | if_run(t, what, args, tab) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:108:1: error: number of arguments doesn't match prototype 108 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:425:12: error: prototype declaration 425 | extern int if_run(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:122:36: error: too many arguments to function 'wl_flatten'; expected 0, have 1 122 | (void) sprintf(buf, ".%s", wl_flatten(args)); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:61:14: note: declared here 61 | extern char *wl_flatten(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:131:17: error: too many arguments to function 'ft_sperror'; expected 0, have 2 131 | ft_sperror(err,"deleteTask"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:138:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 138 | ft_sperror(err,"newUid"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:144:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 144 | ft_sperror(err,"newTask"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:157:17: error: too many arguments to function 'ft_sperror'; expected 0, have 2 157 | ft_sperror(err,"newUid"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:164:17: error: too many arguments to function 'ft_sperror'; expected 0, have 2 164 | ft_sperror(err,"createOptions"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:191:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 191 | ft_sperror(err, "doAnalyses"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:200:13: error: too many arguments to function 'ft_sperror'; expected 0, have 2 200 | ft_sperror(err, "doAnalyses"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_option': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:236:1: warning: old-style function definition [-Wold-style-definition] 236 | if_option(ckt, name, type, value) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:241:1: error: number of arguments doesn't match prototype 241 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: error: prototype declaration 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:319:31: error: too many arguments to function 'copy'; expected 0, have 1 319 | pval.sValue = copy(value); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:344:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 344 | ft_sperror(err, "setAnalysisParm(options)"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_dump': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:373:1: warning: old-style function definition [-Wold-style-definition] 373 | if_dump(ckt, file) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:376:1: error: number of arguments doesn't match prototype 376 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:431:13: error: prototype declaration 431 | extern void if_dump(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_cktfree': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:384:1: warning: old-style function definition [-Wold-style-definition] 384 | if_cktfree(ckt, tab) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:387:1: error: number of arguments doesn't match prototype 387 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:430:13: error: prototype declaration 430 | extern void if_cktfree(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_errstring': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:401:1: warning: old-style function definition [-Wold-style-definition] 401 | if_errstring(code) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:403:1: error: number of arguments doesn't match prototype 403 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:423:14: error: prototype declaration 423 | extern char *if_errstring(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'spif_getparam': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:412:1: warning: old-style function definition [-Wold-style-definition] 412 | spif_getparam(ckt, name, param, ind, do_model) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:418:1: error: number of arguments doesn't match prototype 418 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:429:25: error: prototype declaration 429 | extern struct variable *spif_getparam(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:431:20: error: too many arguments to function 'finddev'; expected 0, have 4 431 | typecode = finddev(ckt, *name,(GENERIC**) &dev,(GENERIC**) &mod); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:27:12: note: declared here 27 | static int finddev(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:444:18: error: too many arguments to function 'doask'; expected 0, have 6 444 | pv = doask(ckt, typecode, dev, mod, opt, ind); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:25:17: note: declared here 25 | static IFvalue *doask(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:446:22: error: too many arguments to function 'parmtovar'; expected 0, have 2 446 | tv = parmtovar(pv, opt); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:29:25: note: declared here 29 | static struct variable *parmtovar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:459:20: error: too many arguments to function 'finddev'; expected 0, have 4 459 | typecode = finddev(ckt, *name, (GENERIC**)&dev, (GENERIC**)&mod); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:27:12: note: declared here 27 | static int finddev(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:467:15: error: too many arguments to function 'parmlookup'; expected 0, have 5 467 | opt = parmlookup(device, &dev, param, do_model, 0); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:28:17: note: declared here 28 | static IFparm * parmlookup(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:473:14: error: too many arguments to function 'doask'; expected 0, have 6 473 | pv = doask(ckt, typecode, dev, mod, opt, ind); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:25:17: note: declared here 25 | static IFvalue *doask(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:475:18: error: too many arguments to function 'parmtovar'; expected 0, have 2 475 | vv = parmtovar(pv, opt); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:29:25: note: declared here 29 | static struct variable *parmtovar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:478:17: error: too many arguments to function 'if_getstat'; expected 0, have 2 478 | return (if_getstat(ckt, *name)); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:435:25: note: declared here 435 | extern struct variable *if_getstat(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_setparam': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:482:1: warning: old-style function definition [-Wold-style-definition] 482 | if_setparam(ckt, name, param, val, do_model) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:488:1: error: number of arguments doesn't match prototype 488 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:434:13: error: prototype declaration 434 | extern void if_setparam(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:496:16: error: too many arguments to function 'finddev'; expected 0, have 4 496 | typecode = finddev(ckt, *name, (GENERIC**)&dev, (GENERIC**)&mod); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:27:12: note: declared here 27 | static int finddev(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:502:11: error: too many arguments to function 'parmlookup'; expected 0, have 5 502 | opt = parmlookup(device, &dev, param, do_model, 1); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:28:17: note: declared here 28 | static IFparm * parmlookup(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:510:5: error: too many arguments to function 'doset'; expected 0, have 6 510 | doset(ckt, typecode, dev, mod, opt, val); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:26:12: note: declared here 26 | static int doset( ); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'parmtovar': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:514:1: warning: old-style function definition [-Wold-style-definition] 514 | parmtovar(pv, opt) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:518:27: note: in expansion of macro 'alloc' 518 | struct variable *vv = alloc(struct variable); | ^~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:22: /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:543:22: note: in expansion of macro 'alloc' 543 | nv = alloc(struct variable); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:558:19: error: too many arguments to function 'copy'; expected 0, have 1 558 | vv->va_name = copy(opt->description); | ^~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'parmlookup': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:568:1: warning: old-style function definition [-Wold-style-definition] 568 | parmlookup(dev, inptr, param, do_model, inout) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'doask': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:618:1: warning: old-style function definition [-Wold-style-definition] 618 | doask(ckt, typecode, dev, mod, opt, ind) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:639:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 639 | ft_sperror(err, "if_getparam"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'doset': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:652:1: warning: old-style function definition [-Wold-style-definition] 652 | doset(ckt, typecode, dev, mod, opt, val) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:60:36: note: in expansion of macro 'MALLOC' 60 | #define NEWN(TYPE,COUNT) ((TYPE *) MALLOC(sizeof(TYPE) * (COUNT))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:676:42: note: in expansion of macro 'NEWN' 676 | iptr = nval.v.vec.iVec = NEWN(int, n); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'finddev': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:731:1: warning: old-style function definition [-Wold-style-definition] 731 | finddev(ck, name, devptr, modptr) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_analQbyName': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:791:5: warning: old-style function definition [-Wold-style-definition] 791 | int if_analQbyName(ckt,which,anal,name,parm) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_tranparams': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:815:1: warning: old-style function definition [-Wold-style-definition] 815 | if_tranparams(ci, start, stop, step) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:818:1: error: number of arguments doesn't match prototype 818 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:422:13: error: prototype declaration 422 | extern bool if_tranparams(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c: In function 'if_getstat': /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:858:1: warning: old-style function definition [-Wold-style-definition] 858 | if_getstat(ckt, name) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:861:1: error: number of arguments doesn't match prototype 861 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:435:25: error: prototype declaration 435 | extern struct variable *if_getstat(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:892:17: error: too many arguments to function 'parmtovar'; expected 0, have 2 892 | return (parmtovar(&parm, &(ft_sim->analyses[which]->analysisParms[i]))); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:514:1: note: declared here 514 | parmtovar(pv, opt) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:907:30: error: too many arguments to function 'parmtovar'; expected 0, have 2 907 | v->va_next = parmtovar(&parm, | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:514:1: note: declared here 514 | parmtovar(pv, opt) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:911:28: error: too many arguments to function 'parmtovar'; expected 0, have 2 911 | vars = v = parmtovar(&parm, | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//spiceif.c:514:1: note: declared here 514 | parmtovar(pv, opt) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'inp_subcktexpand': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:56:1: warning: old-style function definition [-Wold-style-definition] 56 | inp_subcktexpand(deck) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:58:1: error: number of arguments doesn't match prototype 58 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:13: /home/pbulk/work/cad/spice/work/src/include/fteext.h:440:21: error: prototype declaration 440 | extern struct line *inp_subcktexpand(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:62:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 62 | if(!cp_getvar("substart", VT_STRING, start)) | ^~~~~~~~~ ~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:64:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 64 | if(!cp_getvar("subend", VT_STRING, sbend)) | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:66:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 66 | if(!cp_getvar("subinvoke", VT_STRING, invoke)) | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:68:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 68 | if(!cp_getvar("modelcard", VT_STRING, model)) | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:70:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 70 | if(!cp_getvar("modelline", VT_STRING, model)) | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:72:12: error: too many arguments to function 'cp_getvar'; expected 0, have 3 72 | (void) cp_getvar("nobjthack", VT_BOOL, (char *) &nobjthack); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:78:13: error: too many arguments to function 'prefix'; expected 0, have 2 78 | if (prefix(start, c->li_line)) { | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:109:10: error: too many arguments to function 'doit'; expected 0, have 1 109 | ll = doit(deck); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:17:21: note: declared here 17 | static struct line *doit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'doit': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:117:1: warning: old-style function definition [-Wold-style-definition] 117 | doit(deck) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:138:13: error: too many arguments to function 'prefix'; expected 0, have 2 138 | if (prefix(sbend, last->li_line)) { | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:142:20: error: too many arguments to function 'prefix'; expected 0, have 2 142 | } else if (prefix(start, last->li_line)) { | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:148:13: error: too many arguments to function 'wl_free'; expected 0, have 1 148 | wl_free(submod); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:152:21: error: too many arguments to function 'prefix'; expected 0, have 2 152 | if (prefix(sbend, c->li_line)) { | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:160:28: error: too many arguments to function 'prefix'; expected 0, have 2 160 | } else if (prefix(start, c->li_line)) | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:168:19: note: in expansion of macro 'alloc' 168 | sss = alloc(struct subs); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:178:20: error: too many arguments to function 'gettok'; expected 0, have 1 178 | (void) gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:179:28: error: too many arguments to function 'gettok'; expected 0, have 1 179 | sss->su_name = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:180:28: error: too many arguments to function 'copy'; expected 0, have 1 180 | sss->su_args = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:205:29: error: too many arguments to function 'doit'; expected 0, have 1 205 | if (!(sss->su_def = doit(sss->su_def))) | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:117:1: note: declared here 117 | doit(deck) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:211:13: error: too many arguments to function 'prefix'; expected 0, have 2 211 | if (prefix(model, c->li_line)) { | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:213:20: error: too many arguments to function 'gettok'; expected 0, have 1 213 | (void) gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:214:18: note: in expansion of macro 'alloc' 214 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:219:27: error: too many arguments to function 'gettok'; expected 0, have 1 219 | wl->wl_word = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:227:17: error: too many arguments to function 'ciprefix'; expected 0, have 2 227 | if (ciprefix(invoke, c->li_line)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:229:25: error: too many arguments to function 'copy'; expected 0, have 1 229 | t = s = copy(c->li_line); | ^~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:230:26: error: too many arguments to function 'gettok'; expected 0, have 1 230 | scname = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:257:27: error: too many arguments to function 'copy'; expected 0, have 1 257 | subname = copy(sss->su_name); | ^~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:258:23: error: too many arguments to function 'inp_deckcopy'; expected 0, have 1 258 | lcc = inp_deckcopy(sss->su_def); | ^~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:439:21: note: declared here 439 | extern struct line *inp_deckcopy(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:261:21: error: too many arguments to function 'modtranslate'; expected 0, have 2 261 | if (modtranslate(lcc, scname)) | ^~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:23:13: note: declared here 23 | static bool modtranslate(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:262:21: error: too many arguments to function 'devmodtranslate'; expected 0, have 2 262 | devmodtranslate(lcc, scname); | ^~~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:24:13: note: declared here 24 | static void devmodtranslate(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:265:24: error: too many arguments to function 'gettok'; expected 0, have 1 265 | (void) gettok(&t); /* Throw out the name. */ | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:267:22: error: too many arguments to function 'translate'; expected 0, have 5 267 | if (!translate(lcc, s, t, scname, subname)) | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:18:12: note: declared here 18 | static int translate(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:294:13: error: too many arguments to function 'ciprefix'; expected 0, have 2 294 | if (ciprefix(invoke, c->li_line)) { | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'inp_deckcopy': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:313:1: warning: old-style function definition [-Wold-style-definition] 313 | inp_deckcopy(deck) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:315:1: error: number of arguments doesn't match prototype 315 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:439:21: error: prototype declaration 439 | extern struct line *inp_deckcopy(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:320:26: note: in expansion of macro 'alloc' 320 | d->li_next = alloc(struct line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:323:22: note: in expansion of macro 'alloc' 323 | nd = d = alloc(struct line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:325:22: error: too many arguments to function 'copy'; expected 0, have 1 325 | d->li_line = copy(deck->li_line); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:327:27: error: too many arguments to function 'copy'; expected 0, have 1 327 | d->li_error = copy(deck->li_error); | ^~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:328:24: error: too many arguments to function 'inp_deckcopy'; expected 0, have 1 328 | d->li_actual = inp_deckcopy(deck->li_actual); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:313:1: note: declared here 313 | inp_deckcopy(deck) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'translate': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:342:1: warning: old-style function definition [-Wold-style-definition] 342 | translate(deck, formal, actual, scname, subname) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:350:9: error: too many arguments to function 'settrans'; expected 0, have 3 350 | i = settrans(formal, actual, subname); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:19:12: note: declared here 19 | static int settrans(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:374:20: error: too many arguments to function 'gettok'; expected 0, have 1 374 | name = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:378:17: note: in expansion of macro 'tfree' 378 | tfree(name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:382:22: error: too many arguments to function 'tmalloc'; expected 0, have 1 382 | buffer = tmalloc(10000); /* XXXXX */ | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:392:22: error: too many arguments to function 'numnodes'; expected 0, have 1 392 | nnodes = numnodes(c->li_line); | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:22:12: note: declared here 22 | static int numnodes(), numdevs(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:394:20: error: too many arguments to function 'gettok'; expected 0, have 1 394 | name = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:400:17: error: too many arguments to function 'gettrans'; expected 0, have 1 400 | t = gettrans(name); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:21:14: note: declared here 21 | static char *gettrans(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:408:22: error: too many arguments to function 'numdevs'; expected 0, have 1 408 | nnodes = numdevs(c->li_line); | ^~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:22:24: note: declared here 22 | static int numnodes(), numdevs(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:410:20: error: too many arguments to function 'gettok'; expected 0, have 1 410 | name = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:430:13: error: too many arguments to function 'finishLine'; expected 0, have 3 430 | finishLine(buffer + strlen(buffer), s, scname); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:20:13: note: declared here 20 | static void finishLine(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:434:9: note: in expansion of macro 'tfree' 434 | tfree(c->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:435:22: error: too many arguments to function 'copy'; expected 0, have 1 435 | c->li_line = copy(buffer); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:436:9: note: in expansion of macro 'tfree' 436 | tfree(buffer); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'finishLine': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:442:1: warning: old-style function definition [-Wold-style-definition] 442 | finishLine(dst, src, scname) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:485:17: error: too many arguments to function 'gettrans'; expected 0, have 1 485 | s = gettrans(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:21:14: note: declared here 21 | static char *gettrans(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:521:21: error: too many arguments to function 'gettrans'; expected 0, have 1 521 | s = gettrans(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:21:14: note: declared here 21 | static char *gettrans(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'settrans': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:546:1: warning: old-style function definition [-Wold-style-definition] 546 | settrans(formal, actual, subname) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:552:26: error: too many arguments to function 'gettok'; expected 0, have 1 552 | table[i].t_old = gettok(&formal); | ^~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:553:26: error: too many arguments to function 'gettok'; expected 0, have 1 553 | table[i].t_new = gettok(&actual); | ^~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'gettrans': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:568:1: warning: old-style function definition [-Wold-style-definition] 568 | gettrans(name) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'numnodes': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:582:1: warning: old-style function definition [-Wold-style-definition] 582 | numnodes(name) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:616:9: error: too many arguments to function 'inp_numnodes'; expected 0, have 1 616 | n = inp_numnodes(c); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:441:12: note: declared here 441 | extern int inp_numnodes(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:620:16: error: too many arguments to function 'gettok'; expected 0, have 1 620 | (void) gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:628:9: error: too many arguments to function 'gettok'; expected 0, have 1 628 | t = gettok(&s); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'numdevs': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:636:1: warning: old-style function definition [-Wold-style-definition] 636 | numdevs(s) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'modtranslate': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:659:1: warning: old-style function definition [-Wold-style-definition] 659 | modtranslate(deck, subname) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:671:13: error: too many arguments to function 'prefix'; expected 0, have 2 671 | if (prefix(model, c->li_line)) { | ^~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:674:20: error: too many arguments to function 'gettok'; expected 0, have 1 674 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:675:22: error: too many arguments to function 'tmalloc'; expected 0, have 1 675 | buffer = tmalloc(strlen(name) + strlen(t) + | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 676 | strlen(subname) + 4); | ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:678:20: error: too many arguments to function 'gettok'; expected 0, have 1 678 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:679:21: note: in expansion of macro 'alloc' 679 | wlsub = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:688:13: note: in expansion of macro 'tfree' 688 | tfree(c->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:691:20: error: too many arguments to function 'gettok'; expected 0, have 1 691 | (void) gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:692:18: note: in expansion of macro 'alloc' 692 | wl = alloc(struct wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:697:27: error: too many arguments to function 'gettok'; expected 0, have 1 697 | wl->wl_word = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'devmodtranslate': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:704:1: warning: old-style function definition [-Wold-style-definition] 704 | devmodtranslate(deck, subname) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:719:18: error: too many arguments to function 'tmalloc'; expected 0, have 1 719 | buffer = tmalloc(strlen(t) + strlen(subname) + 4); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:725:20: error: too many arguments to function 'gettok'; expected 0, have 1 725 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:727:20: error: too many arguments to function 'gettok'; expected 0, have 1 727 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:729:20: error: too many arguments to function 'gettok'; expected 0, have 1 729 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:733:24: error: too many arguments to function 'gettok'; expected 0, have 1 733 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:749:24: error: too many arguments to function 'gettok'; expected 0, have 1 749 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:764:13: note: in expansion of macro 'tfree' 764 | tfree(s->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:769:20: error: too many arguments to function 'gettok'; expected 0, have 1 769 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:771:20: error: too many arguments to function 'gettok'; expected 0, have 1 771 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:773:20: error: too many arguments to function 'gettok'; expected 0, have 1 773 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:775:20: error: too many arguments to function 'gettok'; expected 0, have 1 775 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:790:13: note: in expansion of macro 'tfree' 790 | tfree(s->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:798:20: error: too many arguments to function 'gettok'; expected 0, have 1 798 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:800:20: error: too many arguments to function 'gettok'; expected 0, have 1 800 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:802:20: error: too many arguments to function 'gettok'; expected 0, have 1 802 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:804:20: error: too many arguments to function 'gettok'; expected 0, have 1 804 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:806:20: error: too many arguments to function 'gettok'; expected 0, have 1 806 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:821:13: note: in expansion of macro 'tfree' 821 | tfree(s->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:828:20: error: too many arguments to function 'gettok'; expected 0, have 1 828 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:830:20: error: too many arguments to function 'gettok'; expected 0, have 1 830 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:832:20: error: too many arguments to function 'gettok'; expected 0, have 1 832 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:834:20: error: too many arguments to function 'gettok'; expected 0, have 1 834 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:836:20: error: too many arguments to function 'gettok'; expected 0, have 1 836 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:838:20: error: too many arguments to function 'gettok'; expected 0, have 1 838 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:853:13: note: in expansion of macro 'tfree' 853 | tfree(s->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:858:20: error: too many arguments to function 'gettok'; expected 0, have 1 858 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:860:20: error: too many arguments to function 'gettok'; expected 0, have 1 860 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:862:20: error: too many arguments to function 'gettok'; expected 0, have 1 862 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:864:20: error: too many arguments to function 'gettok'; expected 0, have 1 864 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:866:20: error: too many arguments to function 'gettok'; expected 0, have 1 866 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:882:24: error: too many arguments to function 'gettok'; expected 0, have 1 882 | name = gettok(&t); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: note: declared here 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:897:13: note: in expansion of macro 'tfree' 897 | tfree(s->li_line); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:902:13: note: in expansion of macro 'tfree' 902 | tfree(buffer); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c: In function 'inp_numnodes': /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:915:1: warning: old-style function definition [-Wold-style-definition] 915 | inp_numnodes(c) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//subckt.c:917:1: error: number of arguments doesn't match prototype 917 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:441:12: error: prototype declaration 441 | extern int inp_numnodes(); | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//types.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c: In function 'com_dftype': /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:95:1: warning: old-style function definition [-Wold-style-definition] 95 | com_dftype(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:97:1: error: number of arguments doesn't match prototype 97 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:445:13: error: prototype declaration 445 | extern void com_dftype(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:105:16: error: too many arguments to function 'copy'; expected 0, have 1 105 | name = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:107:15: error: too many arguments to function 'copy'; expected 0, have 1 107 | abb = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:109:17: error: too many arguments to function 'cieq'; expected 0, have 2 109 | if (cieq(types[i].t_name, name)) { | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:125:16: error: too many arguments to function 'copy'; expected 0, have 1 125 | name = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:129:21: error: too many arguments to function 'cieq'; expected 0, have 2 129 | if (cieq(plotabs[i].p_pattern, wl->wl_word)) { | ^~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:141:44: error: too many arguments to function 'copy'; expected 0, have 1 141 | plotabs[noplotabs].p_pattern = copy(wl->wl_word); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c: In function 'ft_typabbrev': /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:157:1: warning: old-style function definition [-Wold-style-definition] 157 | ft_typabbrev(typenum) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:159:1: error: number of arguments doesn't match prototype 159 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:447:14: error: prototype declaration 447 | extern char *ft_typabbrev(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c: In function 'ft_typenames': /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:169:1: warning: old-style function definition [-Wold-style-definition] 169 | ft_typenames(typenum) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:171:1: error: number of arguments doesn't match prototype 171 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:448:14: error: prototype declaration 448 | extern char *ft_typenames(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c: In function 'ft_typnum': /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:181:1: warning: old-style function definition [-Wold-style-definition] 181 | ft_typnum(name) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:183:1: error: number of arguments doesn't match prototype 183 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:450:12: error: prototype declaration 450 | extern int ft_typnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:189:13: error: too many arguments to function 'cieq'; expected 0, have 2 189 | if (cieq(name, types[i].t_name)) | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c: In function 'ft_plotabbrev': /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:197:1: warning: old-style function definition [-Wold-style-definition] 197 | ft_plotabbrev(string) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:199:1: error: number of arguments doesn't match prototype 199 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:449:14: error: prototype declaration 449 | extern char *ft_plotabbrev(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:210:13: error: too many arguments to function 'substring'; expected 0, have 2 210 | if (substring(plotabs[i].p_pattern, buf)) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: note: declared here 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c: In function 'com_stype': /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:219:1: warning: old-style function definition [-Wold-style-definition] 219 | com_stype(wl) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:221:1: error: number of arguments doesn't match prototype 221 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:446:13: error: prototype declaration 446 | extern void com_stype(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:228:19: error: too many arguments to function 'ft_typenames'; expected 0, have 1 228 | if (!(s = ft_typenames(tt)) || eq(type, s)) | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:169:1: note: declared here 169 | ft_typenames(typenum) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//types.c:236:13: error: too many arguments to function 'vec_get'; expected 0, have 1 236 | v = vec_get(wl->wl_word); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'ft_loadfile': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:47:1: warning: old-style function definition [-Wold-style-definition] 47 | ft_loadfile(file) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:49:1: error: number of arguments doesn't match prototype 49 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:14: /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: error: prototype declaration 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:53:14: error: too many arguments to function 'raw_read'; expected 0, have 1 53 | pl = raw_read(file); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:376:21: note: declared here 376 | extern struct plot *raw_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:69:9: error: too many arguments to function 'plot_add'; expected 0, have 1 69 | plot_add(pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:464:13: note: declared here 464 | extern void plot_add(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'plot_add': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:79:1: warning: old-style function definition [-Wold-style-definition] 79 | plot_add(pl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:81:1: error: number of arguments doesn't match prototype 81 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:464:13: error: prototype declaration 464 | extern void plot_add(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:90:29: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 90 | plot_cur->pl_ccom = cp_kwswitch(CT_VECTOR, pl->pl_ccom); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:93:9: error: too many arguments to function 'cp_addkword'; expected 0, have 2 93 | cp_addkword(CT_VECTOR, v->v_name); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:94:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 94 | cp_addkword(CT_VECTOR, "all"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:96:15: error: too many arguments to function 'ft_plotabbrev'; expected 0, have 1 96 | if (!(s = ft_plotabbrev(pl->pl_name))) | ^~~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:449:14: note: declared here 449 | extern char *ft_plotabbrev(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:101:17: error: too many arguments to function 'cieq'; expected 0, have 2 101 | if (cieq(tp->pl_typename, buf)) { | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:107:23: error: too many arguments to function 'copy'; expected 0, have 1 107 | pl->pl_typename = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:108:5: error: too many arguments to function 'plot_new'; expected 0, have 1 108 | plot_new(pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:473:13: note: declared here 473 | extern void plot_new(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:109:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 109 | cp_addkword(CT_PLOT, buf); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:110:19: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 110 | pl->pl_ccom = cp_kwswitch(CT_VECTOR, (char *) NULL); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:111:5: error: too many arguments to function 'plot_setcur'; expected 0, have 1 111 | plot_setcur(pl->pl_typename); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:472:13: note: declared here 472 | extern void plot_setcur(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_remove': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:119:1: warning: old-style function definition [-Wold-style-definition] 119 | vec_remove(name) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:121:1: error: number of arguments doesn't match prototype 121 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:470:13: error: prototype declaration 470 | extern void vec_remove(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:125:13: error: too many arguments to function 'cieq'; expected 0, have 2 125 | if (cieq(name, ov->v_name) && (ov->v_flags & VF_PERMANENT)) | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:134:5: error: too many arguments to function 'cp_remkword'; expected 0, have 2 134 | cp_remkword(CT_VECTOR, name); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:39:13: note: declared here 39 | extern void cp_remkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_fromplot': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:143:1: warning: old-style function definition [-Wold-style-definition] 143 | vec_fromplot(word, plot) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:146:1: error: number of arguments doesn't match prototype 146 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:456:21: error: prototype declaration 456 | extern struct dvec *vec_fromplot(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:150:9: error: too many arguments to function 'findvec'; expected 0, have 2 150 | d = findvec(word, plot); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:28:21: note: declared here 28 | static struct dvec *findvec(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:156:13: error: too many arguments to function 'findvec'; expected 0, have 2 156 | d = findvec(buf, plot); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:28:21: note: declared here 28 | static struct dvec *findvec(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:163:13: error: too many arguments to function 'findvec'; expected 0, have 2 163 | d = findvec(buf, plot); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:28:21: note: declared here 28 | static struct dvec *findvec(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:171:13: error: too many arguments to function 'prefix'; expected 0, have 2 171 | if (prefix("i(", /* ) */ word)) { | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: note: declared here 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:176:13: error: too many arguments to function 'findvec'; expected 0, have 2 176 | d = findvec(buf, plot); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:28:21: note: declared here 28 | static struct dvec *findvec(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_get': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:198:1: warning: old-style function definition [-Wold-style-definition] 198 | vec_get(word) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:200:1: error: number of arguments doesn't match prototype 200 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: error: prototype declaration 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:207:17: error: too many arguments to function 'copy'; expected 0, have 1 207 | wd = word = copy(word); /* Gets mangled below... */ | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:214:13: error: too many arguments to function 'cieq'; expected 0, have 2 214 | if (cieq(buf, "all")) { | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:218:41: error: too many arguments to function 'plot_prefix'; expected 0, have 2 218 | for (pl = plot_list; pl && !plot_prefix(buf, | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:475:13: note: declared here 475 | extern bool plot_prefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:232:13: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 232 | d = vec_fromplot(word, pl); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:143:1: note: declared here 143 | vec_fromplot(word, plot) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:234:17: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 234 | d = vec_fromplot(word, &constantplot); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:143:1: note: declared here 143 | vec_fromplot(word, plot) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:237:17: error: too many arguments to function 'cieq'; expected 0, have 2 237 | if (cieq(pl->pl_typename, "const")) | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:239:17: error: too many arguments to function 'vec_fromplot'; expected 0, have 2 239 | d = vec_fromplot(word, pl); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:143:1: note: declared here 143 | vec_fromplot(word, plot) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:276:19: error: too many arguments to function 'if_getparam'; expected 0, have 5 276 | vv = (*if_getparam)(ft_curckt->ci_ckt, &name, param, 0, 0); | ~^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:285:9: note: in expansion of macro 'tfree' 285 | tfree(wd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:286:13: note: in expansion of macro 'alloc' 286 | d = alloc(struct dvec); | ^~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:288:21: error: too many arguments to function 'copy'; expected 0, have 1 288 | d->v_name = copy(word); | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:291:36: error: too many arguments to function 'tmalloc'; expected 0, have 1 291 | d->v_realdata = (double *) tmalloc(sizeof (double)); | ^~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:294:9: error: too many arguments to function 'vec_new'; expected 0, have 1 294 | vec_new(d); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:298:5: note: in expansion of macro 'tfree' 298 | tfree(wd); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:299:13: error: too many arguments to function 'sortvecs'; expected 0, have 1 299 | return (sortvecs(d)); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:29:21: note: declared here 29 | static struct dvec *sortvecs(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'findvec': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:307:1: warning: old-style function definition [-Wold-style-definition] 307 | findvec(word, pl) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:317:9: error: too many arguments to function 'cieq'; expected 0, have 2 317 | if (cieq(word, "all")) { | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:321:25: error: too many arguments to function 'vec_copy'; expected 0, have 1 321 | v = vec_copy(d); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:322:21: error: too many arguments to function 'vec_new'; expected 0, have 1 322 | vec_new(v); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:336:13: error: too many arguments to function 'cieq'; expected 0, have 2 336 | if (cieq(word, d->v_name) && (d->v_flags & VF_PERMANENT)) | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:341:17: error: too many arguments to function 'cieq'; expected 0, have 2 341 | if (cieq(buf, d->v_name) && (d->v_flags & VF_PERMANENT)) | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:345:13: error: too many arguments to function 'vec_copy'; expected 0, have 1 345 | d = vec_copy(d); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: note: declared here 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:346:9: error: too many arguments to function 'vec_new'; expected 0, have 1 346 | vec_new(d); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: note: declared here 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'plot_docoms': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:357:1: warning: old-style function definition [-Wold-style-definition] 357 | plot_docoms(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:359:1: error: number of arguments doesn't match prototype 359 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:469:13: error: prototype declaration 469 | extern void plot_docoms(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:365:16: error: too many arguments to function 'cp_evloop'; expected 0, have 1 365 | (void) cp_evloop(wl->wl_word); | ^~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_copy': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:376:1: warning: old-style function definition [-Wold-style-definition] 376 | vec_copy(v) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:378:1: error: number of arguments doesn't match prototype 378 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:457:21: error: prototype declaration 457 | extern struct dvec *vec_copy(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:385:10: note: in expansion of macro 'alloc' 385 | nv = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:386:18: error: too many arguments to function 'copy'; expected 0, have 1 386 | nv->v_name = copy(v->v_name); | ^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:391:37: error: too many arguments to function 'tmalloc'; expected 0, have 1 391 | nv->v_realdata = (double *) tmalloc(sizeof (double) * | ^~~~~~~ ~~~~~~~~~~~~~~~~~ 392 | v->v_length); | ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:398:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 398 | nv->v_compdata = (complex *) tmalloc(sizeof (complex) * | ^~~~~~~ ~~~~~~~~~~~~~~~~~~ 399 | v->v_length); | ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'plot_alloc': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:430:1: warning: old-style function definition [-Wold-style-definition] 430 | plot_alloc(name) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:432:1: error: number of arguments doesn't match prototype 432 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:461:21: error: prototype declaration 461 | extern struct plot *plot_alloc(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:433:23: note: in expansion of macro 'alloc' 433 | struct plot *pl = alloc(struct plot), *tp; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:438:15: error: too many arguments to function 'ft_plotabbrev'; expected 0, have 1 438 | if (!(s = ft_plotabbrev(name))) | ^~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:449:14: note: declared here 449 | extern char *ft_plotabbrev(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:443:17: error: too many arguments to function 'cieq'; expected 0, have 2 443 | if (cieq(tp->pl_typename, buf)) { | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:448:23: error: too many arguments to function 'copy'; expected 0, have 1 448 | pl->pl_typename = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:449:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 449 | cp_addkword(CT_PLOT, buf); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:450:9: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 450 | s = cp_kwswitch(CT_VECTOR, (char *) NULL); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:451:5: error: too many arguments to function 'cp_addkword'; expected 0, have 2 451 | cp_addkword(CT_VECTOR, "all"); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:34:13: note: declared here 34 | extern void cp_addkword(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:452:19: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 452 | pl->pl_ccom = cp_kwswitch(CT_VECTOR, s); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_new': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:459:1: warning: old-style function definition [-Wold-style-definition] 459 | vec_new(d) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:461:1: error: number of arguments doesn't match prototype 461 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:468:13: error: prototype declaration 468 | extern void vec_new(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_gc': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:504:17: error: too many arguments to function 'vec_free'; expected 0, have 1 504 | vec_free(d); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:465:13: note: declared here 465 | extern void vec_free(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_free': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:524:1: warning: old-style function definition [-Wold-style-definition] 524 | vec_free(v) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:526:1: error: number of arguments doesn't match prototype 526 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:465:13: error: prototype declaration 465 | extern void vec_free(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:555:5: note: in expansion of macro 'tfree' 555 | tfree(v->v_name); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:557:9: note: in expansion of macro 'tfree' 557 | tfree(v->v_realdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:559:9: note: in expansion of macro 'tfree' 559 | tfree(v->v_compdata); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:561:5: note: in expansion of macro 'tfree' 561 | tfree(v); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_eq': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:570:1: warning: old-style function definition [-Wold-style-definition] 570 | vec_eq(v1, v2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:572:1: error: number of arguments doesn't match prototype 572 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:454:13: error: prototype declaration 454 | extern bool vec_eq(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:578:10: error: too many arguments to function 'vec_basename'; expected 0, have 1 578 | s1 = vec_basename(v1); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:474:14: note: declared here 474 | extern char *vec_basename(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:579:10: error: too many arguments to function 'vec_basename'; expected 0, have 1 579 | s2 = vec_basename(v2); | ^~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:474:14: note: declared here 474 | extern char *vec_basename(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:581:9: error: too many arguments to function 'cieq'; expected 0, have 2 581 | if (cieq(s1, s2)) | ^~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_basename': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:592:1: warning: old-style function definition [-Wold-style-definition] 592 | vec_basename(v) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:594:1: error: number of arguments doesn't match prototype 594 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:474:14: error: prototype declaration 474 | extern char *vec_basename(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:602:13: error: too many arguments to function 'cieq'; expected 0, have 2 602 | if (cieq(v->v_plot->pl_typename, buf)) | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:619:13: error: too many arguments to function 'copy'; expected 0, have 1 619 | return (copy(s)); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'sortvecs': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:627:1: warning: old-style function definition [-Wold-style-definition] 627 | sortvecs(d) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:637:30: error: too many arguments to function 'tmalloc'; expected 0, have 1 637 | array = (struct dvec **) tmalloc(i * sizeof (struct dvec *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:648:5: note: in expansion of macro 'tfree' 648 | tfree(array); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'veccmp': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:653:1: warning: old-style function definition [-Wold-style-definition] 653 | veccmp(d1, d2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:658:14: error: too many arguments to function 'namecmp'; expected 0, have 2 658 | if ((i = namecmp((*d1)->v_plot->pl_typename, | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:26:12: note: declared here 26 | static int namecmp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:661:13: error: too many arguments to function 'namecmp'; expected 0, have 2 661 | return (namecmp((*d1)->v_name, (*d2)->v_name)); | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:26:12: note: declared here 26 | static int namecmp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'namecmp': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:669:1: warning: old-style function definition [-Wold-style-definition] 669 | namecmp(s, t) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'plot_setcur': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:701:1: warning: old-style function definition [-Wold-style-definition] 701 | plot_setcur(name) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:703:1: error: number of arguments doesn't match prototype 703 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:472:13: error: prototype declaration 472 | extern void plot_setcur(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:706:9: error: too many arguments to function 'cieq'; expected 0, have 2 706 | if (cieq(name, "new")) { | ^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:707:14: error: too many arguments to function 'plot_alloc'; expected 0, have 1 707 | pl = plot_alloc("unknown"); | ^~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:430:1: note: declared here 430 | plot_alloc(name) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:708:24: error: too many arguments to function 'copy'; expected 0, have 1 708 | pl->pl_title = copy("Anonymous"); | ^~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:709:23: error: too many arguments to function 'copy'; expected 0, have 1 709 | pl->pl_name = copy("unknown"); | ^~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:710:23: error: too many arguments to function 'copy'; expected 0, have 1 710 | pl->pl_date = copy(datestring( )); | ^~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:711:9: error: too many arguments to function 'plot_new'; expected 0, have 1 711 | plot_new(pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:473:13: note: declared here 473 | extern void plot_new(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:716:13: error: too many arguments to function 'plot_prefix'; expected 0, have 2 716 | if (plot_prefix(name, pl->pl_typename)) | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:475:13: note: declared here 475 | extern bool plot_prefix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:723:29: error: too many arguments to function 'cp_kwswitch'; expected 0, have 2 723 | plot_cur->pl_ccom = cp_kwswitch(CT_VECTOR, pl->pl_ccom); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:32:14: note: declared here 32 | extern char *cp_kwswitch(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'plot_new': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:733:1: warning: old-style function definition [-Wold-style-definition] 733 | plot_new(pl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:735:1: error: number of arguments doesn't match prototype 735 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:473:13: error: prototype declaration 473 | extern void plot_new(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_transpose': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:749:1: warning: old-style function definition [-Wold-style-definition] 749 | vec_transpose(v) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:751:1: error: number of arguments doesn't match prototype 751 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:476:13: error: prototype declaration 476 | extern void vec_transpose(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:783:30: error: too many arguments to function 'tmalloc'; expected 0, have 1 783 | newreal = (double *) tmalloc(sizeof (double) * v->v_length); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:797:9: note: in expansion of macro 'tfree' 797 | tfree(oldreal); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:800:31: error: too many arguments to function 'tmalloc'; expected 0, have 1 800 | newcomp = (complex *) tmalloc(sizeof (complex) * v->v_length); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:816:9: note: in expansion of macro 'tfree' 816 | tfree(oldcomp); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'vec_mkfamily': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:827:1: warning: old-style function definition [-Wold-style-definition] 827 | vec_mkfamily(v) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:829:1: error: number of arguments doesn't match prototype 829 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:459:21: error: prototype declaration 459 | extern struct dvec *vec_mkfamily(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:843:30: note: in expansion of macro 'alloc' 843 | d = d->v_link2 = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:846:24: note: in expansion of macro 'alloc' 846 | d = vecs = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:854:17: error: too many arguments to function 'indexstring'; expected 0, have 2 854 | indexstring(count, v->v_numdims - 1)); | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:522:14: note: declared here 522 | extern char *indexstring(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:855:21: error: too many arguments to function 'copy'; expected 0, have 1 855 | d->v_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:871:40: error: too many arguments to function 'tmalloc'; expected 0, have 1 871 | d->v_realdata = (double *) tmalloc(totalsize); | ^~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:876:40: error: too many arguments to function 'tmalloc'; expected 0, have 1 876 | d->v_realdata = (double *) tmalloc(totalsize); | ^~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:881:16: error: too many arguments to function 'incindex'; expected 0, have 4 881 | (void) incindex(count, v->v_numdims - 1, v->v_dims, v->v_numdims); | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:523:12: note: declared here 523 | extern int incindex( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:885:9: error: too many arguments to function 'vec_new'; expected 0, have 1 885 | vec_new(d); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:459:1: note: declared here 459 | vec_new(d) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c: In function 'plot_prefix': /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:893:1: warning: old-style function definition [-Wold-style-definition] 893 | plot_prefix(pre, str) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//vectors.c:895:1: error: number of arguments doesn't match prototype 895 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:475:13: error: prototype declaration 475 | extern bool plot_prefix(); | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//where.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//where.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/ftegraph.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:19: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_Init': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:102:13: error: too many arguments to function 'cp_getvar'; expected 0, have 3 102 | if (cp_getvar("display", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118, from /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:23: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_NewViewport': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:169:1: warning: old-style function definition [-Wold-style-definition] 169 | X11_NewViewport(graph) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:250:14: error: too many arguments to function 'cp_getvar'; expected 0, have 3 250 | if (!cp_getvar("font", VT_STRING, fontname)) { | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:301:9: error: too many arguments to function 'initcolors'; expected 0, have 1 301 | initcolors(graph); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:67:13: note: declared here 67 | static void initcolors( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'initcolors': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:327:1: warning: old-style function definition [-Wold-style-definition] 327 | initcolors(graph) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:360:18: error: too many arguments to function 'cp_getvar'; expected 0, have 3 360 | if (!cp_getvar(buf, VT_STRING, colorstring)) | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_DrawLine': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:399:1: warning: old-style function definition [-Wold-style-definition] 399 | X11_DrawLine(x1, y1, x2, y2) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_Arc': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:418:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 418 | if (!cp_getvar("x11lineararcs", VT_BOOL, (char *) &t1)) { | ^~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:419:9: error: too many arguments to function 'linear_arc'; expected 0, have 5 419 | linear_arc(x0, y0, radius, theta1, theta2); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:65:13: note: declared here 65 | static void linear_arc( ); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_Text': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:446:1: warning: old-style function definition [-Wold-style-definition] 446 | X11_Text(text, x, y) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_DefineColor': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:466:1: warning: old-style function definition [-Wold-style-definition] 466 | X11_DefineColor(colorid, red, green, blue) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_DefineLinestyle': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:476:1: warning: old-style function definition [-Wold-style-definition] 476 | X11_DefineLinestyle(linestyleid, mask) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_SetLinestyle': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:483:1: warning: old-style function definition [-Wold-style-definition] 483 | X11_SetLinestyle(linestyleid) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_SetColor': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:518:1: warning: old-style function definition [-Wold-style-definition] 518 | X11_SetColor(colorid) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'handlekeypressed': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:545:1: warning: old-style function definition [-Wold-style-definition] 545 | handlekeypressed(w, clientdata, calldata) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:548:1: error: number of arguments doesn't match prototype 548 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:41:31: error: prototype declaration 41 | extern void handlebuttonev(), handlekeypressed(), killwin(), hardcopy(), | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'handlebuttonev': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:588:1: warning: old-style function definition [-Wold-style-definition] 588 | handlebuttonev(w, clientdata, calldata) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:591:1: error: number of arguments doesn't match prototype 591 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:41:13: error: prototype declaration 41 | extern void handlebuttonev(), handlekeypressed(), killwin(), hardcopy(), | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'slopelocation': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:652:9: error: too many arguments to function 'X_ScreentoData'; expected 0, have 5 652 | X_ScreentoData(graph, x0, y0, &fx0, &fy0); | ^~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:68:13: note: declared here 68 | static void X_ScreentoData( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:653:9: error: too many arguments to function 'X_ScreentoData'; expected 0, have 5 653 | X_ScreentoData(graph, x1, y1, &fx1, &fy1); | ^~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:68:13: note: declared here 68 | static void X_ScreentoData( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'zoomin': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:688:1: warning: old-style function definition [-Wold-style-definition] 688 | zoomin(graph) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:750:9: error: too many arguments to function 'X_ScreentoData'; expected 0, have 5 750 | X_ScreentoData(graph, x0, y0, &fx0, &fy0); | ^~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:68:13: note: declared here 68 | static void X_ScreentoData( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:751:9: error: too many arguments to function 'X_ScreentoData'; expected 0, have 5 751 | X_ScreentoData(graph, x1, y1, &fx1, &fy1); | ^~~~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:68:13: note: declared here 68 | static void X_ScreentoData( ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:781:13: error: too many arguments to function 'cp_getvar'; expected 0, have 3 781 | if (cp_getvar("plothistory", VT_BOOL, (char *) &dummy)) { | ^~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:782:16: error: too many arguments to function 'cp_parse'; expected 0, have 1 782 | wl = cp_parse(buf); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:61:18: note: declared here 61 | extern wordlist *cp_parse(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:783:18: error: too many arguments to function 'cp_addhistent'; expected 0, have 2 783 | (void) cp_addhistent(cp_event++, wl); | ^~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:97:13: note: declared here 97 | extern void cp_addhistent(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:787:16: error: too many arguments to function 'cp_evloop'; expected 0, have 1 787 | (void) cp_evloop(buf); | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'hardcopy': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:792:1: warning: old-style function definition [-Wold-style-definition] 792 | hardcopy(w, client_data, call_data) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:795:1: error: number of arguments doesn't match prototype 795 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:41:62: error: prototype declaration 41 | extern void handlebuttonev(), handlekeypressed(), killwin(), hardcopy(), | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:798:9: error: too many arguments to function 'com_hardcopy'; expected 0, have 1 798 | com_hardcopy(NULL); | ^~~~~~~~~~~~ ~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:24: /home/pbulk/work/cad/spice/work/src/include/fteext.h:161:13: note: declared here 161 | extern void com_hardcopy(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'killwin': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:803:1: warning: old-style function definition [-Wold-style-definition] 803 | killwin(w, client_data, call_data) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:806:1: error: number of arguments doesn't match prototype 806 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:41:51: error: prototype declaration 41 | extern void handlebuttonev(), handlekeypressed(), killwin(), hardcopy(), | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'redraw': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:819:1: warning: old-style function definition [-Wold-style-definition] 819 | redraw(w, client_data, call_data) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:822:1: error: number of arguments doesn't match prototype 822 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:42:13: error: prototype declaration 42 | redraw(), resize(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'resize': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:868:1: warning: old-style function definition [-Wold-style-definition] 868 | resize(w, client_data, call_data) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:871:1: error: number of arguments doesn't match prototype 871 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:42:23: error: prototype declaration 42 | redraw(), resize(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X11_Input': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:961:42: error: too many arguments to function 'inchar'; expected 0, have 1 961 | response->reply.ch = inchar(request->fp); | ^~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:111:12: note: declared here 111 | extern int inchar(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'X_ScreentoData': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:1003:1: warning: old-style function definition [-Wold-style-definition] 1003 | X_ScreentoData(graph, x, y, fx, fy) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c: In function 'linear_arc': /home/pbulk/work/cad/spice/work/src/lib/fte//x11.c:1040:1: warning: old-style function definition [-Wold-style-definition] 1040 | linear_arc(x0,y0,radius,theta1,theta2) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/smpdefs.h:13, from /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:11, from /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:6: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:3: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c: In function 'wl_forall': /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | wl_forall(wl, fn, data) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:21:18: error: too many arguments to function 'fn'; expected 0, have 2 21 | (*fn)(wl, data); | ~^~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c: In function 'dgen_init': /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | dgen_init(ckt, wl, nomix, flag, model) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:33:1: error: number of arguments doesn't match prototype 33 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:11: /home/pbulk/work/cad/spice/work/src/include/dgen.h:26:18: error: prototype declaration 26 | extern dgen *dgen_init( ); | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:2: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:59:35: note: in expansion of macro 'MALLOC' 59 | #define NEW(TYPE) ((TYPE *) MALLOC(sizeof(TYPE))) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:37:14: note: in expansion of macro 'NEW' 37 | dg = NEW(dgen); | ^~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:78:9: error: too many arguments to function 'dgen_next'; expected 0, have 1 78 | dgen_next(&dg); | ^~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:13:13: note: declared here 13 | static void dgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c: In function 'dgen_for_n': /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:84:1: warning: old-style function definition [-Wold-style-definition] 84 | dgen_for_n(dg, n, fn, data, subindex) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:102:22: error: too many arguments to function 'fn'; expected 0, have 3 102 | j = (*fn)(dgxp, data, subindex); | ~^~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:105:17: error: too many arguments to function 'dgen_next'; expected 0, have 1 105 | dgen_next(&dgxp); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:13:13: note: declared here 13 | static void dgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c: In function 'dgen_nth_next': /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:111:1: warning: old-style function definition [-Wold-style-definition] 111 | dgen_nth_next(dg, n) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:120:17: error: too many arguments to function 'dgen_next'; expected 0, have 1 120 | dgen_next(dg); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:13:13: note: declared here 13 | static void dgen_next( ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c: In function 'dgen_next': /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:125:1: warning: old-style function definition [-Wold-style-definition] 125 | dgen_next(dgx) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//gens.c:317:37: error: too many arguments to function 'ciprefix'; expected 0, have 2 317 | || !ciprefix(subckt, dev_name + 1))) | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: declared here 48 | extern int ciprefix(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c: In function 'com_reshape': /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | com_reshape(wl) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:27:1: error: number of arguments doesn't match prototype 27 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:13: /home/pbulk/work/cad/spice/work/src/include/fteext.h:517:13: error: prototype declaration 517 | extern void com_reshape(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:152:21: error: too many arguments to function 'cp_unquote'; expected 0, have 1 152 | vname = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:153:18: error: too many arguments to function 'vec_get'; expected 0, have 1 153 | dv = vec_get(vname); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:166:21: error: too many arguments to function 'cp_unquote'; expected 0, have 1 166 | vname = cp_unquote(w2->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:168:18: error: too many arguments to function 'vec_get'; expected 0, have 1 168 | dv = vec_get(vname); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: note: declared here 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//newcoms.c:208:17: note: in expansion of macro 'tfree' 208 | tfree(vname); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c: In function 'dimstring': /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | dimstring( data, length ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c: In function 'indexstring': /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c:53:1: warning: old-style function definition [-Wold-style-definition] 53 | indexstring( data, length ) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c: In function 'incindex': /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c:88:1: warning: old-style function definition [-Wold-style-definition] 88 | incindex(counts, numcounts, dims, numdims) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c: In function 'emptydims': /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c:116:1: warning: old-style function definition [-Wold-style-definition] 116 | emptydims( data, length ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c: In function 'atodims': /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | atodims( p, data, outlength ) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c: In function 'skipdims': /home/pbulk/work/cad/spice/work/src/lib/fte//dimens.c:241:1: warning: old-style function definition [-Wold-style-definition] 241 | skipdims( p ) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c: In function 'ft_xgraph': /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | ft_xgraph(xlims, ylims, filename, title, xlabel, ylabel, | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:46:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 46 | if (!cp_getvar("xbrushwidth", VT_NUM, &linewidth)) | ^~~~~~~~~ ~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:50:10: error: too many arguments to function 'cp_getvar'; expected 0, have 3 50 | if (!cp_getvar("pointstyle", VT_STRING, pointstyle)) { | ^~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:53:13: error: too many arguments to function 'cieq'; expected 0, have 2 53 | if (cieq(pointstyle,"markers")) { | ^~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:95:16: error: too many arguments to function 'cp_unquote'; expected 0, have 1 95 | text = cp_unquote(title); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:97:9: note: in expansion of macro 'tfree' 97 | tfree(text); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:100:16: error: too many arguments to function 'cp_unquote'; expected 0, have 1 100 | text = cp_unquote(xlabel); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:102:9: note: in expansion of macro 'tfree' 102 | tfree(text); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:105:16: error: too many arguments to function 'cp_unquote'; expected 0, have 1 105 | text = cp_unquote(ylabel); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//xgraph.c:107:9: note: in expansion of macro 'tfree' 107 | tfree(text); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c: In function 'com_resume': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:35:1: warning: old-style function definition [-Wold-style-definition] 35 | com_resume(wl) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:37:1: error: number of arguments doesn't match prototype 37 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:392:13: error: prototype declaration 392 | extern void com_resume(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:43:9: error: too many arguments to function 'com_run'; expected 0, have 1 43 | com_run((wordlist *) NULL); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:393:13: note: declared here 393 | extern void com_run(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:54:11: error: too many arguments to function 'if_run'; expected 0, have 4 54 | err = if_run(ft_curckt->ci_ckt, "resume", (wordlist *) NULL, | ^~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:425:12: note: declared here 425 | extern int if_run(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c: In function 'com_rset': /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | com_rset(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:83:1: error: number of arguments doesn't match prototype 83 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:391:13: error: prototype declaration 391 | extern void com_rset(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:91:5: error: too many arguments to function 'if_cktfree'; expected 0, have 2 91 | if_cktfree(ft_curckt->ci_ckt, ft_curckt->ci_symtab); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:430:13: note: declared here 430 | extern void if_cktfree(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:94:9: note: in expansion of macro 'tfree' 94 | tfree(v); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//runcoms2.c:98:5: error: too many arguments to function 'inp_dodeck'; expected 0, have 6 98 | inp_dodeck(ft_curckt->ci_deck, ft_curckt->ci_name, (wordlist *) NULL, | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:264:13: note: declared here 264 | extern void inp_dodeck(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c: In function 'com_save': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:31:1: warning: old-style function definition [-Wold-style-definition] 31 | com_save(wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:33:1: error: number of arguments doesn't match prototype 33 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:12: /home/pbulk/work/cad/spice/work/src/include/fteext.h:51:13: error: prototype declaration 51 | extern void com_save(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:34:5: error: too many arguments to function 'settrace'; expected 0, have 3 34 | settrace(wl, VF_ACCUM, NULL); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:19:6: note: declared here 19 | void settrace( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c: In function 'com_save2': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:39:1: warning: old-style function definition [-Wold-style-definition] 39 | com_save2(wl, name) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:43:5: error: too many arguments to function 'settrace'; expected 0, have 3 43 | settrace(wl, VF_ACCUM, name); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:19:6: note: declared here 19 | void settrace( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c: In function 'settrace': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:48:1: warning: old-style function definition [-Wold-style-definition] 48 | settrace(wl, what, name) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:52:1: error: number of arguments doesn't match prototype 52 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:19:6: error: prototype declaration 19 | void settrace( ); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:57:13: error: too many arguments to function 'cp_unquote'; expected 0, have 1 57 | s = cp_unquote(wl->wl_word); | ^~~~~~~~~~ ~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:132:14: note: declared here 132 | extern char *cp_unquote(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:58:13: note: in expansion of macro 'alloc' 58 | d = alloc(struct dbcomm); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:71:39: error: too many arguments to function 'copy'; expected 0, have 1 71 | d->db_nodename1 = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:88:31: error: too many arguments to function 'copy'; expected 0, have 1 88 | d->db_nodename1 = copy(s); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c: In function 'ft_getSaves': /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:103:1: warning: old-style function definition [-Wold-style-definition] 103 | ft_getSaves(savesp) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:118:13: error: too many arguments to function 'tmalloc'; expected 0, have 1 118 | tmalloc(sizeof (struct save_info) * count); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:124:47: error: too many arguments to function 'copy'; expected 0, have 1 124 | array[i].analysis = (IFuid *) copy(d->db_analysis); | ^~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/fte//breakp2.c:127:31: error: too many arguments to function 'copy'; expected 0, have 1 127 | array[i++].name = copy(d->db_nodename1); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/fte Making "install" in hlp gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c: In function 'hlp_main': /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | hlp_main(path, wl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:23:1: error: number of arguments doesn't match prototype 23 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:12: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:122:13: error: prototype declaration 122 | extern void hlp_main(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:31:27: error: too many arguments to function 'findglobalsubject'; expected 0, have 1 31 | if (!(place = findglobalsubject(wl->wl_word))) { | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:125:16: note: declared here 125 | extern fplace *findglobalsubject(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:37:25: error: too many arguments to function 'hlp_read'; expected 0, have 1 37 | if (!(top = hlp_read(place))) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:129:15: note: declared here 129 | extern topic *hlp_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:42:13: error: too many arguments to function 'hlp_provide'; expected 0, have 1 42 | hlp_provide(top); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:137:13: note: declared here 137 | extern void hlp_provide(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:46:23: error: too many arguments to function 'findglobalsubject'; expected 0, have 1 46 | if (!(place = findglobalsubject("main"))) { | ^~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:125:16: note: declared here 125 | extern fplace *findglobalsubject(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:50:21: error: too many arguments to function 'hlp_read'; expected 0, have 1 50 | if (!(top = hlp_read(place))) { | ^~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:129:15: note: declared here 129 | extern topic *hlp_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:54:9: error: too many arguments to function 'hlp_provide'; expected 0, have 1 54 | hlp_provide(top); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:137:13: note: declared here 137 | extern void hlp_provide(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c: In function 'findglobalsubject': /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:65:1: warning: old-style function definition [-Wold-style-definition] 65 | findglobalsubject(subject) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:67:1: error: number of arguments doesn't match prototype 67 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:125:16: error: prototype declaration 125 | extern fplace *findglobalsubject(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:75:16: error: too many arguments to function 'findsubject'; expected 0, have 2 75 | fpos = findsubject(*dict, subject); | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:132:13: note: declared here 132 | extern long findsubject(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:77:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 77 | place = (fplace *) tmalloc(sizeof(fplace)); | ^~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:79:31: error: too many arguments to function 'copy'; expected 0, have 1 79 | place->filename = copy(*dict); | ^~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:80:25: error: too many arguments to function 'hlp_fopen'; expected 0, have 1 80 | place->fp = hlp_fopen(*dict); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:124:14: note: declared here 124 | extern FILE *hlp_fopen(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c: In function 'hlp_approvedfile': /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:89:1: warning: old-style function definition [-Wold-style-definition] 89 | hlp_approvedfile(filename) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:91:1: error: number of arguments doesn't match prototype 91 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:133:13: error: prototype declaration 133 | extern bool hlp_approvedfile(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:95:11: error: too many arguments to function 'cieq'; expected 0, have 2 95 | if (cieq(*s, filename)) return(true); | ^~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c: In function 'hlp_fopen': /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:102:7: warning: old-style function definition [-Wold-style-definition] 102 | FILE *hlp_fopen(filename) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:104:1: error: number of arguments doesn't match prototype 104 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:124:14: error: prototype declaration 124 | extern FILE *hlp_fopen(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:113:11: error: too many arguments to function 'cieq'; expected 0, have 2 113 | if (cieq(filename, hlp_ftable[i].filename)) { | ^~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: note: declared here 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:123:5: error: too many arguments to function 'hlp_pathfix'; expected 0, have 1 123 | hlp_pathfix(buf); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:131:13: note: declared here 131 | extern void hlp_pathfix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c: In function 'hlp_pathfix': /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:138:1: warning: old-style function definition [-Wold-style-definition] 138 | hlp_pathfix(buf) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:140:1: error: number of arguments doesn't match prototype 140 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:131:13: error: prototype declaration 131 | extern void hlp_pathfix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:150:9: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 150 | s = cp_tildexpand(buf); | ^~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:143:18: note: declared here 143 | extern char *cp_tildexpand( ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//help.c:173:9: note: in expansion of macro 'tfree' 173 | tfree(s); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:15: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c: In function 'hlp_provide': /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | hlp_provide(top) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:24:1: error: number of arguments doesn't match prototype 24 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:16: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:137:13: error: prototype declaration 137 | extern void hlp_provide(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:38:14: error: too many arguments to function 'hlp_xdisplay'; expected 0, have 1 38 | if (!hlp_xdisplay(top)) { | ^~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:142:13: note: declared here 142 | extern bool hlp_xdisplay(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:43:14: error: too many arguments to function 'hlp_tdisplay'; expected 0, have 1 43 | if (!hlp_tdisplay(top)) { | ^~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:164:13: note: declared here 164 | extern bool hlp_tdisplay(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:55:19: error: too many arguments to function 'hlp_xhandle'; expected 0, have 1 55 | res = hlp_xhandle(&parent); | ^~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:144:17: note: declared here 144 | extern toplink *hlp_xhandle(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:57:19: error: too many arguments to function 'hlp_thandle'; expected 0, have 1 57 | res = hlp_thandle(&parent); | ^~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:165:17: note: declared here 165 | extern toplink *hlp_thandle(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:60:13: error: too many arguments to function 'hlp_killfamily'; expected 0, have 1 60 | hlp_killfamily(top); | ^~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:145:13: note: declared here 145 | extern void hlp_killfamily(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:68:17: error: too many arguments to function 'hlp_xwait'; expected 0, have 2 68 | hlp_xwait(parent, true); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:148:13: note: declared here 148 | extern void hlp_xwait(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:69:28: error: too many arguments to function 'hlp_read'; expected 0, have 1 69 | if (!(newtop = hlp_read(res->place))) { | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:129:15: note: declared here 129 | extern topic *hlp_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:71:17: error: too many arguments to function 'hlp_xwait'; expected 0, have 2 71 | hlp_xwait(parent, false); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:148:13: note: declared here 148 | extern void hlp_xwait(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:75:17: error: too many arguments to function 'hlp_xwait'; expected 0, have 2 75 | hlp_xwait(parent, false); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:148:13: note: declared here 148 | extern void hlp_xwait(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:82:22: error: too many arguments to function 'hlp_xdisplay'; expected 0, have 1 82 | if (!hlp_xdisplay(newtop)) { | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:142:13: note: declared here 142 | extern bool hlp_xdisplay(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:87:22: error: too many arguments to function 'hlp_tdisplay'; expected 0, have 1 87 | if (!hlp_tdisplay(newtop)) { | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:164:13: note: declared here 164 | extern bool hlp_tdisplay(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:94:13: error: too many arguments to function 'hlp_killfamily'; expected 0, have 1 94 | hlp_killfamily(parent); | ^~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:145:13: note: declared here 145 | extern void hlp_killfamily(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:95:9: error: too many arguments to function 'hlp_fixchildren'; expected 0, have 1 95 | hlp_fixchildren(parent); | ^~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:146:13: note: declared here 146 | extern void hlp_fixchildren(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c: In function 'hlp_fixchildren': /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:104:1: warning: old-style function definition [-Wold-style-definition] 104 | hlp_fixchildren(parent) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:106:1: error: number of arguments doesn't match prototype 106 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:146:13: error: prototype declaration 146 | extern void hlp_fixchildren(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c: In function 'hlp_killfamily': /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:132:1: warning: old-style function definition [-Wold-style-definition] 132 | hlp_killfamily(top) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:134:1: error: number of arguments doesn't match prototype 134 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:145:13: error: prototype declaration 145 | extern void hlp_killfamily(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:138:9: error: too many arguments to function 'hlp_killfamily'; expected 0, have 1 138 | hlp_killfamily(ch); | ^~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:132:1: note: declared here 132 | hlp_killfamily(top) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:140:9: error: too many arguments to function 'hlp_xkillwin'; expected 0, have 1 140 | hlp_xkillwin(top); | ^~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:147:13: note: declared here 147 | extern void hlp_xkillwin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//provide.c:142:9: error: too many arguments to function 'hlp_tkillwin'; expected 0, have 1 142 | hlp_tkillwin(top); | ^~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:166:13: note: declared here 166 | extern void hlp_tkillwin(); | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:14: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:13: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'hlp_read': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:52:1: warning: old-style function definition [-Wold-style-definition] 52 | hlp_read(place) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:54:1: error: number of arguments doesn't match prototype 54 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:15: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:129:15: error: prototype declaration 129 | extern topic *hlp_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:56:18: note: in expansion of macro 'alloc' 56 | topic *top = alloc(topic); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:67:18: error: too many arguments to function 'copy_fplace'; expected 0, have 1 67 | top->place = copy_fplace(place); | ^~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:49:16: note: declared here 49 | static fplace *copy_fplace(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:70:33: error: too many arguments to function 'hlp_fopen'; expected 0, have 1 70 | if (!place->fp) place->fp = hlp_fopen(place->filename); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:124:14: note: declared here 124 | extern FILE *hlp_fopen(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:78:18: error: too many arguments to function 'copy'; expected 0, have 1 78 | top->title = copy(&buf[7]); /* don't copy "TITLE: " */ | ^~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:99:14: note: in expansion of macro 'alloc' 99 | wl = alloc(wordlist); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:100:23: error: too many arguments to function 'copy'; expected 0, have 1 100 | wl->wl_word = copy(&buf[6]); | ^~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:119:27: error: too many arguments to function 'getsubtoplink'; expected 0, have 1 119 | if (topiclink = getsubtoplink(&s)) { | ^~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:43:17: note: declared here 43 | static toplink *getsubtoplink(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:136:27: error: too many arguments to function 'getsubtoplink'; expected 0, have 1 136 | if (topiclink = getsubtoplink(&s)) { | ^~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:43:17: note: declared here 43 | static toplink *getsubtoplink(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:150:27: error: too many arguments to function 'getsubject'; expected 0, have 1 150 | tl->description = getsubject(tl->place); | ^~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:42:14: note: declared here 42 | static char *getsubject(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:152:27: error: too many arguments to function 'getsubject'; expected 0, have 1 152 | tl->description = getsubject(tl->place); | ^~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:42:14: note: declared here 42 | static char *getsubject(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:154:5: error: too many arguments to function 'sortlist'; expected 0, have 1 154 | sortlist(&top->seealso); | ^~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:44:13: note: declared here 44 | static void sortlist(), tlfree(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'getsubtoplink': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:165:17: warning: old-style function definition [-Wold-style-definition] 165 | static toplink *getsubtoplink(ss) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:176:10: note: in expansion of macro 'alloc' 176 | tl = alloc(toplink); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:178:19: note: in expansion of macro 'alloc' 178 | tl->place = alloc(fplace); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:183:7: error: too many arguments to function 'strtolower'; expected 0, have 1 183 | strtolower(tl->place->filename); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:50:13: note: declared here 50 | extern void strtolower(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:186:12: error: too many arguments to function 'hlp_approvedfile'; expected 0, have 1 186 | if (!hlp_approvedfile(tl->place->filename)) { | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:133:13: note: declared here 133 | extern bool hlp_approvedfile(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:187:9: note: in expansion of macro 'tfree' 187 | tfree(tl->place); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:188:9: note: in expansion of macro 'tfree' 188 | tfree(tl); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:196:23: error: too many arguments to function 'hlp_fopen'; expected 0, have 1 196 | tl->place->fp = hlp_fopen(tl->place->filename); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:124:14: note: declared here 124 | extern FILE *hlp_fopen(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:201:25: error: too many arguments to function 'findsubject'; expected 0, have 2 201 | tl->place->fpos = findsubject(tl->place->filename, subject); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:132:13: note: declared here 132 | extern long findsubject(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:203:9: note: in expansion of macro 'tfree' 203 | tfree(tl->place); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:204:9: note: in expansion of macro 'tfree' 204 | tfree(tl); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:215:7: note: in expansion of macro 'tfree' 215 | tfree(tl->place); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:216:7: note: in expansion of macro 'tfree' 216 | tfree(tl); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'findsubject': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:226:1: warning: old-style function definition [-Wold-style-definition] 226 | findsubject(filename, subject) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:228:1: error: number of arguments doesn't match prototype 228 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:132:13: error: prototype declaration 132 | extern long findsubject(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:240:5: error: too many arguments to function 'hlp_pathfix'; expected 0, have 1 240 | hlp_pathfix(buf); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:131:13: note: declared here 131 | extern void hlp_pathfix(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'getsubject': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:259:1: warning: old-style function definition [-Wold-style-definition] 259 | getsubject(place) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:264:33: error: too many arguments to function 'hlp_fopen'; expected 0, have 1 264 | if (!place->fp) place->fp = hlp_fopen(place->filename); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:124:14: note: declared here 124 | extern FILE *hlp_fopen(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:272:13: error: too many arguments to function 'copy'; expected 0, have 1 272 | return (copy(&buf[9])); /* don't copy "SUBJECT: " */ | ^~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'sortlist': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:276:1: warning: old-style function definition [-Wold-style-definition] 276 | sortlist(tlp) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:286:24: error: too many arguments to function 'tmalloc'; expected 0, have 1 286 | vec = (toplink **) tmalloc(sizeof (toplink *) * num); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:294:5: note: in expansion of macro 'tfree' 294 | tfree(vec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'sortcmp': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:299:1: warning: old-style function definition [-Wold-style-definition] 299 | sortcmp(tlp1, tlp2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'hlp_free': /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:312:9: note: in expansion of macro 'tfree' 312 | tfree(top->title); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:313:9: note: in expansion of macro 'tfree' 313 | tfree(top->place); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:314:9: error: too many arguments to function 'wl_free'; expected 0, have 1 314 | wl_free(top->text); | ^~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:63:13: note: declared here 63 | extern void wl_free(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:315:9: error: too many arguments to function 'tlfree'; expected 0, have 1 315 | tlfree(top->subtopics); | ^~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:44:25: note: declared here 44 | static void sortlist(), tlfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:316:9: error: too many arguments to function 'tlfree'; expected 0, have 1 316 | tlfree(top->seealso); | ^~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:44:25: note: declared here 44 | static void sortlist(), tlfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:317:9: note: in expansion of macro 'tfree' 317 | tfree(top); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'tlfree': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:324:1: warning: old-style function definition [-Wold-style-definition] 324 | tlfree(tl) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:330:9: note: in expansion of macro 'tfree' 330 | tfree(tl->description); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:331:9: note: in expansion of macro 'tfree' 331 | tfree(tl->place->filename); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:332:9: note: in expansion of macro 'tfree' 332 | tfree(tl->place); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:335:9: note: in expansion of macro 'tfree' 335 | tfree(tl); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c: In function 'copy_fplace': /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:342:1: warning: old-style function definition [-Wold-style-definition] 342 | copy_fplace(place) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//readhelp.c:348:26: error: too many arguments to function 'copy'; expected 0, have 1 348 | newplace->filename = copy(place->filename); | ^~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:15: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c: In function 'hlp_tdisplay': /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:28:1: warning: old-style function definition [-Wold-style-definition] 28 | hlp_tdisplay(top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:30:1: error: number of arguments doesn't match prototype 30 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:16: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:164:13: error: prototype declaration 164 | extern bool hlp_tdisplay(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:37:5: error: too many arguments to function 'out_printf'; expected 0, have 2 37 | out_printf("\n\t%s\n", top->title); | ^~~~~~~~~~ ~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:39:9: error: too many arguments to function 'putline'; expected 0, have 1 39 | putline(wl->wl_word); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:22:13: note: declared here 22 | static void putline(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:41:9: error: too many arguments to function 'out_printf'; expected 0, have 1 41 | out_printf("\tSub-Topics:\n\n"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:42:13: error: too many arguments to function 'putstuff'; expected 0, have 2 42 | i = putstuff(top->subtopics, 0); | ^~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:23:12: note: declared here 23 | static int putstuff(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:45:9: error: too many arguments to function 'out_printf'; expected 0, have 1 45 | out_printf("\n\tSee Also:\n\n"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:46:16: error: too many arguments to function 'putstuff'; expected 0, have 2 46 | (void) putstuff(top->seealso, i); | ^~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:23:12: note: declared here 23 | static int putstuff(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:48:5: error: too many arguments to function 'out_printf'; expected 0, have 1 48 | out_printf("\n"); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c: In function 'hlp_thandle': /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:53:1: warning: old-style function definition [-Wold-style-definition] 53 | hlp_thandle(parent) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:55:1: error: number of arguments doesn't match prototype 55 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:165:17: error: prototype declaration 165 | extern toplink *hlp_thandle(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:88:20: error: too many arguments to function 'hlp_tdisplay'; expected 0, have 1 88 | (void) hlp_tdisplay(curtop); | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:28:1: note: declared here 28 | hlp_tdisplay(top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c: In function 'hlp_tkillwin': /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:131:1: warning: old-style function definition [-Wold-style-definition] 131 | hlp_tkillwin(top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:133:1: error: number of arguments doesn't match prototype 133 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:166:13: error: prototype declaration 166 | extern void hlp_tkillwin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:137:16: error: too many arguments to function 'hlp_tdisplay'; expected 0, have 1 137 | (void) hlp_tdisplay(curtop); | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:28:1: note: declared here 28 | hlp_tdisplay(top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c: In function 'putline': /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:144:1: warning: old-style function definition [-Wold-style-definition] 144 | putline(s) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:158:5: error: too many arguments to function 'out_printf'; expected 0, have 2 158 | out_printf("%s\n", buf); | ^~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c: In function 'putstuff': /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:167:1: warning: old-style function definition [-Wold-style-definition] 167 | putstuff(tl, base) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:196:17: error: too many arguments to function 'out_printf'; expected 0, have 4 196 | out_printf("%2d) %-*s ", base + j * nrows + i + | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//textdisp.c:203:9: error: too many arguments to function 'out_printf'; expected 0, have 1 203 | out_printf("\n"); | ^~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: note: declared here 126 | extern void out_printf(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:8: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c: In function 'hlp_xdisplay': /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | hlp_xdisplay(top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:29:1: error: number of arguments doesn't match prototype 29 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:9: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:142:13: error: prototype declaration 142 | extern bool hlp_xdisplay(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:117:11: error: too many arguments to function 'tmalloc'; expected 0, have 1 117 | buf = tmalloc(80 * top->numlines + 100); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:120:7: error: too many arguments to function 'sputline'; expected 0, have 2 120 | sputline(buf, wl->wl_word); | ^~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:23:13: note: declared here 23 | static void sputline(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c: In function 'newtopic': /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:208:1: warning: old-style function definition [-Wold-style-definition] 208 | newtopic(w, client_data, call_data) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:211:1: error: number of arguments doesn't match prototype 211 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:22:6: error: prototype declaration 22 | void newtopic(), delete(), quit(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:216:20: error: too many arguments to function 'hlp_read'; expected 0, have 1 216 | if (!(newtop = hlp_read(result->place))) { | ^~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:129:15: note: declared here 129 | extern topic *hlp_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:225:10: error: too many arguments to function 'hlp_xdisplay'; expected 0, have 1 225 | if (!hlp_xdisplay(newtop)) { | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:27:1: note: declared here 27 | hlp_xdisplay(top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c: In function 'delete': /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:232:1: warning: old-style function definition [-Wold-style-definition] 232 | delete(w, client_data, call_data) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:235:1: error: number of arguments doesn't match prototype 235 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:22:18: error: prototype declaration 22 | void newtopic(), delete(), quit(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:239:5: error: too many arguments to function 'hlp_killfamily'; expected 0, have 1 239 | hlp_killfamily(top); | ^~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:145:13: note: declared here 145 | extern void hlp_killfamily(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:240:5: error: too many arguments to function 'hlp_fixchildren'; expected 0, have 1 240 | hlp_fixchildren(top); | ^~~~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:146:13: note: declared here 146 | extern void hlp_fixchildren(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c: In function 'quit': /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:244:1: warning: old-style function definition [-Wold-style-definition] 244 | quit(w, client_data, call_data) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:247:1: error: number of arguments doesn't match prototype 247 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:22:28: error: prototype declaration 22 | void newtopic(), delete(), quit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:252:5: error: too many arguments to function 'hlp_killfamily'; expected 0, have 1 252 | hlp_killfamily(parent ? parent : top); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:145:13: note: declared here 145 | extern void hlp_killfamily(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c: In function 'hlp_xkillwin': /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:256:1: warning: old-style function definition [-Wold-style-definition] 256 | hlp_xkillwin(top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:258:1: error: number of arguments doesn't match prototype 258 | { | ^ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:147:13: error: prototype declaration 147 | extern void hlp_xkillwin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c: In function 'sputline': /home/pbulk/work/cad/spice/work/src/lib/hlp//x11disp.c:282:1: warning: old-style function definition [-Wold-style-definition] 282 | sputline(buf, s) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/home/pbulk/work/cad/spice/work/src/include -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c:7: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c: In function 'hlp_xwait': /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c:587:21: warning: old-style function definition [-Wold-style-definition] 587 | /* ARGSUSED */ void hlp_xwait(top, on) topic *top; bool on; { } | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c:587:16: error: number of arguments doesn't match prototype 587 | /* ARGSUSED */ void hlp_xwait(top, on) topic *top; bool on; { } | ^~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c:8: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:148:13: error: prototype declaration 148 | extern void hlp_xwait(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c: In function 'hlp_xhandle': /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c:589:11: warning: old-style function definition [-Wold-style-definition] 589 | toplink * hlp_xhandle(pp) topic **pp; { *pp = NULL; return (NULL); } | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/hlp//xdisplay.c:589:1: error: number of arguments doesn't match prototype 589 | toplink * hlp_xhandle(pp) topic **pp; { *pp = NULL; return (NULL); } | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:144:17: error: prototype declaration 144 | extern toplink *hlp_xhandle(); | ^~~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/hlp Making "install" in inp gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c: In function 'IFeval': /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | IFeval(tree, gmin, result, vals, derivs) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c: In function 'PTeval': /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c:57:1: warning: old-style function definition [-Wold-style-definition] 57 | PTeval(tree, gmin, res, vals) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c:80:17: error: too many arguments to function 'tree->function'; expected 0, have 1 80 | *res = (*tree->function)(r1); | ~^~~~~~~~~~~~~~~~ ~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c:11: /home/pbulk/work/cad/spice/work/src/include/inpptree.h:53:14: note: declared here 53 | double (*function)(); /* ... and pointer to the function. */ | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ifeval.c:99:17: error: too many arguments to function 'tree->function'; expected 0, have 2 99 | *res = (*tree->function)(r1, r2); | ~^~~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:53:14: note: declared here 53 | double (*function)(); /* ... and pointer to the function. */ | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c: In function 'IFnewUid': /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | IFnewUid(ckt,newuid,olduid,suffix,type,nodedata) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c:9: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c:30:17: note: in expansion of macro 'MALLOC' 30 | MALLOC(sizeof(char)*(strlen(suffix)+strlen((char*)olduid)+2)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c:34:25: note: in expansion of macro 'MALLOC' 34 | newname=(char *)MALLOC(sizeof(char)* | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c: In function 'IFdelUid': /home/pbulk/work/cad/spice/work/src/lib/inp//ifnewuid.c:65:1: warning: old-style function definition [-Wold-style-definition] 65 | IFdelUid(ckt,uid,type) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2b.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2b.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2b.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2b.c: In function 'INP2B': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2b.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2B(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2c.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2c.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2c.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2c.c: In function 'INP2C': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2c.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2C(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2d.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2d.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2d.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2d.c: In function 'INP2D': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2d.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2D(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c: In function 'INP2dot': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | INP2dot(ckt,tab,current,task,gnode) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:99:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 99 | if( *name == (char)NULL) break; /* end of line */ | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:384:25: note: in expansion of macro 'MALLOC' 384 | MALLOC(sizeof(char)*(5+strlen(nname1)+strlen(nname2))); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:390:40: note: in expansion of macro 'MALLOC' 390 | ptemp.sValue = (char *)MALLOC(sizeof(char)*(4+strlen(nname1))); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:504:25: note: in expansion of macro 'MALLOC' 504 | MALLOC(sizeof(char)*(5+strlen(nname1)+strlen(nname2))); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2dot.c:510:40: note: in expansion of macro 'MALLOC' 510 | ptemp.sValue = (char *)MALLOC(sizeof(char)*(4+strlen(nname1))); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2e.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2e.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2e.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2e.c: In function 'INP2E': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2e.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2E(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2f.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2f.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2f.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2f.c: In function 'INP2F': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2f.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2F(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2g.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2g.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2g.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2g.c: In function 'INP2G': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2g.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2G(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2h.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2h.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2h.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2h.c: In function 'INP2H': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2h.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2H(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2i.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2i.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2i.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2i.c: In function 'INP2I': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2i.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2I(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2j.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2j.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2j.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2j.c: In function 'INP2J': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2j.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2J(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2k.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2k.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2k.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2k.c: In function 'INP2K': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2k.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2K(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2l.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2l.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2l.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2l.c: In function 'INP2L': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2l.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2L(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2m.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2m.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2m.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2m.c: In function 'INP2M': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2m.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2M(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2o.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2o.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2o.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2o.c: In function 'INP2O': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2o.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | INP2O(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2q.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2q.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2q.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2q.c: In function 'INP2Q': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2q.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2Q(ckt,tab,current,gnode) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2r.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2r.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2r.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2r.c: In function 'INP2R': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2r.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2R(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2s.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2s.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2s.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2s.c: In function 'INP2S': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2s.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2S(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2t.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2t.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2t.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2t.c: In function 'INP2T': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2t.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2T(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2u.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2u.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2u.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2u.c: In function 'INP2U': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2u.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2U(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2v.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2v.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2v.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2v.c: In function 'INP2V': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2v.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2V(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2w.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2w.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2w.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2w.c: In function 'INP2W': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2w.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2W(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inp2z.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/ftedata.h:12, from /home/pbulk/work/cad/spice/work/src/include/fteparse.h:15, from /home/pbulk/work/cad/spice/work/src/include/fteext.h:15, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2z.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inp2z.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inp2z.c: In function 'INP2Z': /home/pbulk/work/cad/spice/work/src/lib/inp//inp2z.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INP2Z(ckt,tab,current) | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpaname.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpaname.c:17: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpaname.c:15: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpaname.c: In function 'INPaName': /home/pbulk/work/cad/spice/work/src/lib/inp//inpaname.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | INPaName(parm,val,ckt,dev,devnam,fast,sim,dataType,selector) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpapnam.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpapnam.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpapnam.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpapnam.c: In function 'INPapName': /home/pbulk/work/cad/spice/work/src/lib/inp//inpapnam.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | INPapName(ckt,type,analPtr,parmname,value) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpdomod.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//inpdomod.c: In function 'INPdomodel': /home/pbulk/work/cad/spice/work/src/lib/inp//inpdomod.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | INPdomodel(ckt,image,tab) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpdomod.c:9: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpdomod.c:160:23: note: in expansion of macro 'MALLOC' 160 | err = (char *)MALLOC(35 + strlen(typename)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c:17: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c:12: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c: In function 'INPdoOpts': /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | INPdoOpts(ckt,anal,optCard,tab) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c:16: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c:59:38: note: in expansion of macro 'MALLOC' 59 | errmsg = (char *)MALLOC((45+strlen(token)) * sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c:73:41: note: in expansion of macro 'MALLOC' 73 | errmsg =(char *)MALLOC((35+strlen(token))*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpdoopt.c:83:30: note: in expansion of macro 'MALLOC' 83 | errmsg = (char *)MALLOC(100 * sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpdpar.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpdpar.c:20: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpdpar.c:15: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpdpar.c: In function 'INPdevParse': /home/pbulk/work/cad/spice/work/src/lib/inp//inpdpar.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | INPdevParse(line,ckt,dev,fast,leading,waslead,tab) | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpdpar.c:16: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpdpar.c:68:22: note: in expansion of macro 'MALLOC' 68 | errbuf = MALLOC(strlen(parm)+25); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inperrc.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//inperrc.c: In function 'INPerrCat': /home/pbulk/work/cad/spice/work/src/lib/inp//inperrc.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | INPerrCat(a,b) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inperrc.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inperrc.c:27:30: note: in expansion of macro 'MALLOC' 27 | errtmp = (char *)MALLOC( (strlen(a) + strlen(b)+2)*sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inperror.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//inperror.c: In function 'INPerror': /home/pbulk/work/cad/spice/work/src/lib/inp//inperror.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | INPerror(type) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inperror.c:26:11: error: too many arguments to function 'SPerror'; expected 0, have 1 26 | val = SPerror(type); | ^~~~~~~ ~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inperror.c:15: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: declared here 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inperror.c:16: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inperror.c:37:11: note: in expansion of macro 'MALLOC' 37 | val = MALLOC(strlen(ebuf) + 1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpfindl.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpfindl.c:14: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpfindl.c:12: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpfindl.c: In function 'INPfindLev': /home/pbulk/work/cad/spice/work/src/lib/inp//inpfindl.c:20:1: warning: old-style function definition [-Wold-style-definition] 20 | INPfindLev(line,level) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c:11: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c: In function 'INPgetMod': /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | INPgetMod(ckt,name,model,tab) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c:9: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c:41:31: note: in expansion of macro 'MALLOC' 41 | err = (char *)MALLOC((35+strlen(name)) * sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c:82:40: note: in expansion of macro 'MALLOC' 82 | temp = (char *)MALLOC((40+strlen(parm)) * sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgmod.c:98:19: note: in expansion of macro 'MALLOC' 98 | err = (char *)MALLOC((60+strlen(name)) * sizeof(char)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtitl.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtitl.c:16: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtitl.c:12: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtitl.c: In function 'INPgetTitle': /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtitl.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | INPgetTitle(ckt,data) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c:17: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c: In function 'INPgetTok': /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | INPgetTok(line,token,gobble) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c:18: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c:54:20: note: in expansion of macro 'MALLOC' 54 | *token=(char *)MALLOC(1+point-*line); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c: In function 'INPgetUTok': /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c:79:1: warning: old-style function definition [-Wold-style-definition] 79 | INPgetUTok(line,token,gobble) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgtok.c:148:20: note: in expansion of macro 'MALLOC' 148 | *token=(char *)MALLOC(1+point-*line); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c: In function 'INPgetValue': /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | INPgetValue(ckt,line,type,tab) | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c:9: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c:39:26: note: in expansion of macro 'MALLOC' 39 | list = (double *)MALLOC(sizeof(double)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c:44:28: note: in expansion of macro 'REALLOC' 44 | list=(double *)REALLOC((char *)list,temp.v.numValue*sizeof(double)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c:51:24: note: in expansion of macro 'MALLOC' 51 | ilist = (int *)MALLOC(sizeof(int)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgval.c:56:26: note: in expansion of macro 'REALLOC' 56 | ilist=(int *)REALLOC((char *)ilist,temp.v.numValue*sizeof(int)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpmkmod.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//inpmkmod.c: In function 'INPmakeMod': /home/pbulk/work/cad/spice/work/src/lib/inp//inpmkmod.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | INPmakeMod(token,type,line) | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpmkmod.c:8: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpmkmod.c:31:22: note: in expansion of macro 'MALLOC' 31 | *i = (INPmodel *)MALLOC(sizeof(INPmodel)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpmktmp.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//inpmktmp.c: In function 'INPmkTemp': /home/pbulk/work/cad/spice/work/src/lib/inp//inpmktmp.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | INPmkTemp(string) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpmktmp.c:12: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpmktmp.c:24:12: note: in expansion of macro 'MALLOC' 24 | temp = MALLOC(len+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inppas1.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//inppas1.c: In function 'INPpas1': /home/pbulk/work/cad/spice/work/src/lib/inp//inppas1.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | INPpas1(ckt,deck,tab) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inppas1.c:26:11: error: conflicting types for 'INPdomodel'; have 'char *(void)' 26 | char *INPdomodel(); | ^~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inppas1.c:8: /home/pbulk/work/cad/spice/work/src/include/inpdefs.h:88:7: note: previous declaration of 'INPdomodel' with type 'char *(GENERIC *, card *, INPtables *)' {aka 'char *(void *, card *, struct sINPtables *)'} 88 | char *INPdomodel(GENERIC *,card*, INPtables*); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inppas1.c:38:24: error: too many arguments to function 'INPdomodel'; expected 0, have 3 38 | temp = INPdomodel(ckt,current,tab); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inppas1.c:26:11: note: declared here 26 | char *INPdomodel(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inppas2.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//inppas2.c:10: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inppas2.c: In function 'INPpas2': /home/pbulk/work/cad/spice/work/src/lib/inp//inppas2.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | INPpas2(ckt,data,tab,task) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inppname.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//inppname.c:15: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inppname.c:13: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inppname.c: In function 'INPpName': /home/pbulk/work/cad/spice/work/src/lib/inp//inppname.c:22:1: warning: old-style function definition [-Wold-style-definition] 22 | INPpName(parm,val,ckt,dev,fast) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:8: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:7: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'INPgetTree': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:99:1: warning: old-style function definition [-Wold-style-definition] 99 | INPgetTree(line, pt, ckt, tab) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:115:9: error: too many arguments to function 'PTparse'; expected 0, have 1 115 | p = PTparse(line); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:26:22: note: declared here 26 | static INPparseNode *PTparse(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:117:16: error: too many arguments to function 'PTcheck'; expected 0, have 1 117 | if (!p || !PTcheck(p)) { | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:30:12: note: declared here 30 | static int PTcheck(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:15: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:122:30: note: in expansion of macro 'MALLOC' 122 | (*pt) = (INPparseTree *) MALLOC(sizeof (INPparseTree)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:131:13: note: in expansion of macro 'MALLOC' 131 | MALLOC(numvalues * sizeof (INPparseNode *)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:134:28: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 134 | (*pt)->derivs[i] = PTdifferentiate(p, i); | ^~~~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:24:22: note: declared here 24 | static INPparseNode *PTdifferentiate(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'PTdifferentiate': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: warning: old-style function definition [-Wold-style-definition] 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:159:16: error: too many arguments to function 'mkcon'; expected 0, have 1 159 | newp = mkcon((double) 0); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:165:20: error: too many arguments to function 'mkcon'; expected 0, have 1 165 | newp = mkcon((double) 1); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:167:20: error: too many arguments to function 'mkcon'; expected 0, have 1 167 | newp = mkcon((double) 0); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:172:16: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 172 | arg1 = PTdifferentiate(p->left, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:173:16: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 173 | arg2 = PTdifferentiate(p->right, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:174:20: error: too many arguments to function 'mkb'; expected 0, have 3 174 | newp = mkb(p->type, arg1, arg2); | ^~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:179:16: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 179 | arg1 = PTdifferentiate(p->left, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:180:16: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 180 | arg2 = PTdifferentiate(p->right, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:182:29: error: too many arguments to function 'mkb'; expected 0, have 3 182 | newp = mkb(PT_PLUS, mkb(PT_TIMES, arg1, p->right), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:183:21: error: too many arguments to function 'mkb'; expected 0, have 3 183 | mkb(PT_TIMES, p->left, arg2)); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:182:16: error: too many arguments to function 'mkb'; expected 0, have 3 182 | newp = mkb(PT_PLUS, mkb(PT_TIMES, arg1, p->right), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:188:16: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 188 | arg1 = PTdifferentiate(p->left, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:189:16: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 189 | arg2 = PTdifferentiate(p->right, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:191:45: error: too many arguments to function 'mkb'; expected 0, have 3 191 | newp = mkb(PT_DIVIDE, mkb(PT_MINUS, mkb(PT_TIMES, arg1, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:192:28: error: too many arguments to function 'mkb'; expected 0, have 3 192 | p->right), mkb(PT_TIMES, p->left, arg2)), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:191:31: error: too many arguments to function 'mkb'; expected 0, have 3 191 | newp = mkb(PT_DIVIDE, mkb(PT_MINUS, mkb(PT_TIMES, arg1, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:193:41: error: too many arguments to function 'mkcon'; expected 0, have 1 193 | mkb(PT_POWER, p->right, mkcon((double) 2))); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:193:17: error: too many arguments to function 'mkb'; expected 0, have 3 193 | mkb(PT_POWER, p->right, mkcon((double) 2))); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:191:16: error: too many arguments to function 'mkb'; expected 0, have 3 191 | newp = mkb(PT_DIVIDE, mkb(PT_MINUS, mkb(PT_TIMES, arg1, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:201:20: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 201 | arg1 = PTdifferentiate(p->left, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:204:21: error: too many arguments to function 'mkcon'; expected 0, have 1 204 | mkcon(p->right->constant), | ^~~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:206:21: error: too many arguments to function 'mkcon'; expected 0, have 1 206 | mkcon(p->right->constant - 1))), | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:205:21: error: too many arguments to function 'mkb'; expected 0, have 3 205 | mkb(PT_POWER, p->left, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:203:34: error: too many arguments to function 'mkb'; expected 0, have 3 203 | newp = mkb(PT_TIMES, mkb(PT_TIMES, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:203:20: error: too many arguments to function 'mkb'; expected 0, have 3 203 | newp = mkb(PT_TIMES, mkb(PT_TIMES, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:212:20: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 212 | arg1 = PTdifferentiate(p->left, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:213:20: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 213 | arg2 = PTdifferentiate(p->right, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:215:31: error: too many arguments to function 'mkf'; expected 0, have 2 215 | p->right, mkf(PTF_LN, p->left))), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:214:47: error: too many arguments to function 'mkb'; expected 0, have 3 214 | newp = mkb(PT_TIMES, mkf(PTF_EXP, mkb(PT_TIMES, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:214:34: error: too many arguments to function 'mkf'; expected 0, have 2 214 | newp = mkb(PT_TIMES, mkf(PTF_EXP, mkb(PT_TIMES, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:217:21: error: too many arguments to function 'mkb'; expected 0, have 3 217 | mkb(PT_DIVIDE, arg1, p->left)), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:216:34: error: too many arguments to function 'mkb'; expected 0, have 3 216 | mkb(PT_PLUS, mkb(PT_TIMES, p->right, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:219:21: error: too many arguments to function 'mkf'; expected 0, have 2 219 | mkf(PTF_LN, arg1)))); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:218:21: error: too many arguments to function 'mkb'; expected 0, have 3 218 | mkb(PT_TIMES, arg2, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:216:21: error: too many arguments to function 'mkb'; expected 0, have 3 216 | mkb(PT_PLUS, mkb(PT_TIMES, p->right, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:214:20: error: too many arguments to function 'mkb'; expected 0, have 3 214 | newp = mkb(PT_TIMES, mkf(PTF_EXP, mkb(PT_TIMES, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:230:20: error: too many arguments to function 'mkf'; expected 0, have 3 230 | arg1 = mkf(PTF_SGN, p->left, 0); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:234:20: error: too many arguments to function 'mkcon'; expected 0, have 1 234 | arg1 = mkcon((double) 0.0); | ^~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:238:35: error: too many arguments to function 'mkcon'; expected 0, have 1 238 | arg1 = mkb(PT_DIVIDE, mkcon((double) -1), mkf(PTF_SQRT, | ^~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:239:35: error: too many arguments to function 'mkcon'; expected 0, have 1 239 | mkb(PT_MINUS, mkcon((double) 1), | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:240:44: error: too many arguments to function 'mkcon'; expected 0, have 1 240 | mkb(PT_POWER, p->left, mkcon((double) | ^~~~~ ~~~~~~~~ 241 | 2))))); | ~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:240:21: error: too many arguments to function 'mkb'; expected 0, have 3 240 | mkb(PT_POWER, p->left, mkcon((double) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:239:21: error: too many arguments to function 'mkb'; expected 0, have 3 239 | mkb(PT_MINUS, mkcon((double) 1), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:238:55: error: too many arguments to function 'mkf'; expected 0, have 2 238 | arg1 = mkb(PT_DIVIDE, mkcon((double) -1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:238:20: error: too many arguments to function 'mkb'; expected 0, have 3 238 | arg1 = mkb(PT_DIVIDE, mkcon((double) -1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:245:35: error: too many arguments to function 'mkcon'; expected 0, have 1 245 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:247:21: error: too many arguments to function 'mkcon'; expected 0, have 1 247 | mkcon((double) 2)), | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:246:35: error: too many arguments to function 'mkb'; expected 0, have 3 246 | mkb(PT_MINUS, mkb(PT_POWER, p->left, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:248:21: error: too many arguments to function 'mkcon'; expected 0, have 1 248 | mkcon((double) 1)))); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:246:21: error: too many arguments to function 'mkb'; expected 0, have 3 246 | mkb(PT_MINUS, mkb(PT_POWER, p->left, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:245:54: error: too many arguments to function 'mkf'; expected 0, have 2 245 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:245:20: error: too many arguments to function 'mkb'; expected 0, have 3 245 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:253:35: error: too many arguments to function 'mkcon'; expected 0, have 1 253 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:254:35: error: too many arguments to function 'mkcon'; expected 0, have 1 254 | mkb(PT_MINUS, mkcon((double) 1), | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:255:44: error: too many arguments to function 'mkcon'; expected 0, have 1 255 | mkb(PT_POWER, p->left, mkcon((double) | ^~~~~ ~~~~~~~~ 256 | 2))))); | ~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:255:21: error: too many arguments to function 'mkb'; expected 0, have 3 255 | mkb(PT_POWER, p->left, mkcon((double) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:254:21: error: too many arguments to function 'mkb'; expected 0, have 3 254 | mkb(PT_MINUS, mkcon((double) 1), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:253:54: error: too many arguments to function 'mkf'; expected 0, have 2 253 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:253:20: error: too many arguments to function 'mkb'; expected 0, have 3 253 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:260:35: error: too many arguments to function 'mkcon'; expected 0, have 1 260 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:262:21: error: too many arguments to function 'mkcon'; expected 0, have 1 262 | mkcon((double) 2)), | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:261:34: error: too many arguments to function 'mkb'; expected 0, have 3 261 | mkb(PT_PLUS, mkb(PT_POWER, p->left, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:263:21: error: too many arguments to function 'mkcon'; expected 0, have 1 263 | mkcon((double) 1)))); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:261:21: error: too many arguments to function 'mkb'; expected 0, have 3 261 | mkb(PT_PLUS, mkb(PT_POWER, p->left, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:260:54: error: too many arguments to function 'mkf'; expected 0, have 2 260 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:260:20: error: too many arguments to function 'mkb'; expected 0, have 3 260 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:267:35: error: too many arguments to function 'mkcon'; expected 0, have 1 267 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_PLUS, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:268:44: error: too many arguments to function 'mkcon'; expected 0, have 1 268 | mkb(PT_POWER, p->left, mkcon((double) | ^~~~~ ~~~~~~~~ 269 | 2)), mkcon((double) 1))); | ~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:268:21: error: too many arguments to function 'mkb'; expected 0, have 3 268 | mkb(PT_POWER, p->left, mkcon((double) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:269:26: error: too many arguments to function 'mkcon'; expected 0, have 1 269 | 2)), mkcon((double) 1))); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:267:54: error: too many arguments to function 'mkb'; expected 0, have 3 267 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_PLUS, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:267:20: error: too many arguments to function 'mkb'; expected 0, have 3 267 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_PLUS, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:273:35: error: too many arguments to function 'mkcon'; expected 0, have 1 273 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_MINUS, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:274:21: error: too many arguments to function 'mkcon'; expected 0, have 1 274 | mkcon((double) 1), mkb(PT_POWER, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:275:30: error: too many arguments to function 'mkcon'; expected 0, have 1 275 | p->left, mkcon((double) 2)))); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:274:40: error: too many arguments to function 'mkb'; expected 0, have 3 274 | mkcon((double) 1), mkb(PT_POWER, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:273:54: error: too many arguments to function 'mkb'; expected 0, have 3 273 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_MINUS, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:273:20: error: too many arguments to function 'mkb'; expected 0, have 3 273 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_MINUS, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:279:36: error: too many arguments to function 'mkf'; expected 0, have 2 279 | arg1 = mkf(PTF_UMINUS, mkf(PTF_SIN, p->left)); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:279:20: error: too many arguments to function 'mkf'; expected 0, have 2 279 | arg1 = mkf(PTF_UMINUS, mkf(PTF_SIN, p->left)); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:283:20: error: too many arguments to function 'mkf'; expected 0, have 2 283 | arg1 = mkf(PTF_SINH, p->left); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:287:20: error: too many arguments to function 'mkf'; expected 0, have 3 287 | arg1 = mkf(PTF_EXP, p->left, 0); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:291:35: error: too many arguments to function 'mkcon'; expected 0, have 1 291 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), p->left); | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:291:20: error: too many arguments to function 'mkb'; expected 0, have 3 291 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), p->left); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:295:35: error: too many arguments to function 'mkcon'; expected 0, have 1 295 | arg1 = mkb(PT_DIVIDE, mkcon((double) M_LOG10E), p->left); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:295:20: error: too many arguments to function 'mkb'; expected 0, have 3 295 | arg1 = mkb(PT_DIVIDE, mkcon((double) M_LOG10E), p->left); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:299:20: error: too many arguments to function 'mkf'; expected 0, have 2 299 | arg1 = mkf(PTF_COS, p->left); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:303:20: error: too many arguments to function 'mkf'; expected 0, have 2 303 | arg1 = mkf(PTF_COSH, p->left); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:307:35: error: too many arguments to function 'mkcon'; expected 0, have 1 307 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_TIMES, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:308:21: error: too many arguments to function 'mkcon'; expected 0, have 1 308 | mkcon((double) 2), mkf(PTF_SQRT, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:308:40: error: too many arguments to function 'mkf'; expected 0, have 2 308 | mkcon((double) 2), mkf(PTF_SQRT, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:307:54: error: too many arguments to function 'mkb'; expected 0, have 3 307 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_TIMES, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:307:20: error: too many arguments to function 'mkb'; expected 0, have 3 307 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_TIMES, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:313:35: error: too many arguments to function 'mkcon'; expected 0, have 1 313 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_POWER, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:314:21: error: too many arguments to function 'mkf'; expected 0, have 2 314 | mkf(PTF_COS, p->left), mkcon((double) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:314:44: error: too many arguments to function 'mkcon'; expected 0, have 1 314 | mkf(PTF_COS, p->left), mkcon((double) | ^~~~~ ~~~~~~~~ 315 | 2))); | ~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:313:54: error: too many arguments to function 'mkb'; expected 0, have 3 313 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_POWER, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:313:20: error: too many arguments to function 'mkb'; expected 0, have 3 313 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_POWER, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:319:35: error: too many arguments to function 'mkcon'; expected 0, have 1 319 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_POWER, | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:320:21: error: too many arguments to function 'mkf'; expected 0, have 2 320 | mkf(PTF_COSH, p->left), mkcon((double) | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:320:45: error: too many arguments to function 'mkcon'; expected 0, have 1 320 | mkf(PTF_COSH, p->left), mkcon((double) | ^~~~~ ~~~~~~~~ 321 | 2))); | ~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:319:54: error: too many arguments to function 'mkb'; expected 0, have 3 319 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_POWER, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:319:20: error: too many arguments to function 'mkb'; expected 0, have 3 319 | arg1 = mkb(PT_DIVIDE, mkcon((double) 1), mkb(PT_POWER, | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:325:20: error: too many arguments to function 'mkcon'; expected 0, have 1 325 | arg1 = mkcon((double) 0.0); | ^~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:329:20: error: too many arguments to function 'mkf'; expected 0, have 2 329 | arg1 = mkf(PTF_USTEP, p->left); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:333:20: error: too many arguments to function 'mkcon'; expected 0, have 1 333 | arg1 = mkcon((double) - 1.0); | ^~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:22: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:343:16: error: too many arguments to function 'PTdifferentiate'; expected 0, have 2 343 | arg2 = PTdifferentiate(p->left, varnum); | ^~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:149:1: note: declared here 149 | PTdifferentiate(p, varnum) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:345:16: error: too many arguments to function 'mkb'; expected 0, have 3 345 | newp = mkb(PT_TIMES, arg1, arg2); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:32: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'mkcon': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: warning: old-style function definition [-Wold-style-definition] 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:363:40: note: in expansion of macro 'MALLOC' 363 | INPparseNode *p = (INPparseNode *) MALLOC(sizeof (INPparseNode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'mkb': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:372:1: warning: old-style function definition [-Wold-style-definition] 372 | mkb(type, left, right) | ^~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:376:40: note: in expansion of macro 'MALLOC' 376 | INPparseNode *p = (INPparseNode *) MALLOC(sizeof (INPparseNode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:382:21: error: too many arguments to function 'mkcon'; expected 0, have 1 382 | return (mkcon(left->constant * right->constant)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: note: declared here 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:385:21: error: too many arguments to function 'mkcon'; expected 0, have 1 385 | return (mkcon(left->constant / right->constant)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: note: declared here 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:388:21: error: too many arguments to function 'mkcon'; expected 0, have 1 388 | return (mkcon(left->constant + right->constant)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: note: declared here 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:391:21: error: too many arguments to function 'mkcon'; expected 0, have 1 391 | return (mkcon(left->constant - right->constant)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: note: declared here 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:394:21: error: too many arguments to function 'mkcon'; expected 0, have 1 394 | return (mkcon(pow(left->constant, right->constant))); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: note: declared here 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:427:21: error: too many arguments to function 'mkf'; expected 0, have 2 427 | return (mkf(PTF_UMINUS, right)); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:25:40: note: declared here 25 | static INPparseNode *mkcon(), *mkb(), *mkf(); | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:433:25: error: too many arguments to function 'mkcon'; expected 0, have 1 433 | return (mkcon(1.0)); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: note: declared here 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'mkf': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:458:1: warning: old-style function definition [-Wold-style-definition] 458 | mkf(type, arg) | ^~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:462:40: note: in expansion of macro 'MALLOC' 462 | INPparseNode *p = (INPparseNode *) MALLOC(sizeof (INPparseNode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:475:22: error: too many arguments to function 'funcs[i].funcptr'; expected 0, have 1 475 | constval = ((*funcs[i].funcptr) (arg->constant)); | ~^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:54:14: note: declared here 54 | double (*funcptr)(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:476:17: error: too many arguments to function 'mkcon'; expected 0, have 1 476 | return (mkcon(constval)); | ^~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:360:1: note: declared here 360 | mkcon(value) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'PTcheck': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:492:1: warning: old-style function definition [-Wold-style-definition] 492 | PTcheck(p) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:504:17: error: too many arguments to function 'PTcheck'; expected 0, have 1 504 | return (PTcheck(p->left)); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:492:1: note: declared here 492 | PTcheck(p) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:511:17: error: too many arguments to function 'PTcheck'; expected 0, have 1 511 | return (PTcheck(p->left) && PTcheck(p->right)); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:492:1: note: declared here 492 | PTcheck(p) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:511:37: error: too many arguments to function 'PTcheck'; expected 0, have 1 511 | return (PTcheck(p->left) && PTcheck(p->right)); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:492:1: note: declared here 492 | PTcheck(p) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'PTparse': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:545:1: warning: old-style function definition [-Wold-style-definition] 545 | PTparse(line) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:554:12: error: too many arguments to function 'PTlexer'; expected 0, have 1 554 | next = PTlexer(line); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:29:19: note: declared here 29 | static PTelement *PTlexer(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:574:20: error: too many arguments to function 'PTlexer'; expected 0, have 1 574 | next = PTlexer(line); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:29:19: note: declared here 29 | static PTelement *PTlexer(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:612:22: error: too many arguments to function 'makepnode'; expected 0, have 1 612 | pn = makepnode(&stack[st]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:22: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:617:23: error: too many arguments to function 'makepnode'; expected 0, have 1 617 | lpn = makepnode(&stack[st]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:22: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:620:22: error: too many arguments to function 'mkfnode'; expected 0, have 2 620 | pn = mkfnode("-", lpn); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:48: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:623:22: error: too many arguments to function 'makepnode'; expected 0, have 1 623 | pn = makepnode(&stack[sp + 1]); | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:22: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:628:23: error: too many arguments to function 'makepnode'; expected 0, have 1 628 | lpn = makepnode(&stack[sp + 2]); | ^~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:22: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:631:28: error: too many arguments to function 'mkfnode'; expected 0, have 2 631 | if (!(pn = mkfnode(stack[sp].value.string, lpn))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:48: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:634:23: error: too many arguments to function 'makepnode'; expected 0, have 1 634 | lpn = makepnode(&stack[sp]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:22: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:635:23: error: too many arguments to function 'makepnode'; expected 0, have 1 635 | rpn = makepnode(&stack[st]); | ^~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:22: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:638:22: error: too many arguments to function 'mkbnode'; expected 0, have 3 638 | pn = mkbnode(stack[sp + 1].token, lpn, rpn); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:36: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:646:10: error: too many arguments to function 'makepnode'; expected 0, have 1 646 | pn = makepnode(&stack[1]); | ^~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:27:22: note: declared here 27 | static INPparseNode *makepnode(), *mkbnode(), *mkfnode(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'makepnode': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:660:1: warning: old-style function definition [-Wold-style-definition] 660 | makepnode(elem) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:668:17: error: too many arguments to function 'mksnode'; expected 0, have 1 668 | return (mksnode(elem->value.string)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:28:34: note: declared here 28 | static INPparseNode *mknnode(), *mksnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:671:17: error: too many arguments to function 'mknnode'; expected 0, have 1 671 | return (mknnode(elem->value.real)); | ^~~~~~~ ~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:28:22: note: declared here 28 | static INPparseNode *mknnode(), *mksnode(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'mkbnode': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:685:1: warning: old-style function definition [-Wold-style-definition] 685 | mkbnode(opnum, arg1, arg2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:701:26: note: in expansion of macro 'MALLOC' 701 | p = (INPparseNode *) MALLOC(sizeof (INPparseNode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'mkfnode': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:713:1: warning: old-style function definition [-Wold-style-definition] 713 | mkfnode(fname, arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:728:26: note: in expansion of macro 'MALLOC' 728 | p = (INPparseNode *) MALLOC(sizeof (INPparseNode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:731:16: note: in expansion of macro 'MALLOC' 731 | name = MALLOC(128); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:743:31: error: too many arguments to function 'mkfnode'; expected 0, have 2 743 | p = mkb(PT_MINUS, mkfnode(fname, arg->left), | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:713:1: note: declared here 713 | mkfnode(fname, arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:744:17: error: too many arguments to function 'mkfnode'; expected 0, have 2 744 | mkfnode(fname, arg->right)); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:713:1: note: declared here 713 | mkfnode(fname, arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:743:17: error: too many arguments to function 'mkb'; expected 0, have 3 743 | p = mkb(PT_MINUS, mkfnode(fname, arg->left), | ^~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:372:1: note: declared here 372 | mkb(type, left, right) | ^~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:755:13: note: in expansion of macro 'REALLOC' 755 | REALLOC((char *) values, (numvalues + 1) * sizeof (IFvalue)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:757:13: note: in expansion of macro 'REALLOC' 757 | REALLOC((char *) types, (numvalues + 1) * sizeof (int)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:759:42: note: in expansion of macro 'MALLOC' 759 | values = (IFvalue *) MALLOC(sizeof (IFvalue)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:760:37: note: in expansion of macro 'MALLOC' 760 | types = (int *) MALLOC(sizeof (int)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:770:16: note: in expansion of macro 'MALLOC' 770 | name = MALLOC(128); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:788:9: note: in expansion of macro 'REALLOC' 788 | REALLOC((char *) values, (numvalues + 1) * sizeof (IFvalue)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:790:9: note: in expansion of macro 'REALLOC' 790 | REALLOC((char *) types, (numvalues + 1) * sizeof (int)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:792:38: note: in expansion of macro 'MALLOC' 792 | values = (IFvalue *) MALLOC(sizeof (IFvalue)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:793:33: note: in expansion of macro 'MALLOC' 793 | types = (int *) MALLOC(sizeof (int)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'mknnode': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:824:1: warning: old-style function definition [-Wold-style-definition] 824 | mknnode(number) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:829:26: note: in expansion of macro 'MALLOC' 829 | p = (INPparseNode *) MALLOC(sizeof (INPparseNode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'mksnode': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:840:1: warning: old-style function definition [-Wold-style-definition] 840 | mksnode(string) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:853:26: note: in expansion of macro 'MALLOC' 853 | p = (INPparseNode *) MALLOC(sizeof (INPparseNode)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:867:9: note: in expansion of macro 'REALLOC' 867 | REALLOC((char *) values, (numvalues + 1) * sizeof (IFvalue)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:12:22: error: too many arguments to function 'trealloc'; expected 0, have 2 12 | #define REALLOC(x,y) trealloc((char *)(x),(unsigned)(y)) | ^~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:869:9: note: in expansion of macro 'REALLOC' 869 | REALLOC((char *) types, (numvalues + 1) * sizeof (int)); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:27:14: note: declared here 27 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:871:38: note: in expansion of macro 'MALLOC' 871 | values = (IFvalue *) MALLOC(sizeof (IFvalue)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:872:33: note: in expansion of macro 'MALLOC' 872 | types = (int *) MALLOC(sizeof (int)); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:874:32: note: in expansion of macro 'MALLOC' 874 | values[i].sValue = MALLOC(strlen(buf) + 1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c: In function 'PTlexer': /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:903:1: warning: old-style function definition [-Wold-style-definition] 903 | PTlexer(line) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpptree.c:991:31: note: in expansion of macro 'MALLOC' 991 | el.value.string = MALLOC(s - sbuf + 1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:16: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:12: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPtabInit': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:31:1: warning: old-style function definition [-Wold-style-definition] 31 | INPtabInit(numlines) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:36:24: error: too many arguments to function 'tmalloc'; expected 0, have 1 36 | tab = (INPtables *)tmalloc(sizeof(INPtables)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:18: /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:37:41: error: too many arguments to function 'tmalloc'; expected 0, have 1 37 | tab->INPsymtab = (struct INPtab **) tmalloc((numlines / 4 + 1) * | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ 38 | sizeof (struct INPtab *)); | ~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:40:46: error: too many arguments to function 'tmalloc'; expected 0, have 1 40 | tab->INPtermsymtab = (struct INPnTab **) tmalloc(numlines * | ^~~~~~~ ~~~~~~~~~~ 41 | sizeof (struct INPnTab *)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPtermInsert': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:52:1: warning: old-style function definition [-Wold-style-definition] 52 | INPtermInsert(ckt,token,tab,node) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:71:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 71 | t = (struct INPnTab *) tmalloc(sizeof (struct INPnTab)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPmkTerm': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:89:1: warning: old-style function definition [-Wold-style-definition] 89 | INPmkTerm(ckt,token,tab,node) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:107:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 107 | t = (struct INPnTab *) tmalloc(sizeof (struct INPnTab)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPgndInsert': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:120:1: warning: old-style function definition [-Wold-style-definition] 120 | INPgndInsert(ckt,token,tab,node) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:139:32: error: too many arguments to function 'tmalloc'; expected 0, have 1 139 | t = (struct INPnTab *) tmalloc(sizeof (struct INPnTab)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPinsert': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:155:1: warning: old-style function definition [-Wold-style-definition] 155 | INPinsert(token,tab) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:169:31: error: too many arguments to function 'tmalloc'; expected 0, have 1 169 | t = (struct INPtab *) tmalloc(sizeof (struct INPtab)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPremove': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:180:1: warning: old-style function definition [-Wold-style-definition] 180 | INPremove(token,tab) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:195:9: note: in expansion of macro 'tfree' 195 | tfree(t->t_ent); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:196:9: note: in expansion of macro 'tfree' 196 | tfree(t); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPremTerm': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:203:1: warning: old-style function definition [-Wold-style-definition] 203 | INPremTerm(token,tab) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:218:9: note: in expansion of macro 'tfree' 218 | tfree(t->t_ent); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:39:26: error: too many arguments to function 'txfree'; expected 0, have 1 39 | #define tfree(x) (txfree(x), x = 0) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:219:9: note: in expansion of macro 'tfree' 219 | tfree(t); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'INPtabEnd': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:227:1: warning: old-style function definition [-Wold-style-definition] 227 | INPtabEnd(tab) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c: In function 'hash': /home/pbulk/work/cad/spice/work/src/lib/inp//inpsymt.c:251:1: warning: old-style function definition [-Wold-style-definition] 251 | hash(name, tsize) | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inptyplk.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/lib/inp//inptyplk.c:13: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inptyplk.c: In function 'INPtypelook': /home/pbulk/work/cad/spice/work/src/lib/inp//inptyplk.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | INPtypelook(type) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:21:15: error: conflicting types for 'asinh'; have 'double(void)' 21 | extern double asinh(), acosh(), atanh(); | ^~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/spice.h:7, from /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:11: /usr/include/math.h:182:15: note: previous declaration of 'asinh' with type 'double(double)' 182 | extern double asinh(double); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:21:24: error: conflicting types for 'acosh'; have 'double(void)' 21 | extern double asinh(), acosh(), atanh(); | ^~~~~ /usr/include/math.h:181:15: note: previous declaration of 'acosh' with type 'double(double)' 181 | extern double acosh(double); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:21:33: error: conflicting types for 'atanh'; have 'double(void)' 21 | extern double asinh(), acosh(), atanh(); | ^~~~~ /usr/include/math.h:183:15: note: previous declaration of 'atanh' with type 'double(double)' 183 | extern double atanh(double); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTabs': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:30:1: warning: old-style function definition [-Wold-style-definition] 30 | PTabs(arg) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:32:1: error: number of arguments doesn't match prototype 32 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:14: /home/pbulk/work/cad/spice/work/src/include/inpptree.h:140:15: error: prototype declaration 140 | extern double PTabs(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTsgn': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:37:1: warning: old-style function definition [-Wold-style-definition] 37 | PTsgn(arg) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:39:1: error: number of arguments doesn't match prototype 39 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:151:15: error: prototype declaration 151 | extern double PTsgn(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTplus': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:44:1: warning: old-style function definition [-Wold-style-definition] 44 | PTplus(arg1, arg2) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:46:1: error: number of arguments doesn't match prototype 46 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:134:15: error: prototype declaration 134 | extern double PTplus(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTminus': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:51:1: warning: old-style function definition [-Wold-style-definition] 51 | PTminus(arg1, arg2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:53:1: error: number of arguments doesn't match prototype 53 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:135:15: error: prototype declaration 135 | extern double PTminus(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTtimes': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:58:1: warning: old-style function definition [-Wold-style-definition] 58 | PTtimes(arg1, arg2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:60:1: error: number of arguments doesn't match prototype 60 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:136:15: error: prototype declaration 136 | extern double PTtimes(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTdivide': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:65:1: warning: old-style function definition [-Wold-style-definition] 65 | PTdivide(arg1, arg2) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:67:1: error: number of arguments doesn't match prototype 67 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:137:15: error: prototype declaration 137 | extern double PTdivide(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTpower': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:80:1: warning: old-style function definition [-Wold-style-definition] 80 | PTpower(arg1, arg2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:82:1: error: number of arguments doesn't match prototype 82 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:138:15: error: prototype declaration 138 | extern double PTpower(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTacos': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:94:1: warning: old-style function definition [-Wold-style-definition] 94 | PTacos(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:96:1: error: number of arguments doesn't match prototype 96 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:139:15: error: prototype declaration 139 | extern double PTacos(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTacosh': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:101:1: warning: old-style function definition [-Wold-style-definition] 101 | PTacosh(arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:103:1: error: number of arguments doesn't match prototype 103 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:141:15: error: prototype declaration 141 | extern double PTacosh(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:105:13: error: too many arguments to function 'acosh'; expected 0, have 1 105 | return (acosh(arg)); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:21:24: note: declared here 21 | extern double asinh(), acosh(), atanh(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTasin': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:114:1: warning: old-style function definition [-Wold-style-definition] 114 | PTasin(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:116:1: error: number of arguments doesn't match prototype 116 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:142:15: error: prototype declaration 142 | extern double PTasin(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTasinh': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:121:1: warning: old-style function definition [-Wold-style-definition] 121 | PTasinh(arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:123:1: error: number of arguments doesn't match prototype 123 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:143:15: error: prototype declaration 143 | extern double PTasinh(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:125:13: error: too many arguments to function 'asinh'; expected 0, have 1 125 | return (asinh(arg)); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:21:15: note: declared here 21 | extern double asinh(), acosh(), atanh(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTatan': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:132:1: warning: old-style function definition [-Wold-style-definition] 132 | PTatan(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:134:1: error: number of arguments doesn't match prototype 134 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:144:15: error: prototype declaration 144 | extern double PTatan(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTatanh': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:139:1: warning: old-style function definition [-Wold-style-definition] 139 | PTatanh(arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:141:1: error: number of arguments doesn't match prototype 141 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:145:15: error: prototype declaration 145 | extern double PTatanh(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:143:13: error: too many arguments to function 'atanh'; expected 0, have 1 143 | return (atanh(arg)); | ^~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:21:33: note: declared here 21 | extern double asinh(), acosh(), atanh(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTustep': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:154:1: warning: old-style function definition [-Wold-style-definition] 154 | PTustep(arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:156:1: error: number of arguments doesn't match prototype 156 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:157:15: error: prototype declaration 157 | extern double PTustep(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTuramp': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:166:1: warning: old-style function definition [-Wold-style-definition] 166 | PTuramp(arg) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:168:1: error: number of arguments doesn't match prototype 168 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:158:15: error: prototype declaration 158 | extern double PTuramp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTcos': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:176:1: warning: old-style function definition [-Wold-style-definition] 176 | PTcos(arg) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:178:1: error: number of arguments doesn't match prototype 178 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:146:15: error: prototype declaration 146 | extern double PTcos(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTcosh': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:183:1: warning: old-style function definition [-Wold-style-definition] 183 | PTcosh(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:185:1: error: number of arguments doesn't match prototype 185 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:147:15: error: prototype declaration 147 | extern double PTcosh(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTexp': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:190:1: warning: old-style function definition [-Wold-style-definition] 190 | PTexp(arg) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:192:1: error: number of arguments doesn't match prototype 192 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:148:15: error: prototype declaration 148 | extern double PTexp(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTln': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:197:1: warning: old-style function definition [-Wold-style-definition] 197 | PTln(arg) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:199:1: error: number of arguments doesn't match prototype 199 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:149:15: error: prototype declaration 149 | extern double PTln(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTlog': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:206:1: warning: old-style function definition [-Wold-style-definition] 206 | PTlog(arg) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:208:1: error: number of arguments doesn't match prototype 208 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:150:15: error: prototype declaration 150 | extern double PTlog(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTsin': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:215:1: warning: old-style function definition [-Wold-style-definition] 215 | PTsin(arg) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:217:1: error: number of arguments doesn't match prototype 217 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:152:15: error: prototype declaration 152 | extern double PTsin(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTsinh': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:222:1: warning: old-style function definition [-Wold-style-definition] 222 | PTsinh(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:224:1: error: number of arguments doesn't match prototype 224 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:153:15: error: prototype declaration 153 | extern double PTsinh(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTsqrt': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:229:1: warning: old-style function definition [-Wold-style-definition] 229 | PTsqrt(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:231:1: error: number of arguments doesn't match prototype 231 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:154:15: error: prototype declaration 154 | extern double PTsqrt(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTtan': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:238:1: warning: old-style function definition [-Wold-style-definition] 238 | PTtan(arg) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:240:1: error: number of arguments doesn't match prototype 240 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:155:15: error: prototype declaration 155 | extern double PTtan(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTtanh': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:245:1: warning: old-style function definition [-Wold-style-definition] 245 | PTtanh(arg) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:247:1: error: number of arguments doesn't match prototype 247 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:156:15: error: prototype declaration 156 | extern double PTtanh(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c: In function 'PTuminus': /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:252:1: warning: old-style function definition [-Wold-style-definition] 252 | PTuminus(arg) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//ptfuncs.c:254:1: error: number of arguments doesn't match prototype 254 | { | ^ /home/pbulk/work/cad/spice/work/src/include/inpptree.h:159:15: error: prototype declaration 159 | extern double PTuminus(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c:14: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: error: conflicting types for 'SPerror'; have 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c:13: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c:55:1: error: conflicting types for 'SPerror'; have 'char *(int)' 55 | SPerror(type) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: note: previous declaration of 'SPerror' with type 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c: In function 'SPerror': /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c:55:1: warning: old-style function definition [-Wold-style-definition] 55 | SPerror(type) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c:57:1: error: number of arguments doesn't match prototype 57 | { | ^ /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: prototype declaration 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c:16: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//sperror.c:124:11: note: in expansion of macro 'MALLOC' 124 | val = MALLOC(strlen(msg) + 1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/inp//inpgstr.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgstr.c:12: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgstr.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgstr.c: In function 'INPgetStr': /home/pbulk/work/cad/spice/work/src/lib/inp//inpgstr.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | INPgetStr(line, token, gobble) | ^~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/inp//inpgstr.c:13: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/inp//inpgstr.c:58:21: note: in expansion of macro 'MALLOC' 58 | *token = (char *) MALLOC(1 + point - *line); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/inp Making "install" in mfb gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfb3d.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfb3d.c:23: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:23: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBInfo': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:43:1: warning: old-style function definition [-Wold-style-definition] 43 | MFBInfo(Info) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:45:5: error: number of arguments doesn't match prototype 45 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:490:12: error: prototype declaration 490 | extern int MFBInfo(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBConvertToHLS': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:157:1: warning: old-style function definition [-Wold-style-definition] 157 | MFBConvertToHLS(r,g,b) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'SetCurrentMFB': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:197:1: warning: old-style function definition [-Wold-style-definition] 197 | SetCurrentMFB(mfb) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:206:5: error: number of arguments doesn't match prototype 206 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:482:13: error: prototype declaration 482 | extern void SetCurrentMFB(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBCounters': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:223:1: warning: old-style function definition [-Wold-style-definition] 223 | MFBCounters(nChars,nBoxes,meanBoxArea,nLines,meanLineLength,nPixels) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:225:5: error: number of arguments doesn't match prototype 225 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:486:13: error: prototype declaration 486 | extern void MFBCounters(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetLineStyle': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:258:1: warning: old-style function definition [-Wold-style-definition] 258 | MFBSetLineStyle(styleId) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:266:5: error: number of arguments doesn't match prototype 266 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:495:12: error: prototype declaration 495 | extern int MFBSetLineStyle(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetFillPattern': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:287:1: warning: old-style function definition [-Wold-style-definition] 287 | MFBSetFillPattern(styleId) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:298:5: error: number of arguments doesn't match prototype 298 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:496:12: error: prototype declaration 496 | extern int MFBSetFillPattern(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetChannelMask': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:321:1: warning: old-style function definition [-Wold-style-definition] 321 | MFBSetChannelMask(channelMask) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:328:5: error: number of arguments doesn't match prototype 328 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:497:12: error: prototype declaration 497 | extern int MFBSetChannelMask(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetReadMask': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:345:1: warning: old-style function definition [-Wold-style-definition] 345 | MFBSetReadMask(readMask) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:352:5: error: number of arguments doesn't match prototype 352 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:498:12: error: prototype declaration 498 | extern int MFBSetReadMask(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetColor': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:369:1: warning: old-style function definition [-Wold-style-definition] 369 | MFBSetColor(colorId) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:375:5: error: number of arguments doesn't match prototype 375 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: error: prototype declaration 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetTextMode': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:395:1: warning: old-style function definition [-Wold-style-definition] 395 | MFBSetTextMode(destructiveBool) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:404:5: error: number of arguments doesn't match prototype 404 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:500:12: error: prototype declaration 500 | extern int MFBSetTextMode(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetALUMode': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:423:1: warning: old-style function definition [-Wold-style-definition] 423 | MFBSetALUMode(mode) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetCursorColor': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:463:1: warning: old-style function definition [-Wold-style-definition] 463 | MFBSetCursorColor(colorId1,colorId2) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:469:5: error: number of arguments doesn't match prototype 469 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:501:12: error: prototype declaration 501 | extern int MFBSetCursorColor(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetBlinker': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:477:1: warning: old-style function definition [-Wold-style-definition] 477 | MFBSetBlinker(colorId,r,g,b,onFlag) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:483:5: error: number of arguments doesn't match prototype 483 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:502:12: error: prototype declaration 502 | extern int MFBSetBlinker(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetRubberBanding': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:513:1: warning: old-style function definition [-Wold-style-definition] 513 | MFBSetRubberBanding(RubberBandingBool,X,Y) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:522:5: error: number of arguments doesn't match prototype 522 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:503:12: error: prototype declaration 503 | extern int MFBSetRubberBanding(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBDefineColor': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:549:1: warning: old-style function definition [-Wold-style-definition] 549 | MFBDefineColor(colorId,r,g,b) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:557:5: error: number of arguments doesn't match prototype 557 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:504:12: error: prototype declaration 504 | extern int MFBDefineColor(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBDefineFillPattern': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:579:1: warning: old-style function definition [-Wold-style-definition] 579 | MFBDefineFillPattern(styleId,BitArray) | ^~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:588:5: error: number of arguments doesn't match prototype 588 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:505:12: error: prototype declaration 505 | extern int MFBDefineFillPattern(); | ^~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:614:13: error: too many arguments to function 'MFBSetFillPattern'; expected 0, have 1 614 | return( MFBSetFillPattern(styleId) ); | ^~~~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:287:1: note: declared here 287 | MFBSetFillPattern(styleId) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBDefineLineStyle': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:619:1: warning: old-style function definition [-Wold-style-definition] 619 | MFBDefineLineStyle(styleId,BitArray) | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:622:5: error: number of arguments doesn't match prototype 622 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:506:12: error: prototype declaration 506 | extern int MFBDefineLineStyle(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:638:13: error: too many arguments to function 'MFBSetLineStyle'; expected 0, have 1 638 | return( MFBSetLineStyle(styleId) ); | ^~~~~~~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:258:1: note: declared here 258 | MFBSetLineStyle(styleId) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBMoveTo': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:655:1: warning: old-style function definition [-Wold-style-definition] 655 | MFBMoveTo(X1,Y1) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:661:5: error: number of arguments doesn't match prototype 661 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:507:13: error: prototype declaration 507 | extern void MFBMoveTo(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBDrawPath': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:669:1: warning: old-style function definition [-Wold-style-definition] 669 | MFBDrawPath(path) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:678:5: error: number of arguments doesn't match prototype 678 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:509:13: error: prototype declaration 509 | extern void MFBDrawPath(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:681:5: error: too many arguments to function 'MFBSetLineStyle'; expected 0, have 1 681 | MFBSetLineStyle(MFBCurrent->lineStyle); | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:258:1: note: declared here 258 | MFBSetLineStyle(styleId) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:685:5: error: too many arguments to function 'MFBLine'; expected 0, have 4 685 | MFBLine(path->xy[0],path->xy[1],path->xy[2],path->xy[3]); | ^~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:510:13: note: declared here 510 | extern void MFBLine(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:689:5: error: too many arguments to function 'MFBDrawLineTo'; expected 0, have 2 689 | MFBDrawLineTo(x,y); | ^~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:508:13: note: declared here 508 | extern void MFBDrawLineTo(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBDrawLineTo': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:696:1: warning: old-style function definition [-Wold-style-definition] 696 | MFBDrawLineTo(X1,Y1) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:703:5: error: number of arguments doesn't match prototype 703 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:508:13: error: prototype declaration 508 | extern void MFBDrawLineTo(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:705:5: error: too many arguments to function 'MFBSetLineStyle'; expected 0, have 1 705 | MFBSetLineStyle(MFBCurrent->lineStyle); | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:258:1: note: declared here 258 | MFBSetLineStyle(styleId) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:708:5: error: too many arguments to function 'MFBLine'; expected 0, have 4 708 | MFBLine(LastX,LastY,X1,Y1); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:510:13: note: declared here 510 | extern void MFBLine(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBLine': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: warning: old-style function definition [-Wold-style-definition] 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:732:5: error: number of arguments doesn't match prototype 732 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:510:13: error: prototype declaration 510 | extern void MFBLine(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:738:5: error: too many arguments to function 'MFBSetLineStyle'; expected 0, have 1 738 | MFBSetLineStyle(MFBCurrent->lineStyle); | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:258:1: note: declared here 258 | MFBSetLineStyle(styleId) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBBox': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:751:1: warning: old-style function definition [-Wold-style-definition] 751 | MFBBox(l,b,r,t) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:759:5: error: number of arguments doesn't match prototype 759 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:511:13: error: prototype declaration 511 | extern void MFBBox(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:775:5: error: too many arguments to function 'MFBNaiveBoxFill'; expected 0, have 4 775 | MFBNaiveBoxFill(l,b,r,t); | ^~~~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:532:13: note: declared here 532 | extern void MFBNaiveBoxFill(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBArc': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:780:1: warning: old-style function definition [-Wold-style-definition] 780 | MFBArc(x,y,r,astart,astop,s) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:792:5: error: number of arguments doesn't match prototype 792 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:512:13: error: prototype declaration 512 | extern void MFBArc(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:799:5: error: too many arguments to function 'MFBLine'; expected 0, have 4 799 | MFBLine(xx,yy,xx,yy); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBCircle': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:820:1: warning: old-style function definition [-Wold-style-definition] 820 | MFBCircle(x,y,r,s) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:830:1: error: number of arguments doesn't match prototype 830 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:513:13: error: prototype declaration 513 | extern void MFBCircle(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBFlash': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:857:1: warning: old-style function definition [-Wold-style-definition] 857 | MFBFlash(x,y,r,s) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:864:5: error: number of arguments doesn't match prototype 864 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:514:13: error: prototype declaration 514 | extern void MFBFlash(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBPolygon': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:890:1: warning: old-style function definition [-Wold-style-definition] 890 | MFBPolygon(p) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:896:1: error: number of arguments doesn't match prototype 896 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:515:13: error: prototype declaration 515 | extern void MFBPolygon(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBText': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:922:1: warning: old-style function definition [-Wold-style-definition] 922 | MFBText(text,x,y,phi) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:931:5: error: number of arguments doesn't match prototype 931 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: error: prototype declaration 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:935:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 935 | MFBCurrent->nChars += strlen(text); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:26:1: note: include '' or provide a declaration of 'strlen' 25 | #include "suffix.h" +++ |+#include 26 | /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:954:18: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 954 | while(*text) MFBPutchar(*text++); | ^~~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:473:12: note: declared here 473 | extern int MFBPutchar(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBPixel': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:968:1: warning: old-style function definition [-Wold-style-definition] 968 | MFBPixel(x,y) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:974:5: error: number of arguments doesn't match prototype 974 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:518:13: error: prototype declaration 518 | extern void MFBPixel(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBArcPath': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:998:2: warning: old-style function definition [-Wold-style-definition] 998 | *MFBArcPath(x,y,r,astart,astop,s) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1009:5: error: number of arguments doesn't match prototype 1009 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:520:17: error: prototype declaration 520 | extern MFBPATH *MFBArcPath(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBEllipse': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1038:2: warning: old-style function definition [-Wold-style-definition] 1038 | *MFBEllipse(x,y,rx,ry,s) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1048:5: error: number of arguments doesn't match prototype 1048 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:521:20: error: prototype declaration 521 | extern MFBPOLYGON *MFBEllipse(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBScaleX': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1091:1: warning: old-style function definition [-Wold-style-definition] 1091 | MFBScaleX(X) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1093:5: error: number of arguments doesn't match prototype 1093 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:534:12: error: prototype declaration 534 | extern int MFBScaleX(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBScaleY': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1102:1: warning: old-style function definition [-Wold-style-definition] 1102 | MFBScaleY(Y) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1104:5: error: number of arguments doesn't match prototype 1104 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:535:12: error: prototype declaration 535 | extern int MFBScaleY(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBDescaleX': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1113:1: warning: old-style function definition [-Wold-style-definition] 1113 | MFBDescaleX(X) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1115:5: error: number of arguments doesn't match prototype 1115 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:536:12: error: prototype declaration 536 | extern int MFBDescaleX(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBDescaleY': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1122:1: warning: old-style function definition [-Wold-style-definition] 1122 | MFBDescaleY(Y) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1124:5: error: number of arguments doesn't match prototype 1124 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:537:12: error: prototype declaration 537 | extern int MFBDescaleY(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetViewport': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1132:1: warning: old-style function definition [-Wold-style-definition] 1132 | MFBSetViewport(left,bottom,right,top) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1134:5: error: number of arguments doesn't match prototype 1134 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:527:13: error: prototype declaration 527 | extern void MFBSetViewport(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBSetWindow': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1144:1: warning: old-style function definition [-Wold-style-definition] 1144 | MFBSetWindow(left,bottom,right,top) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1146:5: error: number of arguments doesn't match prototype 1146 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:528:13: error: prototype declaration 528 | extern void MFBSetWindow(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c: In function 'MFBNaiveBoxFill': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1160:1: warning: old-style function definition [-Wold-style-definition] 1160 | MFBNaiveBoxFill(left, bottom, right, top) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1161:1: error: number of arguments doesn't match prototype 1161 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:532:13: error: prototype declaration 532 | extern void MFBNaiveBoxFill(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1186:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1186 | MFBLine (ll, bb, rr, bb); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1190:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1190 | MFBLine (ll, bb, ll, tt); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1199:17: error: too many arguments to function 'MFBLine'; expected 0, have 4 1199 | MFBLine (ll, bb, rr, bb); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1207:17: error: too many arguments to function 'MFBLine'; expected 0, have 4 1207 | MFBLine (ll, bb, ll, tt); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1217:17: error: too many arguments to function 'MFBLine'; expected 0, have 4 1217 | MFBLine (left, bb, ll, bottom); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1223:21: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 1223 | MFB_Y_Intercept (left, bb, ll, bottom, right, &tt); | ^~~~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:529:13: note: declared here 529 | extern void MFB_Y_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1224:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1224 | MFBLine (left, bb, right, tt); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1231:21: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 1231 | MFB_X_Intercept (left, bb, ll, bottom, top, &rr); | ^~~~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:530:13: note: declared here 530 | extern void MFB_X_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1232:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1232 | MFBLine (rr, top, ll, bottom); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1238:17: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 1238 | MFB_X_Intercept (left, bb, ll, bottom, top, &rr); | ^~~~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:530:13: note: declared here 530 | extern void MFB_X_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1239:17: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 1239 | MFB_Y_Intercept (left, bb, ll, bottom, right, &tt); | ^~~~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:529:13: note: declared here 529 | extern void MFB_Y_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1242:17: error: too many arguments to function 'MFBLine'; expected 0, have 4 1242 | MFBLine (rr, top, right, tt); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1255:17: error: too many arguments to function 'MFBLine'; expected 0, have 4 1255 | MFBLine (rr, bottom, right, bb); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1261:21: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 1261 | MFB_Y_Intercept (rr, bottom, right, bb, left, &tt); | ^~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:529:13: note: declared here 529 | extern void MFB_Y_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1262:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1262 | MFBLine (left, tt, right, bb); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1269:21: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 1269 | MFB_X_Intercept (rr, bottom, right, bb, top, &ll); | ^~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:530:13: note: declared here 530 | extern void MFB_X_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1270:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1270 | MFBLine (rr, bottom, ll, top); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1276:17: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 1276 | MFB_X_Intercept (rr, bottom, right, bb, top, &ll); | ^~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:530:13: note: declared here 530 | extern void MFB_X_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1277:17: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 1277 | MFB_Y_Intercept (rr, bottom, right, bb, left, &tt); | ^~~~~~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:529:13: note: declared here 529 | extern void MFB_Y_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1280:17: error: too many arguments to function 'MFBLine'; expected 0, have 4 1280 | MFBLine (left, tt, ll, top); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1292:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1292 | MFBLine (ll - incr2, bb, ll + incr2, bb); | ^~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1293:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1293 | MFBLine (ll, bb - incr2, ll, bb + incr2); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1304:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1304 | MFBLine (ll - incr2, bb - incr2, ll + incr2, bb + incr2); | ^~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1305:21: error: too many arguments to function 'MFBLine'; expected 0, have 4 1305 | MFBLine (ll - incr2, bb + incr2, ll + incr2, bb - incr2); | ^~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1315:13: error: too many arguments to function 'MFBLine'; expected 0, have 4 1315 | MFBLine (left, bottom, left, top); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1316:13: error: too many arguments to function 'MFBLine'; expected 0, have 4 1316 | MFBLine (left, top, right, top); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1317:13: error: too many arguments to function 'MFBLine'; expected 0, have 4 1317 | MFBLine (right, top, right, bottom); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:1318:13: error: too many arguments to function 'MFBLine'; expected 0, have 4 1318 | MFBLine (right, bottom, left, bottom); | ^~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbbasic.c:725:1: note: declared here 725 | MFBLine(X1,Y1,X2,Y2) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:27: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:45:9: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 45 | char *strcpy(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:30:1: note: 'strcpy' is declared in header '' 29 | #include "suffix.h" +++ |+#include 30 | /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'MFBGetEnt': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:61:1: warning: old-style function definition [-Wold-style-definition] 61 | MFBGetEnt(bp, name, mfbcapFile) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:65:5: error: number of arguments doesn't match prototype 65 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:51:8: error: prototype declaration 51 | int MFBGetEnt(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:76:19: error: too many arguments to function 'POpen'; expected 0, have 4 76 | if((CapFile = POpen(mfbcapFile, "r", (char *)NULL, (char **)NULL)) == NULL) | ^~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:44:9: note: declared here 44 | FILE *POpen(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:130:21: error: too many arguments to function 'MFBCheckForMCE'; expected 0, have 1 130 | return( MFBCheckForMCE(mfbcapFile) ); | ^~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:52:8: note: declared here 52 | int MFBCheckForMCE(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'MFBCheckForMCE': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:144:1: warning: old-style function definition [-Wold-style-definition] 144 | MFBCheckForMCE(mfbcapFile) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:146:5: error: number of arguments doesn't match prototype 146 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:52:8: error: prototype declaration 52 | int MFBCheckForMCE(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:153:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 153 | p = mfb_buf + strlen(mfb_buf); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:153:19: note: include '' or provide a declaration of 'strlen' /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:166:12: error: too many arguments to function 'strcpy'; expected 0, have 2 166 | (void) strcpy(mfbname,p+4); | ^~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:45:9: note: declared here 45 | char *strcpy(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:174:13: error: too many arguments to function 'MFBGetEnt'; expected 0, have 3 174 | if((l = MFBGetEnt(mfbbuf,mfbname,mfbcapFile)) != 1){ | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:61:1: note: declared here 61 | MFBGetEnt(bp, name, mfbcapFile) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:183:12: error: too many arguments to function 'strcpy'; expected 0, have 2 183 | (void) strcpy(p, q+1); | ^~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:45:9: note: declared here 45 | char *strcpy(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'mfbnamatch': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:195:1: warning: old-style function definition [-Wold-style-definition] 195 | mfbnamatch(np) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'MFBSkip': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:218:1: warning: old-style function definition [-Wold-style-definition] 218 | MFBSkip(bp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'MFBGetFlag': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:238:1: warning: old-style function definition [-Wold-style-definition] 238 | MFBGetFlag(id) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:240:5: error: number of arguments doesn't match prototype 240 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:50:8: error: prototype declaration 50 | int MFBGetFlag(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:246:14: error: too many arguments to function 'MFBSkip'; expected 0, have 1 246 | bp = MFBSkip(bp); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:218:1: note: declared here 218 | MFBSkip(bp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'MFBGetStr': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:276:1: warning: old-style function definition [-Wold-style-definition] 276 | MFBGetStr(id, area) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:278:5: error: number of arguments doesn't match prototype 278 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:47:9: error: prototype declaration 47 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:284:14: error: too many arguments to function 'MFBSkip'; expected 0, have 1 284 | bp = MFBSkip(bp); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:218:1: note: declared here 218 | MFBSkip(bp) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:296:16: error: too many arguments to function 'MFBCapDecod'; expected 0, have 2 296 | return(MFBCapDecod(bp, area)); | ^~~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:48:16: note: declared here 48 | static char *MFBCapDecod(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'MFBCapDecod': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:306:1: warning: old-style function definition [-Wold-style-definition] 306 | MFBCapDecod(str, area) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c: In function 'MFBGetNum': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:361:1: warning: old-style function definition [-Wold-style-definition] 361 | MFBGetNum(id) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:363:5: error: number of arguments doesn't match prototype 363 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:49:8: error: prototype declaration 49 | int MFBGetNum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:370:14: error: too many arguments to function 'MFBSkip'; expected 0, have 1 370 | bp = MFBSkip(bp); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbcaps.c:218:1: note: declared here 218 | MFBSkip(bp) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:23: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c: In function 'MFB_Y_Intercept': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: warning: old-style function definition [-Wold-style-definition] 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:61:5: error: number of arguments doesn't match prototype 61 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:529:13: error: prototype declaration 529 | extern void MFB_Y_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c: In function 'MFB_X_Intercept': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: warning: old-style function definition [-Wold-style-definition] 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:78:5: error: number of arguments doesn't match prototype 78 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:530:13: error: prototype declaration 530 | extern void MFB_X_Intercept(); | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c: In function 'MFBLineClip': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:91:1: warning: old-style function definition [-Wold-style-definition] 91 | MFBLineClip(pX1,pY1,pX2,pY2,l,b,r,t) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:93:5: error: number of arguments doesn't match prototype 93 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:522:13: error: prototype declaration 522 | extern Bool MFBLineClip(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c: In function 'MFBPolygonClip': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:140:1: warning: old-style function definition [-Wold-style-definition] 140 | MFBPolygonClip(poly,left,bottom,right,top) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:143:5: error: number of arguments doesn't match prototype 143 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:531:13: error: prototype declaration 531 | extern void MFBPolygonClip(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:194:9: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 194 | MFB_Y_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:205:17: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 205 | MFB_Y_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:211:17: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 211 | MFB_Y_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:219:9: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 219 | MFB_Y_Intercept(p2.xy[0],p2.xy[1],p2.xy[n-2],p2.xy[n-1],right, | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:241:9: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 241 | MFB_Y_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1],left, | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:252:17: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 252 | MFB_Y_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:258:17: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 258 | MFB_Y_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:266:9: error: too many arguments to function 'MFB_Y_Intercept'; expected 0, have 6 266 | MFB_Y_Intercept(p2.xy[0],p2.xy[1],p2.xy[n-2],p2.xy[n-1],left, | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:57:1: note: declared here 57 | MFB_Y_Intercept(x1,y1,x2,y2,e,yi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:287:9: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 287 | MFB_X_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1],top, | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:298:17: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 298 | MFB_X_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:304:17: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 304 | MFB_X_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:312:9: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 312 | MFB_X_Intercept(p2.xy[0],p2.xy[1],p2.xy[n-2],p2.xy[n-1],top, | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:334:9: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 334 | MFB_X_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1],bottom, | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:345:17: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 345 | MFB_X_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:351:17: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 351 | MFB_X_Intercept(p2.xy[i-2],p2.xy[i-1],p2.xy[i],p2.xy[i+1], | ^~~~~~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:359:9: error: too many arguments to function 'MFB_X_Intercept'; expected 0, have 6 359 | MFB_X_Intercept(p2.xy[0],p2.xy[1],p2.xy[n-2],p2.xy[n-1],bottom, | ^~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:74:1: note: declared here 74 | MFB_X_Intercept(x1,y1,x2,y2,e,xi) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c: In function 'MFBClipArc': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:379:2: warning: old-style function definition [-Wold-style-definition] 379 | *MFBClipArc(path,left,bottom,right,top) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:385:5: error: number of arguments doesn't match prototype 385 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:523:17: error: prototype declaration 523 | extern MFBPATH *MFBClipArc(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:418:8: error: too many arguments to function 'MFBLineClip'; expected 0, have 8 418 | if(MFBLineClip(&x1,&y1,&x2,&y2,left,bottom,right,top)) | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:91:1: note: declared here 91 | MFBLineClip(pX1,pY1,pX2,pY2,l,b,r,t) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:436:5: error: too many arguments to function 'MFBLineClip'; expected 0, have 8 436 | MFBLineClip(&x1,&y1,&x2,&y2,left,bottom,right,top); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbclip.c:91:1: note: declared here 91 | MFBLineClip(pX1,pY1,pX2,pY2,l,b,r,t) | ^~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:24: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c: In function 'MFBDecode': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:96:1: warning: old-style function definition [-Wold-style-definition] 96 | MFBDecode(PM) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:142:21: error: too many arguments to function 'mfbdecnum'; expected 0, have 2 142 | which = mfbdecnum( 10, 100 ); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: note: declared here 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:146:21: error: too many arguments to function 'mfbdecnum'; expected 0, have 2 146 | which = mfbdecnum( 10, 3 ); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: note: declared here 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:150:21: error: too many arguments to function 'mfbdecnum'; expected 0, have 2 150 | which = mfbdecnum( 10, 2 ); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: note: declared here 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:155:25: error: too many arguments to function 'mfbdecnum'; expected 0, have 2 155 | which = mfbdecnum( 16, *cp++ - '0' ); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: note: declared here 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:157:25: error: too many arguments to function 'mfbdecnum'; expected 0, have 2 157 | which = mfbdecnum( 16, 100 ); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: note: declared here 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:162:25: error: too many arguments to function 'mfbdecnum'; expected 0, have 2 162 | which = mfbdecnum( 8, *cp++ - '0' ); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: note: declared here 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:164:25: error: too many arguments to function 'mfbdecnum'; expected 0, have 2 164 | which = mfbdecnum( 8, 100 ); | ^~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: note: declared here 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c: In function 'mfbdecnum': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: warning: old-style function definition [-Wold-style-definition] /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:300:5: error: number of arguments doesn't match prototype 300 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbdec.c:104:22: error: prototype declaration 104 | int mfbnumarg(), mfbdecnum(); | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:23: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c: In function 'MFBGenCode': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:112:11: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 112 | char *strcpy(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:25:1: note: 'strcpy' is declared in header '' 24 | #include "suffix.h" +++ |+#include 25 | /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:140:14: error: too many arguments to function 'MFBCurrent->outstr'; expected 0, have 2 140 | (*MFBCurrent->outstr)(result,i); | ~^~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:297:19: note: declared here 297 | int (*outstr)(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:226:24: error: too many arguments to function 'hexadec'; expected 0, have 1 226 | *dp++ = hexadec(which>>(i*4)); | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:110:10: note: declared here 110 | char hexadec(); /* return a hexadecimal character */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:235:21: error: too many arguments to function 'octal'; expected 0, have 1 235 | *dp++ = octal(which>>(i*3)); | ^~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:111:10: note: declared here 111 | char octal(); /* return an octal character */ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:442:6: error: too many arguments to function 'MFBCurrent->outstr'; expected 0, have 2 442 | (*MFBCurrent->outstr)(result,i); | ~^~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:297:19: note: declared here 297 | int (*outstr)(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c: In function 'hexadec': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:110:10: warning: old-style function definition [-Wold-style-definition] 110 | char hexadec(); /* return a hexadecimal character */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:452:6: error: number of arguments doesn't match prototype 452 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:110:10: error: prototype declaration 110 | char hexadec(); /* return a hexadecimal character */ | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c: In function 'octal': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:111:10: warning: old-style function definition [-Wold-style-definition] 111 | char octal(); /* return an octal character */ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:467:5: error: number of arguments doesn't match prototype 467 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbgnc.c:111:10: error: prototype declaration 111 | char octal(); /* return an octal character */ | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:23: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c: In function 'MFBPutchar': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: warning: old-style function definition [-Wold-style-definition] 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:122:5: error: number of arguments doesn't match prototype 122 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:473:12: error: prototype declaration 473 | extern int MFBPutchar(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c: In function 'MFBPutstr': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:130:1: warning: old-style function definition [-Wold-style-definition] 130 | MFBPutstr(c,n) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:138:5: error: number of arguments doesn't match prototype 138 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:474:12: error: prototype declaration 474 | extern int MFBPutstr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c: In function 'MFBAudio': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:261:9: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 261 | MFBPutchar( '\07' ); | ^~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c: In function 'MFBOpen': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:281:2: warning: old-style function definition [-Wold-style-definition] 281 | *MFBOpen(TerminalName,DeviceName,errorcode) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:303:5: error: number of arguments doesn't match prototype 303 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:489:13: error: prototype declaration 489 | extern MFB *MFBOpen(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:305:11: error: conflicting types for 'getenv'; have 'char *(void)' 305 | char *getenv(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:25: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:307:11: error: conflicting types for 'ttyname'; have 'char *(void)' 307 | char *ttyname(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:28: /usr/include/unistd.h:555:14: note: previous declaration of 'ttyname' with type 'char *(int)' 555 | extern char *ttyname(int); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:317:22: error: too many arguments to function 'getenv'; expected 0, have 1 317 | if((mfbcapFile = getenv("MFBCAP")) == NULL) { | ^~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:305:11: note: declared here 305 | char *getenv(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:321:14: error: too many arguments to function 'tilde_expand'; expected 0, have 1 321 | for (s = tilde_expand(Lib_Path); s && *s; ) { | ^~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:312:11: note: declared here 312 | char *tilde_expand(), *copy(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:333:26: error: too many arguments to function 'copy'; expected 0, have 1 333 | mfbcapFile = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:312:28: note: declared here 312 | char *tilde_expand(), *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:344:5: error: too many arguments to function 'SetCurrentMFB'; expected 0, have 1 344 | SetCurrentMFB(mfb); | ^~~~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:482:13: note: declared here 482 | extern void SetCurrentMFB(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:361:21: error: too many arguments to function 'ttyname'; expected 0, have 1 361 | mfb->name = ttyname(2); /* stdout */ | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:307:11: note: declared here 307 | char *ttyname(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:391:34: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 391 | mfb->strings.startSequence = MFBGetStr("GIS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:392:32: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 392 | mfb->strings.endSequence = MFBGetStr("GFS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:396:35: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 396 | mfb->strings.initLineStyles = MFBGetStr("ILS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:397:36: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 397 | mfb->strings.initColorStyles = MFBGetStr("ICS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:398:37: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 398 | mfb->strings.initFillPatterns = MFBGetStr("IFP",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:405:39: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 405 | mfb->strings.rotateTextSequence = MFBGetStr("RTS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:410:38: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 410 | mfb->strings.graphicsTextStart = MFBGetStr("GTS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:411:36: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 411 | mfb->strings.graphicsTextEnd = MFBGetStr("GTE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:413:30: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 413 | mfb->strings.replaceON = MFBGetStr("RMO",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:415:33: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 415 | mfb->strings.overstrikeON = MFBGetStr("OMO",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:416:31: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 416 | mfb->strings.writePixel = MFBGetStr("WPX",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:426:34: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 426 | mfb->strings.rastCopyStart = MFBGetStr("RSCPS",&bufPtr); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:427:32: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 427 | mfb->strings.rastCopyEnd = MFBGetStr("RSCPE",&bufPtr); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:428:35: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 428 | mfb->strings.rastCopySource = MFBGetStr("RSSRC",&bufPtr); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:429:33: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 429 | mfb->strings.rastCopyDest = MFBGetStr("RSDST",&bufPtr); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:440:32: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 440 | mfb->strings.screenFlood = MFBGetStr("GCS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:446:33: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 446 | mfb->strings.vltEntry = MFBGetStr("VTE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:448:39: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 448 | mfb->strings.setForegroundColor = MFBGetStr("SCS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:449:35: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 449 | mfb->strings.channelMaskSet = MFBGetStr("VWM",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:455:32: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 455 | mfb->strings.readMaskSet = MFBGetStr("SRM",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:487:45: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 487 | mfb->strings.enablePointingDevice = MFBGetStr("PDS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:488:46: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 488 | mfb->strings.disablePointingDevice = MFBGetStr("PDE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:489:44: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 489 | mfb->strings.enableRubberBanding = MFBGetStr("PRBON",&bufPtr); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:490:45: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 490 | mfb->strings.disableRubberBanding = MFBGetStr("PRBOFF",&bufPtr); | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:491:43: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 491 | mfb->strings.readPointingDevice = MFBGetStr("PDR",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:492:45: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 492 | mfb->strings.formatPointingDevice = MFBGetStr("PDF",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:499:34: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 499 | mfb->strings.keyboardStart = MFBGetStr("KYS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:500:32: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 500 | mfb->strings.keyboardEnd = MFBGetStr("KYE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:501:38: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 501 | mfb->strings.keyboardBackspace = MFBGetStr("KYB",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:504:26: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 504 | mfb->strings.audio = MFBGetStr("BELL",&bufPtr); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:512:30: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 512 | mfb->strings.blinkerON = MFBGetStr("BLS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:513:31: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 513 | mfb->strings.blinkerOFF = MFBGetStr("BLE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:521:33: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 521 | mfb->strings.setLineStyle = MFBGetStr("SLS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:522:38: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 522 | mfb->strings.setSolidLineStyle = MFBGetStr("SSLS",&bufPtr); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:523:36: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 523 | mfb->strings.movePenSequence = MFBGetStr("MPS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:524:37: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 524 | mfb->strings.drawLineSequence = MFBGetStr("DLS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:525:42: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 525 | mfb->strings.drawSolidLineSequence = MFBGetStr("DSL",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:526:39: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 526 | mfb->strings.drawLineToSequence = MFBGetStr("DLT",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:527:44: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 527 | mfb->strings.drawSolidLineToSequence = MFBGetStr("DSLT",&bufPtr); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:529:40: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 529 | mfb->strings.lineDefineStart = MFBGetStr("LDS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:530:41: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 530 | mfb->strings.lineDefineFormat = MFBGetStr("LDF",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:531:38: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 531 | mfb->strings.lineDefineEnd = MFBGetStr("LDE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:538:36: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 538 | mfb->strings.drawBoxSequence = MFBGetStr("DBS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:539:41: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 539 | mfb->strings.drawSolidBoxSequence = MFBGetStr("DSB",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:545:39: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 545 | mfb->strings.beginPlygnSequence = MFBGetStr("PLS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:546:44: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 546 | mfb->strings.beginSolidPlygnSequence = MFBGetStr("PLSOL",&bufPtr); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:547:36: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 547 | mfb->strings.sendPlygnVertex = MFBGetStr("PLV",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:548:37: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 548 | mfb->strings.endPlygnSequence = MFBGetStr("PLE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:555:35: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 555 | mfb->strings.setFillPattern = MFBGetStr("SFP",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:556:40: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 556 | mfb->strings.setSolidFillPattern = MFBGetStr("SSFP",&bufPtr); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:561:40: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 561 | mfb->strings.fillDefineStart = MFBGetStr("FDS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:562:41: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 562 | mfb->strings.fillDefineFormat = MFBGetStr("FDF",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:563:38: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 563 | mfb->strings.fillDefineEnd = MFBGetStr("FDE",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:569:39: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 569 | mfb->strings.drawCircleSequence = MFBGetStr("DCS",&bufPtr); | ^~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:574:30: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 574 | mfb->strings.setALUJAM = MFBGetStr("ALUJAM",&bufPtr); | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:575:29: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 575 | mfb->strings.setALUOR = MFBGetStr("ALUOR",&bufPtr); | ^~~~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:576:30: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 576 | mfb->strings.setALUNOR = MFBGetStr("ALUNOR",&bufPtr); | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:577:30: error: too many arguments to function 'MFBGetStr'; expected 0, have 2 577 | mfb->strings.setALUEOR = MFBGetStr("ALUEOR",&bufPtr); | ^~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:304:11: note: declared here 304 | char *MFBGetStr(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c: In function 'MFBPoint': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:951:1: warning: old-style function definition [-Wold-style-definition] 951 | MFBPoint(x,y,key,button) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:958:5: error: number of arguments doesn't match prototype 958 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:524:12: error: prototype declaration 524 | extern int MFBPoint(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c: In function 'MFBKeyboard': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1030:2: warning: old-style function definition [-Wold-style-definition] 1030 | *MFBKeyboard(x,y,background,foreground) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1034:5: error: number of arguments doesn't match prototype 1034 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:525:14: error: prototype declaration 525 | extern char *MFBKeyboard(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1056:5: error: too many arguments to function 'MFBSetFillPattern'; expected 0, have 1 1056 | MFBSetFillPattern(0); | ^~~~~~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:496:12: note: declared here 496 | extern int MFBSetFillPattern(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1057:5: error: too many arguments to function 'MFBSetTextMode'; expected 0, have 1 1057 | MFBSetTextMode(true); | ^~~~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:500:12: note: declared here 500 | extern int MFBSetTextMode(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1058:5: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 1058 | MFBSetColor(foreground); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1081:17: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 1081 | MFBSetColor(background); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1082:17: error: too many arguments to function 'MFBBox'; expected 0, have 4 1082 | MFBBox(X+MFBCurrent->keyboardXOffset, | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:511:13: note: declared here 511 | extern void MFBBox(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1087:17: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 1087 | MFBSetColor(foreground); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1093:13: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 1093 | MFBSetColor(background); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1094:13: error: too many arguments to function 'MFBBox'; expected 0, have 4 1094 | MFBBox(x+MFBCurrent->keyboardXOffset, | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:511:13: note: declared here 511 | extern void MFBBox(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1098:13: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 1098 | MFBSetColor(foreground); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1103:17: error: too many arguments to function 'MFBText'; expected 0, have 4 1103 | MFBText(" ESCAPE",X,Y,0); | ^~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1112:21: error: too many arguments to function 'MFBText'; expected 0, have 4 1112 | MFBText(c,X,Y,0); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1114:21: error: too many arguments to function 'MFBText'; expected 0, have 4 1114 | MFBText("^",X,Y,0); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1122:9: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1122 | MFBPutchar(' '); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1124:13: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1124 | MFBPutchar(' '); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1133:17: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1133 | MFBPutchar(7); | ^~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1135:17: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1135 | MFBPutchar(' '); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1143:17: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1143 | MFBPutchar(' '); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1147:13: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1147 | MFBPutchar(' '); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1157:21: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1157 | MFBPutchar(*c); | ^~~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1159:21: error: too many arguments to function 'MFBPutchar'; expected 0, have 1 1159 | MFBPutchar('^'); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:116:1: note: declared here 116 | MFBPutchar(c) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1164:5: error: too many arguments to function 'MFBSetTextMode'; expected 0, have 1 1164 | MFBSetTextMode(OldTextMode); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:500:12: note: declared here 500 | extern int MFBSetTextMode(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1165:5: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 1165 | MFBSetColor(OldForeground); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1166:5: error: too many arguments to function 'MFBSetFillPattern'; expected 0, have 1 1166 | MFBSetFillPattern(OldFillPattern); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:496:12: note: declared here 496 | extern int MFBSetFillPattern(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c: In function 'MFBError': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1187:1: warning: old-style function definition [-Wold-style-definition] 1187 | MFBError(errnum) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbio.c:1189:5: error: number of arguments doesn't match prototype 1189 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:526:14: error: prototype declaration 526 | extern char *MFBError(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:23: /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: error: cannot use keyword 'false' as enumeration constant 96 | typedef enum {false, true} Bool; | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:96:15: note: 'false' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/mfb.h:375:9: warning: useless storage class specifier in empty declaration 375 | }; | ^ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c: In function 'MFBMore': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:38:1: warning: old-style function definition [-Wold-style-definition] 38 | MFBMore(Left,Bottom,Right,Top,Textfile) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:44:5: error: number of arguments doesn't match prototype 44 | { | ^ /home/pbulk/work/cad/spice/work/src/include/mfb.h:533:13: error: prototype declaration 533 | extern void MFBMore(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:72:5: error: too many arguments to function 'MFBSetFillPattern'; expected 0, have 1 72 | MFBSetFillPattern(0); | ^~~~~~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:496:12: note: declared here 496 | extern int MFBSetFillPattern(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:73:5: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 73 | MFBSetColor(0); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:74:5: error: too many arguments to function 'MFBBox'; expected 0, have 4 74 | MFBBox(Left,Bottom,Right,Top); | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:511:13: note: declared here 511 | extern void MFBBox(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:75:5: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 75 | MFBSetColor(oldforeground); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:100:5: error: too many arguments to function 'MFBText'; expected 0, have 4 100 | MFBText(cbuf,Left,Top - (linecount) * MFBCurrent->fontHeight,0); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:105:13: error: too many arguments to function 'MFBText'; expected 0, have 4 105 | MFBText("-DONE-",Left,Bottom,0); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:107:13: error: too many arguments to function 'MFBText'; expected 0, have 4 107 | MFBText("-MORE- (^D to exit)",Left,Bottom,0); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:112:13: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 112 | MFBSetColor(0); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:113:9: error: too many arguments to function 'MFBBox'; expected 0, have 4 113 | MFBBox(Left,Bottom,Right,Top); | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:511:13: note: declared here 511 | extern void MFBBox(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:114:13: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 114 | MFBSetColor(oldforeground); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:117:5: error: too many arguments to function 'MFBSetFillPattern'; expected 0, have 1 117 | MFBSetFillPattern(oldfillpattern); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:496:12: note: declared here 496 | extern int MFBSetFillPattern(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c: In function 'MFBScroll': /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:122:1: warning: old-style function definition [-Wold-style-definition] 122 | MFBScroll(Left,Bottom,Right,Top,Textfile) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:157:5: error: too many arguments to function 'MFBSetFillPattern'; expected 0, have 1 157 | MFBSetFillPattern(0); | ^~~~~~~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:496:12: note: declared here 496 | extern int MFBSetFillPattern(); | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:158:5: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 158 | MFBSetColor(0); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:159:5: error: too many arguments to function 'MFBBox'; expected 0, have 4 159 | MFBBox(Left,Bottom,Right,Top); | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:511:13: note: declared here 511 | extern void MFBBox(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:160:5: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 160 | MFBSetColor(oldforeground); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:193:9: error: too many arguments to function 'MFBText'; expected 0, have 4 193 | MFBText(cbuf,Left,Top - (j) * MFBCurrent->fontHeight,0); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:201:9: error: too many arguments to function 'MFBText'; expected 0, have 4 201 | MFBText("-DONE-",Left,Bottom,0); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:203:9: error: too many arguments to function 'MFBText'; expected 0, have 4 203 | MFBText("-MORE- (^D to exit, ^U to scroll up)",Left,Bottom,0); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:516:13: note: declared here 516 | extern void MFBText(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:216:9: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 216 | MFBSetColor(0); | ^~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:217:5: error: too many arguments to function 'MFBBox'; expected 0, have 4 217 | MFBBox(Left,Bottom,Right,Top); | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:511:13: note: declared here 511 | extern void MFBBox(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:218:9: error: too many arguments to function 'MFBSetColor'; expected 0, have 1 218 | MFBSetColor(oldforeground); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:499:12: note: declared here 499 | extern int MFBSetColor(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//mfbtext.c:220:5: error: too many arguments to function 'MFBSetFillPattern'; expected 0, have 1 220 | MFBSetFillPattern(oldfillpattern); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/mfb.h:496:12: note: declared here 496 | extern int MFBSetFillPattern(); | ^~~~~~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:7: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:32:1: note: 'strcpy' is declared in header '' 31 | #include "suffix.h" +++ |+#include 32 | /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:18: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:18: note: 'strncpy' is declared in header '' /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:30: warning: conflicting types for built-in function 'index'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c: In function 'PConvertTilde': /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:70:1: warning: old-style function definition [-Wold-style-definition] 70 | PConvertTilde(psource, pdest, size) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:103:29: error: conflicting types for 'getpwnam'; have 'struct passwd *(void)' 103 | struct passwd *passwd, *getpwnam(); | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:28: /usr/include/pwd.h:70:23: note: previous declaration of 'getpwnam' with type 'struct passwd *(const char *)' 70 | extern struct passwd *getpwnam(const char *); /* MT-unsafe */ | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:128:14: error: too many arguments to function 'getpwnam'; expected 0, have 1 128 | passwd = getpwnam(username); | ^~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:103:29: note: declared here 103 | struct passwd *passwd, *getpwnam(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:149:14: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 149 | length = strlen(passwd->pw_dir); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:149:14: note: include '' or provide a declaration of 'strlen' /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:151:12: error: too many arguments to function 'strncpy'; expected 0, have 3 151 | (void) strncpy(*pdest, passwd->pw_dir, length); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:18: note: declared here 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c: In function 'PSetPath': /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:184:1: warning: old-style function definition [-Wold-style-definition] 184 | PSetPath(string) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c: In function 'POpen': /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:244:1: warning: old-style function definition [-Wold-style-definition] 244 | POpen(file, mode, ext, prealname) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:297:9: error: too many arguments to function 'index'; expected 0, have 2 297 | if (index(file, ext[0]) == 0) | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:30: note: declared here 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:299:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 299 | length = strlen(file); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:299:18: note: include '' or provide a declaration of 'strlen' /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:301:16: error: too many arguments to function 'strncpy'; expected 0, have 3 301 | (void) strncpy(extendedname, file, length); | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:18: note: declared here 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:304:32: error: too many arguments to function 'strncpy'; expected 0, have 3 304 | if (length > 0) (void) strncpy(p, ext, length); | ^~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:18: note: declared here 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:321:12: error: too many arguments to function 'strncpy'; expected 0, have 3 321 | (void) strncpy(realname, file, NAMESIZE-1); | ^~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:18: note: declared here 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:360:31: error: too many arguments to function 'strncpy'; expected 0, have 3 360 | if (spaceleft > 0) (void) strncpy(p2, file, spaceleft); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/lib/mfb//paths.c:60:18: note: declared here 60 | char *strcpy(), *strncpy(), *index(); | ^~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/mfb Making "install" in misc gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:10: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c: In function 'tmalloc': /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:19:1: warning: old-style function definition [-Wold-style-definition] 19 | tmalloc(num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:21:1: error: number of arguments doesn't match prototype 21 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: error: prototype declaration 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c: In function 'trealloc': /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:40:1: warning: old-style function definition [-Wold-style-definition] 40 | trealloc(str, num) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:43:1: error: number of arguments doesn't match prototype 43 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: error: prototype declaration 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:53:13: error: too many arguments to function 'tmalloc'; expected 0, have 1 53 | s = tmalloc(num); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:19:1: note: declared here 19 | tmalloc(num) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c: In function 'txfree': /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:66:1: warning: old-style function definition [-Wold-style-definition] 66 | txfree(ptr) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//alloc.c:68:1: error: number of arguments doesn't match prototype 68 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: error: prototype declaration 37 | extern void txfree(); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//dos_dirs.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//dos_dirs.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/misc//dos_dirs.c:10: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c: In function 'env_overr': /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c:16:1: warning: old-style function definition [-Wold-style-definition] 16 | env_overr(v, e) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c: In function 'mkvar': /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c:28:1: warning: old-style function definition [-Wold-style-definition] 28 | mkvar(p, b, v, e) | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c:38:9: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch] 38 | sprintf(buffer, "%s%s%s", b, DIR_PATHSEP, v); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c:7:1: note: include '' or provide a declaration of 'sprintf' 6 | #include "misc.h" +++ |+#include 7 | /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c:39:14: error: too many arguments to function 'tmalloc'; expected 0, have 1 39 | *p = tmalloc(strlen(buffer) + 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//ivars.c:6: /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//math.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//math.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/misc//math.c:10: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//mktemp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//mktemp.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/misc//mktemp.c:10: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//mktemp.c: In function 'smktemp': /home/pbulk/work/cad/spice/work/src/lib/misc//mktemp.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | smktemp(id) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//mktemp.c:20:1: error: number of arguments doesn't match prototype 20 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: error: prototype declaration 58 | extern char *smktemp(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//string.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:10: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'prefix': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:15:1: warning: old-style function definition [-Wold-style-definition] 15 | prefix(p, s) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:17:1: error: number of arguments doesn't match prototype 17 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:47:12: error: prototype declaration 47 | extern int prefix(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'copy': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:29:1: warning: old-style function definition [-Wold-style-definition] 29 | copy(str) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:31:1: error: number of arguments doesn't match prototype 31 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: error: prototype declaration 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:34:13: error: too many arguments to function 'tmalloc'; expected 0, have 1 34 | if (p = tmalloc(strlen(str) + 1)) | ^~~~~~~ ~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'substring': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:43:1: warning: old-style function definition [-Wold-style-definition] 43 | substring(sub, str) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:45:1: error: number of arguments doesn't match prototype 45 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:51:12: error: prototype declaration 51 | extern int substring(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'appendc': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | appendc(s, c) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:69:1: error: number of arguments doesn't match prototype 69 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:45:13: error: prototype declaration 45 | extern void appendc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'scannum': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:83:1: warning: old-style function definition [-Wold-style-definition] 83 | scannum(str) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:85:1: error: number of arguments doesn't match prototype 85 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:46:12: error: prototype declaration 46 | extern int scannum(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'cieq': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:97:1: warning: old-style function definition [-Wold-style-definition] 97 | cieq(p, s) | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:99:1: error: number of arguments doesn't match prototype 99 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:49:12: error: prototype declaration 49 | extern int cieq(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'ciprefix': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:113:1: warning: old-style function definition [-Wold-style-definition] 113 | ciprefix(p, s) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:115:1: error: number of arguments doesn't match prototype 115 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: error: prototype declaration 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'strtolower': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:127:1: warning: old-style function definition [-Wold-style-definition] 127 | strtolower(str) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:129:1: error: number of arguments doesn't match prototype 129 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:50:13: error: prototype declaration 50 | extern void strtolower(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c: In function 'gettok': /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:138:1: warning: old-style function definition [-Wold-style-definition] 138 | gettok(s) | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:140:1: error: number of arguments doesn't match prototype 140 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:44:14: error: prototype declaration 44 | extern char *gettok(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:163:13: error: too many arguments to function 'copy'; expected 0, have 1 163 | return (copy(buf)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//string.c:29:1: note: declared here 29 | copy(str) | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c:8: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c:7: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c: In function 'tilde_expand': /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c:17:1: warning: old-style function definition [-Wold-style-definition] 17 | tilde_expand(string) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c:19:1: error: number of arguments doesn't match prototype 19 | { | ^ /home/pbulk/work/cad/spice/work/src/include/misc.h:52:14: error: prototype declaration 52 | extern char *tilde_expand( ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c:34:16: error: too many arguments to function 'copy'; expected 0, have 1 34 | return copy(string); | ^~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/lib/misc//tilde.c:56:12: error: too many arguments to function 'copy'; expected 0, have 1 56 | return copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/misc//time.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/misc//time.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/misc//time.c:10: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/misc Making "install" in ni gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//niaciter.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niaciter.c:19: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niaciter.c:18: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niaciter.c:21: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niaciter.c: In function 'NIacIter': /home/pbulk/work/cad/spice/work/src/lib/ni//niaciter.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | NIacIter(ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//nicomcof.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nicomcof.c:9: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nicomcof.c:8: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nicomcof.c: In function 'NIcomCof': /home/pbulk/work/cad/spice/work/src/lib/ni//nicomcof.c:13:1: warning: old-style function definition [-Wold-style-definition] 13 | NIcomCof(ckt) | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//niditer.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niditer.c:18: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niditer.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niditer.c:20: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niditer.c: In function 'NIdIter': /home/pbulk/work/cad/spice/work/src/lib/ni//niditer.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | NIdIter(ckt) | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//niinit.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niinit.c:18: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niinit.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niinit.c: In function 'NIinit': /home/pbulk/work/cad/spice/work/src/lib/ni//niinit.c:24:1: warning: old-style function definition [-Wold-style-definition] 24 | NIinit(ckt) | ^~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c:14: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c: In function 'NIintegrate': /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c:21:1: warning: old-style function definition [-Wold-style-definition] 21 | NIintegrate(ckt,geq,ceq,cap,qcap) | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c:15: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c:45:22: note: in expansion of macro 'MALLOC' 45 | errMsg = MALLOC(strlen(ordmsg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niinteg.c:81:18: note: in expansion of macro 'MALLOC' 81 | errMsg = MALLOC(strlen(methodmsg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c:18: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c:20: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c: In function 'NIiter': /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | NIiter(ckt,maxIter) | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c:21: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c:118:39: note: in expansion of macro 'MALLOC' 118 | message = (char *)MALLOC(1000); /* should be enough */ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niiter.c:176:26: note: in expansion of macro 'MALLOC' 176 | errMsg = MALLOC(strlen(msg)+1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//niniter.c < /dev/null /home/pbulk/work/cad/spice/work/src/lib/ni//niniter.c: In function 'NInzIter': /home/pbulk/work/cad/spice/work/src/lib/ni//niniter.c:23:1: warning: old-style function definition [-Wold-style-definition] 23 | NInzIter(ckt, posDrive, negDrive) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niniter.c:39:5: error: too many arguments to function 'SMPcaSolve'; expected 0, have 5 39 | SMPcaSolve(ckt->CKTmatrix, ckt->CKTrhs, ckt->CKTirhs, ckt->CKTrhsSpare, | ^~~~~~~~~~ ~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//niniter.c:20:13: note: declared here 20 | extern void SMPcaSolve(); | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//nipred.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nipred.c:18: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:308:5: error: conflicting types for 'TRANaskQuest'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 308 | int TRANaskQuest( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nipred.c:17: /home/pbulk/work/cad/spice/work/src/include/trandefs.h:34:12: note: previous declaration of 'TRANaskQuest' with type 'int(void)' 34 | extern int TRANaskQuest(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:309:5: error: conflicting types for 'TRANsetParm'; have 'int(CKTcircuit *, GENERIC *, int, IFvalue *)' {aka 'int(CKTcircuit *, void *, int, union uIFvalue *)'} 309 | int TRANsetParm( CKTcircuit *, GENERIC *, int , IFvalue *); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/trandefs.h:33:12: note: previous declaration of 'TRANsetParm' with type 'int(void)' 33 | extern int TRANsetParm(); | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nipred.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:12: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:10: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c: In function 'NIpzSym': /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | NIpzSym(set, new) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c: In function 'NIpzComplex': /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:71:1: warning: old-style function definition [-Wold-style-definition] 71 | NIpzComplex(set, new) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c: In function 'NIpzMuller': /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:81:1: warning: old-style function definition [-Wold-style-definition] 81 | NIpzMuller(set, newtry) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c: In function 'NIpzSym2': /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:252:1: warning: old-style function definition [-Wold-style-definition] 252 | NIpzSym2(set, new) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:8: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:54:18: note: in expansion of macro 'MALLOC' 54 | errMsg = MALLOC(strlen(MESSAGE) + 1); \ | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nipzmeth.c:454:21: note: in expansion of macro 'ERROR' 454 | ERROR(E_PANIC,"Lost numerical stability"); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:17: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:13: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c: In function 'NIreinit': /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | NIreinit(ckt) | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:15: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:22:14: note: in expansion of macro 'MALLOC' 22 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:33:5: note: in expansion of macro 'CKALLOC' 33 | CKALLOC(CKTrhs,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:22:14: note: in expansion of macro 'MALLOC' 22 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:34:5: note: in expansion of macro 'CKALLOC' 34 | CKALLOC(CKTrhsOld,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:22:14: note: in expansion of macro 'MALLOC' 22 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:35:5: note: in expansion of macro 'CKALLOC' 35 | CKALLOC(CKTrhsSpare,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:22:14: note: in expansion of macro 'MALLOC' 22 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:36:5: note: in expansion of macro 'CKALLOC' 36 | CKALLOC(CKTirhs,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:22:14: note: in expansion of macro 'MALLOC' 22 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:37:5: note: in expansion of macro 'CKALLOC' 37 | CKALLOC(CKTirhsOld,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:22:14: note: in expansion of macro 'MALLOC' 22 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nireinit.c:38:5: note: in expansion of macro 'CKALLOC' 38 | CKALLOC(CKTirhsSpare,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:19: /home/pbulk/work/cad/spice/work/src/include/sperror.h:35:7: error: conflicting types for 'SPerror'; have 'char *(void)' 35 | char *SPerror(); | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:15: /home/pbulk/work/cad/spice/work/src/include/cktdefs.h:304:8: note: previous declaration of 'SPerror' with type 'char *(int)' 304 | char * SPerror( int ); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c: In function 'NIsenReinit': /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:27:1: warning: old-style function definition [-Wold-style-definition] 27 | NIsenReinit(ckt) | ^~~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:17: /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:63:9: note: in expansion of macro 'CKALLOC' 63 | CKALLOC(CKTrhsOp,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:64:9: note: in expansion of macro 'CKALLOC' 64 | CKALLOC(CKTsenRhs,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:65:9: note: in expansion of macro 'CKALLOC' 65 | CKALLOC(CKTseniRhs,size+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:66:9: note: in expansion of macro 'CKALLOC' 66 | CKALLOC(CKTsenInfo->SEN_Sap,size+1,double*); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:67:9: note: in expansion of macro 'CKALLOC' 67 | CKALLOC(CKTsenInfo->SEN_RHS,size+1,double*); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:68:9: note: in expansion of macro 'CKALLOC' 68 | CKALLOC(CKTsenInfo->SEN_iRHS,size+1,double*); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:70:13: note: in expansion of macro 'CKALLOC' 70 | CKALLOC(CKTsenInfo->SEN_Sap[i],senparms+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:71:13: note: in expansion of macro 'CKALLOC' 71 | CKALLOC(CKTsenInfo->SEN_RHS[i],senparms+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:10:19: error: too many arguments to function 'tmalloc'; expected 0, have 1 10 | #define MALLOC(x) tmalloc((unsigned)(x)) | ^~~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:24:10: note: in expansion of macro 'MALLOC' 24 | (type *) MALLOC((size)*sizeof(type))) == NULL) return(E_NOMEM); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/ni//nisenre.c:72:13: note: in expansion of macro 'CKALLOC' 72 | CKALLOC(CKTsenInfo->SEN_iRHS[i],senparms+1,double); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/util.h:28:14: note: declared here 28 | extern char *tmalloc(); | ^~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/ni Making "install" in sparse gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:73: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:39: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spCreate': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:133:1: warning: old-style function definition [-Wold-style-definition] 133 | spCreate( Size, Complex, pError ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:171:19: note: in expansion of macro 'ALLOC' 171 | if ((Matrix = ALLOC(struct MatrixFrame, 1)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:431:18: note: in expansion of macro 'ALLOC' 431 | { int i; ptr = ALLOC(type, number); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:232:5: note: in expansion of macro 'CALLOC' 232 | CALLOC( Matrix->Diag, ElementPtr, SizePlusOne); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:431:18: note: in expansion of macro 'ALLOC' 431 | { int i; ptr = ALLOC(type, number); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:237:5: note: in expansion of macro 'CALLOC' 237 | CALLOC( Matrix->FirstInCol, ElementPtr, SizePlusOne); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:431:18: note: in expansion of macro 'ALLOC' 431 | { int i; ptr = ALLOC(type, number); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:242:5: note: in expansion of macro 'CALLOC' 242 | CALLOC( Matrix->FirstInRow, ElementPtr, SizePlusOne); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:247:36: note: in expansion of macro 'ALLOC' 247 | if (( Matrix->IntToExtColMap = ALLOC(int, SizePlusOne)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:251:36: note: in expansion of macro 'ALLOC' 251 | if (( Matrix->IntToExtRowMap = ALLOC(int, SizePlusOne)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:262:36: note: in expansion of macro 'ALLOC' 262 | if (( Matrix->ExtToIntColMap = ALLOC(int, SizePlusOne)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:266:36: note: in expansion of macro 'ALLOC' 266 | if (( Matrix->ExtToIntRowMap = ALLOC(int, SizePlusOne)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spcGetElement': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:327:1: warning: old-style function definition [-Wold-style-definition] 327 | spcGetElement( Matrix ) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:337:20: note: in expansion of macro 'ALLOC' 337 | { pElement = ALLOC(struct MatrixElement, ELEMENTS_PER_ALLOCATION); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'InitializeElementBlocks': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:388:1: warning: old-style function definition [-Wold-style-definition] 388 | InitializeElementBlocks( Matrix, InitialNumberOfElements, | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:399:16: note: in expansion of macro 'ALLOC' 399 | pElement = ALLOC(struct MatrixElement, InitialNumberOfElements); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:406:16: note: in expansion of macro 'ALLOC' 406 | pElement = ALLOC(struct MatrixElement, NumberOfFillinsExpected); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:413:35: note: in expansion of macro 'ALLOC' 413 | Matrix->FirstFillinListNode = ALLOC(struct FillinListNodeStruct,1); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spcGetFillin': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:454:1: warning: old-style function definition [-Wold-style-definition] 454 | spcGetFillin( Matrix ) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'RecordAllocation': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:531:1: warning: old-style function definition [-Wold-style-definition] 531 | RecordAllocation( Matrix, AllocatedPtr ) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:550:13: note: in expansion of macro 'FREE' 550 | { FREE(AllocatedPtr); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'AllocateBlockOfAllocationList': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:588:1: warning: old-style function definition [-Wold-style-definition] 588 | AllocateBlockOfAllocationList( Matrix ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:597:15: note: in expansion of macro 'ALLOC' 597 | ListPtr = ALLOC(struct AllocationRecord, (ELEMENTS_PER_ALLOCATION+1)); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spDestroy': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:649:1: warning: old-style function definition [-Wold-style-definition] 649 | spDestroy( eMatrix ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:661:5: note: in expansion of macro 'FREE' 661 | FREE( Matrix->IntToExtColMap ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:662:5: note: in expansion of macro 'FREE' 662 | FREE( Matrix->IntToExtRowMap ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:663:5: note: in expansion of macro 'FREE' 663 | FREE( Matrix->ExtToIntColMap ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:664:5: note: in expansion of macro 'FREE' 664 | FREE( Matrix->ExtToIntRowMap ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:665:5: note: in expansion of macro 'FREE' 665 | FREE( Matrix->Diag ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:666:5: note: in expansion of macro 'FREE' 666 | FREE( Matrix->FirstInRow ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:667:5: note: in expansion of macro 'FREE' 667 | FREE( Matrix->FirstInCol ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:668:5: note: in expansion of macro 'FREE' 668 | FREE( Matrix->MarkowitzRow ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:669:5: note: in expansion of macro 'FREE' 669 | FREE( Matrix->MarkowitzCol ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:670:5: note: in expansion of macro 'FREE' 670 | FREE( Matrix->MarkowitzProd ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:671:5: note: in expansion of macro 'FREE' 671 | FREE( Matrix->DoCmplxDirect ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:672:5: note: in expansion of macro 'FREE' 672 | FREE( Matrix->DoRealDirect ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:673:5: note: in expansion of macro 'FREE' 673 | FREE( Matrix->Intermediate ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:682:13: note: in expansion of macro 'FREE' 682 | FREE( ListPtr ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:686:13: note: in expansion of macro 'FREE' 686 | FREE( ListPtr->AllocatedPtr ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spError': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:713:1: warning: old-style function definition [-Wold-style-definition] 713 | spError( eMatrix ) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spWhereSingular': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:751:1: warning: old-style function definition [-Wold-style-definition] 751 | spWhereSingular( eMatrix, pRow, pCol ) | ^~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spGetSize': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:791:1: warning: old-style function definition [-Wold-style-definition] 791 | spGetSize( eMatrix, External ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spSetReal': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:829:1: warning: old-style function definition [-Wold-style-definition] 829 | spSetReal( eMatrix ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spSetComplex': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:842:1: warning: old-style function definition [-Wold-style-definition] 842 | spSetComplex( eMatrix ) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spFillinCount': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:873:1: warning: old-style function definition [-Wold-style-definition] 873 | spFillinCount( eMatrix ) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c: In function 'spElementCount': /home/pbulk/work/cad/spice/work/src/lib/sparse//spalloc.c:885:1: warning: old-style function definition [-Wold-style-definition] 885 | spElementCount( eMatrix ) | ^~~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:72: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:39: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'spClear': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:112:1: warning: old-style function definition [-Wold-style-definition] 112 | spClear( eMatrix ) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'spGetElement': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:206:1: warning: old-style function definition [-Wold-style-definition] 206 | spGetElement( eMatrix, Row, Col ) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:213:12: error: conflicting types for 'spcFindElementInCol'; have 'struct MatrixElement *(void)' 213 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:872:19: note: previous declaration of 'spcFindElementInCol' with type 'struct MatrixElement *(struct MatrixFrame *, struct MatrixElement **, int, int, int)' 872 | extern ElementPtr spcFindElementInCol( MatrixPtr, ElementPtr*, int, int, int ); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:214:7: error: conflicting types for 'Translate'; have 'void(void)' 214 | void Translate(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:83:13: note: previous declaration of 'Translate' with type 'void(struct MatrixFrame *, int *, int *)' 83 | static void Translate( MatrixPtr, int*, int* ); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:227:5: error: too many arguments to function 'Translate'; expected 0, have 3 227 | Translate( Matrix, &Row, &Col ); | ^~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:214:7: note: declared here 214 | void Translate(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:262:33: error: too many arguments to function 'spcFindElementInCol'; expected 0, have 5 262 | pElement = (RealNumber*)spcFindElementInCol( Matrix, | ^~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:213:12: note: declared here 213 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: At top level: /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:312:1: error: conflicting types for 'spcFindElementInCol'; have 'struct MatrixElement *(struct MatrixFrame *, struct MatrixElement **, int, int, int)' 312 | spcFindElementInCol( Matrix, LastAddr, Row, Col, CreateIfMissing ) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:213:12: note: previous declaration of 'spcFindElementInCol' with type 'struct MatrixElement *(void)' 213 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'spcFindElementInCol': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:312:1: warning: old-style function definition [-Wold-style-definition] 312 | spcFindElementInCol( Matrix, LastAddr, Row, Col, CreateIfMissing ) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:319:1: error: number of arguments doesn't match prototype 319 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:213:12: error: prototype declaration 213 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:321:13: error: conflicting types for 'spcCreateElement'; have 'struct MatrixElement *(void)' 321 | ElementPtr spcCreateElement(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:873:19: note: previous declaration of 'spcCreateElement' with type 'struct MatrixElement *(struct MatrixFrame *, int, int, struct MatrixElement **, int)' 873 | extern ElementPtr spcCreateElement( MatrixPtr, int, int, ElementPtr*, int ); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:344:15: error: too many arguments to function 'spcCreateElement'; expected 0, have 5 344 | return spcCreateElement( Matrix, Row, Col, LastAddr, NO ); | ^~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:321:13: note: declared here 321 | ElementPtr spcCreateElement(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'Translate': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:390:1: warning: old-style function definition [-Wold-style-definition] 390 | Translate( Matrix, Row, Col ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: At top level: /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:735:1: error: conflicting types for 'spcCreateElement'; have 'struct MatrixElement *(struct MatrixFrame *, int, int, struct MatrixElement **, int)' 735 | spcCreateElement( Matrix, Row, Col, LastAddr, Fillin ) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:321:13: note: previous declaration of 'spcCreateElement' with type 'struct MatrixElement *(void)' 321 | ElementPtr spcCreateElement(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'spcCreateElement': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:735:1: warning: old-style function definition [-Wold-style-definition] 735 | spcCreateElement( Matrix, Row, Col, LastAddr, Fillin ) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:742:1: error: number of arguments doesn't match prototype 742 | { | ^ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:321:13: error: prototype declaration 321 | ElementPtr spcCreateElement(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:744:30: error: conflicting types for 'spcGetElement'; have 'struct MatrixElement *(void)' 744 | ElementPtr pCreatedElement, spcGetElement(), spcGetFillin(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:870:19: note: previous declaration of 'spcGetElement' with type 'struct MatrixElement *(struct MatrixFrame *)' 870 | extern ElementPtr spcGetElement( MatrixPtr ); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:744:47: error: conflicting types for 'spcGetFillin'; have 'struct MatrixElement *(void)' 744 | ElementPtr pCreatedElement, spcGetElement(), spcGetFillin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:871:19: note: previous declaration of 'spcGetFillin' with type 'struct MatrixElement *(struct MatrixFrame *)' 871 | extern ElementPtr spcGetFillin( MatrixPtr ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:752:24: error: too many arguments to function 'spcGetFillin'; expected 0, have 1 752 | { pElement = spcGetFillin( Matrix ); | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:744:47: note: declared here 744 | ElementPtr pCreatedElement, spcGetElement(), spcGetFillin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:756:24: error: too many arguments to function 'spcGetElement'; expected 0, have 1 756 | { pElement = spcGetElement( Matrix ); | ^~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:744:30: note: declared here 744 | ElementPtr pCreatedElement, spcGetElement(), spcGetFillin(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:819:20: error: too many arguments to function 'spcGetElement'; expected 0, have 1 819 | pElement = spcGetElement( Matrix ); | ^~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:744:30: note: declared here 744 | ElementPtr pCreatedElement, spcGetElement(), spcGetFillin(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'spcLinkRows': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:882:1: warning: old-style function definition [-Wold-style-definition] 882 | spcLinkRows( Matrix ) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'EnlargeMatrix': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:933:1: warning: old-style function definition [-Wold-style-definition] 933 | EnlargeMatrix( Matrix, NewSize ) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:425:26: error: too many arguments to function 'trealloc'; expected 0, have 2 425 | ptr = (type *)trealloc((char *)ptr,(unsigned)(sizeof(type)*(number))) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:950:11: note: in expansion of macro 'REALLOC' 950 | if (( REALLOC(Matrix->IntToExtColMap, int, NewSize+1)) == NULL) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:425:26: error: too many arguments to function 'trealloc'; expected 0, have 2 425 | ptr = (type *)trealloc((char *)ptr,(unsigned)(sizeof(type)*(number))) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:954:11: note: in expansion of macro 'REALLOC' 954 | if (( REALLOC(Matrix->IntToExtRowMap, int, NewSize+1)) == NULL) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:425:26: error: too many arguments to function 'trealloc'; expected 0, have 2 425 | ptr = (type *)trealloc((char *)ptr,(unsigned)(sizeof(type)*(number))) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:958:11: note: in expansion of macro 'REALLOC' 958 | if (( REALLOC(Matrix->Diag, ElementPtr, NewSize+1)) == NULL) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:425:26: error: too many arguments to function 'trealloc'; expected 0, have 2 425 | ptr = (type *)trealloc((char *)ptr,(unsigned)(sizeof(type)*(number))) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:962:11: note: in expansion of macro 'REALLOC' 962 | if (( REALLOC(Matrix->FirstInCol, ElementPtr, NewSize+1)) == NULL) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:425:26: error: too many arguments to function 'trealloc'; expected 0, have 2 425 | ptr = (type *)trealloc((char *)ptr,(unsigned)(sizeof(type)*(number))) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:966:11: note: in expansion of macro 'REALLOC' 966 | if (( REALLOC(Matrix->FirstInRow, ElementPtr, NewSize+1)) == NULL) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:975:5: note: in expansion of macro 'FREE' 975 | FREE( Matrix->MarkowitzRow ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:976:5: note: in expansion of macro 'FREE' 976 | FREE( Matrix->MarkowitzCol ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:977:5: note: in expansion of macro 'FREE' 977 | FREE( Matrix->MarkowitzProd ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:978:5: note: in expansion of macro 'FREE' 978 | FREE( Matrix->DoRealDirect ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:979:5: note: in expansion of macro 'FREE' 979 | FREE( Matrix->DoCmplxDirect ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:980:5: note: in expansion of macro 'FREE' 980 | FREE( Matrix->Intermediate ); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c: In function 'ExpandTranslationArrays': /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:1022:1: warning: old-style function definition [-Wold-style-definition] 1022 | ExpandTranslationArrays( Matrix, NewSize ) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:425:26: error: too many arguments to function 'trealloc'; expected 0, have 2 425 | ptr = (type *)trealloc((char *)ptr,(unsigned)(sizeof(type)*(number))) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:1039:11: note: in expansion of macro 'REALLOC' 1039 | if (( REALLOC(Matrix->ExtToIntRowMap, int, NewSize+1)) == NULL) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:425:26: error: too many arguments to function 'trealloc'; expected 0, have 2 425 | ptr = (type *)trealloc((char *)ptr,(unsigned)(sizeof(type)*(number))) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spbuild.c:1043:11: note: in expansion of macro 'REALLOC' 1043 | if (( REALLOC(Matrix->ExtToIntColMap, int, NewSize+1)) == NULL) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:36:14: note: declared here 36 | extern char *trealloc(); | ^~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:71: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:39: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'spOrderAndFactor': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:226:1: warning: old-style function definition [-Wold-style-definition] 226 | spOrderAndFactor( eMatrix, RHS, RelThreshold, AbsThreshold, DiagPivoting ) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:235:12: error: conflicting types for 'SearchForPivot'; have 'struct MatrixElement *(void)' 235 | ElementPtr SearchForPivot(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:85:19: note: previous declaration of 'SearchForPivot' with type 'struct MatrixElement *(struct MatrixFrame *, int, int)' 85 | static ElementPtr SearchForPivot( MatrixPtr, int, int ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:236:26: error: conflicting types for 'FindLargestInCol'; have 'RealNumber(void)' {aka 'double(void)'} 236 | RealNumber LargestInCol, FindLargestInCol(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:90:19: note: previous declaration of 'FindLargestInCol' with type 'RealNumber(struct MatrixElement *)' {aka 'double(struct MatrixElement *)'} 90 | static RealNumber FindLargestInCol( ElementPtr ); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:255:28: error: too many arguments to function 'FindLargestInCol'; expected 0, have 1 255 | LargestInCol = FindLargestInCol(pPivot->NextInCol); | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:236:26: note: declared here 236 | RealNumber LargestInCol, FindLargestInCol(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:305:18: error: too many arguments to function 'SearchForPivot'; expected 0, have 3 305 | { pPivot = SearchForPivot( Matrix, Step, DiagPivoting ); | ^~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:235:12: note: declared here 235 | ElementPtr SearchForPivot(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'spFactor': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:368:1: warning: old-style function definition [-Wold-style-definition] 368 | spFactor( eMatrix ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'FactorComplexMatrix': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:488:1: warning: old-style function definition [-Wold-style-definition] 488 | FactorComplexMatrix( Matrix ) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'spPartition': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:627:1: warning: old-style function definition [-Wold-style-definition] 627 | spPartition( eMatrix, Mode ) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'spcCreateInternalVectors': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:776:1: warning: old-style function definition [-Wold-style-definition] 776 | spcCreateInternalVectors( Matrix ) | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:787:38: note: in expansion of macro 'ALLOC' 787 | { if (( Matrix->MarkowitzRow = ALLOC(int, Size+1)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:791:38: note: in expansion of macro 'ALLOC' 791 | { if (( Matrix->MarkowitzCol = ALLOC(int, Size+1)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:795:39: note: in expansion of macro 'ALLOC' 795 | { if (( Matrix->MarkowitzProd = ALLOC(long, Size+2)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:802:38: note: in expansion of macro 'ALLOC' 802 | { if (( Matrix->DoRealDirect = ALLOC(BOOLEAN, Size+1)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:808:39: note: in expansion of macro 'ALLOC' 808 | { if (( Matrix->DoCmplxDirect = ALLOC(BOOLEAN, Size+1)) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:816:37: note: in expansion of macro 'ALLOC' 816 | { if ((Matrix->Intermediate = ALLOC(RealNumber,2*(Size+1))) == NULL) | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'CountMarkowitz': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:865:1: warning: old-style function definition [-Wold-style-definition] 865 | CountMarkowitz( Matrix, RHS, Step ) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'MarkowitzProducts': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:975:1: warning: old-style function definition [-Wold-style-definition] 975 | MarkowitzProducts( Matrix, Step ) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'SearchForPivot': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1062:1: warning: old-style function definition [-Wold-style-definition] 1062 | SearchForPivot( Matrix, Step, DiagPivoting ) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1068:13: error: conflicting types for 'SearchForSingleton'; have 'struct MatrixElement *(void)' 1068 | ElementPtr SearchForSingleton(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:86:19: note: previous declaration of 'SearchForSingleton' with type 'struct MatrixElement *(struct MatrixFrame *, int)' 86 | static ElementPtr SearchForSingleton( MatrixPtr, int ); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1069:13: error: conflicting types for 'QuicklySearchDiagonal'; have 'struct MatrixElement *(void)' 1069 | ElementPtr QuicklySearchDiagonal(); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:87:19: note: previous declaration of 'QuicklySearchDiagonal' with type 'struct MatrixElement *(struct MatrixFrame *, int)' 87 | static ElementPtr QuicklySearchDiagonal( MatrixPtr, int ); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1070:13: error: conflicting types for 'SearchDiagonal'; have 'struct MatrixElement *(void)' 1070 | ElementPtr SearchDiagonal(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:88:19: note: previous declaration of 'SearchDiagonal' with type 'struct MatrixElement *(struct MatrixFrame *, int)' 88 | static ElementPtr SearchDiagonal( MatrixPtr, int ); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1071:13: error: conflicting types for 'SearchEntireMatrix'; have 'struct MatrixElement *(void)' 1071 | ElementPtr SearchEntireMatrix(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:89:19: note: previous declaration of 'SearchEntireMatrix' with type 'struct MatrixElement *(struct MatrixFrame *, int)' 89 | static ElementPtr SearchEntireMatrix( MatrixPtr, int ); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1077:23: error: too many arguments to function 'SearchForSingleton'; expected 0, have 2 1077 | { ChosenPivot = SearchForSingleton( Matrix, Step ); | ^~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1068:13: note: declared here 1068 | ElementPtr SearchForSingleton(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1093:23: error: too many arguments to function 'QuicklySearchDiagonal'; expected 0, have 2 1093 | ChosenPivot = QuicklySearchDiagonal( Matrix, Step ); | ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1069:13: note: declared here 1069 | ElementPtr QuicklySearchDiagonal(); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1103:23: error: too many arguments to function 'SearchDiagonal'; expected 0, have 2 1103 | ChosenPivot = SearchDiagonal( Matrix, Step ); | ^~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1070:13: note: declared here 1070 | ElementPtr SearchDiagonal(); | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1112:19: error: too many arguments to function 'SearchEntireMatrix'; expected 0, have 2 1112 | ChosenPivot = SearchEntireMatrix( Matrix, Step ); | ^~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1071:13: note: declared here 1071 | ElementPtr SearchEntireMatrix(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'SearchForSingleton': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1163:1: warning: old-style function definition [-Wold-style-definition] 1163 | SearchForSingleton( Matrix, Step ) | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1172:23: error: conflicting types for 'FindBiggestInColExclude'; have 'RealNumber(void)' {aka 'double(void)'} 1172 | RealNumber PivotMag, FindBiggestInColExclude(); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:91:19: note: previous declaration of 'FindBiggestInColExclude' with type 'RealNumber(struct MatrixFrame *, struct MatrixElement *, int)' {aka 'double(struct MatrixFrame *, struct MatrixElement *, int)'} 91 | static RealNumber FindBiggestInColExclude( MatrixPtr, ElementPtr, int ); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1235:29: error: too many arguments to function 'FindBiggestInColExclude'; expected 0, have 3 1235 | FindBiggestInColExclude( Matrix, ChosenPivot, Step ) | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1172:23: note: declared here 1172 | RealNumber PivotMag, FindBiggestInColExclude(); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1253:33: error: too many arguments to function 'FindBiggestInColExclude'; expected 0, have 3 1253 | FindBiggestInColExclude( Matrix, ChosenPivot, | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1172:23: note: declared here 1172 | RealNumber PivotMag, FindBiggestInColExclude(); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1269:41: error: too many arguments to function 'FindBiggestInColExclude'; expected 0, have 3 1269 | FindBiggestInColExclude( Matrix, | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1172:23: note: declared here 1172 | RealNumber PivotMag, FindBiggestInColExclude(); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1288:33: error: too many arguments to function 'FindBiggestInColExclude'; expected 0, have 3 1288 | FindBiggestInColExclude( Matrix, ChosenPivot, | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1172:23: note: declared here 1172 | RealNumber PivotMag, FindBiggestInColExclude(); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'QuicklySearchDiagonal': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1584:1: warning: old-style function definition [-Wold-style-definition] 1584 | QuicklySearchDiagonal( Matrix, Step ) | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1682:24: error: too many arguments to function 'FindBiggestInColExclude'; expected 0, have 3 1682 | { LargestInCol = FindBiggestInColExclude( Matrix, ChosenPivot, Step ); | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1594:13: note: declared here 1594 | RealNumber FindBiggestInColExclude(); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'SearchDiagonal': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1749:1: warning: old-style function definition [-Wold-style-definition] 1749 | SearchDiagonal( Matrix, Step ) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1784:24: error: too many arguments to function 'FindBiggestInColExclude'; expected 0, have 3 1784 | LargestInCol = FindBiggestInColExclude( Matrix, pDiag, Step ); | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1761:13: note: declared here 1761 | RealNumber FindBiggestInColExclude(); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'SearchEntireMatrix': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1878:1: warning: old-style function definition [-Wold-style-definition] 1878 | SearchEntireMatrix( Matrix, Step ) | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1903:28: error: too many arguments to function 'FindLargestInCol'; expected 0, have 1 1903 | if((LargestInCol = FindLargestInCol(pElement)) == 0.0) | ^~~~~~~~~~~~~~~~ ~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:1889:13: note: declared here 1889 | RealNumber FindLargestInCol(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'FindLargestInCol': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2001:1: warning: old-style function definition [-Wold-style-definition] 2001 | FindLargestInCol( pElement ) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'FindBiggestInColExclude': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2067:1: warning: old-style function definition [-Wold-style-definition] 2067 | FindBiggestInColExclude( Matrix, pElement, Step ) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'ExchangeRowsAndCols': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2144:1: warning: old-style function definition [-Wold-style-definition] 2144 | ExchangeRowsAndCols( Matrix, pPivot, Step ) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2152:12: error: conflicting types for 'spcFindElementInCol'; have 'struct MatrixElement *(void)' 2152 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:872:19: note: previous declaration of 'spcFindElementInCol' with type 'struct MatrixElement *(struct MatrixFrame *, struct MatrixElement **, int, int, int)' 872 | extern ElementPtr spcFindElementInCol( MatrixPtr, ElementPtr*, int, int, int ); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2210:33: error: too many arguments to function 'spcFindElementInCol'; expected 0, have 5 2210 | Matrix->Diag[Col] = spcFindElementInCol( Matrix, | ^~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2152:12: note: declared here 2152 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2215:33: error: too many arguments to function 'spcFindElementInCol'; expected 0, have 5 2215 | { Matrix->Diag[Row] = spcFindElementInCol( Matrix, | ^~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2152:12: note: declared here 2152 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2219:30: error: too many arguments to function 'spcFindElementInCol'; expected 0, have 5 2219 | Matrix->Diag[Step] = spcFindElementInCol( Matrix, | ^~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2152:12: note: declared here 2152 | ElementPtr spcFindElementInCol(); | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'spcRowExchange': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2274:1: warning: old-style function definition [-Wold-style-definition] 2274 | spcRowExchange( Matrix, Row1, Row2 ) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'spcColExchange': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2376:1: warning: old-style function definition [-Wold-style-definition] 2376 | spcColExchange( Matrix, Col1, Col2 ) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'ExchangeColElements': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2483:1: warning: old-style function definition [-Wold-style-definition] 2483 | ExchangeColElements( Matrix, Row1, Element1, Row2, Element2, Column ) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'ExchangeRowElements': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2625:1: warning: old-style function definition [-Wold-style-definition] 2625 | ExchangeRowElements( Matrix, Col1, Element1, Col2, Element2, Row ) | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'RealRowColElimination': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2760:1: warning: old-style function definition [-Wold-style-definition] 2760 | RealRowColElimination( Matrix, pPivot ) | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2769:20: error: conflicting types for 'CreateFillin'; have 'struct MatrixElement *(void)' 2769 | extern ElementPtr CreateFillin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:100:19: note: previous declaration of 'CreateFillin' with type 'struct MatrixElement *(struct MatrixFrame *, int, int)' 100 | static ElementPtr CreateFillin( MatrixPtr, int, int ); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2797:24: error: too many arguments to function 'CreateFillin'; expected 0, have 3 2797 | { pSub = CreateFillin( Matrix, Row, pUpper->Col ); | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2769:20: note: declared here 2769 | extern ElementPtr CreateFillin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'ComplexRowColElimination': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2849:1: warning: old-style function definition [-Wold-style-definition] 2849 | ComplexRowColElimination( Matrix, pPivot ) | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2887:24: error: too many arguments to function 'CreateFillin'; expected 0, have 3 2887 | { pSub = CreateFillin( Matrix, Row, pUpper->Col ); | ^~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2858:13: note: declared here 2858 | ElementPtr CreateFillin(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'UpdateMarkowitzNumbers': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:2933:1: warning: old-style function definition [-Wold-style-definition] 2933 | UpdateMarkowitzNumbers( Matrix, pPivot ) | ^~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'CreateFillin': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:3021:1: warning: old-style function definition [-Wold-style-definition] 3021 | CreateFillin( Matrix, Row, Col ) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:3028:13: error: conflicting types for 'spcCreateElement'; have 'struct MatrixElement *(void)' 3028 | ElementPtr spcCreateElement(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:873:19: note: previous declaration of 'spcCreateElement' with type 'struct MatrixElement *(struct MatrixFrame *, int, int, struct MatrixElement **, int)' 873 | extern ElementPtr spcCreateElement( MatrixPtr, int, int, ElementPtr*, int ); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:3044:16: error: too many arguments to function 'spcCreateElement'; expected 0, have 5 3044 | pElement = spcCreateElement( Matrix, Row, Col, ppElementAbove, YES ); | ^~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:3028:13: note: declared here 3028 | ElementPtr spcCreateElement(); | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'MatrixIsSingular': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:3083:1: warning: old-style function definition [-Wold-style-definition] 3083 | MatrixIsSingular( Matrix, Step ) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c: In function 'ZeroPivot': /home/pbulk/work/cad/spice/work/src/lib/sparse//spfactor.c:3097:1: warning: old-style function definition [-Wold-style-definition] 3097 | ZeroPivot( Matrix, Step ) | ^~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:60: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:39: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c: In function 'spPrint': /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:141:1: warning: old-style function definition [-Wold-style-definition] 141 | spPrint( eMatrix, PrintReordered, Data, Header ) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:431:18: note: in expansion of macro 'ALLOC' 431 | { int i; ptr = ALLOC(type, number); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:157:5: note: in expansion of macro 'CALLOC' 157 | CALLOC(pImagElements, ElementPtr, Printer_Width / 10 + 1); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:160:9: note: in expansion of macro 'FREE' 160 | FREE(pImagElements); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:431:18: note: in expansion of macro 'ALLOC' 431 | { int i; ptr = ALLOC(type, number); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:170:5: note: in expansion of macro 'CALLOC' 170 | CALLOC( PrintOrdToIntRowMap, int, Top + 1 ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:173:9: note: in expansion of macro 'FREE' 173 | FREE(pImagElements); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:423:38: error: too many arguments to function 'tmalloc'; expected 0, have 1 423 | #define ALLOC(type,number) ((type *)tmalloc((unsigned)(sizeof(type)*(number)))) | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:431:18: note: in expansion of macro 'ALLOC' 431 | { int i; ptr = ALLOC(type, number); \ | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:176:5: note: in expansion of macro 'CALLOC' 176 | CALLOC( PrintOrdToIntColMap, int, Top + 1 ); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:179:9: note: in expansion of macro 'FREE' 179 | FREE(pImagElements); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:180:9: note: in expansion of macro 'FREE' 180 | FREE(PrintOrdToIntRowMap); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:363:5: note: in expansion of macro 'FREE' 363 | FREE(PrintOrdToIntColMap); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:426:40: error: too many arguments to function 'txfree'; expected 0, have 1 426 | #define FREE(ptr) { if ((ptr) != NULL) txfree((char *)(ptr)); (ptr) = NULL; } | ^~~~~~ ~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:364:5: note: in expansion of macro 'FREE' 364 | FREE(PrintOrdToIntRowMap); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:37:13: note: declared here 37 | extern void txfree(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c: In function 'spFileMatrix': /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:421:1: warning: old-style function definition [-Wold-style-definition] 421 | spFileMatrix( eMatrix, File, Label, Reordered, Data, Header ) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:430:22: error: conflicting types for 'fopen'; have 'FILE *(void)' 430 | FILE *pMatrixFile, *fopen(); | ^~~~~ /usr/include/iso/stdio_iso.h:197:18: note: previous declaration of 'fopen' with type 'FILE *(const char * restrict, const char * restrict)' 197 | extern FILE *fopen(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:436:24: error: too many arguments to function 'fopen'; expected 0, have 2 436 | if ((pMatrixFile = fopen(File, "w")) == NULL) | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:430:22: note: declared here 430 | FILE *pMatrixFile, *fopen(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c: In function 'spFileVector': /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:576:1: warning: old-style function definition [-Wold-style-definition] 576 | spFileVector( eMatrix, File, RHS IMAG_RHS ) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:590:24: error: too many arguments to function 'fopen'; expected 0, have 2 590 | if ((pMatrixFile = fopen(File,"a")) == NULL) | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:584:8: note: declared here 584 | FILE *fopen(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c: In function 'spFileStats': /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:697:1: warning: old-style function definition [-Wold-style-definition] 697 | spFileStats( eMatrix, File, Label ) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:712:23: error: too many arguments to function 'fopen'; expected 0, have 2 712 | if ((pStatsFile = fopen(File, "a")) == NULL) | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spoutput.c:706:21: note: declared here 706 | FILE *pStatsFile, *fopen(); | ^~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:115: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:112: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPaddElt': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:130:1: warning: old-style function definition [-Wold-style-definition] 130 | SMPaddElt( Matrix, Row, Col, Value ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPmakeElt': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:143:1: warning: old-style function definition [-Wold-style-definition] 143 | SMPmakeElt( Matrix, Row, Col ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcClear': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:154:1: warning: old-style function definition [-Wold-style-definition] 154 | SMPcClear( Matrix ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPclear': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:164:1: warning: old-style function definition [-Wold-style-definition] 164 | SMPclear( Matrix ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcLUfac': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:175:1: warning: old-style function definition [-Wold-style-definition] 175 | SMPcLUfac( Matrix, PivTol ) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPluFac': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:188:1: warning: old-style function definition [-Wold-style-definition] 188 | SMPluFac( Matrix, PivTol, Gmin ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcReorder': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:201:1: warning: old-style function definition [-Wold-style-definition] 201 | SMPcReorder( Matrix, PivTol, PivRel, NumSwaps ) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPreorder': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:216:1: warning: old-style function definition [-Wold-style-definition] 216 | SMPreorder( Matrix, PivTol, PivRel, Gmin ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcaSolve': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:230:1: warning: old-style function definition [-Wold-style-definition] 230 | SMPcaSolve( Matrix, RHS, iRHS, Spare, iSpare) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcSolve': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:241:1: warning: old-style function definition [-Wold-style-definition] 241 | SMPcSolve( Matrix, RHS, iRHS, Spare, iSpare) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPsolve': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:252:1: warning: old-style function definition [-Wold-style-definition] 252 | SMPsolve( Matrix, RHS, Spare ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPmatSize': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:263:1: warning: old-style function definition [-Wold-style-definition] 263 | SMPmatSize( Matrix ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPnewMatrix': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:273:1: warning: old-style function definition [-Wold-style-definition] 273 | SMPnewMatrix( pMatrix ) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPdestroy': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:285:1: warning: old-style function definition [-Wold-style-definition] 285 | SMPdestroy( Matrix ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPpreOrder': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:295:1: warning: old-style function definition [-Wold-style-definition] 295 | SMPpreOrder( Matrix ) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPprint': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:307:1: warning: old-style function definition [-Wold-style-definition] 307 | SMPprint( Matrix, File ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPgetError': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:318:1: warning: old-style function definition [-Wold-style-definition] 318 | SMPgetError( Matrix, Col, Row) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcProdDiag': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:330:1: warning: old-style function definition [-Wold-style-definition] 330 | SMPcProdDiag( Matrix, pMantissa, pExponent) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcDProd': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:344:1: warning: old-style function definition [-Wold-style-definition] 344 | SMPcDProd( Matrix, pMantissa, pExponent) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'LoadGmin': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:444:1: warning: old-style function definition [-Wold-style-definition] 444 | LoadGmin( eMatrix, Gmin ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPfindElt': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:479:1: warning: old-style function definition [-Wold-style-definition] 479 | SMPfindElt( eMatrix, Row, Col, CreateIfMissing ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcZeroCol': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:500:1: warning: old-style function definition [-Wold-style-definition] 500 | SMPcZeroCol( Matrix, Col ) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPcAddCol': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:523:1: warning: old-style function definition [-Wold-style-definition] 523 | SMPcAddCol( Matrix, Accum_Col, Addend_Col ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c: In function 'SMPzeroRow': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsmp.c:556:1: warning: old-style function definition [-Wold-style-definition] 556 | SMPzeroRow( Matrix, Row ) | ^~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:61: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:39: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c: In function 'spSolve': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:154:1: warning: old-style function definition [-Wold-style-definition] 154 | spSolve( eMatrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:165:6: error: conflicting types for 'SolveComplexMatrix'; have 'void(void)' 165 | void SolveComplexMatrix(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:72:13: note: previous declaration of 'SolveComplexMatrix' with type 'void(struct MatrixFrame *, double *, double *, double *, double *)' 72 | static void SolveComplexMatrix( MatrixPtr, | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:172:9: error: too many arguments to function 'SolveComplexMatrix'; expected 0, have 5 172 | { SolveComplexMatrix( Matrix, RHS, Solution IMAG_VECTORS ); | ^~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:165:6: note: declared here 165 | void SolveComplexMatrix(); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c: In function 'SolveComplexMatrix': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:301:1: warning: old-style function definition [-Wold-style-definition] 301 | SolveComplexMatrix( Matrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c: In function 'spSolveTransposed': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:472:1: warning: old-style function definition [-Wold-style-definition] 472 | spSolveTransposed( eMatrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:483:6: error: conflicting types for 'SolveComplexTransposedMatrix'; have 'void(void)' 483 | void SolveComplexTransposedMatrix(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:74:13: note: previous declaration of 'SolveComplexTransposedMatrix' with type 'void(struct MatrixFrame *, double *, double *, double *, double *)' 74 | static void SolveComplexTransposedMatrix( MatrixPtr, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:490:9: error: too many arguments to function 'SolveComplexTransposedMatrix'; expected 0, have 5 490 | { SolveComplexTransposedMatrix( Matrix, RHS, Solution IMAG_VECTORS ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:483:6: note: declared here 483 | void SolveComplexTransposedMatrix(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c: In function 'SolveComplexTransposedMatrix': /home/pbulk/work/cad/spice/work/src/lib/sparse//spsolve.c:621:1: warning: old-style function definition [-Wold-style-definition] 621 | SolveComplexTransposedMatrix(Matrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:74: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:39: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'spMNA_Preorder': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:203:1: warning: old-style function definition [-Wold-style-definition] 203 | spMNA_Preorder( eMatrix ) | ^~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'CountTwins': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:265:1: warning: old-style function definition [-Wold-style-definition] 265 | CountTwins( Matrix, Col, ppTwin1, ppTwin2 ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'SwapCols': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:311:1: warning: old-style function definition [-Wold-style-definition] 311 | SwapCols( Matrix, pTwin1, pTwin2 ) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'spMultiply': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:626:1: warning: old-style function definition [-Wold-style-definition] 626 | spMultiply( eMatrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:636:13: error: conflicting types for 'ComplexMatrixMultiply'; have 'void(void)' 636 | extern void ComplexMatrixMultiply(); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:89:13: note: previous declaration of 'ComplexMatrixMultiply' with type 'void(struct MatrixFrame *, double *, double *, double *, double *)' 89 | static void ComplexMatrixMultiply( MatrixPtr, RealVector, RealVector, | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:647:9: error: too many arguments to function 'ComplexMatrixMultiply'; expected 0, have 5 647 | { ComplexMatrixMultiply( Matrix, RHS, Solution IMAG_VECTORS ); | ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:636:13: note: declared here 636 | extern void ComplexMatrixMultiply(); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'ComplexMatrixMultiply': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:723:1: warning: old-style function definition [-Wold-style-definition] 723 | ComplexMatrixMultiply( Matrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'spMultTransposed': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:821:1: warning: old-style function definition [-Wold-style-definition] 821 | spMultTransposed( eMatrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:831:13: error: conflicting types for 'ComplexTransposedMatrixMultiply'; have 'void(void)' 831 | extern void ComplexTransposedMatrixMultiply(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:91:13: note: previous declaration of 'ComplexTransposedMatrixMultiply' with type 'void(struct MatrixFrame *, double *, double *, double *, double *)' 91 | static void ComplexTransposedMatrixMultiply( MatrixPtr, RealVector, RealVector, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:840:9: error: too many arguments to function 'ComplexTransposedMatrixMultiply'; expected 0, have 5 840 | { ComplexTransposedMatrixMultiply( Matrix, RHS, Solution IMAG_VECTORS ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:831:13: note: declared here 831 | extern void ComplexTransposedMatrixMultiply(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'ComplexTransposedMatrixMultiply': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:916:1: warning: old-style function definition [-Wold-style-definition] 916 | ComplexTransposedMatrixMultiply( Matrix, RHS, Solution IMAG_VECTORS ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'spDeterminant': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:1024:1: warning: old-style function definition [-Wold-style-definition] 1024 | spDeterminant( eMatrix, pExponent, pDeterminant, piDeterminant ) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c: In function 'spErrorMessage': /home/pbulk/work/cad/spice/work/src/lib/sparse//sputils.c:2201:1: warning: old-style function definition [-Wold-style-definition] 2201 | spErrorMessage( eMatrix, Stream, Originator ) | ^~~~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -c /home/pbulk/work/cad/spice/work/src/lib/sparse//spextra.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:40, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spextra.c:28: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/lib/sparse//spdefs.h:39: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/lib/sparse//spextra.c: In function 'spConstMult': /home/pbulk/work/cad/spice/work/src/lib/sparse//spextra.c:45:1: warning: old-style function definition [-Wold-style-definition] 45 | spConstMult(matrix, constant) | ^~~~~~~~~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[4]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/sparse Done with work/src/lib Making "install" in bin gcc -c -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -DSIMULATOR /home/pbulk/work/cad/spice/work/src/bin//main.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/bin//main.c:15: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/bin//main.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'main': /home/pbulk/work/cad/spice/work/src/bin//main.c:287:1: warning: old-style function definition [-Wold-style-definition] 287 | main(ac, av) | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:289:1: error: number of arguments doesn't match prototype 289 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/bin//main.c:16: /home/pbulk/work/cad/spice/work/src/include/fteext.h:418:13: error: prototype declaration 418 | extern void main(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:306:49: error: conflicting types for 'ciprefix'; have '_Bool(void)' 306 | bool readinit = true, rflag = false, ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: previous declaration of 'ciprefix' with type 'int(void)' 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:361:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 361 | ft_sperror(err,"SIMinit"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:430:21: error: too many arguments to function 'cp_vset'; expected 0, have 3 430 | cp_vset("rawfile", VT_STRING, *tv); | ^~~~~~~ ~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:536:13: error: too many arguments to function 'inp_source'; expected 0, have 1 536 | inp_source(".spiceinit"); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:265:13: note: declared here 265 | extern void inp_source(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:542:17: error: too many arguments to function 'inp_source'; expected 0, have 1 542 | inp_source(buf); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:265:13: note: declared here 265 | extern void inp_source(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:560:9: error: too many arguments to function 'cp_vset'; expected 0, have 3 560 | cp_vset("term", VT_STRING, cmd_line_term); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:565:9: error: too many arguments to function 'com_version'; expected 0, have 1 565 | com_version(NULL); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:306:13: note: declared here 306 | extern void com_version(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:567:24: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 567 | fp = fopen(cp_tildexpand(News_File), "r"); | ^~~~~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: note: declared here 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:612:24: error: too many arguments to function 'smktemp'; expected 0, have 1 612 | tempfile = smktemp("sp"); | ^~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:596:48: note: declared here 596 | char *tempfile = NULL, buf[BSIZE_SP], *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:631:13: error: too many arguments to function 'inp_spsource'; expected 0, have 3 631 | inp_spsource(file, false, tempfile ? (char *) NULL : *tv); | ^~~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:266:13: note: declared here 266 | extern void inp_spsource(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:648:17: error: too many arguments to function 'ft_loadfile'; expected 0, have 1 648 | ft_loadfile(*av); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: note: declared here 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:652:13: error: too many arguments to function 'ft_loadfile'; expected 0, have 1 652 | ft_loadfile(ft_rawfile); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: note: declared here 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:658:9: error: too many arguments to function 'inp_spsource'; expected 0, have 3 658 | inp_spsource(stdin, false, (char *) NULL); | ^~~~~~~~~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:266:13: note: declared here 266 | extern void inp_spsource(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:678:17: error: too many arguments to function 'ft_dorun'; expected 0, have 1 678 | if (ft_dorun("")) | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:399:12: note: declared here 399 | extern int ft_dorun(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:689:22: error: too many arguments to function 'ft_dorun'; expected 0, have 1 689 | error2 = ft_dorun(ft_rawfile); | ^~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:399:12: note: declared here 399 | extern int ft_dorun(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:690:17: error: too many arguments to function 'ft_cktcoms'; expected 0, have 1 690 | if (ft_cktcoms(true) || error2) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:173:12: note: declared here 173 | extern int ft_cktcoms(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:694:26: error: too many arguments to function 'ft_dorun'; expected 0, have 1 694 | error2 = ft_dorun(NULL); | ^~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:399:12: note: declared here 399 | extern int ft_dorun(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:695:21: error: too many arguments to function 'ft_cktcoms'; expected 0, have 1 695 | if (ft_cktcoms(false) || error2) | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:173:12: note: declared here 173 | extern int ft_cktcoms(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:709:16: error: too many arguments to function 'cp_evloop'; expected 0, have 1 709 | while (cp_evloop((char *) NULL) == 1) ; | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'SPIinit': /home/pbulk/work/cad/spice/work/src/bin//main.c:769:1: warning: old-style function definition [-Wold-style-definition] 769 | SPIinit(frtEnd,description) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'SIMinit': /home/pbulk/work/cad/spice/work/src/bin//main.c:785:5: warning: old-style function definition [-Wold-style-definition] 785 | int SIMinit(frontEnd,simulator) | ^~~~~~~ *** Error code 1 (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/fte.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/ckt.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/hlp.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/inp.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/mfb.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/ni.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/sparse.a (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/misc.a (continuing) Creating conf.c: /home/pbulk/work/cad/spice/work/util/mkvers.sh "asrc bjt bsim1 bsim2 cap cccs ccvs csw dio ind isrc jfet ltra mes mos1 mos2 mos3 mos6 res sw tra urc vccs vcvs vsrc" "op dc tf ac tran pz disto noise sense" "3f5.1" "" > conf.c cat /home/pbulk/work/cad/spice/work/src/bin//config.c >> conf.c chmod -w "conf.c" gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c conf.c < /dev/null Creating tune.c chmod -w "tune.c" gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c tune.c < /dev/null gcc -c -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ /home/pbulk/work/cad/spice/work/src/bin//main.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/bin//main.c:15: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:20: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/bin//main.c:11: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_run': /home/pbulk/work/cad/spice/work/src/bin//main.c:178:20: warning: old-style function definition [-Wold-style-definition] 178 | /* ARGSUSED */ int if_run(t, w, s, b) char *t, *w, *b; wordlist *s; | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:179:9: error: number of arguments doesn't match prototype 179 | { return (0); } | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/bin//main.c:16: /home/pbulk/work/cad/spice/work/src/include/fteext.h:425:12: error: prototype declaration 425 | extern int if_run(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_sens_run': /home/pbulk/work/cad/spice/work/src/bin//main.c:180:20: warning: old-style function definition [-Wold-style-definition] 180 | /* ARGSUSED */ int if_sens_run(t, w, s, b) char *t, *w, *b; wordlist *s; | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:181:9: error: number of arguments doesn't match prototype 181 | { return (0); } | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:426:12: error: prototype declaration 426 | extern int if_sens_run(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_dump': /home/pbulk/work/cad/spice/work/src/bin//main.c:182:21: warning: old-style function definition [-Wold-style-definition] 182 | /* ARGSUSED */ void if_dump(ckt, fp) char *ckt; FILE *fp; { } | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:182:16: error: number of arguments doesn't match prototype 182 | /* ARGSUSED */ void if_dump(ckt, fp) char *ckt; FILE *fp; { } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:431:13: error: prototype declaration 431 | extern void if_dump(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_inpdeck': /home/pbulk/work/cad/spice/work/src/bin//main.c:183:23: warning: old-style function definition [-Wold-style-definition] 183 | /* ARGSUSED */ char * if_inpdeck(deck, tab) struct line *deck; char **tab; | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:184:9: error: number of arguments doesn't match prototype 184 | { return ((char *) 0); } | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:424:14: error: prototype declaration 424 | extern char *if_inpdeck(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_option': /home/pbulk/work/cad/spice/work/src/bin//main.c:185:20: warning: old-style function definition [-Wold-style-definition] 185 | /* ARGSUSED */ int if_option(ckt, name, type, value) char *name, *ckt, *value; | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:186:9: error: number of arguments doesn't match prototype 186 | int type; { } | ^~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:432:12: error: prototype declaration 432 | extern int if_option(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_cktfree': /home/pbulk/work/cad/spice/work/src/bin//main.c:187:21: warning: old-style function definition [-Wold-style-definition] 187 | /* ARGSUSED */ void if_cktfree(ckt, tab) char *ckt, *tab; { } | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:187:16: error: number of arguments doesn't match prototype 187 | /* ARGSUSED */ void if_cktfree(ckt, tab) char *ckt, *tab; { } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:430:13: error: prototype declaration 430 | extern void if_cktfree(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_setndnames': /home/pbulk/work/cad/spice/work/src/bin//main.c:188:21: warning: old-style function definition [-Wold-style-definition] 188 | /* ARGSUSED */ void if_setndnames(line) char *line; { } | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:188:16: error: number of arguments doesn't match prototype 188 | /* ARGSUSED */ void if_setndnames(line) char *line; { } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:433:13: error: prototype declaration 433 | extern void if_setndnames(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_errstring': /home/pbulk/work/cad/spice/work/src/bin//main.c:189:23: warning: old-style function definition [-Wold-style-definition] 189 | /* ARGSUSED */ char * if_errstring(code) { return ("spice error"); } | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:189:16: error: number of arguments doesn't match prototype 189 | /* ARGSUSED */ char * if_errstring(code) { return ("spice error"); } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:423:14: error: prototype declaration 423 | extern char *if_errstring(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_setparam': /home/pbulk/work/cad/spice/work/src/bin//main.c:190:21: warning: old-style function definition [-Wold-style-definition] 190 | /* ARGSUSED */ void if_setparam(ckt, name, param, val) | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:191:43: error: number of arguments doesn't match prototype 191 | char *ckt, *name, *param; struct variable *val; { } | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:434:13: error: prototype declaration 434 | extern void if_setparam(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_tranparams': /home/pbulk/work/cad/spice/work/src/bin//main.c:194:1: warning: old-style function definition [-Wold-style-definition] 194 | if_tranparams(ckt, start, stop, step) struct circ *ckt; | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:196:1: error: number of arguments doesn't match prototype 196 | { return (false); } | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:422:13: error: prototype declaration 422 | extern bool if_tranparams(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'if_getstat': /home/pbulk/work/cad/spice/work/src/bin//main.c:197:33: warning: old-style function definition [-Wold-style-definition] 197 | /* ARGSUSED */ struct variable *if_getstat(n, c) char *n, *c; { return (NULL);} | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:197:23: error: number of arguments doesn't match prototype 197 | /* ARGSUSED */ struct variable *if_getstat(n, c) char *n, *c; { return (NULL);} | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:435:25: error: prototype declaration 435 | extern struct variable *if_getstat(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'main': /home/pbulk/work/cad/spice/work/src/bin//main.c:287:1: warning: old-style function definition [-Wold-style-definition] 287 | main(ac, av) | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:289:1: error: number of arguments doesn't match prototype 289 | { | ^ /home/pbulk/work/cad/spice/work/src/include/fteext.h:418:13: error: prototype declaration 418 | extern void main(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:306:49: error: conflicting types for 'ciprefix'; have '_Bool(void)' 306 | bool readinit = true, rflag = false, ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:48:12: note: previous declaration of 'ciprefix' with type 'int(void)' 48 | extern int ciprefix(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:361:9: error: too many arguments to function 'ft_sperror'; expected 0, have 2 361 | ft_sperror(err,"SIMinit"); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:181:13: note: declared here 181 | extern void ft_sperror(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:430:21: error: too many arguments to function 'cp_vset'; expected 0, have 3 430 | cp_vset("rawfile", VT_STRING, *tv); | ^~~~~~~ ~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:536:13: error: too many arguments to function 'inp_source'; expected 0, have 1 536 | inp_source(".spiceinit"); | ^~~~~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:265:13: note: declared here 265 | extern void inp_source(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:542:17: error: too many arguments to function 'inp_source'; expected 0, have 1 542 | inp_source(buf); | ^~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:265:13: note: declared here 265 | extern void inp_source(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:560:9: error: too many arguments to function 'cp_vset'; expected 0, have 3 560 | cp_vset("term", VT_STRING, cmd_line_term); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:162:13: note: declared here 162 | extern void cp_vset(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:565:9: error: too many arguments to function 'com_version'; expected 0, have 1 565 | com_version(NULL); | ^~~~~~~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:306:13: note: declared here 306 | extern void com_version(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:567:24: error: too many arguments to function 'cp_tildexpand'; expected 0, have 1 567 | fp = fopen(cp_tildexpand(News_File), "r"); | ^~~~~~~~~~~~~ ~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: note: declared here 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:648:17: error: too many arguments to function 'ft_loadfile'; expected 0, have 1 648 | ft_loadfile(*av); | ^~~~~~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: note: declared here 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:652:13: error: too many arguments to function 'ft_loadfile'; expected 0, have 1 652 | ft_loadfile(ft_rawfile); | ^~~~~~~~~~~ ~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:467:13: note: declared here 467 | extern void ft_loadfile(); | ^~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c:752:12: error: too many arguments to function 'cp_evloop'; expected 0, have 1 752 | while (cp_evloop((char *) NULL) == 1) ; | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: note: declared here 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'SPIinit': /home/pbulk/work/cad/spice/work/src/bin//main.c:769:1: warning: old-style function definition [-Wold-style-definition] 769 | SPIinit(frtEnd,description) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//main.c: In function 'SIMinit': /home/pbulk/work/cad/spice/work/src/bin//main.c:785:5: warning: old-style function definition [-Wold-style-definition] 785 | int SIMinit(frontEnd,simulator) | ^~~~~~~ *** Error code 1 (continuing) Creating nconf.c: /home/pbulk/work/cad/spice/work/util/mkvers.sh "" "" "3f5.1" "" > nconf.c cat /home/pbulk/work/cad/spice/work/src/bin//nconfig.c >> nconf.c chmod -w "nconf.c" gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c nconf.c < /dev/null gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/bin//sconvert.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:12: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:11: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'main': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:40:1: warning: old-style function definition [-Wold-style-definition] 40 | main(ac, av) | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:42:1: error: number of arguments doesn't match prototype 42 | { | ^ In file included from /home/pbulk/work/cad/spice/work/src/include/ftedefs.h:56, from /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:13: /home/pbulk/work/cad/spice/work/src/include/fteext.h:418:13: error: prototype declaration 418 | extern void main(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:70:27: error: too many arguments to function 'smktemp'; expected 0, have 1 70 | sf = infile = smktemp("scin"); | ^~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:71:28: error: too many arguments to function 'smktemp'; expected 0, have 1 71 | af = outfile = smktemp("scout"); | ^~~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:58:14: note: declared here 58 | extern char *smktemp(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:73:17: error: too many arguments to function 'perror'; expected 0, have 1 73 | perror(infile); | ^~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: declared here 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:84:18: error: too many arguments to function 'copy'; expected 0, have 1 84 | sf = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:92:18: error: too many arguments to function 'copy'; expected 0, have 1 92 | af = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:110:14: error: too many arguments to function 'oldread'; expected 0, have 1 110 | pl = oldread(sf); | ^~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:36:21: note: declared here 36 | static struct plot *oldread(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:115:14: error: too many arguments to function 'raw_read'; expected 0, have 1 115 | pl = raw_read(sf); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:376:21: note: declared here 376 | extern struct plot *raw_read(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:127:9: error: too many arguments to function 'oldwrite'; expected 0, have 3 127 | oldwrite(af, false, pl); | ^~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:35:13: note: declared here 35 | static void oldwrite(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:131:9: error: too many arguments to function 'raw_write'; expected 0, have 4 131 | raw_write(af, pl, false, true); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:375:13: note: declared here 375 | extern void raw_write(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:135:9: error: too many arguments to function 'raw_write'; expected 0, have 4 135 | raw_write(af, pl, false, false); | ^~~~~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:375:13: note: declared here 375 | extern void raw_write(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:145:13: error: too many arguments to function 'perror'; expected 0, have 1 145 | perror(outfile); | ^~~~~~ ~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: declared here 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'oldread': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:168:1: warning: old-style function definition [-Wold-style-definition] 168 | oldread(name) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:182:9: error: too many arguments to function 'perror'; expected 0, have 1 182 | perror(name); | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: declared here 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:185:10: note: in expansion of macro 'alloc' 185 | pl = alloc(struct plot); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:191:20: error: too many arguments to function 'copy'; expected 0, have 1 191 | pl->pl_title = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:195:24: error: too many arguments to function 'fixdate'; expected 0, have 1 195 | pl->pl_date = copy(fixdate(buf)); | ^~~~~~~ ~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:37:14: note: declared here 37 | static char *fixdate(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:195:19: error: too many arguments to function 'copy'; expected 0, have 1 195 | pl->pl_date = copy(fixdate(buf)); | ^~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:41:35: error: too many arguments to function 'tmalloc'; expected 0, have 1 41 | #define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE))) | ^~~~~~~ ~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:204:13: note: in expansion of macro 'alloc' 204 | v = alloc(struct dvec); | ^~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:212:21: error: too many arguments to function 'copy'; expected 0, have 1 212 | v->v_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:239:19: error: too many arguments to function 'copy'; expected 0, have 1 239 | pl->pl_name = copy(buf); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:264:40: error: too many arguments to function 'tmalloc'; expected 0, have 1 264 | v->v_realdata = (double *) tmalloc(sizeof (double) | ^~~~~~~ ~~~~~~~~~~~~~~~ 265 | * np); | ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:267:41: error: too many arguments to function 'tmalloc'; expected 0, have 1 267 | v->v_compdata = (complex *) tmalloc(sizeof (complex) | ^~~~~~~ ~~~~~~~~~~~~~~~~ 268 | * np); | ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:35:14: note: declared here 35 | extern char *tmalloc(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'oldwrite': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:292:1: warning: old-style function definition [-Wold-style-definition] 292 | oldwrite(name, app, pl) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:305:9: error: too many arguments to function 'perror'; expected 0, have 1 305 | perror(name); | ^~~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: declared here 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'fixdate': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:408:1: warning: old-style function definition [-Wold-style-definition] 408 | fixdate(date) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:419:13: error: too many arguments to function 'copy'; expected 0, have 1 419 | return (copy(buf)); | ^~~~ ~~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:43:14: note: declared here 43 | extern char *copy(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'cp_usrvars': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:426:21: warning: old-style function definition [-Wold-style-definition] 426 | /* ARGSUSED */ void cp_usrvars(v1, v2) struct variable **v1, **v2; { return; } | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:426:47: error: number of arguments doesn't match prototype 426 | /* ARGSUSED */ void cp_usrvars(v1, v2) struct variable **v1, **v2; { return; } | ^~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:182:13: error: prototype declaration 182 | extern void cp_usrvars(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'cp_evloop': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:427:20: warning: old-style function definition [-Wold-style-definition] 427 | /* ARGSUSED */ int cp_evloop(s) char *s; { return (0); } | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:427:16: error: number of arguments doesn't match prototype 427 | /* ARGSUSED */ int cp_evloop(s) char *s; { return (0); } | ^~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:68:12: error: prototype declaration 68 | extern int cp_evloop(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'cp_ccon': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:428:21: warning: old-style function definition [-Wold-style-definition] 428 | /* ARGSUSED */ void cp_ccon(o) bool o; { } | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:428:16: error: number of arguments doesn't match prototype 428 | /* ARGSUSED */ void cp_ccon(o) bool o; { } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:36:13: error: prototype declaration 36 | extern void cp_ccon(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'if_errstring': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:429:22: warning: old-style function definition [-Wold-style-definition] 429 | /* ARGSUSED */ char *if_errstring(c) int c; { return ("error"); } | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:429:16: error: number of arguments doesn't match prototype 429 | /* ARGSUSED */ char *if_errstring(c) int c; { return ("error"); } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:423:14: error: prototype declaration 423 | extern char *if_errstring(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'out_printf': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:431:30: warning: old-style function definition [-Wold-style-definition] 431 | /* VARARGS1 ARGSUSED */ void out_printf(fmt, args) char *fmt; { } | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:431:25: error: number of arguments doesn't match prototype 431 | /* VARARGS1 ARGSUSED */ void out_printf(fmt, args) char *fmt; { } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:126:13: error: prototype declaration 126 | extern void out_printf(); | ^~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'out_send': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:433:21: warning: old-style function definition [-Wold-style-definition] 433 | /* ARGSUSED */ void out_send(string) char *string; {} | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:433:16: error: number of arguments doesn't match prototype 433 | /* ARGSUSED */ void out_send(string) char *string; {} | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:128:13: error: prototype declaration 128 | extern void out_send(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'cp_enqvar': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:434:34: warning: old-style function definition [-Wold-style-definition] 434 | /* ARGSUSED */ struct variable * cp_enqvar(word) char *word; { return (NULL); } | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:434:23: error: number of arguments doesn't match prototype 434 | /* ARGSUSED */ struct variable * cp_enqvar(word) char *word; { return (NULL); } | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:327:25: error: prototype declaration 327 | extern struct variable *cp_enqvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'vec_get': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:435:29: warning: old-style function definition [-Wold-style-definition] 435 | /* ARGSUSED */ struct dvec *vec_get(word) char *word; { return (NULL); } | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:435:23: error: number of arguments doesn't match prototype 435 | /* ARGSUSED */ struct dvec *vec_get(word) char *word; { return (NULL); } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/fteext.h:458:21: error: prototype declaration 458 | extern struct dvec *vec_get(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'cp_ccom': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:436:21: warning: old-style function definition [-Wold-style-definition] 436 | /* ARGSUSED */ void cp_ccom(w, b, e) wordlist *w; char *b; bool e; { return; } | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:436:16: error: number of arguments doesn't match prototype 436 | /* ARGSUSED */ void cp_ccom(w, b, e) wordlist *w; char *b; bool e; { return; } | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:35:13: error: prototype declaration 35 | extern void cp_ccom(); | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'cp_usrset': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:437:20: warning: old-style function definition [-Wold-style-definition] 437 | /* ARGSUSED */ int cp_usrset(v, i) struct variable *v; bool i;{return(US_OK); } | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:437:43: error: number of arguments doesn't match prototype 437 | /* ARGSUSED */ int cp_usrset(v, i) struct variable *v; bool i;{return(US_OK); } | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:183:12: error: prototype declaration 183 | extern int cp_usrset(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//sconvert.c: In function 'XtDispatchEvent': /home/pbulk/work/cad/spice/work/src/bin//sconvert.c:440:6: warning: old-style function definition [-Wold-style-definition] 440 | void XtDispatchEvent(pev) char *pev; {} | ^~~~~~~~~~~~~~~ *** Error code 1 (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/fte/rawfile.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/fte/types.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/fte/error.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/numparse.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/quote.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/std.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/wlist.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/input.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/lexical.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/variable.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/cp/var2.o (continuing) bmake[3]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj/lib/fte/dimens.o (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -DWANT_X11 -I/opt/pkg/include -I/opt/pkg/include/X11 -I/opt/pkg/include/X11/Xmu -I/opt/pkg/include/X11/Xaw -c -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ /home/pbulk/work/cad/spice/work/src/bin//help.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/bin//help.c:29: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpstd.h:16: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /usr/include/pwd.h:41, from /home/pbulk/work/cad/spice/work/src/bin//help.c:26: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c: In function 'main': /home/pbulk/work/cad/spice/work/src/bin//help.c:50:1: warning: old-style function definition [-Wold-style-definition] 50 | main(ac, av) | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:72:9: error: too many arguments to function 'cp_getvar'; expected 0, have 3 72 | if (cp_getvar("display", VT_STRING, buf)) { | ^~~~~~~~~ ~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:118: /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: note: declared here 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:88:14: error: too many arguments to function 'wl_build'; expected 0, have 1 88 | wl = wl_build(av + 1); | ^~~~~~~~ ~~~~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:67:18: note: declared here 67 | extern wordlist *wl_build(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:89:5: error: too many arguments to function 'hlp_main'; expected 0, have 2 89 | hlp_main(Help_Path, wl); | ^~~~~~~~ ~~~~~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/bin//help.c:30: /home/pbulk/work/cad/spice/work/src/include/hlpdefs.h:122:13: note: declared here 122 | extern void hlp_main(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c: In function 'fatal': /home/pbulk/work/cad/spice/work/src/bin//help.c:102:1: warning: old-style function definition [-Wold-style-definition] 102 | fatal(s) | ^~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:104:1: error: number of arguments doesn't match prototype 104 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:184:13: error: prototype declaration 184 | extern void fatal(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c: In function 'cp_printword': /home/pbulk/work/cad/spice/work/src/bin//help.c:110:1: warning: old-style function definition [-Wold-style-definition] 110 | cp_printword(s) | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:112:1: error: number of arguments doesn't match prototype 112 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:56:13: error: prototype declaration 56 | extern void cp_printword(); | ^~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c: In function 'cp_getvar': /home/pbulk/work/cad/spice/work/src/bin//help.c:119:1: warning: old-style function definition [-Wold-style-definition] 119 | cp_getvar(n, t, r) | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:122:1: error: number of arguments doesn't match prototype 122 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:151:13: error: prototype declaration 151 | extern bool cp_getvar(); | ^~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c: In function 'cp_tildexpand': /home/pbulk/work/cad/spice/work/src/bin//help.c:127:1: warning: old-style function definition [-Wold-style-definition] 127 | cp_tildexpand(s) | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:129:1: error: number of arguments doesn't match prototype 129 | { | ^ /home/pbulk/work/cad/spice/work/src/include/cpextern.h:78:14: error: prototype declaration 78 | extern char *cp_tildexpand(); | ^~~~~~~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//help.c:130:16: error: too many arguments to function 'tilde_expand'; expected 0, have 1 130 | return tilde_expand(s); | ^~~~~~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/include/misc.h:52:14: note: declared here 52 | extern char *tilde_expand( ); | ^~~~~~~~~~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:9: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: error: conflicting types for 'exit'; have 'void(void)' 15 | void exit(); | ^~~~ In file included from /usr/include/stdlib.h:41, from /home/pbulk/work/cad/spice/work/src/include/misc.h:8: /usr/include/iso/stdlib_iso.h:136:28: note: previous declaration of 'exit' with type 'void(int)' 136 | extern _NORETURN_KYWD void exit(int) | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c: In function 'main': /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:74:13: error: too many arguments to function 'exit'; expected 0, have 1 74 | exit(1); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: note: declared here 15 | void exit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:79:13: error: too many arguments to function 'perror'; expected 0, have 1 79 | perror(""); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: declared here 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:86:13: error: too many arguments to function 'exit'; expected 0, have 1 86 | exit(1); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: note: declared here 15 | void exit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:91:13: error: too many arguments to function 'perror'; expected 0, have 1 91 | perror(""); | ^~~~~~ ~~ /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: declared here 137 | extern void perror(); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:97:9: error: too many arguments to function 'exit'; expected 0, have 1 97 | exit(1); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: note: declared here 15 | void exit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:102:9: error: too many arguments to function 'exit'; expected 0, have 1 102 | exit(1); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: note: declared here 15 | void exit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:115:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 115 | *(typeline+3) = (char)NULL; | ^ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:124:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 124 | *(typeline+3) = (char)NULL; | ^ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:133:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | *(typeline+3) = (char)NULL; | ^ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:142:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 142 | *(typeline+3) = (char)NULL; | ^ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:151:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 151 | *(typeline+3) = (char)NULL; | ^ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:159:13: error: too many arguments to function 'exit'; expected 0, have 1 159 | exit(1); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: note: declared here 15 | void exit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c: In function 'getdata': /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:306:1: warning: old-style function definition [-Wold-style-definition] 306 | getdata(vals,count,width) | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:319:13: error: too many arguments to function 'exit'; expected 0, have 1 319 | exit(1); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: note: declared here 15 | void exit(); | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:332:21: error: too many arguments to function 'exit'; expected 0, have 1 332 | exit(1); | ^~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//proc2mod.c:15:6: note: declared here 15 | void exit(); | ^~~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -c -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ /home/pbulk/work/cad/spice/work/src/bin//multidec.c < /dev/null In file included from /home/pbulk/work/cad/spice/work/src/bin//multidec.c:10: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: error: conflicting types for 'perror'; have 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/bin//multidec.c:7: /usr/include/iso/stdio_iso.h:262:17: note: previous declaration of 'perror' with type 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c: In function 'main': /home/pbulk/work/cad/spice/work/src/bin//multidec.c:24:2: warning: old-style function definition [-Wold-style-definition] 24 | main (argc, argv) | ^~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:107:10: error: too many arguments to function 'usage'; expected 0, have 1 107 | usage(pname); | ^~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:20:13: note: declared here 20 | extern void usage(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:111:10: error: too many arguments to function 'usage'; expected 0, have 1 111 | usage(pname); | ^~~~~ ~~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:20:13: note: declared here 20 | extern void usage(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:127:1: error: too many arguments to function 'usage'; expected 0, have 1 127 | usage(argv); | ^~~~~ ~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:20:13: note: declared here 20 | extern void usage(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:158:1: error: too many arguments to function 'comments'; expected 0, have 11 158 | comments(r,l,g,c,ctot,cm,lm,k,name,num,len); | ^~~~~~~~ ~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:21:13: note: declared here 21 | extern void comments(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:175:32: error: too many arguments to function 'phi'; expected 0, have 2 175 | matrix[i][j] = phi(i-1,tpeigenvalues[j]); | ^~~ ~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:22:15: note: declared here 22 | extern double phi(); | ^~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c: In function 'usage': /home/pbulk/work/cad/spice/work/src/bin//multidec.c:349:1: warning: old-style function definition [-Wold-style-definition] 349 | usage(argv) | ^~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:351:1: error: number of arguments doesn't match prototype 351 | { | ^ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:20:13: error: prototype declaration 20 | extern void usage(); | ^~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c: In function 'comments': /home/pbulk/work/cad/spice/work/src/bin//multidec.c:368:1: warning: old-style function definition [-Wold-style-definition] 368 | comments(r,l,g,c,ctot,cm,lm,k,name,num,len) | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:372:1: error: number of arguments doesn't match prototype 372 | { | ^ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:21:13: error: prototype declaration 21 | extern void comments(); | ^~~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c: In function 'phi': /home/pbulk/work/cad/spice/work/src/bin//multidec.c:407:1: warning: old-style function definition [-Wold-style-definition] 407 | phi(i,arg) | ^~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:410:1: error: number of arguments doesn't match prototype 410 | { | ^ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:22:15: error: prototype declaration 22 | extern double phi(); | ^~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:422:28: error: too many arguments to function 'phi'; expected 0, have 2 422 | rval = arg*phi(i-1,arg) - phi(i-2,arg); | ^~~ ~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:407:1: note: declared here 407 | phi(i,arg) | ^~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:422:43: error: too many arguments to function 'phi'; expected 0, have 2 422 | rval = arg*phi(i-1,arg) - phi(i-2,arg); | ^~~ ~~~ /home/pbulk/work/cad/spice/work/src/bin//multidec.c:407:1: note: declared here 407 | phi(i,arg) | ^~~ *** Error code 1 (continuing) gcc -O2 -pipe -I/home/pbulk/work/cad/spice/work/src/include -Wno-implicit-function-declaration -Wno-implicit-int -Wno-incompatible-pointer-types -Wno-int-conversion -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/home/pbulk/work/cad/spice/work/src/include -I/home/pbulk/work/cad/spice/work/src//lib/dev/ -c /home/pbulk/work/cad/spice/work/src/bin//makeidx.c < /dev/null In file included from /usr/include/stdio.h:83, from /home/pbulk/work/cad/spice/work/src/bin//makeidx.c:9: /usr/include/iso/stdio_iso.h:262:17: error: conflicting types for 'perror'; have 'void(const char *)' 262 | extern void perror(const char *); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/bin//makeidx.c:8: /home/pbulk/work/cad/spice/work/src/include/misc.h:137:13: note: previous declaration of 'perror' with type 'void(void)' 137 | extern void perror(); | ^~~~~~ In file included from /home/pbulk/work/cad/spice/work/src/include/cpdefs.h:14, from /home/pbulk/work/cad/spice/work/src/bin//makeidx.c:10: /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: error: 'bool' cannot be defined via 'typedef' 14 | typedef int bool; | ^~~~ /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:13: note: 'bool' is a keyword with '-std=c23' onwards /home/pbulk/work/cad/spice/work/src/include/cpstd.h:14:1: warning: useless type name in empty declaration 14 | typedef int bool; | ^~~~~~~ /home/pbulk/work/cad/spice/work/src/bin//makeidx.c: In function 'main': /home/pbulk/work/cad/spice/work/src/bin//makeidx.c:18:1: warning: old-style function definition [-Wold-style-definition] 18 | main(argc, argv) | ^~~~ *** Error code 1 (continuing) `recursive' not remade because of errors. Stop. bmake[3]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/obj/bin Done with work/src Making "install" in lib rm -f /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/mfbcap cp /home/pbulk/work/cad/spice/work/lib/mfbcap /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/mfbcap rm -f /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/news cp /home/pbulk/work/cad/spice/work/lib/news /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/news rm -f /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/scripts/setplot cp /home/pbulk/work/cad/spice/work/lib/scripts/setplot /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/scripts/setplot rm -f /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/scripts/spinit cp /home/pbulk/work/cad/spice/work/lib/scripts/spinit /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/scripts/spinit rm -f /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/helpdir/spice.txt cp /home/pbulk/work/cad/spice/work/lib/helpdir/spice.txt /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/share/spice3/helpdir/spice.txt bmake[2]: don't know how to make /home/pbulk/work/cad/spice/work/NetBSD/obj//bin/makeidx (continuing) Done with work/lib `recursive' not remade because of errors. Stop. bmake[2]: stopped making "recursive" in /home/pbulk/work/cad/spice/work/NetBSD/lib Done with work Done with build at Tue May 19 17:34:59 UTC 2026 /usr/bin/chmod a+rx /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/spice3 /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/nutmeg /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/sconvert /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/help /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/proc2mod /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/multidec chmod: WARNING: can't access /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/spice3 chmod: WARNING: can't access /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/nutmeg chmod: WARNING: can't access /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/sconvert chmod: WARNING: can't access /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/help chmod: WARNING: can't access /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/proc2mod chmod: WARNING: can't access /home/pbulk/work/cad/spice/work/.destdir/opt/pkg/bin/multidec *** Error code 6 Stop. bmake[1]: stopped making "stage-install" in /data/jenkins/workspace/pkgsrc-upstream-trunk/cad/spice *** Error code 1 Stop. bmake: stopped making "stage-install" in /data/jenkins/workspace/pkgsrc-upstream-trunk/cad/spice