On Wed, Jan 28, 2004 at 11:17:04AM +0100, Hans-Peter Bock wrote:
> when I compile RTnet I get warnings about the implicit declaration of 
> the functions rt_printk, rt_spin_lock_irqsave and hard_restore_flags. 
> RTnet also fails to load on the target platform because of these three 
> unresolved symbols. Does anybody have an idea what I am doing wrong?

> rtai version: actual stromboli branch from cvs
> rtnet version: actual version from cvs
> linux: 2.4.22
> gcc: 3.3.2

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

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.

Marc

-- 
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh
diff -ruN rtnet-0.6.0-orig/configure.ac rtnet-0.6.0/configure.ac
--- rtnet-0.6.0-orig/configure.ac       Fri Jan 16 15:05:38 2004
+++ rtnet-0.6.0/configure.ac    Thu Jan 29 13:12:08 2004
@@ -414,7 +414,7 @@
 
 case "${CONFIG_RTNET_RTAI_VERSION}" in
     24 )
-       RTAI_KMOD_CFLAGS="`sed -n -e "s/^CFLAGS=\(.*\)/\1/p" $RTAI_DIR/.buildvars` 
-I$RTAI_DIR/include -DEXPORT_SYMTAB -Wall"
+       RTAI_KMOD_CFLAGS="-I$RTAI_DIR/include `sed -n -e "s/^CFLAGS=\(.*\)/\1/p" 
$RTAI_DIR/.buildvars` -DEXPORT_SYMTAB"
        LXRT_CFLAGS="-I$RTAI_DIR/include -I$RTAI_DIR/lxrt/include"
        KERNEL_CFLAGS="-I$RTAI_LINUX_DIR/include"
        CONFIG_RTNET_RTAI_ARCH="`sed -n -e "s/^ARCH=\(.*\)/\1/p" $RTAI_DIR/.buildvars`"

Reply via email to