Compiling master branch

Kristoffer Milligan kristoffer at nextnet.no
Thu Mar 3 13:46:40 CET 2011


Due to the need for nested TLVs I'm trying to compile FreeRADIUS from 
the master branch:

git clone git://git.freeradius.org/freeradius-server.git

Also, I'm using FR for a WiMAX network, so I need the experimental modules:

./configure --with-experimental-modules

The configuration works fine, but when I try to compile the project, it 
fails:

root at radius:~/freeradius-server# make

.........
  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/root/freeradius-server/src 
-I/root/freeradius-server/src/modules/rlm_redis -c rlm_rediswho.c  -fPIC 
-DPIC -o .libs/rlm_rediswho.o
In file included from rlm_rediswho.c:32:
/root/freeradius-server/src/modules/rlm_redis/rlm_redis.h:35:29: error: 
hiredis/hiredis.h: No such file or directory
In file included from rlm_rediswho.c:32:
/root/freeradius-server/src/modules/rlm_redis/rlm_redis.h:46: error: 
expected specifier-qualifier-list before 'redisContext'
rlm_rediswho.c: In function 'rediswho_command':
rlm_rediswho.c:124: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c:125: error: 'REDIS_REPLY_INTEGER' undeclared (first use 
in this function)
rlm_rediswho.c:125: error: (Each undeclared identifier is reported only once
rlm_rediswho.c:125: error: for each function it appears in.)
rlm_rediswho.c:127: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c:129: error: 'REDIS_REPLY_STATUS' undeclared (first use in 
this function)
rlm_rediswho.c:130: error: 'REDIS_REPLY_STRING' undeclared (first use in 
this function)
rlm_rediswho.c:132: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c: In function 'rediswho_accounting_start':
rlm_rediswho.c:264: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c:264: error: 'REDIS_REPLY_INTEGER' undeclared (first use 
in this function)
rlm_rediswho.c:265: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c: In function 'rediswho_accounting_alive':
rlm_rediswho.c:281: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c:281: error: 'REDIS_REPLY_INTEGER' undeclared (first use 
in this function)
rlm_rediswho.c:282: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c: In function 'rediswho_accounting_stop':
rlm_rediswho.c:299: error: 'REDISSOCK' has no member named 'reply'
rlm_rediswho.c:299: error: 'REDIS_REPLY_INTEGER' undeclared (first use 
in this function)
rlm_rediswho.c:300: error: 'REDISSOCK' has no member named 'reply'
make[6]: *** [rlm_rediswho.lo] Error 1
make[6]: Leaving directory 
`/root/freeradius-server/src/modules/rlm_rediswho'
make[5]: *** [rlm_rediswho] Error 2
make[5]: Leaving directory `/root/freeradius-server/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/freeradius-server/src/modules'
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/root/freeradius-server/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/freeradius-server/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/root/freeradius-server'
make: *** [all] Error 2

What lib am I missing ? Or what flag can I throw at --without-XXXX to 
circumvent the problem?

- Kristoffer Milligan



More information about the Freeradius-Users mailing list