Hi,

For 24.x.x rtai builds the rtai-include-dir has to be included
 _before_ the linux-include-dir in the gcc arg list.

Seems to be the same for 3.x rtai...

Cheers,

        Steven.

On Wed, Jan 28, 2004 at 11:17:04AM +0100, Hans-Peter Bock wrote:
> Hello,
> 
> 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
> 
> RTnet is configured with:
> 
> /usr/local/tao-rtai/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
> 
> /usr/local/tao-rtai/rtnet$ make
> [...]
> if gcc -DHAVE_CONFIG_H -I. -I. -I../../config  -I../../include 
> -I../../include -I../../lib -D__KERNEL__ 
> -I/usr/local/tao-rtai/linux-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 
> -I/usr/local/tao-rtai/rtai/include -DEXPORT_SYMTAB -Wall -s  -s -MT 
> eeprom.o -MD -MP -MF ".deps/eeprom.Tpo" \
>   -c -o eeprom.o `test -f 'eeprom.c' || echo './'`eeprom.c; \
> then mv -f ".deps/eeprom.Tpo" ".deps/eeprom.Po"; \
> else rm -f ".deps/eeprom.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 eeprom.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 eeprom.c:18:
> ../../include/rtskb.h: In function `rtskb_queue_head':
> ../../include/rtskb.h:281: warning: implicit declaration of function 
> `hard_restore_flags'
> [...]
> 
> -- 
> Hans-Peter Bock
> Dipl.-Ing.
> 
> ISW - Universitaet Stuttgart
> Seidenstrasse 36
> D-70174 Stuttgart
> 
> http://www.isw.uni-stuttgart.de/



-- 
Steven Krekels       Email: steven<dot>krekels<at>alcatel<dot>be
Alcatel Bell Space   Phone: +32 3 829 51 75
Berkenrodelei 33     Fax:   +32 3 829 55 02
B-2660 Hoboken
Belgium              http://www.alcatel.be/space



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
RTnet-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to