[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    [uClinux-dev] Module Compilation Problem on uClinux 2.4 when
From:       knosiion () email ! com
Date:       2007-08-28 14:27:47
Message-ID: 20070828142747.CB92C1BF2A7 () ws1-1 ! us4 ! outblaze ! com
[Download RAW message or body]

<Module Compilation Problem on uClinux 2.4 when including fs.h>

Hello.  This is my first run at writing a device driver "module" for the ColdFire \
under uClinux 2.4 (uClinux-dist-20070130.tar.gz), and I'm having a problem when I try \
to include fs.h.  I narrowed the problem to the fs.h file itself.  A .c file ONLY \
containing the include statement generates the same list of errors - below.  I can \
build (and did) build the entire kernel on this computer (m68k-elf-gcc 2.95.3), so it \
must be in basic working order.  Also, the source files compile without incident \
under the computer's native gcc.  What have I done to deserve this??

Entire .c File:
#include <linux/fs.h>

Error Stream from
m68k-elf-gcc -c -O2 -Wall -D__KERNEL__ -DMODULE 
-I/home/G/uClinux-dist/linux-2.4.x/include/ a.c:
In file included from 
/home/G/uClinux-dist/linux-2.4.x/include/linux/string..h:20,
                  from /home/G/uClinux-dist/linux-2.4.x/include/linux/fs.h:23,
                  from a.c:1:
/home/G/uClinux-dist/linux-2.4.x/include/asm/string.h:92: warning: 
conflicting types for built-in function `memset'
/home/G/uClinux-dist/linux-2.4.x/include/asm/string.h:95: warning: 
conflicting types for built-in function `memcpy'
In file included from /home/G/uClinux-dist/linux-2.4.x/include/linux/fs.h:23,
                  from a.c:1:
/home/G/uClinux-dist/linux-2.4.x/include/linux/string.h:80: warning: 
conflicting types for built-in function `memcmp'
In file included from 
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda_fs_i.h:14,
                  from /home/G/uClinux-dist/linux-2.4.x/include/linux/fs.h:312,
                  from a.c:1:
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:259: parse 
error before `u_quad_t'
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:259: warning: 
no semicolon at end of struct or union
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:267: parse 
error before `va_bytes'
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:267: warning: 
type defaults to `int' in declaration of `va_bytes'
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:267: warning: 
data definition has no type or storage class
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:268: parse 
error before `va_filerev'
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:268: warning: 
type defaults to `int' in declaration of `va_filerev'
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:268: warning: 
data definition has no type or storage class
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:435: field 
`attr' has incomplete type
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:443: field 
`attr' has incomplete type
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:485: field 
`attr' has incomplete type
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:494: field 
`attr' has incomplete type
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:539: field 
`attr' has incomplete type
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:546: field 
`attr' has incomplete type
/home/G/uClinux-dist/linux-2.4.x/include/linux/coda.h:566: field 
`attr' has incomplete type
deserve


-G


-- 
We've Got Your Name at http://www.mail.com !
Get a FREE E-mail Account Today - Choose From 100+ Domains

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic