pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39858: Problem installing pkgsrc/perl-5.8.8nb8 on all NetBSD 5.x (patch included)



>Number:         39858
>Category:       pkg
>Synopsis:       Problem installing pkgsrc/perl-5.8.8nb8 on all NetBSD 5.x 
>(patch included)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 03 01:05:00 +0000 2008
>Originator:     Fredrik Pettai
>Release:        NetBSD 5 BETA (200811010002Z)
>Organization:
NORDUnet A/S
>Environment:
NetBSD red-oct 5.0_BETA NetBSD 5.0_BETA (GENERIC) #0: Sat Nov  1 02:18:42 PDT 
2008  
builds@wb25:/home/builds/ab/netbsd-5/i386/200811010002Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
The perl package (>perl-5.8.8nb8) patch(-ba) does not take NetBSD 5.x into 
account. Trying to install it from /usr/pkgsrc, will end up in this error 
messages:

`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 
-Wdeclaration-after-statement -I/usr/pkg/include -O2 -pthread -I/usr/include  
-Wall
pp_sys.c: In function 'Perl_pp_gprotoent':
pp_sys.c:4970: warning: implicit declaration of function 'getprotobyname_r'
pp_sys.c:4978: warning: implicit declaration of function 'getprotobynumber_r'
pp_sys.c:4985: warning: implicit declaration of function 'getprotoent_r'
pp_sys.c: In function 'Perl_pp_gservent':
pp_sys.c:5061: warning: implicit declaration of function 'getservbyname_r'
pp_sys.c:5077: warning: implicit declaration of function 'getservbyport_r'
pp_sys.c:5084: warning: implicit declaration of function 'getservent_r'
pp_sys.c: In function 'Perl_pp_sprotoent':
pp_sys.c:5157: warning: implicit declaration of function 'setprotoent_r'
pp_sys.c:5157: error: 'REENTR' has no member named '_protoent_data'
pp_sys.c:5157: warning: value computed is not used
pp_sys.c: In function 'Perl_pp_sservent':
pp_sys.c:5168: warning: implicit declaration of function 'setservent_r'
pp_sys.c:5168: error: 'REENTR' has no member named '_servent_data'
pp_sys.c:5168: warning: value computed is not used
pp_sys.c: In function 'Perl_pp_eprotoent':
pp_sys.c:5203: warning: implicit declaration of function 'endprotoent_r'
pp_sys.c:5203: error: 'REENTR' has no member named '_protoent_data'
pp_sys.c:5203: warning: value computed is not used
pp_sys.c: In function 'Perl_pp_eservent':
pp_sys.c:5215: warning: implicit declaration of function 'endservent_r'
pp_sys.c:5215: error: 'REENTR' has no member named '_servent_data'
pp_sys.c:5215: warning: value computed is not used
*** Error code 1

>How-To-Repeat:
Just retrieve /usr/pkgsrc (-2008Q3) from cvs, and install perl.

# cd /usr
# cvs -d anoncvs%anoncvs.NetBSD.org@localhost:/cvsroot co -rpkgsrc-2008Q3 -P 
pkgsrc
# cd pkcsrc/lang/perl
# make
(error message appears)
>Fix:
Patch for /usr/pkgsrc/lang/perl

--- patches/patch-ba.orig       2008-11-03 01:34:17.000000000 +0100
+++ patches/patch-ba    2008-11-03 01:25:12.000000000 +0100
@@ -7,7 +7,7 @@
        ;;
  esac
 +case "$osvers" in
-+0.9*|1.*|2.*|3.*|4.*)
++0.9*|1.*|2.*|3.*|4.*|5.*)
 +      d_getprotoent_r="$undef"
 +      d_getprotobyname_r="$undef"
 +      d_getprotobynumber_r="$undef"



Home | Main Index | Thread Index | Old Index