mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Whats the problem
@ 2000-12-30 17:16 Sourav Sen
  2000-12-31 15:57 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 2+ messages in thread
From: Sourav Sen @ 2000-12-30 17:16 UTC (permalink / raw)
  To: lkml


I am unable to compile the following code, can anyone say whats the
problem :

The main error msg is like the following:

	parse error before `EXPORT_SYMTAB_not_defined'
	warning: type defaults to `int' in declaration of
`EXPORT_SYMTAB_not_defined'
	warning: data definition has no type or storage class
 
==================================
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/unistd.h>
#include <linux/modversions.h>

int init_module()
{
	printk("Hello, World\n");
	return 0 ;
}

int show_mystate(void)
{
	unsigned long state ;
	state = current->state ;
	printk("%x\n",state);
	return 0 ;
}	

EXPORT_SYMBOL(show_mystate);

void cleanup_module()
{
	printk("Goodbye\n");
}

=============================================
 The makefile 

CC=gcc
MODCFLAGS=-Wall -DMODULE -D__KERNEL__ -DLINUX

showinfo.o : showinfo.c

		$(CC) $(MODCFLAGS) -c showinfo.c


Thanks
Sourav
--------------------------------------------------------------------------------
SOURAV SEN    MSc(Engg.) CSA IISc BANGALORE URL : www2.csa.iisc.ernet.in/~sourav 
ROOM NO : N-78      TEL :(080)309-2454(HOSTEL)          (080)309-2906 (COMP LAB) 
--------------------------------------------------------------------------------


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-31 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-30 17:16 Whats the problem Sourav Sen
2000-12-31 15:57 ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®