[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re: pam_radius_auth on AIX 5L
From: David LePage <dwlepage () yahoo ! com>
Date: 2005-05-28 0:54:30
Message-ID: 20050528005430.17614.qmail () web51110 ! mail ! yahoo ! com
[Download RAW message or body]
Let me answer my own question.. 4 days later I found that my problem was
within the default "ld" statements in the Makefile. I found a command that
will compile the module successfully on AIX 5L:
Download the Linux Toolset for AIX, then:
To build pam_radius:
- change to the md5.h file. Change line 18 from:
#define uint32 u_int32_t
to
#define uint32 uint32_t
- in md5.c, insert to line 38 (before any #include lines)
#define __sparc
- in pam_radius_auth.h, line 60, insert after the comment section
but
before "#ifdef sun":
#define sun
Modify the Makefile
Find this line:
pam_radius_auth.so: pam_radius_auth.o md5.o ld –Bshareable
pam_radius_auth.o md5.o –lpam –o pam_radius_auth.so
And replace with:
pam_radius_auth.so: pam_radius_auth.o md5.o
ld -o pam_radius_auth.so pam_radius_auth.o md5.o -bexpall -bM:SRE
-bnoentry -lc
That seemed to do it. It now works on AIX 5L after creating a pam.conf and
installing SSHD with the "--with-pam" option enabled.
D
--- David LePage <dwlepage@yahoo.com> wrote:
> Has anyone ever successfully compiled pam_radius_auth on AIX 5L using
> the
> default Makefile and options? I have both GCC and CC compilers, and cant
> seem to get the compile side options correct for this platform. Does
> anyone have a Makefile they can share for this platform that might help
> -
> or instructions on modifying the source files to get it to compile on
> this
> platform?
>
> Thanks,
>
> D
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic