Re: [mpls-linux-general] mplsadm compile error
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2002-11-01 19:47:54
|
On Thu, Oct 31, 2002 at 07:28:23PM +0100, mes...@em... wrote: > I have linux Red Hat 7.3, 2.4.14 kernel, mpls-linux-1.1.170. > I am having problems compiling mpls-linux. Kernel compiles fine with MPLS > support included. I run 7.3, I'm completly up-to-date with RedHat changes, except I'm still at the 2.4.18-3 kernel. I copied the redhat kernel source to another directory: cp -a /usr/src/linux-2.4.18-3 /usr/src/linux-mpls Patched that new directory: cd /usr/src/linux-mpls/ patch -p1 < /usr/src/mpls-linux-1.1/patches/linux-kernel.diff Compiled kernel ..... Modified the utils Makefile: edit /usr/src/mpls-linux-1.1/utils/Makefile (added -I /usr/src/linux-mpls/include/ to the CFLAGS) Compiled fine for me. > But the when I run make mplsadm in /utils dir, it returns me these errors: > > > gcc -g -Wall -I/usr/include/linux -c -o mplsadm.o mplsadm.c > In file included from /usr/include/bits/types.h:143, > from /usr/include/stdio.h:36, > from mplsadm.c:2: > /usr/include/bits/pthreadtypes.h:48: parse error before `size_t' > /usr/include/bits/pthreadtypes.h:48: warning: no semicolon at end of struct or > union > /usr/include/bits/pthreadtypes.h:51: parse error before `__stacksize' > /usr/include/bits/pthreadtypes.h:51: warning: data definition has no type or > storage class > /usr/include/bits/pthreadtypes.h:52: warning: data definition has no type or > storage class > In file included from /usr/include/_G_config.h:44, > from /usr/include/libio.h:32, > from /usr/include/stdio.h:65, > from mplsadm.c:2: > /usr/include/gconv.h:72: parse error before `size_t' > /usr/include/gconv.h:85: parse error before `size_t' > /usr/include/gconv.h:94: parse error before `size_t' > /usr/include/gconv.h:170: parse error before `size_t' > /usr/include/gconv.h:170: warning: no semicolon at end of struct or union > /usr/include/gconv.h:173: parse error before `}' > /usr/include/gconv.h:173: warning: data definition has no type or storage > class > In file included from /usr/include/libio.h:32, > from /usr/include/stdio.h:65, > from mplsadm.c:2: > /usr/include/_G_config.h:47: field `__cd' has incomplete type > /usr/include/_G_config.h:50: field `__cd' has incomplete type > /usr/include/_G_config.h:53: confused by earlier errors, bailing out > make: *** [mplsadm.o] Error 1 > > > Can anyone help me, please. Is there something missing in my Makefile? > > Thank you in advance. > Matevz > > > ------------------- > http://www.email.si > > > ------------------------------------------------------- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |