RE: Simple LKM & copy_from_user question (followup)

2001-07-20 Thread David CM Weber
0-422-7900 > -Original Message- > From: Randy.Dunlap [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 20, 2001 4:39 PM > To: David CM Weber > Cc: [EMAIL PROTECTED] > Subject: Re: Simple LKM & copy_from_user question (followup) > > > Hi- > > I'll sug

Re: Simple LKM & copy_from_user question (followup)

2001-07-20 Thread Randy.Dunlap
Hi- I'll suggest a few things for you. cd to your linux tree and 'make modules' Look at the gcc compile string there. Try to copy it closely. I added -I/path/to/linux/include and -D__KERNEL__ and compiled your module with no problem. If you had included the complete messages, we co

RE: Simple LKM & copy_from_user question (followup)

2001-07-20 Thread Richard B. Johnson
On Fri, 20 Jul 2001, David CM Weber wrote: > Attached is the file I"m having problems with. I'm compiling it w/ > > gcc -O3 -c main.c > > Thanks in advance, > > > Dave Weber > Backbone Security, Inc. > 570-422-7900 > Top line: #define __KERNEL__ ... compiles without any errors, one warn

Re: Simple LKM & copy_from_user question (followup)

2001-07-20 Thread John Polyakov
On Fri, 20 Jul 2001 16:26:43 -0400 "David CM Weber" <[EMAIL PROTECTED]> wrote: DCW> Attached is the file I"m having problems with. I'm compiling it w/ DCW> gcc -O3 -c main.c DCW> Thanks in advance, There is a Makefile for you in attachment. Here is lsmod output: It's work :) [root@Sombre l

RE: Simple LKM & copy_from_user question (followup)

2001-07-20 Thread David CM Weber
Attached is the file I"m having problems with. I'm compiling it w/ gcc -O3 -c main.c Thanks in advance, Dave Weber Backbone Security, Inc. 570-422-7900 > -Original Message- > From: David CM Weber > Sent: Friday, July 20, 2001 12:45 PM > To: [EMAIL PROTECTED] > Subject: Simple L