tags 130155 + patch thanks I traced the problem to including both <stdarg.h> and <varargs.h>, a definite no-no.
gcc -c -O2 -g -Wall -I./src/ -I./lX/ ./src/subs.c -o ./src/lX.subs.o In file included from ./src/subs.c:8: /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h:96: warning: `va_start' redefined /usr/lib/gcc-lib/i386-linux/2.95.4/include/varargs.h:111: warning: this is the location of the previous definition The code itself includes <stdarg.h>, but then it also includes <kpathsea/c-vararg.h> which, unless HAVE_PROTOTYPES is defined, will include <varargs.h>. Here's the patch. I expect it will build on all the ports with this. diff -u -r tmview-01.03/fb/defsfb.h blah/fb/defsfb.h --- tmview-01.03/fb/defsfb.h Sat Jan 26 00:20:29 2002 +++ blah/fb/defsfb.h Sat Jan 26 00:16:32 2002 @@ -14,6 +14,7 @@ */ #define _GNU_SOURCE +#define HAVE_PROTOTYPES #include <sys/types.h> #include <sys/time.h> diff -u -r tmview-01.03/lX/defslx.h blah/lX/defslx.h --- tmview-01.03/lX/defslx.h Sat Jan 26 00:20:29 2002 +++ blah/lX/defslx.h Sat Jan 26 00:16:24 2002 @@ -14,6 +14,7 @@ */ #define _GNU_SOURCE +#define HAVE_PROTOTYPES #include <sys/types.h> #include <sys/time.h> diff -u -r tmview-01.03/svga/defssvga.h blah/svga/defssvga.h --- tmview-01.03/svga/defssvga.h Sat Jan 26 00:20:29 2002 +++ blah/svga/defssvga.h Sat Jan 26 00:00:21 2002 @@ -14,6 +14,7 @@ */ #define _GNU_SOURCE +#define HAVE_PROTOTYPES #include <sys/types.h> #include <sys/time.h> -- by Rocket to the Moon, by Airplane to the Rocket, by Taxi to the Airport, by Frontdoor to the Taxi, by throwing back the blanket and laying down the legs ... - They Might Be Giants

