Subject: pkg/29744: perl58 package fails to build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <he@netbsd.org>
List: pkgsrc-bugs
Date: 03/19/2005 23:37:01
>Number:         29744
>Category:       pkg
>Synopsis:       perl58 package fails to build
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 19 23:37:00 +0000 2005
>Originator:     Havard Eidnes
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
System: NetBSD audi.lab.uninett.no 3.0_BETA NetBSD 3.0_BETA (AUDI) #0: Fri Mar 18 23:32:24 CET 2005 he@audi.lab.uninett.no:/usr/obj/sys/arch/i386/compile/AUDI i386
Architecture: i386
Machine: i386
>Description:
	The perl58 package from pkgsrc-current fails to build on
	NetBSD 3.0_BETA.  The configure phase complains of various
	_r functions missing, e.g.:

*** WHOA THERE!!! ***
    The recommended value for $d_setprotoent_r_proto on this machine was "define"!
    Keep the recommended value? [y]  
...
*** WHOA THERE!!! ***
    The recommended value for $d_setservent_r_proto on this machine was "define"!
    Keep the recommended value? [y]  

	and the build eventually bombs with

`sh  cflags "optimize='-O2 -pthread -I/usr/include'" pp_sys.o` -DPIC -fPIC pp_sys.c
          CCCMD =  cc -DPERL_CORE -c -fno-strict-aliasing -pipe -I/usr/pkg/include -O2 -pthread -I/usr/include  -Wall
pp_sys.c: In function `Perl_pp_gprotoent':
pp_sys.c:4902: warning: implicit declaration of function `getprotobyname_r'
pp_sys.c:4910: warning: implicit declaration of function `getprotobynumber_r'
pp_sys.c:4917: warning: implicit declaration of function `getprotoent_r'
pp_sys.c: In function `Perl_pp_gservent':
pp_sys.c:4994: warning: implicit declaration of function `getservbyname_r'
pp_sys.c:5010: warning: implicit declaration of function `getservbyport_r'
pp_sys.c:5017: warning: implicit declaration of function `getservent_r'
pp_sys.c: In function `Perl_pp_sprotoent':
pp_sys.c:5090: warning: implicit declaration of function `setprotoent_r'
pp_sys.c:5090: error: structure has no member named `_protoent_data'
pp_sys.c: In function `Perl_pp_sservent':
pp_sys.c:5101: warning: implicit declaration of function `setservent_r'
pp_sys.c:5101: error: structure has no member named `_servent_data'
pp_sys.c: In function `Perl_pp_eprotoent':
pp_sys.c:5136: warning: implicit declaration of function `endprotoent_r'
pp_sys.c:5136: error: structure has no member named `_protoent_data'
pp_sys.c: In function `Perl_pp_eservent':
pp_sys.c:5148: warning: implicit declaration of function `endservent_r'
pp_sys.c:5148: error: structure has no member named `_servent_data'
*** Error code 1

>How-To-Repeat:
	Try to build perl58 on NetBSD-3.0_BETA/i386, watch it fail.
>Fix:
	Sorry, none provided.