Re: 2.3.99-pre2 fails to build. shm.c

From: Ralf Baechle (ralf@uni-koblenz.de)
Date: Thu Mar 23 2000 - 07:54:57 EST


On Tue, Mar 21, 2000 at 03:36:35PM +0000, Chris Pinnock wrote:

> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -DCPU=586 -march=i586 -fno-strict-aliasing -c -o shm.o shm.c
> shm.c:142: `THIS_MODULE' undeclared here (not in a function)
> shm.c:142: initializer element for `shm_fs_type.owner' is not constant
> make[2]: *** [shm.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.3.99-pre2/ipc'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.3.99-pre2/ipc'
> make: *** [_dir_ipc] Error 2

Either disable CONFIG_SYSVIPC (which you probably don't want) or add
``#include <linux/module.h>'' in the include section of ipc/shm.c.

  Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:39 EST