« Отговор #3 -: Nov 27, 2004, 21:39 »
Впрочем въпросът трябваше да е така:
В readme на iproute2 пише:
" 1. Look at start of Makefile and set correct values for:
KERNEL_INCLUDE should point to correct linux kernel include directory.
ADDLIB should contain inet_* functions, if your libc contains
obsolete resolver library (<4.9.4) and you have no correct libresolv.
ADDLIB should also contain dnet_* functions if you don't have a
libdnet with support for them. If your libdnet does have support,
then comment out that line and uncomment the line to add -ldnet to
LDLIBS.
LDLIBS should be empty, if you have no libresolv.
2. make
Utilities "ip" and "rtmon" are in ip/ directory now,
"tc" is in tc/. That's all.
3. To make documentation, cd to doc/ directory
and make there. It assumes, that latex, dvips and psnup
are in your path."
Мейкфайла ,който идва с iproute2 :
" #KERNEL_INCLUDE=
#KERNEL_INCLUDE=/net/minus/home/src/BH/vger3/vger-mirror-softirq/linux/include
#KERNEL_INCLUDE=/home1/root/vger-129/vger-mirror/linux/include
KERNEL_INCLUDE=/usr/src/linux/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....
.....и още редове за инсталация"
Когато напиша "make" v директорията на iproute2 започва инсталацията но спира и вади съобщение за грешка:
" root@darkstar:/home/ftp/iproute2# make
make[1]: Entering directory `/home/ftp/iproute2/lib'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -c -o utils.o utils.c
In file included from utils.c:26:
/usr/include/arpa/inet.h:35: syntax error before "inet_addr"
/usr/include/arpa/inet.h:38: syntax error before "inet_lnaof"
/usr/include/arpa/inet.h:42: syntax error before "net"
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/home/ftp/iproute2/lib'
make: *** [all] Error 2
root@darkstar:/home/ftp/iproute2#"
чета ги обаче не знам как да корегирам точно makefile
благодаря