[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compile problem with latest mips kernel CVS



Hello

I do not have post access to linux-mips@oss.sgi.com, so I try to send
it here instead.

I tested to compile the kernel from the mips kernel CVS last night,
and it stopped with the following error.  The error line is
"EXPORT_SYMBOL(<symbol>');".  The object rrm.o must be added to
export-objs.  Patch below.

make[4]: Entering directory `/usr/src/linux-cvs/drivers/sgi/char'

gcc -I /usr/src/linux-cvs/include/asm/gcc -D__KERNEL__ -I/usr/src/linux-cvs/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls   -c -o rrm.o rrm.c
Assembler messages:
Warning: The -mcpu option is deprecated.  Please use -march and -mtune instead.
Warning: The -march option is incompatible to -mipsN and therefore ignored.
rrm.c:74: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
rrm.c:74: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
rrm.c:74: warning: data definition has no type or storage class
rrm.c:75: parse error before `this_object_must_be_defined_as_export_objs_in_the_Makefile'
rrm.c:75: warning: type defaults to `int' in declaration of `this_object_must_be_defined_as_export_objs_in_the_Makefile'
rrm.c:75: warning: data definition has no type or storage class
make[4]: *** [rrm.o] Error 1
make[4]: Leaving directory `/usr/src/linux-cvs/drivers/sgi/char'

 - Add rrm.o to export-objs, and sort the list of objects.

Index: Makefile
===================================================================
RCS file: /cvs/linux/drivers/sgi/char/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile    2001/03/11 03:35:59     1.13
+++ Makefile    2001/11/07 08:27:35
@@ -9,7 +9,7 @@

 O_TARGET := sgichar.o

-export-objs    := newport.o shmiq.o sgicons.o usema.o
+export-objs    := newport.o rrm.o sgicons.o shmiq.o usema.o
 obj-y          := newport.o shmiq.o sgicons.o usema.o streamable.o

 obj-$(CONFIG_SGI_SERIAL)       += sgiserial.o



Reply to: