Subject: Re: lang/perl58 wont compile?
To: Nick . <njkt809@hotmail.com>
From: Johnny C. Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 01/03/2005 03:22:59
On Wed, Dec 29, 2004 at 06:41:46PM -0800, Nick . wrote:
> I have seen many messages about this and I'm wondering if anyone has got 
> this to work yet?
> 
> this is the error I am also receiving
> 
> pp_sys.c: In function `Perl_pp_gprotoent':
> pp_sys.c:4888: warning: implicit declaration of function `getprotobyname_r'
> pp_sys.c:4896: warning: implicit declaration of function
> `getprotobynumber_r'
> pp_sys.c:4903: warning: implicit declaration of function `getprotoent_r'
> pp_sys.c: In function `Perl_pp_gservent':
> pp_sys.c:4980: warning: implicit declaration of function `getservbyname_r'
> pp_sys.c:4996: warning: implicit declaration of function `getservbyport_r'
> pp_sys.c:5003: warning: implicit declaration of function `getservent_r'
> pp_sys.c: In function `Perl_pp_sprotoent':
> pp_sys.c:5076: warning: implicit declaration of function `setprotoent_r'
> pp_sys.c:5076: error: structure has no member named `_protoent_data'
> pp_sys.c: In function `Perl_pp_sservent':
> pp_sys.c:5087: warning: implicit declaration of function `setservent_r'
> pp_sys.c:5087: error: structure has no member named `_servent_data'
> pp_sys.c: In function `Perl_pp_eprotoent':
> pp_sys.c:5122: warning: implicit declaration of function `endprotoent_r'
> pp_sys.c:5122: error: structure has no member named `_protoent_data'
> pp_sys.c: In function `Perl_pp_eservent':
> pp_sys.c:5134: warning: implicit declaration of function `endservent_r'
> pp_sys.c:5134: error: structure has no member named `_servent_data'
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/lang/perl58/work/perl-5.8.5
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/lang/perl58
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/lang/perl58

This is due to some really mind-boggling stupidity in the perl Configure
script that I haven't patched around yet.  The workaround is to set
your machine's hostname before building perl and it should work fine.

You really want to build with the thread support enabled anyway as
there are packages that depend on perl+threads.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>