Problems building 4.8 branch

Eric Norum norume at aps.anl.gov
Mon Oct 15 00:32:05 UTC 2007


I checked out the 4.8 branch of RTEMS.  When I try to build it I get:
.
.
.
m68k-rtems4.8-gcc --pipe -DHAVE_CONFIG_H   -I.. -I../../ 
cpukit/../../../uC5282/lib/include -I/usr/local/rtems/src/cvs/ 
rtems-4-8-branch/rtems/c/src/../../cpukit/libnetworking -DNOPOLL - 
DNOSELECT -D__BSD_VISIBLE  -Wall -fasm -m528x -O2 -g -MT libc/libc_a- 
if_nameindex.o -MD -MP -MF libc/.deps/libc_a-if_nameindex.Tpo -c -o  
libc/libc_a-if_nameindex.o `test -f 'libc/if_nameindex.c' || echo '/ 
usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/'`libc/if_nameindex.c
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/libc/if_nameindex.c: In function 'if_nameindex':
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/libc/if_nameindex.c:109: error: invalid application of  
'sizeof' to incomplete type 'struct if_nameindex'
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/libc/if_nameindex.c:113: error: invalid application of  
'sizeof' to incomplete type 'struct if_nameindex'
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/libc/if_nameindex.c:124: error: dereferencing pointer  
to incomplete type
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/libc/if_nameindex.c:126: error: dereferencing pointer  
to incomplete type
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/libc/if_nameindex.c:128: error: increment of pointer to  
unknown structure
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/c/src/../../cpukit/ 
libnetworking/libc/if_nameindex.c:128: error: arithmetic on pointer  
to an incomplete type
.
.
.

I configured the build with:
/usr/local/rtems/src/cvs/rtems-4-8-branch/rtems/configure --prefix=/ 
usr/local/rtems/rtems-4.8 --enable-cxx --disable-rdbg --enable- 
tests=samples --enable-networking --enable-posix --target=m68k- 
rtems4.8 --enable-rtemsbsp=uC5282

The compiler is:
rt> m68k-rtems4.8-gcc --version
m68k-rtems4.8-gcc (GCC) 4.2.1

I believe that this is a relatively recent addition to the network  
code.  Did some header file get missed from the CVS commit?

-- 
Eric Norum <norume at aps.anl.gov>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793





More information about the users mailing list