pkgsrc-Bugs archive

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

pkg/49099: pkgsrc/lang/perl5: build failed on NetBSD 7.*.



>Number:         49099
>Category:       pkg
>Synopsis:       pkgsrc/lang/perl5: build failed on NetBSD 7.*.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 11 14:10:00 +0000 2014
>Originator:     NONAKA Kimihiro
>Release:        NetBSD 7.99.1 (20140811)
>Organization:
>Environment:
NetBSD koharu.myhome.local 7.99.1 NetBSD 7.99.1 (KOHARU) #2445: Mon Aug 11 
22:18:08 JST 2014  
nonaka@koharu.myhome.local:/usr/obj.amd64/sys/arch/amd64/compile/KOHARU amd64
>Description:
gcc -c -DPERL_CORE -O2 -pthread -I/usr/include -fwrapv -fno-strict-aliasing 
-pipe -fstack-protector -I/usr/pkg/include -std=c89 -O2 -pthread -I/usr/include 
-Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels 
-Wc++-compat -Wwrite-strings -DPIC -fPIC pp_sys.c
pp_sys.c: In function 'Perl_pp_ghostent':
pp_sys.c:4679:2: warning: implicit declaration of function 'gethostbyname_r' 
[-Wimplicit-function-declaration]
  hent = PerlSock_gethostbyname(name);
  ^
pp_sys.c:4691:2: warning: implicit declaration of function 'gethostbyaddr_r' 
[-Wimplicit-function-declaration]
  hent = PerlSock_gethostbyaddr(addr, (Netdb_hlen_t) addrlen, addrtype);
  ^
pp_sys.c:4698:2: warning: implicit declaration of function 'gethostent_r' 
[-Wimplicit-function-declaration]
  hent = PerlSock_gethostent();
  ^
pp_sys.c: In function 'Perl_pp_gprotoent':
pp_sys.c:4839:2: warning: implicit declaration of function 'getprotobyname_r' 
[-Wimplicit-function-declaration]
  pent = PerlSock_getprotobyname(name);
  ^
pp_sys.c:4847:2: warning: implicit declaration of function 'getprotobynumber_r' 
[-Wimplicit-function-declaration]
  pent = PerlSock_getprotobynumber(number);
  ^
pp_sys.c:4854:2: warning: implicit declaration of function 'getprotoent_r' 
[-Wimplicit-function-declaration]
  pent = PerlSock_getprotoent();
  ^
pp_sys.c: In function 'Perl_pp_gservent':
pp_sys.c:4900:2: warning: implicit declaration of function 'getservbyname_r' 
[-Wimplicit-function-declaration]
  sent = PerlSock_getservbyname(name, (proto && !*proto) ? NULL : proto);
  ^
pp_sys.c:4910:2: warning: implicit declaration of function 'getservbyport_r' 
[-Wimplicit-function-declaration]
  sent = PerlSock_getservbyport(port, (proto && !*proto) ? NULL : proto);
  ^
pp_sys.c:4917:2: warning: implicit declaration of function 'getservent_r' 
[-Wimplicit-function-declaration]
  sent = PerlSock_getservent();
  ^
pp_sys.c: In function 'Perl_pp_shostent':
pp_sys.c:4955:2: warning: implicit declaration of function 'sethostent_r' 
[-Wimplicit-function-declaration]
  PerlSock_sethostent(stayopen);
  ^
In file included from op.h:728:0,
                 from perl.h:3303,
                 from pp_sys.c:31:
reentr.h:1329:67: error: 'REENTR' has no member named '_hostent_data'
 #       define sethostent(a) (sethostent_r(a, 
&PL_reentrant_buffer->_hostent_data) == 0 ? 1 : 0)
                                                                   ^
iperlsys.h:1397:33: note: in expansion of macro 'sethostent'
 #define PerlSock_sethostent(f)  sethostent(f)
                                 ^
pp_sys.c:4955:2: note: in expansion of macro 'PerlSock_sethostent'
  PerlSock_sethostent(stayopen);
  ^
pp_sys.c:4969:2: warning: implicit declaration of function 'setprotoent_r' 
[-Wimplicit-function-declaration]
  PerlSock_setprotoent(stayopen);
  ^
In file included from op.h:728:0,
                 from perl.h:3303,
                 from pp_sys.c:31:
reentr.h:1362:69: error: 'REENTR' has no member named '_protoent_data'
 #       define setprotoent(a) (setprotoent_r(a, 
&PL_reentrant_buffer->_protoent_data) == 0 ? 1 : 0)
                                                                     ^
iperlsys.h:1399:34: note: in expansion of macro 'setprotoent'
 #define PerlSock_setprotoent(f)  setprotoent(f)
                                  ^
pp_sys.c:4969:2: note: in expansion of macro 'PerlSock_setprotoent'
  PerlSock_setprotoent(stayopen);
  ^
pp_sys.c:4976:2: warning: implicit declaration of function 'setservent_r' 
[-Wimplicit-function-declaration]
  PerlSock_setservent(stayopen);
  ^
In file included from op.h:728:0,
                 from perl.h:3303,
                 from pp_sys.c:31:
reentr.h:1386:67: error: 'REENTR' has no member named '_servent_data'
 #       define setservent(a) (setservent_r(a, 
&PL_reentrant_buffer->_servent_data) == 0 ? 1 : 0)
                                                                   ^
iperlsys.h:1400:33: note: in expansion of macro 'setservent'
 #define PerlSock_setservent(f)  setservent(f)
                                 ^
pp_sys.c:4976:2: note: in expansion of macro 'PerlSock_setservent'
  PerlSock_setservent(stayopen);
  ^
pp_sys.c: In function 'Perl_pp_ehostent':
pp_sys.c:4991:2: warning: implicit declaration of function 'endhostent_r' 
[-Wimplicit-function-declaration]
  PerlSock_endhostent();
  ^
In file included from op.h:728:0,
                 from perl.h:3303,
                 from pp_sys.c:31:
reentr.h:834:63: error: 'REENTR' has no member named '_hostent_data'
 #       define endhostent() (endhostent_r(&PL_reentrant_buffer->_hostent_data) 
== 0 ? 1 : 0)
                                                               ^
iperlsys.h:1366:30: note: in expansion of macro 'endhostent'
 #define PerlSock_endhostent  endhostent
                              ^
pp_sys.c:4991:2: note: in expansion of macro 'PerlSock_endhostent'
  PerlSock_endhostent();
  ^
pp_sys.c:5005:2: warning: implicit declaration of function 'endprotoent_r' 
[-Wimplicit-function-declaration]
  PerlSock_endprotoent();
  ^
In file included from op.h:728:0,
                 from perl.h:3303,
                 from pp_sys.c:31:
reentr.h:858:65: error: 'REENTR' has no member named '_protoent_data'
 #       define endprotoent() 
(endprotoent_r(&PL_reentrant_buffer->_protoent_data) == 0 ? 1 : 0)
                                                                 ^
iperlsys.h:1378:31: note: in expansion of macro 'endprotoent'
 #define PerlSock_endprotoent  endprotoent
                               ^
pp_sys.c:5005:2: note: in expansion of macro 'PerlSock_endprotoent'
  PerlSock_endprotoent();
  ^
pp_sys.c:5012:2: warning: implicit declaration of function 'endservent_r' 
[-Wimplicit-function-declaration]
  PerlSock_endservent();
  ^
In file included from op.h:728:0,
                 from perl.h:3303,
                 from pp_sys.c:31:
reentr.h:882:63: error: 'REENTR' has no member named '_servent_data'
 #       define endservent() (endservent_r(&PL_reentrant_buffer->_servent_data) 
== 0 ? 1 : 0)
                                                               ^
iperlsys.h:1383:30: note: in expansion of macro 'endservent'
 #define PerlSock_endservent  endservent
                              ^
pp_sys.c:5012:2: note: in expansion of macro 'PerlSock_endservent'
  PerlSock_endservent();
  ^
*** Error code 1

Stop.
make: stopped in /usr/obj.pkgsrc/lang/perl5/work.koharu/perl-5.20.0
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/perl5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/perl5

>How-To-Repeat:
( cd pkgsrc/lang/perl5 && make ) on NetBSD 7.99.1.
>Fix:
Apply the following patch.

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5/distinfo,v
retrieving revision 1.121
diff -u -r1.121 distinfo
--- distinfo    8 Jun 2014 23:35:55 -0000       1.121
+++ distinfo    11 Aug 2014 13:53:12 -0000
@@ -17,7 +17,7 @@
 SHA1 (patch-ext_Errno_Errno__pm.PL) = 4f135e267da17de38f8f1e7e03d5209bfd09a323
 SHA1 (patch-hints_cygwin.sh) = 1b21d927d6b7379754c4cd64a2b05d3632c35470
 SHA1 (patch-hints_darwin.sh) = c561d1862f8ca76652a35741c691394eb8cda70a
-SHA1 (patch-hints_netbsd.sh) = 027722c47bb01aa8db21e534178432cd26b49cdf
+SHA1 (patch-hints_netbsd.sh) = 95f38b45e17da61a863c31f9e0cb7bd15c8130e9
 SHA1 (patch-hints_sco.sh) = 8d43cdc0632799e1cdb5dc6fdb968052a9ae4216
 SHA1 (patch-install__lib.pl) = 31e9e0fc34386542dd6a60bf6ca0a607babbd4b6
 SHA1 (patch-ta) = a9d13eeec22733e4087942f217a0d47a19498a6f
Index: patches/patch-hints_netbsd.sh
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5/patches/patch-hints_netbsd.sh,v
retrieving revision 1.8
diff -u -r1.8 patch-hints_netbsd.sh
--- patches/patch-hints_netbsd.sh       13 Nov 2013 13:36:02 -0000      1.8
+++ patches/patch-hints_netbsd.sh       11 Aug 2014 13:53:12 -0000
@@ -3,10 +3,11 @@
 --whole-archive is a linker flag, not a compiler flag
 Better defaults for paths.
 Stop grovelling for functions we don't want to provide (*host*)
+Support NetBSD 7.*.
 
---- hints/netbsd.sh.orig       2013-05-23 23:38:10.000000000 +0000
-+++ hints/netbsd.sh
-@@ -36,16 +36,6 @@ case "$osvers" in
+--- hints/netbsd.sh.orig       2014-02-01 06:55:51.000000000 +0900
++++ hints/netbsd.sh    2014-08-11 22:46:26.000000000 +0900
+@@ -36,16 +36,6 @@
                d_dlerror=$define
                cccdlflags="-DPIC -fPIC $cccdlflags"
                lddlflags="-shared $lddlflags"
@@ -23,7 +24,16 @@
                rpathflag="-Wl,-rpath,"
                case "$osvers" in
                1.[0-5]*)
-@@ -100,6 +90,12 @@ case "$osvers" in
+@@ -89,7 +79,7 @@
+       ;;
+ esac
+ case "$osvers" in
+-0.9*|1.*|2.*|3.*|4.*|5.*|6.*)
++0.9*|1.*|2.*|3.*|4.*|5.*|6.*|7.*)
+       d_getprotoent_r="$undef"
+       d_getprotobyname_r="$undef"
+       d_getprotobynumber_r="$undef"
+@@ -100,6 +90,12 @@
        d_getservbyport_r="$undef"
        d_setservent_r="$undef"
        d_endservent_r="$undef"
@@ -36,7 +46,7 @@
        d_getprotoent_r_proto="0"
        d_getprotobyname_r_proto="0"
        d_getprotobynumber_r_proto="0"
-@@ -110,6 +106,12 @@ case "$osvers" in
+@@ -110,6 +106,12 @@
        d_getservbyport_r_proto="0"
        d_setservent_r_proto="0"
        d_endservent_r_proto="0"
@@ -49,7 +59,7 @@
        ;;
  esac
  
-@@ -186,10 +188,12 @@ esac
+@@ -186,10 +188,12 @@
  EOCBU
  
  # Set sensible defaults for NetBSD: look for local software in



Home | Main Index | Thread Index | Old Index