Re: [mpls-linux-general] Utility compilation problem
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2001-01-24 00:43:36
|
Did you apply the kernel patch? If so, then most likely you are running on a linux distribution that mucks with your include files. What you should have: /usr/src/linux-2.4.0/ is your kernel source with MPLS patch applied /usr/src/linux is a symbolic link to /usr/src/linux-2.4.0/ /usr/include/linux is a symbolic link to /usr/src/linux/include/linux/ /usr/include/asm is a symbolic link to /usr/src/linux/include/asm Once you have the correct symbolic links, then make sure to configure the kernel with MPLS support. THEN finally you can compile the utilities :-) I know, it's a lot of work just to compile a utility.... Jim On Tue, Jan 23, 2001 at 04:52:40PM -0600, Nanda, Debasis wrote: > Hi James, > I downloaded the latest version of mpls (mpls-linux-0.700.tar.gz ) .I am > using Red Hat Linux 7.0 and Kernel 2.4.0 test11 . > I patched linux kernel 2.4.0 test 11 with the patch file provided and > compiled it . It compiled fine and I am able to boot with the mpls enabled > kernel . > But while compiling the user space application , the utilities, with the new > kernel , I get a compilation error > > cc -g -Wall -c -o netlink.o netlink.c > netlink.c:9:24: linux/mpls.h: No such file or directory > make: *** [netlink.o] Error 1 > > Then I put a copy of "mpls.h" in the local directory and changed the > inclusions accordingly in netlink.c and mplsadm.c . > > The compiler shouted with the following errors .. > > cc -g -Wall -c -o mplsadm.o mplsadm.c > mplsadm.c: In function `main': > mplsadm.c:355: `RTM_DELILM' undeclared (first use in this function) > mplsadm.c:355: (Each undeclared identifier is reported only once > mplsadm.c:355: for each function it appears in.) > mplsadm.c:358: `RTM_NEWILM' undeclared (first use in this function) > mplsadm.c:374: `RTM_DELNHLFE' undeclared (first use in this function) > mplsadm.c:381: `RTM_NEWNHLFE' undeclared (first use in this function) > mplsadm.c:415: `RTM_NEWFTN' undeclared (first use in this function) > mplsadm.c:418: `RTM_DELFTN' undeclared (first use in this function) > mplsadm.c:432: `RTM_SETININSTR' undeclared (first use in this function) > mplsadm.c:447: `RTM_SETOUTINSTR' undeclared (first use in this function) > mplsadm.c:483: `RTM_NEWXC' undeclared (first use in this function) > mplsadm.c:486: `RTM_DELXC' undeclared (first use in this function) > make: *** [mplsadm.o] Error 1 > > > > Please help. > > Regards > Debasis > > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > http://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |