2.0.0-pre : Failed to open socket.

Alan DeKok aland at deployingradius.com
Thu Jun 21 11:04:58 CEST 2007


David Wood wrote:
> Following a little bit of detective work with gdb, I realised that the 
> problem is with the udpfromto code in -pre1, at least on FreeBSD. 

  Yes.... that's been known for a while, and has been mentioned on this
list.  There was no need to investigate, just upgrade to CVS head, which
people have said works.

> Passing --without-udpfromto to configure on FreeBSD means 2.0.0-pre1 
> works on FreeBSD 6.2-RELEASE. Supposedly udpfromto works on BSD like 
> operating systems, but I've never got it to work on FreeBSD, even in 
> 1.1.x.

  That's news to me.

> Has the faulty code really been taken out or fixed, or is the resolution 
> of this situation a side-effect of udpfromto being disabled in HEAD at 
> the moment?

  I don't have access to a current BSD box, so I have no idea if it's
fixed.  I do know that the udpfromto code works for me on Linux.

> I have a working FreeBSD port for 2.0.0-pre1 on my system, but I'm loath 
> to ask for it to be committed. I have to patch for bugs #452, 453 and 
> 454 (thanks to Nicolas for committing my enhanced patch for #454 to HEAD 
> and the 1.1 branch), and pass --without-udpfromto to get the thing to 
> work at all - though it is now working on my live system.

  Bugs #452 and 453 have fixed in CVS head for almost a month.

> Further, pre1 has features missing compared to HEAD (not least the 
> sites-available / sites-enabled stuff in raddb, which leads to quite a 
> few changes in the configuration file), 

  It's not *necessary* to use it, but it is *extremely* useful.  It will
be more useful in the future, for a number of reasons.

>the PGP signature for the pre1 
> .tar.gz doesn't verify

  It does on my system.  What's the error?

> and the .tar.bz2 isn't PGP signed, also 
> raddb/certs/bootstrap doesn't work for me in pre1.

  What is the error?  I think it's likely using the wrong "make"
program.  That can be fixed by turning the Makefile from a GNU make file
into a more standard Make file.

> Is there any hope of a 2.0.0-pre2 release any time soon?

  Yes.  Hopefully this week, or next week.

> Whilst "it's fixed in HEAD" is fine for those who hang out here, FreeBSD 
> ports are not really supposed to depend on a CVS or Subversion checkout 
> for their main tarball. Recent discussion on freebsd-ports has suggested 
> that, at most, using a checkout should be a non-default option. As 
> development on 2.x continues, the FreeBSD package list is changing, so 
> that really leaves my only options at the moment as patching 2.0.0-pre1 
> or creating an unofficial 2.0.0-pre2 based on a tarball I'd have to host 
> myself.

  I would suggest *not* creating an official port of 2.0.0 until it has
been officially released.  That is, you can try creating a local port,
but *please* don't commit it to the FreeBSD "ports" tree.  It's not
stable, it's not meant to be stable, it's not meant to be used in any
production environment.

> On that note, whilst I know this isn't the best place to report it (what 
> is - bug database?), there's a typo in HEAD. raddb/Makefile version 1.26 
> has a typo in the second line of the install target - it should be 
> sites-available not sites-evailable.

  Fixed, thanks.

  Alan DeKok.



More information about the Freeradius-Users mailing list