compile failure of 2.x.x GIT

Stefan Winter stefan.winter at restena.lu
Tue Mar 19 09:59:05 CET 2013


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

"name" is declared inside a #ifndef NDEBUG, but used outside. Same for "dst_ip_buf"

Wondering about the NDEBUG... I just used a stock "configure", only with
a non-standard --prefix.

Stefan

-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20130319/323c8ecf/attachment.pgp>


More information about the Freeradius-Devel mailing list