LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: NetParse 0.5

To: Michael McConnell <michaelm@xxxxxxxxxxx>
Subject: Re: NetParse 0.5
Cc: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Julian Anastasov <ja@xxxxxx>
Date: Sun, 16 Sep 2001 21:18:19 +0000 (GMT)
        Hello,

On Sun, 16 Sep 2001, Michael McConnell wrote:

> If you receive this problem compiling netparse 0.5
>
> [root@system netparse-0.5]# make
> cc -Wall -g -I/usr/include/openssl -o netparse.o -c netparse.c
> In file included from netparse.c:34:
> /usr/include/linux/uio.h:20: redefinition of `struct iovec'
> make: *** [netparse.o] Error 1

        Grr, netparse was never compiled on new glibc.

> Simply comment out the declairation of Struct iovec in 
> /usr/include/linux/uio.h
> Julian uses the structor iovec differently.
>
> btw julian, nice INSTALL, "when something fails fix it"

        Yes, we need better experience from all users to build an
universal configure&Makefile. With little tuning netparse can run
on other platforms too (patches are welcome). Until then, 'make' is
the easiest thing to use. I'm too lazy to fix it :) BTW, the program
is in stable state [I didn't found problems from April].

        Is the appended patch ok for you? (I didn't tested it on
old glibc). I'm not sure but may be there is a reason this issue
to be handled in iputils via include-glibc/glibc-bugs.h

[Use patch -p1 < diff]

> Mike


Regards

--
Julian Anastasov <ja@xxxxxx>

-------------------- cut here --------------------------
diff -ur netparse-0.5/Makefile netparse-0.6pre/Makefile
--- netparse-0.5/Makefile       Sun Mar 18 15:54:38 2001
+++ netparse-0.6pre/Makefile    Sun Sep 16 20:56:46 2001
@@ -4,7 +4,7 @@

 TARGETS=       netparse t1 brtest

-DEFS=  -Wall -g
+DEFS=  -Wall -g -O

 all:   $(TARGETS)

Only in netparse-0.6pre: data.out5
diff -ur netparse-0.5/netparse.c netparse-0.6pre/netparse.c
--- netparse-0.5/netparse.c     Sat Apr 14 13:13:09 2001
+++ netparse-0.6pre/netparse.c  Sun Sep 16 20:43:12 2001
@@ -16,6 +16,7 @@


 #include <sys/types.h>
+#include <linux/types.h>
 #include <sys/times.h>
 #include <sys/param.h>
 #include <pwd.h>
@@ -31,7 +32,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <sys/socket.h>
-#include <linux/uio.h>
+#include <sys/uio.h>
 #include <ctype.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>



<Prev in Thread] Current Thread [Next in Thread>
  • NetParse 0.5, Michael McConnell
    • Re: NetParse 0.5, Julian Anastasov <=