Skip to contentSkip to conversation

Compiation Err:Derefercing pointer to incomplete type

DISCUSSION ramands 3 participants 3 messages Apr 7, 2003

lore
Share & tools
lore

ramands

author
#0 lore raw

whenever i incude header uaccess.h for copy my compiler throws a lot of compilation errors . They are generaly of nature

uaccess.h>dereferencing pointer to incomplete type

sched.h>dereferncing pointer to incomplete type

i am using redhat 8.0
i have read that some distributions do not provide complete headers for module level programming Is that the reason for error i am getting ?

Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now !

Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now !

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 9 lines · ramands

whenever i incude header uaccess.h for copy my compiler throws a lot of compilation errors . They are generaly of nature

uaccess.h>dereferencing pointer to incomplete type

sched.h>dereferncing pointer to incomplete type

i am using redhat 8.0
i have read that some distributions do not provide complete headers for module level programming Is that the reason for error i am getting ?

1. What do you mean by "for copy"?

2. Are you #include'ing, in these cases, the uaccess.h that is located in /usr/include/asm, or one that comes as part of kernel source? (I ask because the context of your questions is "module level programming".) If the second, what kernel, and are you compiling for i86 hardware?

3. The lines you (sort of) quote look more like warnings than errors, but it is hard to be sure from the small fragments you provide. Could you please post a complete "error" line or two?

4. What is "my compiler"? Some version (which) of gcc? Of g++? Or are you using some other compiler?

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to ramands
|
| whenever i incude header uaccess.h for copy my compiler throws
| a lot of compilation errors . They are generaly of nature
|
| uaccess.h>dereferencing pointer to incomplete type
|
| sched.h>dereferncing pointer to incomplete type
|
| i am using redhat 8.0
| i have read that some distributions do not provide complete headers
| for module level programming. Is that the reason for error i am getting ?
|

In effect, yes. /usr/include -including /usr/include/linux and
/usr/include/asm, that typically come in a kernel-headers package - are for the use of libc. kernel headers are included with the kernel source. See <linux>/README

Lawson
--
---oops---

________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs