Error compiling nalfs-1.1.7 in alphaserver 1000a with debian 3.0

Neven Has haski at sezampro.yu
Thu Jun 19 10:56:19 PDT 2003


On Sun, Jun 15, 2003 at 02:12:59PM +1000, Soragan Guo wrote:
> > Hi, I am not subscribe to this list.
> > I have problem compiling nalfs-1.1.7 in alphaserver 1000a 5/400 with
> > debian 3.0 installed
> >  
> > make[1]: Entering directory `/root/nALFS-1.1.7/src'
> > make[2]: Entering directory `/root/nALFS-1.1.7/src/handlers'
> > make[2]: Nothing to be done for `all'.
> > make[2]: Leaving directory `/root/nALFS-1.1.7/src/handlers'
> > gcc -g -O2 -I/usr/local/include/libxml2 -W -Wall -Wshadow -Winline
> > -DHAVE_XINCLU
> > DE -DHANDLERS_DIRECTORY=\"/usr/local/lib/nALFS/\" -I../src/  -c -o
> > nalfs.o nalfs
> > .c
> > nalfs.c:4569: macro `va_start' used with too many (2) args
> > nalfs.c:4616: macro `va_start' used with too many (2) args
> > make[1]: *** [nalfs.o] Error 1
> > make[1]: Leaving directory `/root/nALFS-1.1.7/src'
> > make: *** [src] Error 2
> 
> Try the attached patch.
> 
> I did patch -Np1
> It shows following msg
> 
> (Stripping trailing CRs from patch.)
> patching file src/nalfs.c
> 
> but I still can't compile the source

Hmmm.  Another shot, this time without including that <varargs.h>,
which I don't quite know why it's there in the first place.


Neven
-------------- next part --------------
===== src/nalfs.c 1.105 vs edited =====
--- 1.105/src/nalfs.c	Fri Feb 28 16:24:40 2003
+++ edited/src/nalfs.c	Thu Jun 19 19:44:06 2003
@@ -36,8 +36,7 @@
 #include <sys/time.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
-
-#include <varargs.h>
+#include <stdarg.h>
 
 #include <libxml/tree.h>
 #include <libxml/parser.h>


More information about the alfs-discuss mailing list