[mpls-linux-general] Re: make errors: iproute-2.6.9-3mpls1_946
Status: Beta
Brought to you by:
jleu
|
From: Bob B. <bob...@gm...> - 2005-12-02 19:57:01
|
On 12/2/05, Bob Beers <bob...@gm...> wrote: > Hi, > > I am using slackware 10.2, so I don't have an rpm based system. > > I downloaded the 1.946 tarballs: mpls-linux-1.946.tar.bz2 and > iproute-2.6.9-3mpls1_946.src.rpm. > > I applied the linux-kernel.diff to a vanilla 2.6.9 kernel, set the > mpls modules to yes, built and installed the kernel. > > Now, I expand the iproute src.rpm, apply all the patches > to the included iproute2 source directory and fixed the Makefile > to point correctly to kernel include and db_185.h, but > > make fails in the mpls directory: > > cd /home/bbeers/download/mpls-linux/iproute-2.6.9-3mpls1_946/iproute2-2.6= .9/mpls/ > make > cc -c -o mpls.o mpls.c > mpls.c:28:29: linux/gen_stats.h: No such file or directory > mpls.c:29:24: linux/mpls.h: No such file or directory > mpls.c:32:22: SNAPSHOT.h: No such file or directory > mpls.c: In function `mpls_table_list': > mpls.c:89: error: `MPLS_RTM_GETNHLFE' undeclared (first use in this funct= ion) > mpls.c:89: error: (Each undeclared identifier is reported only once > mpls.c:89: error: for each function it appears in.) > mpls.c:90: error: `MPLS_RTM_GETILM' undeclared (first use in this functio= n) > mpls.c:91: error: `MPLS_RTM_GETXC' undeclared (first use in this function= ) > mpls.c:92: error: `MPLS_RTM_GETLABELSPACE' undeclared (first use in > this function) > mpls.c: At top level: > etc.,etc.,etc. > > What I find most odd are the complaints about "No such file" gen_stats.h > and mpls.h, but not about if_ether.h and socket.h, which are all in the > same directory: /usr/src/linux/include/linux, and #included right there > together in mpls.c. > > root@beedril:/usr/src/linux/include/linux# ls -la if_ether.h > gen_stats.h mpls.h socket.h > -rw-r--r-- 1 bbeers users 949 Oct 18 2004 gen_stats.h > -rw-r--r-- 1 bbeers users 4795 Oct 18 2004 if_ether.h > -rw-r--r-- 1 bbeers users 7268 Dec 1 06:12 mpls.h > -rw-r--r-- 1 bbeers users 9465 Dec 1 06:12 socket.h > root@beedril:/usr/src/linux/include/linux# > > What have I done wrong? > some progress to report, I updated the kernel-headers from slackware/testing/linux-2.6.13 and now only mpls.h is not found. I guess that the iproute2 Makefiles are not looking in the specified kernel source directory, /usr/src/linux/include, for include files, but instead in /usr/include. Can someone tell me how to override/fix this behavior? -- -Bob |