rlm_raw not included in compile
Johan Meiring
jmeiring at pcservices.co.za
Fri May 29 12:55:55 CEST 2009
Johan Meiring wrote:
> Hi all,
>
> I am trying to use the rlm_raw module to test a piece of code.
>
OK....
After struggling for about 4 hours, I did the following....
1) touch src/modules/rlm_raw/configure
2) ./autogen.sh
3) added rlm_raw to debian configure by editing debian/rules
Now it tries to compile it, but fails horribly. (See compile failure below).
Does anyone have a clue how to add rlm_raw to the current git tar file?
PS: The rlm_raw I'm using comes from
http://lists.cistron.nl/pipermail/freeradius-devel/2005-January/007873.html
------------SNIP--------------
make[6]: Entering directory
`/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/src/modules/rlm_raw'
/usr/bin/libtool --mode=compile gcc -Wall -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-server-2.1.7-pre/freeradius-server-2.1.7/src
-I/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/libltdl
-D_LIBRADIUS -c rlm_raw.c
gcc -Wall -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-server-2.1.7-pre/freeradius-server-2.1.7/src
-I/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/libltdl
-D_LIBRADIUS -c rlm_raw.c -fPIC -DPIC -o .libs/rlm_raw.o
rlm_raw.c:22:22: error: autoconf.h: No such file or directory
rlm_raw.c:23:23: error: libradius.h: No such file or directory
rlm_raw.c:28:21: error: radiusd.h: No such file or directory
rlm_raw.c:29:21: error: modules.h: No such file or directory
rlm_raw.c:30:22: error: conffile.h: No such file or directory
rlm_raw.c:46: error: expected specifier-qualifier-list before ‘uint8_t’
rlm_raw.c:57: error: expected declaration specifiers or ‘...’ before
‘REQUEST’
rlm_raw.c:59: error: expected declaration specifiers or ‘...’ before
‘RADIUS_ESCAPE_STRING’
rlm_raw.c: In function ‘raw_xlat’:
rlm_raw.c:61: error: ‘uint8_t’ undeclared (first use in this function)
rlm_raw.c:61: error: (Each undeclared identifier is reported only once
rlm_raw.c:61: error: for each function it appears in.)
rlm_raw.c:61: error: expected ‘;’ before ‘strvalue’
rlm_raw.c:62: error: ‘uint32_t’ undeclared (first use in this function)
rlm_raw.c:62: error: expected ‘;’ before ‘lvalue’
rlm_raw.c:63: error: expected ‘;’ before ‘vendorcode’
rlm_raw.c:70: error: ‘PW_TYPE_OCTETS’ undeclared (first use in this
function)
rlm_raw.c:71: error: ‘ATTR_FLAGS’ undeclared (first use in this function)
rlm_raw.c:71: error: expected ‘;’ before ‘flags’
rlm_raw.c:72: error: ‘DICT_ATTR’ undeclared (first use in this function)
rlm_raw.c:72: error: ‘da’ undeclared (first use in this function)
rlm_raw.c:73: error: ‘DICT_VALUE’ undeclared (first use in this function)
rlm_raw.c:73: error: ‘dv’ undeclared (first use in this function)
rlm_raw.c:76: error: ‘request’ undeclared (first use in this function)
rlm_raw.c:77: error: ‘ptr’ undeclared (first use in this function)
rlm_raw.c:77: error: ‘radius_packet_t’ has no member named ‘data’
rlm_raw.c:78: error: ‘subptr’ undeclared (first use in this function)
rlm_raw.c:79: error: ‘AUTH_HDR_LEN’ undeclared (first use in this function)
rlm_raw.c:82: error: storage size of ‘s_tm’ isn’t known
rlm_raw.c:87: warning: implicit declaration of function ‘dict_attrbyname’
rlm_raw.c:87: warning: nested extern declaration of ‘dict_attrbyname’
rlm_raw.c:89: warning: implicit declaration of function ‘strNcpy’
rlm_raw.c:89: warning: nested extern declaration of ‘strNcpy’
rlm_raw.c:92: error: ‘flags’ undeclared (first use in this function)
rlm_raw.c:96: error: ‘vendorcode’ undeclared (first use in this function)
rlm_raw.c:109: error: ‘PW_VENDOR_SPECIFIC’ undeclared (first use in this
function)
rlm_raw.c:111: warning: implicit declaration of function ‘memcpy’
rlm_raw.c:111: warning: incompatible implicit declaration of built-in
function ‘memcpy’
rlm_raw.c:111: error: ‘lvalue’ undeclared (first use in this function)
rlm_raw.c:112: warning: implicit declaration of function ‘ntohl’
rlm_raw.c:112: warning: nested extern declaration of ‘ntohl’
rlm_raw.c:151: error: ‘VENDORPEC_USR’ undeclared (first use in this
function)
rlm_raw.c:154: warning: implicit declaration of function ‘dict_attrbyvalue’
rlm_raw.c:154: warning: nested extern declaration of ‘dict_attrbyvalue’
rlm_raw.c:180: error: ‘PW_TYPE_STRING’ undeclared (first use in this
function)
rlm_raw.c:182: warning: implicit declaration of function ‘TAG_VALID_ZERO’
rlm_raw.c:182: warning: nested extern declaration of ‘TAG_VALID_ZERO’
rlm_raw.c:182: error: ‘FLAG_ENCRYPT_TUNNEL_PASSWORD’ undeclared (first
use in this function)
rlm_raw.c:186: warning: incompatible implicit declaration of built-in
function ‘memcpy’
rlm_raw.c:186: error: ‘strvalue’ undeclared (first use in this function)
rlm_raw.c:192: error: ‘PW_NAS_PORT’ undeclared (first use in this function)
rlm_raw.c:195: warning: implicit declaration of function ‘librad_safeprint’
rlm_raw.c:195: warning: nested extern declaration of ‘librad_safeprint’
rlm_raw.c:205: error: ‘PW_TYPE_INTEGER’ undeclared (first use in this
function)
rlm_raw.c:206: error: ‘PW_TYPE_DATE’ undeclared (first use in this function)
rlm_raw.c:207: error: ‘PW_TYPE_IPADDR’ undeclared (first use in this
function)
rlm_raw.c:239: warning: implicit declaration of function ‘dict_valbyattr’
rlm_raw.c:239: warning: nested extern declaration of ‘dict_valbyattr’
rlm_raw.c:247: warning: implicit declaration of function ‘strftime’
rlm_raw.c:247: warning: incompatible implicit declaration of built-in
function ‘strftime’
rlm_raw.c:247: warning: implicit declaration of function ‘localtime_r’
rlm_raw.c:247: warning: nested extern declaration of ‘localtime_r’
rlm_raw.c:247: warning: passing argument 4 of ‘strftime’ makes pointer
from integer without a cast
rlm_raw.c:251: warning: implicit declaration of function ‘ip_ntoa’
rlm_raw.c:251: warning: nested extern declaration of ‘ip_ntoa’
rlm_raw.c:251: warning: assignment makes pointer from integer without a cast
rlm_raw.c:257: error: ‘PW_TYPE_IFID’ undeclared (first use in this function)
rlm_raw.c:262: warning: implicit declaration of function ‘ifid_ntoa’
rlm_raw.c:262: warning: nested extern declaration of ‘ifid_ntoa’
rlm_raw.c:262: warning: assignment makes pointer from integer without a cast
rlm_raw.c:268: error: ‘PW_TYPE_IPV6ADDR’ undeclared (first use in this
function)
rlm_raw.c:273: warning: implicit declaration of function ‘ipv6_ntoa’
rlm_raw.c:273: warning: nested extern declaration of ‘ipv6_ntoa’
rlm_raw.c:273: warning: assignment makes pointer from integer without a cast
rlm_raw.c:277: warning: implicit declaration of function ‘DEBUG’
rlm_raw.c:277: warning: nested extern declaration of ‘DEBUG’
rlm_raw.c:282: warning: implicit declaration of function ‘strcpy’
rlm_raw.c:282: warning: incompatible implicit declaration of built-in
function ‘strcpy’
rlm_raw.c:292: warning: implicit declaration of function ‘DEBUG2’
rlm_raw.c:292: warning: nested extern declaration of ‘DEBUG2’
rlm_raw.c:294: warning: implicit declaration of function ‘strlen’
rlm_raw.c:294: warning: incompatible implicit declaration of built-in
function ‘strlen’
rlm_raw.c:82: warning: unused variable ‘s_tm’
rlm_raw.c:57: warning: unused parameter ‘instance’
rlm_raw.c: At top level:
rlm_raw.c:307: error: expected ‘)’ before ‘*’ token
rlm_raw.c: In function ‘raw_detach’:
rlm_raw.c:335: warning: implicit declaration of function ‘xlat_unregister’
rlm_raw.c:335: warning: nested extern declaration of ‘xlat_unregister’
rlm_raw.c: At top level:
rlm_raw.c:351: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘rlm_raw’
make[6]: *** [rlm_raw.lo] Error 1
make[6]: Leaving directory
`/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/src/modules/rlm_raw'
make[5]: *** [common] Error 2
make[5]: Leaving directory
`/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/src/modules'
make[3]: *** [common] Error 2
make[3]: Leaving directory
`/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7/src'
make[1]: *** [common] Error 2
make[1]: Leaving directory
`/usr/src/freeradius-server-2.1.7-pre/freeradius-server-2.1.7'
make: *** [all] Error 2
--------------SNIP------------------------
--
Johan Meiring
Cape PC Services CC
Tel: (021) 883-8271
Fax: (021) 886-7782
More information about the Freeradius-Users
mailing list