Compiling FR 1.1.0

Paul Khavkine paul.khavkine at distributel.ca
Fri Jan 13 17:39:33 CET 2006


On Fri, 2006-01-13 at 17:11 +0800, Rohaizam Abu Bakar wrote:
>  
> Tested with FBSD 4.11 error with rlm_attr_rewrite... After remove the
> folder... then error with rlm_otp
>  
> #######################################
> Making all in cardops ...
> gmake[6]: Entering directory
> `/var/src/freeradius-1.1.0/src/modules/rlm_otp/cardops'
> gcc  -g -O2 -pthread -D_THREAD_SAFE -DOPENSSL_NO_KRB5   -Wall
> -D_GNU_SOURCE -DNDEBUG  -I../../../include -DOTP_MODULE_NAME="rlm_otp"
> -DFREERADIUS  -c cryptocard.c -o cryptocard.o
> In file included from /usr/include/openssl/des.h:66,
>                  from ../otp.h:32,
>                  from cryptocard.c:26:
> /usr/include/openssl/opensslconf.h:177: warning: `OPENSSL_NO_KRB5'
> redefined
> *Initialization*:1: warning: this is the location of the previous
> definition
> cryptocard.c: In function `cryptocard_updatecsd':
> cryptocard.c:230: syntax error before `PRIx32'
> cryptocard.c: In function `cryptocard_isconsecutive':
> cryptocard.c:255: syntax error before `SCNx32'
> cryptocard.c:252: warning: unused variable `nextewin'
> cryptocard.c: At top level:
> cryptocard.c:260: syntax error before `++'
> cryptocard.c:58: warning: `cryptocard_name2fm' defined but not used
> cryptocard.c:78: warning: `cryptocard_keystring2keyblock' defined but
> not used
> cryptocard.c:110: warning: `cryptocard_nullstate' defined but not used
> cryptocard.c:139: warning: `cryptocard_challenge' defined but not used
> cryptocard.c:184: warning: `cryptocard_response' defined but not used
> cryptocard.c:226: warning: `cryptocard_updatecsd' defined but not used
> cryptocard.c:251: warning: `cryptocard_isconsecutive' defined but not
> used
> cryptocard.h:59: warning: `cryptocard_maxtwin' declared `static' but
> never defined
> cryptocard.h:62: warning: `cryptocard_printchallenge' declared
> `static' but never defined
> gmake[6]: *** [cryptocard.o] Error 1
> gmake[6]: Leaving directory
> `/var/src/freeradius-1.1.0/src/modules/rlm_otp/cardops'
> gmake[5]: *** [cardops/cryptocard.lo] Error 2
> gmake[5]: Leaving directory
> `/var/src/freeradius-1.1.0/src/modules/rlm_otp'
> gmake[4]: *** [common] Error 2
> gmake[4]: Leaving directory `/var/src/freeradius-1.1.0/src/modules'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory `/var/src/freeradius-1.1.0/src/modules'
> gmake[2]: *** [common] Error 2
> gmake[2]: Leaving directory `/var/src/freeradius-1.1.0/src'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/var/src/freeradius-1.1.0/src'
> gmake: *** [common] Error 2
> *** Error code 2
> ###########################################3
>  
>  
> Tested with FBSD 6.0... OK with rlm_attr_rewrite .... but problem with
> rlm_otp with different from FBSD4.11

This problem is also present in FreeBSD 6.0-RELEASE

sys/un.h is not included properly.

Looking at the file i see this:

#if defined(__linux__) || defined(__APPLE__)
#include <sys/un.h>
#endif

Removing the #if defined made it build properly, this file should be included for at least the BSD platforms.



Cheers
Paul

 
> #############
> otp_state.c: In function `otp_state_connect':
> otp_state.c:482: error: storage size of 'sa' isn't known
> otp_state.c:482: warning: unused variable `sa'
> gmake[5]: *** [otp_state.o] Error 1
> gmake[5]: Leaving directory
> `/var/src/freeradius-1.1.0/src/modules/rlm_otp'
> gmake[4]: *** [common] Error 2
> gmake[4]: Leaving directory `/var/src/freeradius-1.1.0/src/modules'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory `/var/src/freeradius-1.1.0/src/modules'
> gmake[2]: *** [common] Error 2
> gmake[2]: Leaving directory `/var/src/freeradius-1.1.0/src'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/var/src/freeradius-1.1.0/src'
> gmake: *** [common] Error 2
> *** Error code 2
> ############################## 
>  
>  
> --haizam
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 305 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20060113/ffea2615/attachment.pgp>


More information about the Freeradius-Users mailing list