(RADIATOR) Bad arg length for Socket::pack_sockaddr_in

Hugh Irvine hugh at open.com.au
Mon May 21 23:49:00 CDT 2007


Hello Kevin -

On this topic - it appears that this can happen if "localhost" is not  
defined in the hosts table, which is why specifying "127.0.0.1" works  
and "localhost" doesn't.

regards

Hugh



On 18 May 2007, at 18:37, Kevin Barrass wrote:

>
> Hi
>
> I have run the below and got output describing that the server is
> started on the address 0.0.0.0
>
> Running perl radpwtst just produces the same error:
>> Bad arg length for Socket::pack_sockaddr_in, length is 0, should be
>> 4 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Socket.pm line 373
>
> And the server running in the 1st window showed no additional output.
>
> But if I specify the server address as below
>
> perl radpwtst -s 127.0.0.1 or perl radpwtst -s 192.168.0.1 it connects
> and AUTHs fine.
>
> And the server running in the 1st window showed the AUTHed connection
> from either 127.0.0.1 or 192.168.0.1.
>
> I have installed the server and run it using a simple config and
> everything seems fine with no errors using a Cisco Router and Wireless
> access point for SSH access AUTHed to radiator so I think it may be my
> installation of Linux that is wrong only when I run make test. I  
> will be
> building a new PC soon with Slackware and will try it on that distro.
>
> Thank you for the below help, I will let you know if I get the same
> error on Slackware.
>
> Kind Regards
>
> Kev
>
> -----Original Message-----
> From: Hugh Irvine [mailto:hugh at open.com.au]
> Sent: 18 May 2007 00:51
> To: Kevin Barrass
> Cc: radiator at open.com.au
> Subject: Re: (RADIATOR) Bad arg length for Socket::pack_sockaddr_in
>
>
> Hello Kevin -
>
> Could you please try the following and let me know the results:
>
> 	cd /your/Radiator/distribution
>
> 	perl radiusd -foreground -log_stdout -trace 4 -config_file
> goodies/ simple.cfg
>
> then in another terminal window:
>
> 	cd /your/Radiator/distribution
>
> 	perl radpwtst
>
> You could also try installing ActivePerl from ActiveState
> (www.activestate.com) and test with that.
>
> regards
>
> Hugh
>
>
> On 17 May 2007, at 22:45, Kevin Barrass wrote:
>
>>
>> Hi
>>
>> Iam trying out the Radiator Radius Trial on a test network at home.
>> I have downloaded the latest version Radiator-Locked-3.17.1 with
>> latest patches and applied patches to the download.
>> when I do a make test after running perl Makefile.PL with no errors I
>> get the below errors.
>>
>> ok 1a
>> Bad arg length for Socket::pack_sockaddr_in, length is 0, should be
>> 4 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Socket.pm line 373.
>> not ok 1b
>> .
>> . snip
>> .
>> not ok 8a
>> Bad arg length for Socket::pack_sockaddr_in, length is 0, should be
>> 4 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Socket.pm line 373.
>> not ok 8b
>> Tests completed, 44 errors
>> make: *** [test_dynamic] Error 44
>>
>>
>> Iam running this on Fedora Core 6 with all the latest patches applied
>> via yum.
>> perl -v is attached below. there is no config to attach as it is a
>> clean install.
>>
>> Does anyone know what the problem could be any advise appreciated.
>>
>> Kind Regards
>>
>> Kev Barrass
>>
>>
>> [root at localhost kevin]# perl -V
>> Summary of my perl5 (revision 5 version 8 subversion 8)  
>> configuration:
>>   Platform:
>>     osname=linux, osvers=2.6.9-34.elsmp, archname=i386-linux-thread-
>> multi
>>     uname='linux hs20-bc2-2.build.redhat.com 2.6.9-34.elsmp #1 smp  
>> fri
>
>> feb 24 16:56:28 est 2006 i686 i686 i386 gnulinux '
>>     config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-
>> D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-
>> buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-
>> tables -Dversion=5.8.8 -Dmyhostname=localhost -
>> Dperladmin=root at localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -
>> Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -
>> Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -
>> Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -
>> Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -
>> Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/
>> less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -
>> Ud_sethostent_r_proto -Ud_endprotoent_r_proto -  
>> Ud_setprotoent_r_proto
>
>> -Ud_endservent_r_proto - Ud_setservent_r_proto
>> -Dinc_version_list=5.8.7 5.8.6 5.8.5 - Dscriptdir=/usr/bin'
>>     hint=recommended, useposix=true, d_sigaction=define
>>     usethreads=define use5005threads=undef useithreads=define
>> usemultiplicity=define
>>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>>     use64bitint=undef use64bitall=undef uselongdouble=undef
>>     usemymalloc=n, bincompat5005=undef
>>   Compiler:
>>     cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-
>> aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -
>> D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
>>     optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -  
>> fexceptions
>
>> -fstack-protector --param=ssp-buffer-size=4 -m32 -
>> march=i386 -mtune=generic -fasynchronous-unwind-tables',
>>     cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
>> -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/
>> gdbm'
>>     ccversion='', gccversion='4.1.1 20060928 (Red Hat 4.1.1-28)',
>> gccosandvers=''
>>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
>>     d_longlong=define, longlongsize=8, d_longdbl=define,
>> longdblsize=12
>>     ivtype='long', ivsize=4, nvtype='double', nvsize=8,  
>> Off_t='off_t',
>
>> lseeksize=8
>>     alignbytes=4, prototype=define
>>   Linker and Libraries:
>>     ld='gcc', ldflags =' -L/usr/local/lib'
>>     libpth=/usr/local/lib /lib /usr/lib
>>     libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -  
>> lpthread
>
>> -lc
>>     perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
>>     libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
>>     gnulibc_version='2.5'
>>   Dynamic Linking:
>>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,- E
>> -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE'
>>     cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-
>> D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-
>> buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-
>> tables -L/usr/local/lib'
>>
>>
>> Characteristics of this binary (from libperl):
>>   Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
>>                         PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
>>                         USE_PERLIO USE_REENTRANT_API
>>   Built under linux
>>   Compiled at Oct  3 2006 11:01:57
>>   @INC:
>>     /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>>     /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
>>     /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
>>     /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
>>     /usr/lib/perl5/site_perl/5.8.8
>>     /usr/lib/perl5/site_perl/5.8.7
>>     /usr/lib/perl5/site_perl/5.8.6
>>     /usr/lib/perl5/site_perl/5.8.5
>>     /usr/lib/perl5/site_perl
>>     /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
>>     /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
>>     /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
>>     /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
>>     /usr/lib/perl5/vendor_perl/5.8.8
>>     /usr/lib/perl5/vendor_perl/5.8.7
>>     /usr/lib/perl5/vendor_perl/5.8.6
>>     /usr/lib/perl5/vendor_perl/5.8.5
>>     /usr/lib/perl5/vendor_perl
>>     /usr/lib/perl5/5.8.8/i386-linux-thread-multi
>>     /usr/lib/perl5/5.8.
>>
>>
>>
>>
>> --
>> Archive at http://www.open.com.au/archives/radiator/
>> Announcements on radiator-announce at open.com.au To unsubscribe, email
>> 'majordomo at open.com.au' with 'unsubscribe radiator' in the body of  
>> the
>
>> message.
>
>
>
> NB:
>
> Have you read the reference manual ("doc/ref.html")?
> Have you searched the mailing list archive (www.open.com.au/archives/
> radiator)?
> Have you had a quick look on Google (www.google.com)?
> Have you included a copy of your configuration file (no secrets),
> together with a trace 4 debug showing what is happening?
> Have you checked the RadiusExpert wiki:
> http://www.open.com.au/wiki/index.php/Main_Page
>
> --
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. Available on *NIX, *BSD, Windows, MacOS X.
> Includes support for reliable RADIUS transport (RadSec), and DIAMETER
> translation agent.
> -
> Nets: internetwork inventory and management - graphical, extensible,
> flexible with hardware, software, platform and database independence.
> -
> CATool: Private Certificate Authority for Unix and Unix-like systems.
>
>



NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
Have you checked the RadiusExpert wiki:
http://www.open.com.au/wiki/index.php/Main_Page

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list