From mboxrd@z Thu Jan 1 00:00:00 1970 From: L Rotger Date: Thu, 24 Jun 2004 08:00:08 +0000 Subject: Re: [LARTC] Don't know how to compile tc Message-Id: <40DA8A08.7020701@aircomp.aero> List-Id: References: <40D83C55.2010400@aircomp.aero> In-Reply-To: <40D83C55.2010400@aircomp.aero> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Stef Coene wrote: > As far as I remember me, I downloaded the source and compiled it. > Can you post the compile errors? Sure, here is the Makefile: (source is iproute2-2.4.7-010824) ---------------------- KERNEL_INCLUDE=/usr/src/linux-2.4.24/include LIBC_INCLUDE=/usr/include DEFINES= -DRESOLVE_HOSTNAMES #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc) LDLIBS=-lresolv ADDLIB #options if you compile with libc5, and without a bind>=4.9.4 libresolv #LDLIBS#ADDLIB=inet_ntop.o inet_pton.o #options for decnet ADDLIB+=dnet_ntop.o dnet_pton.o #options for ipx ADDLIB+=ipx_ntop.o ipx_pton.o ---------------------- And the errors: # make make[1]: Entering directory `/usr/src/iproute2-2.4.7-20010824/lib' gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g -I../include-glibc -include ../ include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.24/include -I../include -DRESOLVE_HOSTNAME S -c -o ll_map.o ll_map.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g -I../include-glibc -include ../ include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.24/include -I../include -DRESOLVE_HOSTNAME S -c -o libnetlink.o libnetlink.c ar rcs libnetlink.a ll_map.o libnetlink.o gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g -I../include-glibc -include ../ include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.24/include -I../include -DRESOLVE_HOSTNAME S -c -o utils.o utils.c cc1: warnings being treated as errors In file included from ../include/utils.h:6, from utils.c:30: /usr/src/linux-2.4.24/include/linux/inetdevice.h: In function `inet_make_mask': /usr/src/linux-2.4.24/include/linux/inetdevice.h:167: warning: implicit declaration of function `htonl' /usr/src/linux-2.4.24/include/linux/inetdevice.h: In function `inet_mask_len': /usr/src/linux-2.4.24/include/linux/inetdevice.h:173: warning: implicit declaration of function `ntohl' make[1]: *** [utils.o] Error 1 make[1]: Leaving directory `/usr/src/iproute2-2.4.7-20010824/lib' make: *** [all] Error 2 ------------------------------------- Sorry I can't check any further. htonl() and ntohl() are declared in netinet/in.h, which you include from glibc-bugs.h regards L Rotger _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/