mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Paul Schutte <sjpschutte@gmail.com>
To: musl@lists.openwall.com
Subject: Re: A few issues on MIPS and now on ARMEL
Date: Fri, 16 Nov 2012 00:21:11 +0200	[thread overview]
Message-ID: <CAKHv7phcN_sPbdOummz7SEikUFmG0mZBEvhoOAidKLLW072e0g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1825 bytes --]

Hi guys,

I am now hitting a similar problem on armel.

I am cross-compiling "dnsmasq"

Glibc strace:

---snip---
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 5
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
setsockopt(5, SOL_IP, IP_MTU_DISCOVER, [0], 4) = 0
setsockopt(5, SOL_IP, IP_PKTINFO, [1], 4) = 0
setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0


Musl strace:

socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 5
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
setsockopt(5, SOL_IP, IP_MTU_DISCOVER, [0], 4) = 0
setsockopt(5, SOL_IP, IP_PKTINFO, [1], 4) = 0
setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
setsockopt(5, SOL_SOCKET, *0xf /* SO_??? */*, [1], 4) = -1 ENOPROTOOPT
(Protocol not available)

Regards
Paul

On Mon, Nov 5, 2012 at 7:31 PM, Rich Felker <dalias@aerifal.cx> wrote:

> On Mon, Nov 05, 2012 at 07:27:44PM +0200, Paul Schutte wrote:
> > Thanks for the reply.
> >
> > I suspected something like you mention and therefore I made sure that I
> > installed the correct kernel headers before I compiled musl or any of the
> > other software.
>
> Kernel headers are completely irrelevant; they're not used anywhere.
> nsz's analysis is right. I have a patch I'm about to commit. In case
> you'd like to try it directly without using git, I'm attaching it
> here.
>
> There may be more fixes still needed. MIPS has A LOT of gratuitous
> differences in constant definitions and I thought I'd caught all of
> them before, but apparently some slipped through. The fcntl part of
> the patch has been tested and seems correct. The socket parts should
> be right, but they're untested; I'm working on a test for them now.
>
> Rich
>

[-- Attachment #2: Type: text/html, Size: 2343 bytes --]

             reply	other threads:[~2012-11-15 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-15 22:21 Paul Schutte [this message]
2012-11-15 23:37 ` Rich Felker
2012-11-16  0:11   ` Rich Felker
2012-11-16  0:18     ` Rich Felker
2012-11-16  1:28       ` Paul Schutte
2013-04-01 17:55         ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKHv7phcN_sPbdOummz7SEikUFmG0mZBEvhoOAidKLLW072e0g@mail.gmail.com \
    --to=sjpschutte@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).