From owner-freebsd-ports Mon May 26 02:57:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA09594 for ports-outgoing; Mon, 26 May 1997 02:57:23 -0700 (PDT) Received: from silvia.HIP.Berkeley.EDU (wck-ca7-10.ix.netcom.com [204.31.231.42]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA09589 for ; Mon, 26 May 1997 02:57:19 -0700 (PDT) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.5/8.6.9) id CAA09254; Mon, 26 May 1997 02:57:17 -0700 (PDT) Date: Mon, 26 May 1997 02:57:17 -0700 (PDT) Message-Id: <199705260957.CAA09254@silvia.HIP.Berkeley.EDU> To: ports@freebsd.org Cc: brion@queeg.com Subject: [brion@queeg.com: getservbyport fails on FreeBSD 2.2.x] From: asami@freebsd.org (Satoshi Asami) Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 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'