On Thu, May 05, 2011 at 10:31:38PM +0200, Josip Rodin wrote:
> On Mon, May 02, 2011 at 12:07:30PM +0200, Alan T DeKok wrote:
> > Josip Rodin wrote:
> > > The first test works, but the second doesn't. The second one should 
> > > actually
> > > work, but the problem is in the definition:
> > 
> >   C compilers now have built-in "offsetof" to fix precisely this problem.
> > 
> >   See the attached patch.  You'll have to re-run "autoconf" to
> > re-generate the "configure" script.
> 
> Hrm, no luck:
> 
> configure:24813: gcc -c -g -O2 -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS  
> conftest.c >&5
> conftest.c: In function 'main':
> conftest.c:118: error: invalid use of undefined type 'struct in6_pktinfo'
> 
> It's definitely using the system offsetof(3), but it's not working.
> It's like #include <netinet/in.h> did nothing...?!

OK, so this was fixed in private mail and committed as:

https://github.com/alandekok/freeradius-server/commit/655f0786d60fe02440763df69b1aaf5110706690

It made the configure test work, but I now tested the resulting freeradius
binary and ended up with the same symptoms as the original submitter,
whereas the previous version works fine. Well, at least we got *somewhere* :))

% sudo strace freeradius -X
[...]
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 5
getsockname(5, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, 
"::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
setsockopt(5, SOL_IPV6, IPV6_PKTINFO, [1], 4) = -1 EINVAL (Invalid argument)
close(5)                                = 0
write(1, "/etc/freeradius/radiusd.conf[240"..., 74
/etc/freeradius/radiusd.conf[240]: Error binding to port for :: port 1812
) = 74
close(5)                                = -1 EBADF (Bad file descriptor)
exit_group(1)                           = ?

Not sure where to look for the problem, setsockopt(2) manual is very short...

-- 
     2. That which causes joy or happiness.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to