From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel Subject: Bug in Guile's Posix Networking Date: Mon, 7 Feb 2011 01:28:07 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1297060098 16294 80.91.229.12 (7 Feb 2011 06:28:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2011 06:28:18 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 07 07:28:14 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PmKa5-0004FB-VE for guile-devel@m.gmane.org; Mon, 07 Feb 2011 07:28:14 +0100 Original-Received: from localhost ([127.0.0.1]:34829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmKa5-0002Sp-Pt for guile-devel@m.gmane.org; Mon, 07 Feb 2011 01:28:13 -0500 Original-Received: from [140.186.70.92] (port=34250 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmKa1-0002SA-S3 for guile-devel@gnu.org; Mon, 07 Feb 2011 01:28:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmKa0-0004Fo-Gk for guile-devel@gnu.org; Mon, 07 Feb 2011 01:28:09 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:38611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmKa0-0004Fj-Dv for guile-devel@gnu.org; Mon, 07 Feb 2011 01:28:08 -0500 Original-Received: by gyd10 with SMTP id 10so1920924gyd.0 for ; Sun, 06 Feb 2011 22:28:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=DveoLk2BSzmmx10Uk/d57eT8xO2uKur3xBQlecNYOgc=; b=LacSpwqsvlBc2Onx7AsooVTOv2uEOmtP232/0q5ujVoj0NvA4imLfi+raVGwP2yJgL VHEeD00EXLtAxqKRz/qbFYuQ5FwMCqFn2j+Kd4jYAVlLACOsMnz58YBhNGEiNXSqAfWZ ZpsCJSpD6N9HxAhbZlBVjEI/C1xBizb7nm7ds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=TmkGkW/6o7snI0w9HHXNnFiQXyCmkqgyxchrcthWEU9kbqWN6zNnG11NtInLDhZZao vCgeysyHVwQ3X5EKIm2/EZtQiqI7RvB1QGV8sOX9a+wCj9VUSeYvwr2Vocfrb2UBslDJ jG3cNbtaoI8RQLdiluTl1OkQPMVfBgLSNXVt8= Original-Received: by 10.147.99.10 with SMTP id b10mr4185110yam.32.1297060087767; Sun, 06 Feb 2011 22:28:07 -0800 (PST) Original-Received: by 10.147.40.5 with HTTP; Sun, 6 Feb 2011 22:28:07 -0800 (PST) X-Google-Sender-Auth: iCvHEGHXdAjyp_GBUPe-U4avGRQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11540 Archived-At: Hello all, I think there's a bug in Guile's Posix networking capabilities. I first noticed it a few days ago when I couldn't get the example web server to work on my system (Mac OS X 10.6). I was getting an error from the bind command saying "can't assign requested address". I assumed it was a system configuration problem until I discovered that an equivalent Python program could bind a socket without trouble. The full story is at http://serverfault.com/questions/231941/why-cant-i-bind-to-127-0-0-1-on-mac-os-x (I know the Python program listed is not quite identical to the Scheme one, but I tried it with an actually identical Scheme program and still got the same error.) Interestingly enough, I was able to bind a socket in Guile if I specified INADDR_ANY as its address instead of 127.0.0.1. I hope to work on this soon, but I thought I'd ask on this list if anyone has an idea what might be causing this. Thanks, Noah