Re: [RTnet-developers] rtnet 0.9.11 compile problem
Brought to you by:
bet-frogger,
kiszka
|
From: Jan K. <jan...@we...> - 2009-09-15 19:07:09
|
Dietrich Pescoller wrote:
> Dear all,
>
> I tried to upgrade to rtnet 0.9.11 with kernel 2.19.7 and rtai 3.6-cv, but I m
> not able to compile i get the following errors:
>
> In file included from /usr/src/rtnet-0.9.11/stack/rtnet_module.c:33:
> /usr/src/rtnet-0.9.11/stack/include/rtnet_socket.h:101: error: expected
> declaration specifiers or '...' before 'rtdm_selector_t'
> /usr/src/rtnet-0.9.11/stack/include/rtnet_socket.h:103: warning: 'enum
> rtdm_selecttype' declared inside parameter list
> /usr/src/rtnet-0.9.11/stack/include/rtnet_socket.h:103: warning: its scope is
> only this definition or declaration, which is probably not what you want
> make[4]: *** [/usr/src/rtnet-0.9.11/stack/rtnet_module.o] Error 1
> make[3]: *** [_module_/usr/src/rtnet-0.9.11/stack] Error 2
> make[3]: Leaving directory `/usr/src/linux-2.6.19.7-rtai-3.6'
> make[2]: *** [all-local.ko] Error 2
> make[2]: Leaving directory `/usr/src/rtnet-0.9.11/stack'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/rtnet-0.9.11/stack'
> make: *** [all-recursive] Error 1
>
>
> No problem indeed using rtnet-0.9.9 which compiles properly,
> shall I avoid the upgrade or is there a simple solution for the problem I get?
>
Hmm, looks like we have no proper feature check in the internal header.
Does this help?
diff --git a/stack/include/rtnet_socket.h b/stack/include/rtnet_socket.h
index 077c0e5..20bd42c 100644
--- a/stack/include/rtnet_socket.h
+++ b/stack/include/rtnet_socket.h
@@ -97,9 +97,11 @@ int rt_socket_common_ioctl(struct rtdm_dev_context *context,
int rt_socket_if_ioctl(struct rtdm_dev_context *context,
rtdm_user_info_t *user_info,
int request, void *arg);
+#ifdef CONFIG_RTNET_SELECT_SUPPORT
int rt_socket_select_bind(struct rtdm_dev_context *context,
rtdm_selector_t *selector,
enum rtdm_selecttype type,
unsigned fd_index);
+#endif /* CONFIG_RTNET_SELECT_SUPPORT */
#endif /* __RTNET_SOCKET_H_ */
Jan
|