Hello Marc,

Hmm - strange problem - Please don't use RTnet's CVS cause it's broken,
stick at the 0.6.0 release.

ok, I just downloaded it from the website.


Indeed we have a weird order in the include search paths (first kernel
then RTAI). But we use this order since I autotoolized rtnet and never
caused problems. Anyway - here is a patch against the 0.6.0 release
that should fix this. Don't forget to run ./autogen.sh after using this
patch.

Thanx a lot for your patch!


But unfortunately I still have the same problem, although the rtai headerfiles are now included before the linux kernel headerfiles:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include -I../../lib -I/usr/local/tao-rtai/rtai/include -D__KERNEL__ -I/usr/local/tao-rtai/linux-2.4-rtai-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DEXPORT_SYMTAB -s -s -MT interrupt.o -MD -MP -MF ".deps/interrupt.Tpo" \
-c -o interrupt.o `test -f 'interrupt.c' || echo './'`interrupt.c; \
then mv -f ".deps/interrupt.Tpo" ".deps/interrupt.Po"; \
else rm -f ".deps/interrupt.Tpo"; exit 1; \
fi
In file included from /usr/local/tao-rtai/rtai/include/asm/rtai.h:7,
from /usr/local/tao-rtai/rtai/include/rtai.h:11,
from ../../include/rtnet_sys_rtai.h:35,
from ../../include/rtnet_sys.h:40,
from ../../include/rtnet_internal.h:27,
from ../../include/rtskb.h:28,
from ../../include/rtdev.h:30,
from ../../include/rtnet_port.h:27,
from tulip.h:30,
from interrupt.c:18:
/usr/local/tao-rtai/rtai/include/asm/rtai-24.h: In function `rt_spin_lock_irqsave':
/usr/local/tao-rtai/rtai/include/asm/rtai-24.h:339: warning: implicit declaration of function `hard_save_flags_and_cli'
In file included from ../../include/rtdev.h:30,
from ../../include/rtnet_port.h:27,
from tulip.h:30,
from interrupt.c:18:
../../include/rtskb.h: In function `rtskb_queue_head':
../../include/rtskb.h:281: warning: implicit declaration of function `hard_restore_flags'


Here is the commandline with which I configured RTnet:

./configure --enable-allpci --prefix=/usr/local/tao-rtai/target/ --with-rtai=/usr/local/tao-rtai/rtai --with-module-dir=/usr/local/tao-rtai/target/lib/modules/2.4.22-adeos/rtai


-- Hans-Peter Bock Dipl.-Ing.

ISW - Universitaet Stuttgart
Seidenstrasse 36
D-70174 Stuttgart

http://www.isw.uni-stuttgart.de/

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to