[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mpich2 FTBFS

Lucas Nussbaum, le Tue 23 Mar 2010 17:53:00 +0100, a écrit :
> > I guess a fix could be to only do the setsockopt if the socket family is
> > AF_INET.
> Erm, it works on Linux...

Just like a lot of things that aren't actually POSIX compliant.

> Could you prepare a patch? You'd be in a better situation to test it
> than me.

Problem (as usual) is my lack of time. I had a quick look to check
whether it was trivial, but it's possibly not, the issue being to know
where to find the socket type within the python code. It should however
be easy to test on Linux: use strace -f -o /tmp/log mpdboot, and check
for something like

10689 socket(PF_FILE, SOCK_STREAM, 0)   = 5
10689 setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0

The second line shouldn't appear.

Or else you can just throw something that ignores the python exception
at ./src/pm/mpd/mpdlib.py:689 and 719.

Last but not least, note that there is a Debian porter box: strauss.


Reply to: