1 |
hi |
2 |
|
3 |
ok, i traced the problem. |
4 |
|
5 |
on my system for some reason, if KERNEL_INCLUDE in the Makefile is set |
6 |
to "/usr/include", it give the errors. if it is set to |
7 |
"/usr/src/linux/include", it works. but since we dont want linux-source |
8 |
as dependancy of iproute2, this cant be. |
9 |
|
10 |
so after a bit of trial and error, i found it is the order of the -I's |
11 |
that cause the problem. |
12 |
|
13 |
the following patch if applied before compilation should fix the |
14 |
problem: |
15 |
|
16 |
Makefile.diff: |
17 |
----------------------cut here---------------------------- |
18 |
|
19 |
*** Makefile.orig Tue Sep 18 01:23:48 2001 |
20 |
--- Makefile Tue Sep 18 01:24:33 2001 |
21 |
*************** |
22 |
*** 30,36 **** |
23 |
endif |
24 |
|
25 |
CC=gcc |
26 |
! CFLAGS=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g $(GLIBCFIX) |
27 |
-I$(KERNEL_INCLUDE) -I../include $(DEFINES) |
28 |
|
29 |
LDLIBS += -L../lib -lnetlink -lutil |
30 |
|
31 |
--- 30,36 ---- |
32 |
endif |
33 |
|
34 |
CC=gcc |
35 |
! CFLAGS=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g $(GLIBCFIX) |
36 |
-I../include $(DEFINES) -I$(KERNEL_INCLUDE) |
37 |
|
38 |
LDLIBS += -L../lib -lnetlink -lutil |
39 |
-------------------cut here------------------------------- |
40 |
|
41 |
|
42 |
i also made a attachment. |
43 |
|
44 |
greetings |
45 |
MS |