From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: contrack-tools compile error Date: Mon, 09 Jul 2007 16:26:07 +0200 Message-ID: <4692457F.7080306@netfilter.org> References: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: nano bug Cc: netfilter@lists.netfilter.org nano bug wrote: > Hello, >=20 > I'm trying to compile contrack-tools 0.9.4 and I get the following error : >=20 >=20 > Making all in extensions > make[1]: Entering directory `/root/workspace/conntrack-tools-0.9.4/extens= ions' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/root/workspace/conntrack-tools-0.9.4/extensi= ons' > Making all in src > make[1]: Entering directory `/root/workspace/conntrack-tools-0.9.4/src' > if gcc -DPACKAGE_NAME=3D\"conntrack > -tools\" -DPACKAGE_TARNAME=3D\"conntrack-tools\" -DPACKAGE_VERSION=3D\" > 0.9.4\" -DPACKAGE_STRING=3D\"conntrack-tools\ 0.9.4\" > -DPACKAGE_BUGREPORT=3D\"pablo@netfilter.org\" > -DPACKAGE=3D\"conntrack-tools\" -DVERSION=3D\"0.9.4\" -DSTDC_HEADERS=3D1 > -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 > -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 > -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 > -DHAVE_DLFCN_H=3D1 -DYYTEXT_POINTER=3D1 -DHAVE_LINUX_CAPABILITY_H=3D1 > -DHAVE_LIBNFNETLINK=3D1 -DHAVE_LIBNETFILTER_CONNTRACK=3D1 > -DHAVE_LIBPTHREAD=3D1 -DHAVE_ARPA_INET_H=3D1 -DHAVE_INET_PTON=3D1 > -DHAVE_INET_PTON_IPV6=3D1 -I. -I. -I../include -g -O2 -MT proxy.o > -MD -MP -MF ".deps/proxy.Tpo" \ > -c -o proxy.o `test -f 'proxy.c' || echo './'`proxy.c; \ > then mv -f ".deps/proxy.Tpo" ".deps/proxy.Po"; \ > else rm -f ".deps/proxy.Tpo"; exit 1; \ > fi > In file included from /usr/include/sys/uio.h:24, > from /usr/include/sys/socket.h:27, > from /usr/local/include/libnfnetlink/libnfnetlink.h:19, > from proxy.c:19: > /usr/include/sys/types.h:62: error: conflicting types for 'dev_t' > /usr/include/linux/types.h:22: error: previous declaration of 'dev_t' was= here > /usr/include/sys/types.h:67: error: conflicting types for 'gid_t' > /usr/include/linux/types.h:54: error: previous declaration of 'gid_t' was= here > /usr/include/sys/types.h:72: error: conflicting types for 'mode_t' > /usr/include/linux/types.h:24: error: previous declaration of 'mode_t' wa= s here > /usr/include/sys/types.h:77: error: conflicting types for 'nlink_t' > /usr/include/linux/types.h:25: error: previous declaration of 'nlink_t' w= as here > /usr/include/sys/types.h:82: error: conflicting types for 'uid_t' > /usr/include/linux/types.h:53: error: previous declaration of 'uid_t' was= here > In file included from /usr/include/sys/types.h:133, > from /usr/include/sys/uio.h:24, > from /usr/include/sys/socket.h:27, > from /usr/local/include/libnfnetlink/libnfnetlink.h:19, > from proxy.c:19: > /usr/include/time.h:105: error: conflicting types for 'timer_t' > /usr/include/linux/types.h:31: error: previous declaration of > 'timer_t' was here > In file included from /usr/include/sys/types.h:220, > from /usr/include/sys/uio.h:24, > from /usr/include/sys/socket.h:27, > from /usr/local/include/libnfnetlink/libnfnetlink.h:19, > from proxy.c:19: > /usr/include/sys/select.h:78: error: conflicting types for 'fd_set' > /usr/include/linux/types.h:21: error: previous declaration of 'fd_set' wa= s here > In file included from /usr/include/sys/uio.h:24, > from /usr/include/sys/socket.h:27, > from /usr/local/include/libnfnetlink/libnfnetlink.h:19, > from proxy.c:19: > /usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t' > /usr/include/linux/types.h:152: error: previous declaration of > 'blkcnt_t' was here > make[1]: *** [proxy.o] Error 1 > make[1]: Leaving directory `/root/workspace/conntrack-tools-0.9.4/src' > make: *** [all-recursive] Error 1 >=20 >=20 > I'm using libnetfilter_conntrack-0.0.80 and libnfnetlink-0.0.25 and > gcc version 4.1.2 on Slackware 12.0. Can someone tell how can I fix > this ? Please, try with a libnfnetlink SVN snapshot, I plan to release a new=20 version of libnfnetlink soon. --=20 "Pa=EDses en desarrollo es el nombre con que los expertos designan a los pa=EDses arrollados por el desarrollo ajeno" -- Patas Arriba. La Escuela del Mundo al Rev=E9s -- E. Galeano