X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E32C4DC009D for ; Mon, 30 Jun 2014 01:28:08 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id lf10so7639033pab.16 for ; Sun, 29 Jun 2014 18:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=+lXcLaWCqZBZGQLkogjBQQ1S9M4DaH/XR/mDNSIB9rM=; b=IOeqQLVMTOiHufeApQeCYFlVaIFEt50t0++gY/81nQoEb3i6jmm4n0ho10jt8kz8tz HnOchSzD2Gb7n/OajGwzNEoQ0Uu0m7maD9lN/pPruGJMUeOphDU4QhpEeNeEspRifr83 PJeV1sUnZCH6lBzg+mafxAzE6alQqpUThuF2fQMD3sP79eiZZp7ci8gdovmPPAKLtZ7D kTb0xUDZxZcS9BhW34oG2yA4skFwwGvfJaTImdRBBcHSuUNXk6PdCr9g5WxTRWFr9PBV BO0AySN6rh9Ihuj/o0s4qpi0RNMFPx+lfHvyPw5vk/v8Mihqz4Pp1C54HAjRFmMkdSMO hN2g== X-Received: by 10.68.223.1 with SMTP id qq1mr48571273pbc.62.1404091687833; Sun, 29 Jun 2014 18:28:07 -0700 (PDT) Received: from newbook ([50.0.227.219]) by mx.google.com with ESMTPSA id bc4sm24987754pbb.2.2014.06.29.18.28.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jun 2014 18:28:07 -0700 (PDT) Date: Sun, 29 Jun 2014 18:28:31 -0700 From: Isaac Dunham To: alpine-devel@lists.alpinelinux.org Cc: musl@lists.openwall.com Subject: [alpine-devel] cups debugging, continued Message-ID: <20140630012830.GA16088@newbook> References: <20140629194829.GA1994@newbook> <20140630001201.GA14838@newbook> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140630001201.GA14838@newbook> User-Agent: Mutt/1.5.23 (2014-03-12) On Sun, Jun 29, 2014 at 05:12:01PM -0700, Isaac Dunham wrote: > Now I hit the next issue: the 'lpd' backend reports > 'Unable to reserve port: Invalid argument' > And I need to figure out what's causing this--or rather, what the solution is. > Right now, I'm stuck (lpd is the main way to access it, and it isn't working). OK, now we're in cups-1.7.3/backend/lpd.c: ...the problem is a local implementation of rresvport_af(), trying to reserve a port but failing. And strace -p `pidof lpd` says this: Process 16113 attached restart_syscall(<... resuming interrupted call ...>) = 0 geteuid32() = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7 bind(7, {sa_family=AF_INET, sin_port=htons(905), sin_addr=inet_addr("0.0.0.0")}, 256) = -1 EINVAL (Invalid argument) close(7) = 0 writev(2, [{"", 0}, {"DEBUG: Unable to reserve port", 29}], 2) = 29 writev(2, [{"", 0}, {":", 1}], 2) = 1 writev(2, [{"", 0}, {" ", 1}], 2) = 1 writev(2, [{"", 0}, {"Invalid argument", 16}], 2) = 16 writev(2, [{"", 0}, {"\n", 1}], 2) = 1 nanosleep({1, 0}, 0x5d2bcae8) = 0 geteuid32() = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7 bind(7, {sa_family=AF_INET, sin_port=htons(904), sin_addr=inet_addr("0.0.0.0")}, 256) = -1 EINVAL (Invalid argument) close(7) = 0 writev(2, [{"", 0}, {"DEBUG: Unable to reserve port", 29}], 2) = 29 writev(2, [{"", 0}, {":", 1}], 2) = 1 writev(2, [{"", 0}, {" ", 1}], 2) = 1 writev(2, [{"", 0}, {"Invalid argument", 16}], 2) = 16 writev(2, [{"", 0}, {"\n", 1}], 2) = 1 nanosleep({1, 0}, 0x5d2bcae8) = 0 geteuid32() = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7 bind(7, {sa_family=AF_INET, sin_port=htons(903), sin_addr=inet_addr("0.0.0.0")}, 256) = -1 EINVAL (Invalid argument) close(7) = 0 writev(2, [{"", 0}, {"DEBUG: Unable to reserve port", 29}], 2) = 29 writev(2, [{"", 0}, {":", 1}], 2) = 1 writev(2, [{"", 0}, {" ", 1}], 2) = 1 writev(2, [{"", 0}, {"Invalid argument", 16}], 2) = 16 writev(2, [{"", 0}, {"\n", 1}], 2) = 1 nanosleep({1, 0}, Process 16113 detached Clearly something needs to be adjusted for this to work with musl; I'm not sure what it is. Thanks, Isaac Dunham --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---