Hi,

I'm having problems compiling RTLinux modules, when I use some functions.
I have no problems when just use typical rtl functions, like related to
threads, timers, etc. However, when I try to use other functions, like for
example 'socket' (including sys/socket.h) it does not compile and give me
some errors in the included .h files.
I've tried to remove all references to the rtl in the code and remove in the
Makefile the 'include rtl.mk' file, and all functions compile with no
problems.

Anyone knows what can be wrong? What should I do to use the normal C
functions?
I'm starting to work with RTLinux and I'll thank very much some help.

This is the simple Makefile I'm using:
all: example.o
include rtl.mk
clean:
        rm -f core *.o
include $(RTL_DIR)/Rules.make

This is the rtl.mk file generated:
#Automatically generated by RTLinux Makefile
RTL_DIR = /usr/src/rtlinux-3.1
RTLINUX_DIR = /usr/src/rtlinux/linux
INCLUDE= -I/usr/src/rtlinux/linux/include -I/usr/src/rtlinux-3.1/include
-I/usr/src/rtlinux-3.1/include/compat
CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.4/include/linux/modversions.h -g -D__RTL__
-D_LOOSE_KERNEL_NAMES -O2 -I/usr/src/rtlinux/linux/include
-I/usr/src/rtlinux-3.1/include -I/usr/src/rtlinux-3.1/include/compat
-I/usr/src/rtlinux-3.1/include/posix
ARCH = i386
CC = gcc
CXXFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.4/include/linux/modversions.h -g -D__RTL__
-D_LOOSE_KERNEL_NAMES -I/usr/src/rtlinux/linux/include
-I/usr/src/rtlinux-3.1/include -I/usr/src/rtlinux-3.1/include/compat
-I/usr/src/rtlinux-3.1/include/posix -fno-exceptions -fno-rtti

Carlos Parada

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to