Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 1997 02:57:17 -0700 (PDT)
From:      asami@freebsd.org (Satoshi Asami)
To:        ports@freebsd.org
Cc:        brion@queeg.com
Subject:   [brion@queeg.com: getservbyport fails on FreeBSD 2.2.x]
Message-ID:  <199705260957.CAA09254@silvia.HIP.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
I believe this was intended for the ports list.  I have no clue about
what he's talking about (the "asami2@han" address is the account I
used to build the 2.2.x packages).

Satoshi
-------
Date: Sat, 24 May 1997 23:00:36 -0700 (PDT)
From: Brion Moss <brion@queeg.com>
To: perlbug@perl.com
Subject: getservbyport fails on FreeBSD 2.2.x
Cc: asami2@han.cs.berkeley.edu


This is a bug report for perl from brion@queeg.com,
generated with the help of perlbug 1.13 running under perl 5.003.

The getservbyport function fails to return anything.

Under Solaris, I get the expected behavior:

prompt> perl -e 'print scalar(getservbyport(25,'tcp')), "\n"'
smtp
prompt>

Under FreeBSD:

prompt> perl -e 'print scalar(getservbyport(25,'tcp')), "\n"'

prompt>

I tried this using two different FreeBSD machines, one running
2.2.1-RELEASE and one running 2.2-GAMMA, using perl versions 4.036 and
5.003 on each machine.

Site configuration information for perl 5.003:

Configured by asami2 at Thu Mar 13 00:07:43 PST 1997.

Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
  Platform:
    osname=freebsd, osver=2.2-release, archname=i386-freebsd
    uname='freebsd han.cs.berkeley.edu 2.2-release freebsd 2.2-release #0: mon mar 10 02:41:55 pst 1997 asami2@han.cs.berkeley.edu:ccdsrcsyscompileccd i386 '
    hint=recommended, useposix=true, d_sigaction=define
  Compiler:
    cc='cc', optimize='-O', gccversion=2.7.2.1
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='char', d_stdstdio=, usevfork=true
    voidflags=15, castflags=0, d_casti32=, d_castneg=define
    intsize=4, alignbytes=4, usemymalloc=n, randbits=31
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-lgdbm -lmalloc -lm -lc -lcrypt
    libc=/usr/lib/libc.so.3.0, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=define, ccdlflags=' '
    cccdlflags='-DPIC -fpic', lddlflags='-Bshareable  -L/usr/local/lib'






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705260957.CAA09254>