C Compile problem

paulc linux_guy at verizon.net
Tue Oct 7 13:26:31 EDT 2003


>Yup!, tried to use 'find' command: 
>prompt>find / -name 'access.h' -print 
>and can not find this file on either machine.

Assumed this was a typo, S/B:
prompt>find / -name 'uaccess.h' -print 

thanks

paulc



> 
> From: <karina.popkova at verizon.net>
> Date: 2003/10/07 Tue PM 01:19:23 EDT
> To: <discuss at blu.org>
> Subject: C Compile problem
> 
> While trying to compile sample device driver or loadable kernel module
> code, a typical include file for many drivers (or LKM's) requires
> #include <asm/uaccess.h>.
> This file has functionality for copy_to_user( ) or copy_from_user( ),
> functions to copy data to user space or application, and or
> copy data from user space to a buffer or to a device driver (or LKM).
> 
> I have a pentium Laptop with RH 7.3 (kernel 2.4.18) installed, works fine!
> I have a desktop with Pentium 4, has RH 7.3  (kernel 2.4.18) installed
>  (from different source or media, at different time).     Works fine ...
> 
> Try compile a LKM sample code on Laptop and get error "can't find
> #include <asm/uaccess.h>.
> I have tried to compile a LKM sample code on Desktop and 
> get error:
>  "can't find #include <asm/uaccess.h>.
> 
> There is a directory of:
> usr/include/asm      
> available, but there is no file: uaccess.h in that subdirectory.
> 
> Yup!, tried to use 'find' command: 
> prompt>find / -name 'access.h' -print    
> and can not find this file on either machine.
> 
> somebody said file is in 
> /usr/src/redhat/
> Nope! no source code or files there, on either machine ???
> 
> How do I obtain a copy of the file, or where should I find it or
> put the /asm/uaccess.h file, so I may compile drivers or LKM's ???
> 
> thanks
> 
> 
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
> 




More information about the Discuss mailing list