Re: Don't know how to compile tc

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux