Compile problems on Solaris 10
Eshun Benjamin
bkeshun at yahoo.fr
Fri Mar 16 09:51:15 CET 2007
gcc -Wall -fPIC -c pam_radius_auth.c -o pam_radius_auth.o
In file included from pam_radius_auth.h:23,
from pam_radius_auth.c:63:
md5.h:21: error: syntax error before 'u_int32_t'
md5.h:21: warning: no semicolon at end of struct or union
check out what is going on in pam_radius_auth.h on line 23
==================================================
Benjamin K. Eshun
----- Message d'origine ----
De : Paul Goodman <pgoodman at ucar.edu>
À : freeradius-users at lists.freeradius.org
Envoyé le : Jeudi, 15 Mars 2007, 17h34mn 51s
Objet : Compile problems on Solaris 10
I am trying to compile the pam_radius-1.3.16 modules on a Solaris 10 system, but when I run make, I get the following error:
gcc -Wall -fPIC -c pam_radius_auth.c -o pam_radius_auth.o
In file included from pam_radius_auth.h:23,
from pam_radius_auth.c:63:
md5.h:21: error: syntax error before 'u_int32_t'
md5.h:21: warning: no semicolon at end of struct or union
md5.h:22: warning: type defaults to 'int' in declaration of 'bits'
md5.h:22: warning: data definition has no type or storage class
md5.h:24: error: syntax error before '}' token
md5.h:29: error: syntax error before 'buf'
pam_radius_auth.c: In function 'get_random_vector':
pam_radius_auth.c:350: error: storage size of 'my_md5' isn't known
pam_radius_auth.c:350: warning: unused variable 'my_md5'
pam_radius_auth.c: In function 'get_accounting_vector':
pam_radius_auth.c:382: error: storage size of 'my_md5' isn't known
pam_radius_auth.c:382: warning: unused variable 'my_md5'
pam_radius_auth.c: In function 'verify_packet':
pam_radius_auth.c:400: error: storage size of 'my_md5' isn't known
pam_radius_auth.c:400: warning: unused variable 'my_md5'
pam_radius_auth.c: In function 'add_password':
pam_radius_auth.c:497: error: storage size of 'md5_secret' isn't known
pam_radius_auth.c:497: error: storage size of 'my_md5' isn't known
pam_radius_auth.c:497: warning: unused variable 'my_md5'
pam_radius_auth.c:497: warning: unused variable 'md5_secret'
pam_radius_auth.c: In function 'rad_converse':
pam_radius_auth.c:1016: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_radius_auth.c:1019: warning: passing argument 2 of 'conv->conv' from incompatible pointer type
pam_radius_auth.c: In function 'pam_sm_authenticate':
pam_radius_auth.c:1071: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type
pam_radius_auth.c:1099: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_radius_auth.c:1113: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_radius_auth.c:1146: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_radius_auth.c: In function 'pam_private_session':
pam_radius_auth.c:1267: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type
pam_radius_auth.c:1288: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_radius_auth.c: In function 'pam_sm_chauthtok':
pam_radius_auth.c:1374: warning: passing argument 2 of 'pam_get_user' from incompatible pointer type
pam_radius_auth.c:1395: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_radius_auth.c:1404: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_radius_auth.c:1409: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
gmake: *** [pam_radius_auth.o] Error 1
The same is true when I use the Sun cc (Studio 11 compiler). I am using gcc 4.0.2 (the most recent version I could get to run on Solaris).
Output of uname -a is:
SunOS xxxx 5.10 Generic_118833-36 sun4u sparc SUNW,A70
Does anyone have a suggestion as to how to modify the header file to make it work or know where I can find pre-compiled modules for Solaris?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070316/9221b8d4/attachment.html>
More information about the Freeradius-Users
mailing list