# New Ticket Created by  Chris Dolan 
# Please include the string:  [perl #39738]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39738 >


---
osname= darwin
osvers= 8.0
arch=   darwin-thread-multi-2level
cc=     cc 
---
Flags:
    category=core
    severity=medium
    ack=no
---
With parrot r13181, binding to a non-privileged port on localhost
consistently fails with EADDRNOTAVAIL on Mac OS X and FreeBSD boxes
for Intel and PPC platforms.  The same command succeeds on Linux.

Steps to reproduce:
  1) ./parrot examples/io/httpd.pir
  2) netstat -na | grep 1234 | grep LISTEN

Actual results:
  Socket is not bound

Expected results:
  "netstat -na" should contain a line like this:
   tcp        0      0 127.0.0.1:1234          0.0.0.0:*               LISTEN

Reproducibility:
  Reproduced on a G5 Powermac running Mac OS X 10.4.6
  Reproduced on an Intel Macbook running Mac OS X 10.4.7
  Reproduced on a G5 Xserve running Mac OS X Server 10.3.9
  Reproduced on an x86 box running FreeBSD 5.4
  Not reproduced on an x86 box running RedHat 7.x

  On my G5 Powermac, I get the same results if I change
  examples/io/httpd.pir to listen on "127.0.0.1" instead of
  "localhost".

---
Summary of my parrot 0.4.5 (r13165) configuration:
  configdate='Wed Jul  5 14:31:06 2006'
  Platform:
    osname=darwin, archname=darwin-thread-multi-2level
    jitcapable=1, jitarchname=ppc-darwin,
    jitosname=DARWIN, jitcpuarch=ppc
    execcapable=1
    perl=perl
  Compiler:
    cc='cc', ccflags='-g -pipe -fno-common -no-cpp-precomp  
-I/usr/local/include -pipe -fno-common -Wno-long-double  -I/sw/include 
-I/sw/include',
  Linker and Libraries:
    ld='c++', ldflags='-L/usr/local/lib -flat_namespace  -L/sw/lib -L/sw/lib',
    cc_ldflags='',
    libs='-lm -lgmp -lreadline'
  Dynamic Linking:
    share_ext='.dylib', ld_share_flags='-dynamiclib -undefined suppress',
    load_ext='.bundle', ld_load_flags='-bundle -undefined suppress'
  Types:
    iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
    ptrsize=4, ptr_alignment=1 byteorder=4321, 
    nv=double, numvalsize=8, doublesize=8

---
Environment:
    DYLD_LIBRARY_PATH    HOME    LANG    LANGUAGE    LC_ALL    LD_LIBRARY_PATH  
  LOGDIR    PATH    PERL5LIB    PERL5_CPANPLUS_CONFIG    SHELL

Reply via email to