compile failure of 2.x.x GIT

Olivier Beytrison olivier at heliosnet.org
Tue Mar 19 11:30:14 CET 2013


On 19.03.2013 09:59, Stefan Winter wrote:
> Hi,
>
> since it's short before the 2.2.1 release, I thought it makes sense
> reporting buiild problems.
>
> I've just built on a shiny new openSUSE 12.3, which failed in the DHCP
> code:
>
>   gcc -I/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x -I/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -I/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x/libltdl -D_LIBRADIUS -I/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x/src -c dhcp.c  -fPIC -DPIC -o .libs/dhcp.o
> dhcp.c: In function 'fr_dhcp_encode':
> dhcp.c:1056:8: error: 'name' undeclared (first use in this function)
> dhcp.c:1056:8: note: each undeclared identifier is reported only once for each function it appears in
> dhcp.c:1065:8: error: 'dst_ip_buf' undeclared (first use in this function)
> dhcp.c:1214:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
> dhcp.c:1387:22: warning: variable 'pattr' set but not used [-Wunused-but-set-variable]
> dhcp.c: In function 'fr_dhcp_add_arp_entry':
> dhcp.c:1527:8: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat]
> dhcp.c:1527:8: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat]
> gmake[4]: *** [dhcp.lo] Fehler 1
> gmake[4]: Leaving directory `/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x/src/lib'
> gmake[3]: *** [lib] Fehler 2
> gmake[3]: Leaving directory `/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x/src'
> gmake[2]: *** [all] Fehler 2
> gmake[2]: Leaving directory `/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x/src'
> gmake[1]: *** [src] Fehler 2
> gmake[1]: Leaving directory `/root/freeradius-server-2.2.1-pre/freeradius-server-2.x.x'
> make: *** [all] Fehler 2

This is a known bug with --disable-developper. It has been corrected on 
the master branch. But I'll push the fix on the 2.x.x branch also.

Olivier
-- 
  Olivier Beytrison
  Network & Security Engineer, HES-SO Fribourg
  Mail: olivier at heliosnet.org


More information about the Freeradius-Devel mailing list