failure to build if no openSSL headers are around - WiMAX module

Alan Buxey A.L.M.Buxey at lboro.ac.uk
Fri Mar 4 18:49:38 CET 2011


hi,

just a quick note, it seems that if the openSSL headers/dev chain is not around
then the configure doesnt check for this properly for WiMAX - so the build
fails because it tries to build Wimax stuff even though wimax needs some
openssl dev/headers:


creating rlm_unix.la
(cd .libs && rm -f rlm_unix.la && ln -s ../rlm_unix.la rlm_unix.la)
for x in .libs/* rlm_unix.la; do \
		rm -rf /usr/src/freeradius-src/src/modules/lib/$x; \
		ln -s /usr/src/freeradius-src/src/modules/rlm_unix/$x /usr/src/freeradius-src/src/modules/lib/$x; \
	done
gmake[6]: Leaving directory `/usr/src/freeradius-src/src/modules/rlm_unix'
Making all in rlm_wimax...
gmake[6]: Entering directory `/usr/src/freeradius-src/src/modules/rlm_wimax'
/usr/src/freeradius-src/libtool --mode=compile gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -I/usr/src/freeradius-src/src   -c rlm_wimax.c
mkdir .libs
 gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -I/usr/src/freeradius-src/src -c rlm_wimax.c  -fPIC -DPIC -o .libs/rlm_wimax.o
rlm_wimax.c:27:26: error: openssl/hmac.h: No such file or directory
rlm_wimax.c: In function 'wimax_postauth':
rlm_wimax.c:175: error: 'HMAC_CTX' undeclared (first use in this function)
rlm_wimax.c:175: error: (Each undeclared identifier is reported only once
rlm_wimax.c:175: error: for each function it appears in.)
rlm_wimax.c:175: error: expected ';' before 'hmac'
rlm_wimax.c:180: error: 'EVP_MAX_MD_SIZE' undeclared (first use in this function)
rlm_wimax.c:216: warning: implicit declaration of function 'HMAC_CTX_init'
rlm_wimax.c:216: warning: nested extern declaration of 'HMAC_CTX_init'
rlm_wimax.c:216: error: 'hmac' undeclared (first use in this function)
rlm_wimax.c:217: warning: implicit declaration of function 'HMAC_Init_ex'
rlm_wimax.c:217: warning: nested extern declaration of 'HMAC_Init_ex'
rlm_wimax.c:217: warning: implicit declaration of function 'EVP_sha256'
rlm_wimax.c:217: warning: nested extern declaration of 'EVP_sha256'
rlm_wimax.c:219: warning: implicit declaration of function 'HMAC_Update'
rlm_wimax.c:219: warning: nested extern declaration of 'HMAC_Update'
rlm_wimax.c:220: warning: implicit declaration of function 'HMAC_Final'
rlm_wimax.c:220: warning: nested extern declaration of 'HMAC_Final'
rlm_wimax.c:308: warning: implicit declaration of function 'EVP_sha1'
rlm_wimax.c:308: warning: nested extern declaration of 'EVP_sha1'
rlm_wimax.c:545: warning: implicit declaration of function 'HMAC_CTX_cleanup'
rlm_wimax.c:545: warning: nested extern declaration of 'HMAC_CTX_cleanup'
rlm_wimax.c:181: warning: unused variable 'mip_rk'
rlm_wimax.c:180: warning: unused variable 'mip_rk_2'
rlm_wimax.c:180: warning: unused variable 'mip_rk_1'


dont ask why I'm breaking it in this way.... ;-)

alan



More information about the Freeradius-Devel mailing list