Ticket #549 (closed task)
Opened 7 years ago
i2c-proc.c fails to compile (patched kernel) (Examined/Solved - cvs build on 04/10 kernel 2.2.19-SMP)
| Reported by: | contact | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | kernel | Version: | |
| Keywords: | Cc: |
Description
/usr/bin/kgcc -DKERNEL -I/usr/src/linux/include -Wall -Wstrict-prototypes
-O6 -fomit-frame-pointer -fno-strict-aliasing -DSMP -pipe
-fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2
-DCPU=686 -DMODULE -DMODULE -c -o i2c-proc.o i2c-proc.c
i2c-proc.c:86: warning: initialization from incompatible pointer type
i2c-proc.c:876: parse error before 'EXPORT_SYMTAB_not_defined'
i2c-proc.c:876: warning: type defaults to 'int' in declaration of
'EXPORT_SYMTAB_not_defined'
i2c-proc.c:876: warning: data definition has no type or storage class
i2c-proc.c:877: parse error before 'EXPORT_SYMTAB_not_defined'
i2c-proc.c:877: warning: type defaults to 'int' in declaration of
'EXPORT_SYMTAB_not_defined'
i2c-proc.c:877: warning: data definition has no type or storage class
i2c-proc.c:878: parse error before 'EXPORT_SYMTAB_not_defined'
i2c-proc.c:878: warning: type defaults to 'int' in declaration of
'EXPORT_SYMTAB_not_defined'
i2c-proc.c:878: warning: data definition has no type or storage class
i2c-proc.c:879: parse error before 'EXPORT_SYMTAB_not_defined'
i2c-proc.c:879: warning: type defaults to 'int' in declaration of
'EXPORT_SYMTAB_not_defined'
i2c-proc.c:879: warning: data definition has no type or storage class
i2c-proc.c:880: parse error before 'EXPORT_SYMTAB_not_defined'
i2c-proc.c:880: warning: type defaults to 'int' in declaration of
'EXPORT_SYMTAB_not_defined'
i2c-proc.c:880: warning: data definition has no type or storage class
{standard input}: Assembler messages:
{standard input}:9: Warning: Ignoring changed section attributes for .modinfo
make[2]: *** [i2c-proc.o] Error 1
make[2]: Leaving directory '/usr/src/linux-2.2.19/drivers/i2c'
make[1]: *** [_modsubdir_i2c] Error 2
make[1]: Leaving directory '/usr/src/linux-2.2.19/drivers'
make: *** [_mod_drivers] Error 2
make: Leaving directory '/usr/src/linux-2.2.19'
--- Fixed mkpatch.pl in CVS (what will be 2.6.0).
In drivers/i2c/Makefile, the entries for i2c-proc.c should be
LX_OBJS += i2c-proc.o and MX_OBJS += i2c-proc.o.
Without the 'X', the -DEXPORT_SYMTAB isn't included.
MDS 4/17/01
