On Thu, 30 Nov 2000 19:02:35 +0100, "H.Merijn Brand" <h.m.brand@hccnet.nl> wrote: > On Thu, 30 Nov 2000 18:01:52 +0100, "H.Merijn Brand" <h.m.brand@hccnet.nl> wrote: > > Nailed it down to a failing base function 'getprotobyname': > > > > % perl5.00503 -e 'print getprotobyname ("udp"), "\n"'; echo $? > > udpUDP17 > > 0 > > % ./perl -e 'print getprotobyname ("udp"), "\n"' ; echo $? > > 6 > > % > > Shouldn't C<which> be 321? Hmm, well, with debugging turned off, it was. Problem resisted though. From the man page of getprotobyname: "All applications containing the getprotobyname subroutine must be compiled with _BSD set to a specific value. Acceptable values are 43 and 44. In addition, all socket applications must include the BSD libbsd.a library." I did include -D_BSD=43 in config.sh and re-maked all. POSIX refused, but -i skips that. Results unchanged. Is there any known bug in 4.2 about getprotoby*? -- H.Merijn Brand Amsterdam Perl Mongers (http://www.amsterdam.pm.org/) using perl-5.005.03, 5.6.0, 5.7.1 & 620 on HP-UX 10.20 & 11.00, AIX 4.2 & 4.3, DEC OSF/1 4.0 and WinNT 4.0 SP-6a, often with Tk800.022 and/or DBD-Unify ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/Thread Previous | Thread Next