compiler Error at "radsniff.h"
Thomas Cornelsen
Black-Tiger-2000 at web.de
Thu Jun 5 17:17:28 CEST 2008
Hi all!
i can`t compile Freeradius with the "Radius Sniffer Module".
If i compile without the "libpcap"-Library the Compiler throws NO Error! Everything seems to be fine.
If i install the libpcap Library the Compiler throws Errors at "radsniff.h"
I really hope that someone has a suggestion!
thanks a lot!
-Tom
OS: Solaris 9
Freeradius-Version: 2.0.4
libpcap-libaries: Tested Versions: 0.9.8 and 0.9.7 and 0.9.6 (tested as binaries and also tested with source code)
compiler: gcc 3.3.1 and also tested with gcc 3.4.6 (binary package)
Linker: gnu ld: Version: binutils-2.11.2
0/freeradius-server-2.0.4/src -DHOSTINFO=\"sparc-sun-solaris2.9\" -DRADIUSD_VERSION=\"2.0.4\" -I/soft/ssl/include -DOPENSSL_NO_KRB5 -c radsniff.c -fPIC -DPIC -o .libs/radsniff.o
In file included from radsniff.c:34:
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:39: error: parse error before "u_int8_t"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:39: warning: no semicolon at end of struct or union
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:40: warning: type defaults to `int' in declaration of `ethernet_shost'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:40: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:41: error: parse error before "ethernet_type"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:41: warning: type defaults to `int' in declaration of `ethernet_type'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:41: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:56: error: parse error before "u_int8_t"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:56: warning: no semicolon at end of struct or union
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:59: warning: type defaults to `int' in declaration of `ip_tos'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:59: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:60: error: parse error before "ip_len"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:60: warning: type defaults to `int' in declaration of `ip_len'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:60: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:61: error: parse error before "ip_id"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:61: warning: type defaults to `int' in declaration of `ip_id'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:61: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:62: error: parse error before "ip_off"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:62: warning: type defaults to `int' in declaration of `ip_off'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:62: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:66: error: parse error before "ip_ttl"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:66: warning: type defaults to `int' in declaration of `ip_ttl'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:66: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:67: error: parse error before "ip_p"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:67: warning: type defaults to `int' in declaration of `ip_p'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:67: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:68: error: parse error before "ip_sum"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:68: warning: type defaults to `int' in declaration of `ip_sum'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:68: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:70: error: parse error before '}' token
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:77: error: parse error before "u_int16_t"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:77: warning: no semicolon at end of struct or union
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:78: warning: type defaults to `int' in declaration of `udp_dport'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:78: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:79: error: parse error before "udp_ulen"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:79: warning: type defaults to `int' in declaration of `udp_ulen'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:79: warning: data definition has no type or storage class
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:80: error: parse error before "udp_sum"
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:80: warning: type defaults to `int' in declaration of `udp_sum'
/export/home/users/cot39070/freeradius-server-2.0.4/src/freeradius-devel/radsniff.h:80: warning: data definition has no type or storage class
radsniff.c: In function `got_packet':
radsniff.c:135: error: invalid application of `sizeof' to an incomplete type
radsniff.c:136: error: invalid application of `sizeof' to an incomplete type
radsniff.c:137: error: invalid application of `sizeof' to an incomplete type
radsniff.c:157: error: dereferencing pointer to incomplete type
radsniff.c:158: error: dereferencing pointer to incomplete type
radsniff.c:160: error: dereferencing pointer to incomplete type
radsniff.c:161: error: dereferencing pointer to incomplete type
radsniff.c:163: warning: assignment discards qualifiers from pointer target type
radsniff.c:188: error: dereferencing pointer to incomplete type
radsniff.c:188: error: dereferencing pointer to incomplete type
radsniff.c:189: error: dereferencing pointer to incomplete type
radsniff.c:189: error: dereferencing pointer to incomplete type
radsniff.c: In function `main':
radsniff.c:315: error: invalid application of `sizeof' to an incomplete type
radsniff.c:315: error: invalid application of `sizeof' to an incomplete type
radsniff.c:315: error: invalid application of `sizeof' to an incomplete type
make[4]: *** [radsniff.lo] Error 1
make[4]: Leaving directory `/export/home/users/cot39070/freeradius-server-2.0.4/src/main'
make[3]: *** [common] Error 2
make[3]: Leaving directory `/export/home/users/cot39070/freeradius-server-2.0.4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/export/home/users/cot39070/freeradius-server-2.0.4/src'
make[1]: *** [common] Error 2
make[1]: Leaving directory `/export/home/users/cot39070/freeradius-server-2.0.4'
make: *** [all] Error 2
Schon gehört? Der neue WEB.DE MultiMessenger kann`s mit allen:
*http://www.produkte.web.de/messenger/?did=3016* [http://www.produkte.web.de/messenger/?did=3016]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20080605/76906050/attachment.html>
More information about the Freeradius-Users
mailing list