Re: server - IP socket error: Address family not supported by protocol
Doug - you need to install ipv6 support on linux. Look for an ipv6 package for your distro On Feb 23, 2012 1:28 AM, Doug Snead semaphore_2...@yahoo.com wrote: Might be even easier to reproduce ... just try the port function: # picoLisp-2.2.7.tgz ... ~/lisp/picoLisp $ ./p : (port 1234) - 3 That's ok, but the most recent version, # picoLisp-3.0.9.tgz # ./pil : (port 1234) !? (port 1234) IP socket error: Address family not supported by protocol ? --- On Wed, 2/22/12, Doug Snead semaphore_2...@yahoo.com wrote: From: Doug Snead semaphore_2...@yahoo.com Subject: server - IP socket error: Address family not supported by protocol To: picolisp@software-lab.de Date: Wednesday, February 22, 2012, 10:07 PM Hi Alex, I'm tying to get the example in doc/app.html (picoLisp-3.0.9.tgz on a pretty standard linux box) to serve. Here's my .l file: # cat test_html_app.l (html 0 Hello @lib.css NIL Hello World! ) (renamed from project.l but otherwise identical) But when I try to start the server, like this: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 8080 test_html_app.l' + Picolisp tells me: !? (port *Port) IP socket error: Address family not supported by protocol ? Same for a different port number: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 54321 test_html_app.l' + !? (port *Port) IP socket error: Address family not supported by protocol ? This is the linux platform I am using (Linux 2.6.30.5 #1 SMP Tue Sep 1 15:48:26 GMT-8 2009 i686 GNU/Linux). I could easily be doing something wrong ... but I think the above should work. Cheers, Doug -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
Re: server - IP socket error: Address family not supported by
Hi Doug, No IPv6 in my ifconfig on my linux box ... and no ipconfig on the android. :( When I drop back to picoLisp 2.3.7, I'm able to run the app example ok on my linux box, and connect to the pico server with a browser. Version 3.0.8 was the last one with IPv4-only, IIRC. Cheers, - Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: server - IP socket error: Address family not supported by protocol
Doug, I ran into the same problem a while ago, and Alex told me (on IRC) that 64bit picolisp's networking functions require ipv6 (as Joe said). If you have the ipv6 kernel modulle already compiled (most distro's kernel config's will at least compile it as a module, even if they don't enable it), and if your /etc/hosts has the right ipv6 localhost address (::1 localhost), then you should just be able to `modprobe` the module, and be on your way :) -- Regards, Imran Rafique On 22 February 2012 22:07, Doug Snead semaphore_2...@yahoo.com wrote: Hi Alex, I'm tying to get the example in doc/app.html (picoLisp-3.0.9.tgz on a pretty standard linux box) to serve. Here's my .l file: # cat test_html_app.l (html 0 Hello @lib.css NIL Hello World! ) (renamed from project.l but otherwise identical) But when I try to start the server, like this: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 8080 test_html_appl' + Picolisp tells me: !? (port *Port) IP socket error: Address family not supported by protocol ? Same for a different port number: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 54321 test_html_app.l' + !? (port *Port) IP socket error: Address family not supported by protocol ? This is the linux platform I am using (Linux 2.6.30.5 #1 SMP Tue Sep 1 15:48:26 GMT-8 2009 i686 GNU/Linux). I could easily be doing something wrong ... but I think the above should work. Cheers, Doug -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: server - IP socket error: Address family not supported by protocol
Ignore my pointless mail - I just saw the other thread with Alex's reply :) -- Regards, Imran Rafique On 23 February 2012 12:19, Imran Rafique im...@rafique.org wrote: Doug, I ran into the same problem a while ago, and Alex told me (on IRC) that 64bit picolisp's networking functions require ipv6 (as Joe said). If you have the ipv6 kernel modulle already compiled (most distro's kernel config's will at least compile it as a module, even if they don't enable it), and if your /etc/hosts has the right ipv6 localhost address (::1 localhost), then you should just be able to `modprobe` the module, and be on your way :) -- Regards, Imran Rafique On 22 February 2012 22:07, Doug Snead semaphore_2...@yahoo.com wrote: Hi Alex, I'm tying to get the example in doc/app.html (picoLisp-3.0.9.tgz on a pretty standard linux box) to serve. Here's my .l file: # cat test_html_app.l (html 0 Hello @lib.css NIL Hello World! ) (renamed from project.l but otherwise identical) But when I try to start the server, like this: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 8080 test_html_app.l' + Picolisp tells me: !? (port *Port) IP socket error: Address family not supported by protocol ? Same for a different port number: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 54321 test_html_app.l' + !? (port *Port) IP socket error: Address family not supported by protocol ? This is the linux platform I am using (Linux 2.6.30.5 #1 SMP Tue Sep 1 15:48:26 GMT-8 2009 i686 GNU/Linux). I could easily be doing something wrong ... but I think the above should work. Cheers, Doug -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: server - IP socket error: Address family not supported by protocol
Might be even easier to reproduce ... just try the port function: # picoLisp-2.2.7.tgz ... ~/lisp/picoLisp $ ./p : (port 1234) - 3 That's ok, but the most recent version, # picoLisp-3.0.9.tgz # ./pil : (port 1234) !? (port 1234) IP socket error: Address family not supported by protocol ? --- On Wed, 2/22/12, Doug Snead semaphore_2...@yahoo.com wrote: From: Doug Snead semaphore_2...@yahoo.com Subject: server - IP socket error: Address family not supported by protocol To: picolisp@software-lab.de Date: Wednesday, February 22, 2012, 10:07 PM Hi Alex, I'm tying to get the example in doc/app.html (picoLisp-3.0.9.tgz on a pretty standard linux box) to serve. Here's my .l file: # cat test_html_app.l (html 0 Hello @lib.css NIL Hello World! ) (renamed from project.l but otherwise identical) But when I try to start the server, like this: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 8080 test_html_app.l' + Picolisp tells me: !? (port *Port) IP socket error: Address family not supported by protocol ? Same for a different port number: # ./pil @lib/http.l @lib/xhtml.l @lib/form.l -'server 54321 test_html_app.l' + !? (port *Port) IP socket error: Address family not supported by protocol ? This is the linux platform I am using (Linux 2.6.30.5 #1 SMP Tue Sep 1 15:48:26 GMT-8 2009 i686 GNU/Linux). I could easily be doing something wrong ... but I think the above should work. Cheers, Doug -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: server - IP socket error: Address family not supported by
Hi Doug, IP socket error: Address family not supported by protocol This error usually has a very simple reason: Your platform doesn't support IPv6 Cheers, - Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: server - IP socket error: Address family not supported by
Hi Alex, Ah, ok ... hmmm, that's two different platforms I have seen that problem on, then. The Android NDK also compiles the latest picoLisp ok, but then, same as that other (more standard) linux, dies in that port function with the same error. I can drop back to a pre-IPv6 version of picolisp and try that. Cheers, Doug --- On Wed, 2/22/12, Alexander Burger a...@software-lab.de wrote: From: Alexander Burger a...@software-lab.de Subject: Re: server - IP socket error: Address family not supported by To: picolisp@software-lab.de Date: Wednesday, February 22, 2012, 10:53 PM Hi Doug, IP socket error: Address family not supported by protocol This error usually has a very simple reason: Your platform doesn't support IPv6 Cheers, - Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: server - IP socket error: Address family not supported by
Hi Doug, I can drop back to a pre-IPv6 version of picolisp and try that. Or just call 'ifconfig', and see whether you see a line starting with inet6 addr: at least in the 'lo' entry. Cheers, - Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe