Hi

I am trying to get RTnet running under RTAI kernel space, basically as
described in

http://www.mail-archive.com/rtnet-users@lists.sourceforge.net/msg01127.html

I am using RTnet 0.9.2, RTAI 3.3 Vulcano, kernel 2.6.15.1.

The basic RTAI and RTnet installations seems fine: the RTAI test
programs work, rtping works, I can compile and execute the RTnet (user
space) example shipped with the code, etc.

I run into problems trying to compile a basic kernel-space RTnet
application, however. It seems that the "sockaddr_in" structure is
declared in
/usr/include/netinet/in.h
while 
/usr/src/linux/include/linux/module.h
and
/usr/src/linux/include/linux/kernel.h
is required to compile a kernel module (please correct me if I am
wrong).

I added /usr/include as an include path, in order to include
netinet/in.h. When I include all three of these files I get a number of
errors. The first one is:

/usr/include/stdint.h:37: error: redefinition of typedef ‘int8_t’
include/linux/types.h:108: error: previous declaration of ‘int8_t’ was
here

Can anyone help me?

(As an aside: why isn't there a RTAI kernel mode example included with
0.9.x ? It would have saved me a lot of sweat, tears and swearwords)

Thanks
Thinus Viljoen




*******************************************************************************************************
Disclaimer:  The information contained in this communication is confidential 
and may be legally privileged.  
It is intended solely for the use of the individual or entity to whom it is 
addressed and others authorised to receive it.  
Any review, retransmission, dissemination, copying, disclosure or other use of, 
or taking of any action in reliance upon, this information by person or 
entities other then the intended recipient is prohibited.  
If you have received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and return and/or destroy the 
original message and all copies from any computer.  

Denel (Pty) Ltd exercises no editorial control over e-mail messages originating 
in the organisation and does not accept any responsibility for either the 
contents of the message or any copyright laws that may have been violated by 
the person sending this message.  
Denel (Pty) Ltd is neither liable for the proper and complete transmission of 
the information contained in this communication nor any delay in its receipt.  
This message should not be copied or used for any purpose other than intended, 
nor should it be disclosed to any other person.
*******************************************************************************************************


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to