solaris 8 compilation problem of pam_radius

Reiko U. k1_god at hotmail.com
Mon Dec 5 14:10:59 CET 2005


hallo peter,

i'd compiling-problems with freeradius-1.0.5 on solaris10 (sparc). Following 
config solved the problem:

--------------------------------------------------------------------------------------------------------------------------------------------
To getting run freeradius-1.0.5 on Solaris 10 (SPARC) set up the following 
before compiling
(https://list.xs4all.nl/pipermail/freeradius-users/2005-November/048278.html)

uname -a: SunOS r220 5.10 Generic sun4u sparc SUNW,Ultra-60
$CC                     /usr/local/bin/gcc
$LD_LIBRARY_PATH        
/usr/sfw/lib/sparcv9/:/lib/sparcv9/:/usr/sfw/lib/:/lib:/usr/lib:/usr/local/lib:/usr/local/X11/lib:/usr/dt/lib:/usr/openwin/lib/:/usr/local/ssl/lib
$PATH                   
/usr/sbin:/usr/bin:/opt/sfw/bin/:/opt/sfw/sbin/:/sbin/:/usr/sbin/:/usr/ccs/bin/:/usr/local/bin:/usr/local/sbin/:/usr/local/ssl/bin/:/usr/local/ssl/misc/:/usr/sfw/bin:/opt/sfw/bin/:/usr/sfw/bin

pkginfo | grep gcc
utility     GNUgcc                           GNU gcc 3.4.4 SPARC 64bit
Solaris 10              (installed in /usr/local)
system      SUNWgcc                          gcc - The GNU C compiler
system      SUNWgccruntime                   GCC Runtime libraries


/usr/local/bin/gcc -v
read specs from /usr/local/lib/gcc/sparc64-sun-solaris2.10/3.4.4/specs
configured with: /var/tmp/gcc-3.4.4/configure --prefix=/usr/local
--host=sparc64-sun-solaris2.10 --enable-threads=posix
--with-gxx-include-dir=/usr/local/include/g++ --with-system-zlib
--enable-shared --with-ld=/usr/ccs/bin/ld --without-gnu-ld
Thread-Modell: posix
gcc-Version 3.4.4

!!!!! IMPORTANT: SETTING THE 'CFLAGS' before 'configure' 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
CLFAGS="-I../include -I/usr/sfw/include/openssl" ./configure 
--prefix=/usr/local/freeradius --localstatedir=/var/ --sysconfdir=/etc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

--------------------------------------------------------------------------------------------------------------------------
I can't say if it's a solution for your prob ... but you can try it.

good luck


>From: "Peter Bergmann" <peter.bergmann at gmx.de>
>Reply-To: FreeRadius users mailing list 
><freeradius-users at lists.freeradius.org>
>To: freeradius-users at lists.freeradius.org
>Subject: solaris 8 compilation problem of pam_radius
>Date: Mon, 5 Dec 2005 11:50:19 +0100 (MET)
>
>Hi,
>I want to use the client function of free-radius, but I've got a problem
>while compiling the pam_radius-1.3.16 module under solaris 8:
>
>Any ideas are welcome!!!
>
>Thanks Peter
>
>
>hqwww01tban{root} @: make
>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: parse 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: parse error before '}' token
>md5.h:29: error: parse error before "buf"
>pam_radius_auth.c: In function `ipstr2long':
>pam_radius_auth.c:179: warning: subscript has type `char'
>pam_radius_auth.c: In function `good_ipaddr':
>pam_radius_auth.c:215: warning: subscript has type `char'
>pam_radius_auth.c: In function `host2server':
>pam_radius_auth.c:271: warning: subscript has type `char'
>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 `md5_secret'
>pam_radius_auth.c:497: warning: unused variable `my_md5'
>pam_radius_auth.c: In function `rad_converse':
>pam_radius_auth.c:1016: warning: passing arg 3 of `pam_get_item' from
>incompatible pointer type
>pam_radius_auth.c:1019: warning: passing arg 2 of pointer to function from
>incompatible pointer type
>pam_radius_auth.c: In function `pam_sm_authenticate':
>pam_radius_auth.c:1071: warning: passing arg 2 of `pam_get_user' from
>incompatible pointer type
>pam_radius_auth.c:1099: warning: passing arg 3 of `pam_get_item' from
>incompatible pointer type
>pam_radius_auth.c:1113: warning: passing arg 3 of `pam_get_item' from
>incompatible pointer type
>pam_radius_auth.c:1146: warning: passing arg 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 arg 2 of `pam_get_user' from
>incompatible pointer type
>pam_radius_auth.c:1288: warning: passing arg 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 arg 2 of `pam_get_user' from
>incompatible pointer type
>pam_radius_auth.c:1395: warning: passing arg 3 of `pam_get_item' from
>incompatible pointer type
>pam_radius_auth.c:1404: warning: passing arg 3 of `pam_get_item' from
>incompatible pointer type
>pam_radius_auth.c:1409: warning: passing arg 3 of `pam_get_item' from
>incompatible pointer type
>make: *** [pam_radius_auth.o] Error 1
>hqwww01tban{root} @:
>
>
>--
>Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
>Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
>-
>List info/subscribe/unsubscribe? See 
>http://www.freeradius.org/list/users.html





More information about the Freeradius-Users mailing list