[mpls-linux-general] problem of iproute2 on linux-2.6.1
Status: Beta
Brought to you by:
jleu
|
From: T. T. <t_t...@ho...> - 2004-06-17 11:55:42
|
Thanks for your quick reply.
I succeed to make linux 2.6.1 with mpls-1.922 by not using .config of
2.4.18.
Thank you.
On the other hand, I have another problem with iproute2.
When I execute "make" in iproute2 directory, an error appears as following.
# cd iproute2
# patch -p1 < ../iproute2.diff
# make
make[1]: Entering directory `/usr/src/mpls-linux/patches/iproute2/lib'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g
-I../include-glibc -include ../include-glibc/glibc-bugs.h
-I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o utils.o
utils.c
In file included from /usr/src/linux/include/linux/compiler.h:16,
from /usr/src/linux/include/asm/bitops.h:9,
from ../include/utils.h:5,
from utils.c:30:
/usr/src/linux/include/linux/compiler-gcc3.h:19:1: "__attribute_used__"
redefined
In file included from /usr/include/features.h:291,
from ../include-glibc/glibc-bugs.h:4,
from <command line>:1:
/usr/include/sys/cdefs.h:192:1: this is the location of the previous
definition
In file included from /usr/src/linux/include/linux/compiler.h:16,
from /usr/src/linux/include/asm/bitops.h:9,
from ../include/utils.h:5,
from utils.c:30:
/usr/src/linux/include/linux/compiler-gcc3.h:22:1: "__attribute_pure__"
redefined
In file included from /usr/include/features.h:291,
from ../include-glibc/glibc-bugs.h:4,
from <command line>:1:
/usr/include/sys/cdefs.h:183:1: this is the location of the previous
definition
cc1: warnings being treated as errors
In file included from ../include/utils.h:6,
from utils.c:30:
/usr/src/linux/include/linux/inetdevice.h: In function `inet_make_mask':
/usr/src/linux/include/linux/inetdevice.h:169: warning: implicit
declaration of function `htonl'
/usr/src/linux/include/linux/inetdevice.h: In function `inet_mask_len':
/usr/src/linux/include/linux/inetdevice.h:175: warning: implicit
declaration of function `ntohl'
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/usr/src/mpls-linux/patches/iproute2/lib'
make: *** [all] Error 2
Thank you in advance for your help.
>What makes you think your .config from 2.4.18 will work on a 2.6.1 kernel?
>Make sure to that MPLS is not a module.
>
>On Tue, Jun 15, 2004 at 02:57:58PM +0900, T. Take wrote:
> > Hello.
> >
> > I have tried to update.
> >
> > kernel: 2.6.1
> > mplsadm: 1.922
> >
> > I executed the following command, but I didn't succeed.
> >
> > # make mrproper
> > # patch -p1 < ../mpls-linux/patches/linux-kernel.diff
> > # cp /boot/config-2.4.18 .config
> > # make oldconfig
> > # make menuconfig
> > # make
> >
> > CHK include/linux/compile.h
> > UPD include/linux/compile.h
> > CC init/version.o
> > LD init/built-in.o
> > LD [M] net/mpls/mpls.o
> > net/mpls/mpls_netlink.o: In function `mpls_netlink_init':
> > net/mpls/mpls_netlink.o(.init.text+0x0): multiple definition of
> > `init_module'
> > net/mpls/mpls_init.o(.init.text+0xb0): first defined here
> > ld: Warning: size of symbol `init_module' changed from 472 to 48 in
> > net/mpls/mpl
> > s_netlink.o
> > net/mpls/mpls_netlink.o: In function `cleanup_module':
> > net/mpls/mpls_netlink.o(.exit.text+0x0): multiple definition of
> > `cleanup_module'
> > net/mpls/mpls_init.o(.exit.text+0x20): first defined here
> > ld: Warning: size of symbol `cleanup_module' changed from 231 to 8 in
> > net/mpls/m
> > pls_netlink.o
> > make[2]: *** [net/mpls/mpls.o] error 1
> > make[1]: *** [net/mpls] error 2
> > make: *** [net] error 2
> >
_________________________________________________________________
メッセンジャーで総額1億円プレゼント! http://im.msn.co.jp/home.htm
|