Build error with -DWITHOUT_TCP
WANG Tinggong
wangtinggong at gmail.com
Thu Feb 4 17:33:20 CET 2010
Hi all,
After add -DWITHOUT_TCP flag in src/main/Makefile:
CFLAGS += -DWITHOUT_TCP
I got an error:
client.c: In function 'client_find_old':
client.c:498: error: too few arguments to function 'client_find'
I fixed it with a patch below and compiled it again,
more errors show up.
event.c:635: warning: no previous prototype for 'revive_home_server'
event.c:853: warning: no previous prototype for 'mark_home_server_dead'
event.c: In function 'event_new_fd':
event.c:3453: error: 'rad_listen_t' has no member named 'count'
event.c:3455: error: 'remove_all_requests' undeclared (first use in this function)
event.c:3455: error: (Each undeclared identifier is reported only once
event.c:3455: error: for each function it appears in.)
event.c:3458: error: 'rad_listen_t' has no member named 'count'
event.c:3465: error: 'rad_listen_t' has no member named 'count'
event.c:3483: error: 'rad_listen_t' has no member named 'count'
event.c:3486: error: 'remove_all_proxied_requests' undeclared (first use in this function)
event.c:3488: error: 'rad_listen_t' has no member named 'count'
event.c:3544: error: 'rad_listen_t' has no member named 'count'
event.c:3560: error: 'rad_listen_t' has no member named 'count'
event.c:3582: error: 'listen_socket_t' has no member named 'ev'
event.c:3600: error: 'rad_listen_t' has no member named 'count'
event.c:3636: error: 'listen_socket_t' has no member named 'ev'
event.c:3636: error: 'listen_socket_t' has no member named 'ev'
event.c: In function 'handle_signal_self':
event.c:3732: error: 'tcp_socket_lifetime' undeclared (first use in this function)
event.c:3737: error: 'tcp_socket_idle_timeout' undeclared (first use in this function)
event.c:3741: error: 'listen_socket_t' has no member named 'ev'
make: *** [event.lo] Error 1
I've fetched the newest stable tree, what's wrong?
Here is the patch for
client.c:498: error: too few arguments to function 'client_find'
thanks
Tinggong
---
diff --git a/src/main/client.c b/src/main/client.c
index 247ce1d..596b09e 100644
--- a/src/main/client.c
+++ b/src/main/client.c
@@ -489,14 +489,17 @@ RADCLIENT *client_find(const RADCLIENT_LIST *clients,
/*
* Old wrapper for client_find
*/
+#ifdef WITH_TCP
RADCLIENT *client_find_old(const fr_ipaddr_t *ipaddr)
{
- return client_find(root_clients, ipaddr
-#ifdef WITH_TCP
- , IPPROTO_UDP
-#endif
- );
+ return client_find(root_clients, ipaddr, IPPROTO_TCP);
+}
+#else
+RADCLIENT *client_find_old(const fr_ipaddr_t *ipaddr)
+{
+ return client_find(root_clients, ipaddr, IPPROTO_UDP);
}
+#endif
static struct in_addr cl_ip4addr;
static struct in6_addr cl_ip6addr;
--
1.6.0.6
More information about the Freeradius-Devel
mailing list