connect() fails?
Rob Landley
rob at landley.net
Tue Oct 23 01:06:55 UTC 2007
On Monday 22 October 2007 7:21:20 am Daniel Ng wrote:
> I'm using uClibc 0.9.28 in a buildroot environment.
Buildroot has its own mailing list.
> I'm having trouble connecting to a TCP socket. connect() returns -1 with
> errno set to '1' which from looking at the errno include files translates
> to 'EPERM'.
...
> Any suggestions would be most helpful, short of upgrading uClibc.
Ah, so you already know what we'd suggest.
I vaguely remember hearing about a bug like this being fixed a year and change
ago, but don't remember the details. (Um, it died if it couldn't
find /etc/resolv.conf maybe? I honestly don't remember. It's been a while.)
Run it under strace and see what it's actually doing. Figure out what's
getting sent to the kernel (if anything), and what the kernel's returning.
More than once I've had the appropriate kernel CONFIG symbol switched off...
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
More information about the uClibc
mailing list