Alan DeKok, 2013-10-30 14:33:
Changelog is below.
It fixes all known problems in 2.2.1, and a few which weren't reported.
Nice! Passes our tests and seems to run fine. There's a build issue, though: When using --with-udpfromto (which we need in our multihomed setup), the compile fails:
$ make clean distclean && ./configure --with-udpfromto && make ... gcc -I/home/jh/build/freeradius/freeradius-server-2.2.2 -I/home/jh/build/freeradius/freeradius-server-2.2.2/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -I/home/jh/build/freeradius/freeradius-server-2.2.2/libltdl -I/home/jh/build/freeradius/freeradius-server-2.2.2/src -DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"020202\" -DRADIUSD_VERSION_STRING=\"2.2.2\" -c listen.c -fPIC -DPIC -o .libs/listen.o listen.c: In function ‘client_listener_find’: listen.c:237:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] request->listener = listener; ^ In file included from listen.c:1366:0: dhcpd.c: In function ‘dhcprelay_process_client_request’: dhcpd.c:120:34: error: ‘dhcp_socket_t’ has no member named ‘port’ request->packet->src_port = sock->port; ^ dhcpd.c: In function ‘dhcprelay_process_server_reply’: dhcpd.c:168:34: error: ‘dhcp_socket_t’ has no member named ‘port’ request->packet->src_port = sock->port; ^ In file included from listen.c:1366:0: dhcpd.c: In function ‘dhcp_socket_parse’: dhcpd.c:533:13: warning: unused variable ‘broadcast’ [-Wunused-variable] int rcode, broadcast = 1; ^ In file included from listen.c:1368:0: command.c: In function ‘command_inject_to’: command.c:1075:18: warning: variable ‘type’ set but not used [-Wunused-but-set-variable] RAD_LISTEN_TYPE type; ^ gmake[4]: *** [listen.lo] Error 1 gmake[4]: Leaving directory `/home/jh/build/freeradius/freeradius-server-2.2.2/src/main' gmake[3]: *** [main] Error 2 gmake[3]: Leaving directory `/home/jh/build/freeradius/freeradius-server-2.2.2/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/home/jh/build/freeradius/freeradius-server-2.2.2/src' gmake[1]: *** [src] Error 2 gmake[1]: Leaving directory `/home/jh/build/freeradius/freeradius-server-2.2.2' make: *** [all] Error 2
We don't need dhcp, so I added --without-dhcp and the compile succeeded. Regards Jakob