linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Problems with uaccsess.h
@ 2006-08-25  5:28 Keinen Namen
  0 siblings, 0 replies; 2+ messages in thread
From: Keinen Namen @ 2006-08-25  5:28 UTC (permalink / raw)
  To: linuxppc-embedded

Hi

when I compile my program i got this message

bash-2.05b# make
gcc -O2 -DMODULE -D__KERNEL__ -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -isystem /lib/modules/`uname -r`/build/include
-c -o hello.o hello.c
hello.c:5:25: linux/version: No such file or directory
In file included from hello.c:9:
/usr/include/asm/uaccess.h: In function `verify_area':
/usr/include/asm/uaccess.h:37: error: `CONFIG_TASK_SIZE' undeclared
(first use in this function)
/usr/include/asm/uaccess.h:37: error: (Each undeclared identifier is
reported only once
/usr/include/asm/uaccess.h:37: error: for each function it appears in.)
/usr/include/asm/uaccess.h: In function `copy_from_user':
/usr/include/asm/uaccess.h:280: error: `CONFIG_TASK_SIZE' undeclared
(first use in this function)
/usr/include/asm/uaccess.h: In function `copy_to_user':
/usr/include/asm/uaccess.h:294: error: `CONFIG_TASK_SIZE' undeclared
(first use in this function)
/usr/include/asm/uaccess.h: In function `clear_user':
/usr/include/asm/uaccess.h:313: error: `CONFIG_TASK_SIZE' undeclared
(first use in this function)
/usr/include/asm/uaccess.h: In function `strncpy_from_user':
/usr/include/asm/uaccess.h:327: error: `CONFIG_TASK_SIZE' undeclared
(first use in this function)
/usr/include/asm/uaccess.h: In function `strnlen_user':
/usr/include/asm/uaccess.h:350: error: `CONFIG_TASK_SIZE' undeclared
(first use in this function)

These Header files I have include

#include <linux/module.h>  /* Needed by all modules */
#include <linux/kernel.h>  /* Needed for KERN_ALERT */
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/version>
#include <linux/init.h>
#include <linux/fs.h>


#include <asm/types.h>
#include <asm/mpc8260.h>
#include <asm/cpm_8260.h>
#include <asm/page.h>

#include <asm/uaccess.h>

My linux is 2.4.25
Need I a patch to correct this ?? I need the funktion copy_to_user.

Regards
Fred


-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

* RE: Problems with uaccsess.h
@ 2006-08-25  5:43 Chun Chung Lo
  0 siblings, 0 replies; 2+ messages in thread
From: Chun Chung Lo @ 2006-08-25  5:43 UTC (permalink / raw)
  To: Keinen Namen; +Cc: linuxppc-embedded


Hi,

Seems your makefile does not include all the kernel header ...

Please try to add this ' -I(linux kernel source path)/include ' to your=
 makefile as CFLAGS.

Best regards,
Lo Chun Chung

-----Original Message-----
From: linuxppc-embedded-bounces+cclo=3Dastri.org@ozlabs.org=
 [mailto:linuxppc-embedded-bounces+cclo=3Dastri.org@ozlabs.org] On Behalf=
 Of Keinen Namen
Sent: Friday, 25 August, 2006 1:29 PM
To: linuxppc-embedded@ozlabs.org
Subject: Problems with uaccsess.h


Hi

when I compile my program i got this message

bash-2.05b# make
gcc -O2 -DMODULE -D__KERNEL__ -W -Wall -Wstrict-prototypes=
 -Wmissing-prototypes -isystem /lib/modules/`uname -r`/build/include -c -o=
 hello.o hello.c
hello.c:5:25: linux/version: No such file or directory
In file included from hello.c:9:
/usr/include/asm/uaccess.h: In function `verify_area':
/usr/include/asm/uaccess.h:37: error: `CONFIG_TASK_SIZE' undeclared (first=
 use in this function)
/usr/include/asm/uaccess.h:37: error: (Each undeclared identifier is=
 reported only once
/usr/include/asm/uaccess.h:37: error: for each function it appears in.)
/usr/include/asm/uaccess.h: In function `copy_from_user':
/usr/include/asm/uaccess.h:280: error: `CONFIG_TASK_SIZE' undeclared (first=
 use in this function)
/usr/include/asm/uaccess.h: In function `copy_to_user':
/usr/include/asm/uaccess.h:294: error: `CONFIG_TASK_SIZE' undeclared (first=
 use in this function)
/usr/include/asm/uaccess.h: In function `clear_user':
/usr/include/asm/uaccess.h:313: error: `CONFIG_TASK_SIZE' undeclared (first=
 use in this function)
/usr/include/asm/uaccess.h: In function `strncpy_from_user':
/usr/include/asm/uaccess.h:327: error: `CONFIG_TASK_SIZE' undeclared (first=
 use in this function)
/usr/include/asm/uaccess.h: In function `strnlen_user':
/usr/include/asm/uaccess.h:350: error: `CONFIG_TASK_SIZE' undeclared (first=
 use in this function)

These Header files I have include

#include <linux/module.h>  /* Needed by all modules */
#include <linux/kernel.h>  /* Needed for KERN_ALERT */
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/version>
#include <linux/init.h>
#include <linux/fs.h>


#include <asm/types.h>
#include <asm/mpc8260.h>
#include <asm/cpm_8260.h>
#include <asm/page.h>

#include <asm/uaccess.h>

My linux is 2.4.25
Need I a patch to correct this ?? I need the funktion copy_to_user.

Regards
Fred


--=0D


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f=
=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org=
 https://ozlabs.org/mailman/listinfo/linuxppc-embedded

This message (including any attachments) is for the named addressee(s)'s=
 use only. It may contain
sensitive, confidential, private proprietary or legally privileged=
 information intended for a
specific individual and purpose, and is protected by law. If you are not=
 the intended recipient,
please immediately delete it and all copies of it from your system, destroy=
 any hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of=
 this message and/or any
attachments is strictly prohibited.

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

end of thread, other threads:[~2006-08-25  6:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-25  5:28 Problems with uaccsess.h Keinen Namen
  -- strict thread matches above, loose matches on Subject: below --
2006-08-25  5:43 Chun Chung Lo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).