Compilation errors with 1.0.5 (Solaris)
Heiden, John
JHeiden at UTNet.UToledo.Edu
Fri Mar 24 02:46:06 CET 2006
I am pretty sure I have seen this before, but after searching the
archives, I can't find the solution. Anyway, under Solaris 9
(SPARC) I get the following during compilation:
Making static dynamic in rlm_eap...
make[6]: Entering directory
`/home/jheiden/freeradius-1.0.5/src/modules/rlm_eap'
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5
-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../../include -I./libeap -c rlm_eap.c -o rlm_eap.o
In file included from rlm_eap.c:26:
rlm_eap.h:26:18: ltdl.h: No such file or directory
In file included from rlm_eap.c:26:
rlm_eap.h:36: error: parse error before "lt_dlhandle"
rlm_eap.h:36: warning: no semicolon at end of struct or union
rlm_eap.h:39: error: parse error before '}' token
rlm_eap.h:39: warning: type defaults to `int' in declaration of
`EAP_TYPES'
rlm_eap.h:39: warning: data definition has no type or storage class
rlm_eap.h:51: error: parse error before "EAP_TYPES"
rlm_eap.h:51: warning: no semicolon at end of struct or union
rlm_eap.h:66: error: parse error before '}' token
rlm_eap.h:66: warning: type defaults to `int' in declaration of
`rlm_eap_t'
rlm_eap.h:66: warning: data definition has no type or storage class
rlm_eap.h:70: error: parse error before '*' token
rlm_eap.h:70: warning: function declaration isn't a prototype
rlm_eap.h:71: error: parse error before '*' token
rlm_eap.h:71: warning: function declaration isn't a prototype
rlm_eap.h:72: error: parse error before '*' token
rlm_eap.h:72: warning: function declaration isn't a prototype
rlm_eap.h:75: error: parse error before '*' token
rlm_eap.h:75: warning: function declaration isn't a prototype
rlm_eap.h:79: error: parse error before '*' token
rlm_eap.h:79: warning: function declaration isn't a prototype
rlm_eap.h:89: error: parse error before '*' token
rlm_eap.h:89: warning: function declaration isn't a prototype
rlm_eap.h:90: error: parse error before '*' token
rlm_eap.h:90: warning: function declaration isn't a prototype
rlm_eap.h:91: error: parse error before '*' token
rlm_eap.h:92: warning: function declaration isn't a prototype
rlm_eap.c:33: error: parse error before ')' token
rlm_eap.c:33: error: initializer element is not constant
rlm_eap.c:33: error: (near initialization for `module_config[0].offset')
rlm_eap.c:33: warning: missing initializer
rlm_eap.c:33: warning: (near initialization for
`module_config[0].offset')
rlm_eap.c:33: error: initializer element is not constant
rlm_eap.c:33: error: (near initialization for `module_config[0]')
rlm_eap.c:35: error: parse error before ')' token
rlm_eap.c:35: error: initializer element is not constant
rlm_eap.c:35: error: (near initialization for `module_config[1].offset')
rlm_eap.c:35: warning: missing initializer
rlm_eap.c:35: warning: (near initialization for
`module_config[1].offset')
rlm_eap.c:35: error: initializer element is not constant
rlm_eap.c:35: error: (near initialization for `module_config[1]')
rlm_eap.c:37: error: parse error before ')' token
rlm_eap.c:37: error: initializer element is not constant
rlm_eap.c:37: error: (near initialization for `module_config[2].offset')
rlm_eap.c:37: warning: missing initializer
rlm_eap.c:37: warning: (near initialization for
`module_config[2].offset')
rlm_eap.c:37: error: initializer element is not constant
rlm_eap.c:37: error: (near initialization for `module_config[2]')
rlm_eap.c:39: error: parse error before ')' token
rlm_eap.c:39: error: initializer element is not constant
rlm_eap.c:39: error: (near initialization for `module_config[3].offset')
rlm_eap.c:39: warning: missing initializer
rlm_eap.c:39: warning: (near initialization for
`module_config[3].offset')
rlm_eap.c:39: error: initializer element is not constant
rlm_eap.c:39: error: (near initialization for `module_config[3]')
rlm_eap.c:41: error: initializer element is not constant
rlm_eap.c:41: error: (near initialization for `module_config[4]')
rlm_eap.c: In function `eap_detach':
rlm_eap.c:55: error: `inst' undeclared (first use in this function)
rlm_eap.c:55: error: (Each undeclared identifier is reported only once
rlm_eap.c:55: error: for each function it appears in.)
rlm_eap.c:58: error: parse error before ')' token
rlm_eap.c:53: warning: unused parameter `instance'
rlm_eap.c: At top level:
rlm_eap.c:82: warning: declaration of `cs' shadows a global declaration
rlm_eap.h:37: warning: shadowed declaration is here
rlm_eap.c: In function `eap_instantiate':
rlm_eap.c:87: error: `inst' undeclared (first use in this function)
rlm_eap.c:89: error: parse error before ')' token
rlm_eap.c: In function `eap_authenticate':
rlm_eap.c:199: error: `inst' undeclared (first use in this function)
rlm_eap.c:207: error: parse error before ')' token
rlm_eap.c:197: warning: unused parameter `instance'
rlm_eap.c: In function `eap_authorize':
rlm_eap.c:428: error: `inst' undeclared (first use in this function)
rlm_eap.c:432: error: parse error before ')' token
rlm_eap.c:426: warning: unused parameter `instance'
make[6]: *** [rlm_eap.o] Error 1
make[6]: Leaving directory
`/home/jheiden/freeradius-1.0.5/src/modules/rlm_eap'
make[5]: *** [common] Error 2
make[5]: Leaving directory `/home/jheiden/freeradius-1.0.5/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/jheiden/freeradius-1.0.5/src/modules'
make[3]: *** [common] Error 2
make[3]: Leaving directory `/home/jheiden/freeradius-1.0.5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jheiden/freeradius-1.0.5/src'
make[1]: *** [common] Error 2
make[1]: Leaving directory `/home/jheiden/freeradius-1.0.5'
make: *** [all] Error 2
Any suggestions/tips?
Thanks much in advance!
John
More information about the Freeradius-Users
mailing list