My system is:
 redhat 9.0
 linux-2.4.20 kernel with legacy-2.4.20.patch
 rtai-3.0r2

besides, the rtai installing is completed without any problem.
 
But there are problems in the rtnet installing. The version is rtnet-0.6.0. There is the same result with rtnet-0.6.1 as I did.
 
The rtnet's built directory is not same with its source directory.
The source directory is "/usr/src/rtnet/rtnet" and
the built directory is "/usr/src/rtnet/rtnet-obj".
 
I did it as the following:
# cd /usr/src/rtnet/rtnet-obj
# ../rtnet/configure --with-rtai=/usr/realtime --enable-allpci --enable-rtcap --enable-proxy
# make
the output is:
Making all in driver
make[1]: Entering directory `/usr/src/rtnet/rtnet-obj/driver'
Making all in tulip
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/driver/tulip'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/driver/tulip'
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/driver'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/driver'
make[1]: Leaving directory `/usr/src/rtnet/rtnet-obj/driver'
Making all in ethernet
make[1]: Entering directory `/usr/src/rtnet/rtnet-obj/ethernet'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/rtnet/rtnet-obj/ethernet'
Making all in examples
make[1]: Entering directory `/usr/src/rtnet/rtnet-obj/examples'
Making all in round_trip_time
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time'
Making all in client
make[3]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time/client'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time/client'
Making all in server
make[3]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time/server'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time/server'
make[3]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time'
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/round_trip_time'
Making all in rtskb_alloc
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/rtskb_alloc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/rtskb_alloc'
Making all in rtt
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/rtt'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/rtt'
Making all in frag_ip
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/frag_ip'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/frag_ip'
Making all in raw_packets
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/raw_packets'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/raw_packets'
Making all in rtnet_lxrt
make[2]: Entering directory `/usr/src/rtnet/rtnet-obj/examples/rtnet_lxrt'
/bin/sh ../../libtool --mode=link gcc -I../../../rtnet/include -I../../include -I. -I/usr/realtime/include/compat -I/usr/realtime/include -g -I/usr/src/linux-v2.4/2.4.20/linux-2.4.20/include -Wall -Wstrict-prototypes -pipe -s   -o simpleclient  simpleclient.o 
gcc -I../../../rtnet/include -I../../include -I. -I/usr/realtime/include/compat -I/usr/realtime/include -g -I/usr/src/linux-v2.4/2.4.20/linux-2.4.20/include -Wall -Wstrict-prototypes -pipe -s -o simpleclient simpleclient.o
make[2]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples/rtnet_lxrt'
make[1]: Leaving directory `/usr/src/rtnet/rtnet-obj/examples'
simpleclient.o(.text+0x15e): In function `main':
../../../rtnet/examples/rtnet_lxrt/simpleclient.c:72: undefined reference to `rt_socket'
simpleclient.o(.text+0x197):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:80: undefined reference to `rt_task_init'
simpleclient.o(.text+0x1ae):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:82: undefined reference to `rt_socket_close'
simpleclient.o(.text+0x1d0):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:88: undefined reference to `rt_make_hard_real_time'
simpleclient.o(.text+0x1e2):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:91: undefined reference to `rt_socket_bind'
simpleclient.o(.text+0x1fa):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:95: undefined reference to `rt_socket_connect'
simpleclient.o(.text+0x20d):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:99: undefined reference to `rt_socket_send'
simpleclient.o(.text+0x215):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:102: undefined reference to `rt_make_soft_real_time'
simpleclient.o(.text+0x220):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:106: undefined reference to `rt_socket_close'
simpleclient.o(.text+0x22e):../../../rtnet/examples/rtnet_lxrt/simpleclient.c:109: undefined reference to `rt_task_delete'
collect2: ld returned 1 exit status
make[2]: *** [simpleclient] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
 
The file "simpleclient.c" includes the header file "rtnet.h". There is the definition of rt_socket,...in the file "rtnet.h". Why did the error happen?
How should I resolve the problem?
 
BTW: "rtai_lxrt" is installed normally.
 
Thanks in advance.
Tannykie


使用 MSN Messenger 与联机的朋友进行交流 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ RTnet-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to