Re: Core with 64Bit pam_radius_auth on Solaris 9

2010-09-29 Thread Alan DeKok
Peter Lambrechtsen wrote: Interestingly it seems to have come down to how UINT4 was defined. Changing in the radius.h UINT4 from being a unsigned long to a unit32_t seemed to have sorted the problem: OK. That change should have been made long ago. Any system which doesn't have uint32_t

Re: Core with 64Bit pam_radius_auth on Solaris 9

2010-09-28 Thread Alan DeKok
Peter Lambrechtsen wrote: It seems around like 734 in pam_radius_auth.c: if ((hp = gethostbyname(hostname)) == (struct hostent *) NULL) { ipaddr = 0x;/* no client IP address */ } else { ipaddr = ntohl(*(UINT4 *) hp-h_addr); /* use the first one available */

Re: Core with 64Bit pam_radius_auth on Solaris 9

2010-09-28 Thread Peter Lambrechtsen
Interestingly it seems to have come down to how UINT4 was defined. Changing in the radius.h UINT4 from being a unsigned long to a unit32_t seemed to have sorted the problem: ---Begin Patch --- radius.h.orig Fri Sep 24 15:17:05 2010 +++ radius.hWed Sep 29 10:56:36 2010 @@ -36,7

Re: Core with 64Bit pam_radius_auth on Solaris 9

2010-09-22 Thread Alan DeKok
Peter Lambrechtsen wrote: Hello I've managed to compile pam_radius-1.3.17 both 32Bit and 64Bit. I had to add -lsocket as part of linking to get it to work and modified the make file to have -m64 to compile on 64bit When I compile it for 64Bit this is my make output: ... But when I try

Re: Core with 64Bit pam_radius_auth on Solaris 9

2010-09-22 Thread Peter Lambrechtsen
On Wed, Sep 22, 2010 at 6:06 PM, Alan DeKok al...@deployingradius.comwrote: Any suggestions on what to do with gdb or to debug this problem?? $ gdb --args ./pamtester jpam peter authenticate (gdb) run (gdb) bt This is what I get back: (gdb) run Starting program:

Re: Core with 64Bit pam_radius_auth on Solaris 9

2010-09-22 Thread Alan DeKok
Peter Lambrechtsen wrote: This is what I get back: (gdb) run Starting program: /usr/local/bin/sparcv9/pamtester jpam peter authenticate procfs:4337 -- process not stopped. procfs: ...giving up... (gdb) bt procfs: couldn't find pid 7326 (kernel thread 1) in procinfo list. procfs: couldn't

Re: Core with 64Bit pam_radius_auth on Solaris 9

2010-09-22 Thread Peter Lambrechtsen
On Wed, Sep 22, 2010 at 9:55 PM, Alan DeKok al...@deployingradius.comwrote: Peter Lambrechtsen wrote: This is what I get back: (gdb) run Starting program: /usr/local/bin/sparcv9/pamtester jpam peter authenticate procfs:4337 -- process not stopped. procfs: ...giving up... (gdb) bt

Core with 64Bit pam_radius_auth on Solaris 9

2010-09-21 Thread Peter Lambrechtsen
Hello I've managed to compile pam_radius-1.3.17 both 32Bit and 64Bit. I had to add -lsocket as part of linking to get it to work and modified the make file to have -m64 to compile on 64bit When I compile it for 64Bit this is my make output: gcc -Wall -fPIC -m64 -c pam_radius_auth.c -o