NetBSD Problem Report #55109

From www@netbsd.org  Thu Mar 26 06:21:24 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C63B51A9213
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 26 Mar 2020 06:21:24 +0000 (UTC)
Message-Id: <20200326062123.B773D1A9217@mollari.NetBSD.org>
Date: Thu, 26 Mar 2020 06:21:23 +0000 (UTC)
From: grahjenk@hotmail.com
Reply-To: grahjenk@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: p5-WWW-Curl Package is no longer available; 'cpan -i WWW::Curl' fails
X-Send-Pr-Version: www-1.0

>Number:         55109
>Category:       pkg
>Synopsis:       p5-WWW-Curl Package is no longer available; 'cpan -i WWW::Curl' fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 26 06:25:00 +0000 2020
>Closed-Date:    Sat Jul 10 22:29:32 +0000 2021
>Last-Modified:  Sat Jul 10 22:29:32 +0000 2021
>Originator:     Graham Jenkins
>Release:        NetBSD 9.0 amd64
>Organization:
>Environment:
NetBSD sunskink.duckdns.org 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
I was able to successfully use p5-WWW-Curl-4.17nb11 on a previous
(NetBSD 8.0) version, but an equivalent for NetBSD 9.0 doesn't seem to be available, as shown hereunder.

I have tried using:
--
#!/usr/bin/env perl
BEGIN { eval { require Net::Curl::Compat; } }
use WWW::Curl::Easy;
use vars qw($VERSION);
..
--

But it doesn't seem to completely solve my problem.



>How-To-Repeat:
An attempt to install using: 'cpan -i WWW::Curl' fails thus:
 ..
Running make for S/SZ/SZBALINT/WWW-Curl-4.17.tar.gz
cp lib/WWW/Curl/Share.pm blib/lib/WWW/Curl/Share.pm
cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm
cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm
cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
 ..
gcc -c  -I/usr/pkg/include  -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -fwrapv -fno-strict-aliasing -pipe -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include    -DVERSION=\"4.17\"  -DXS_VERSION=\"4.17\" -DPIC -fPIC "-I/usr/pkg/lib/perl5/5.30.0/x86_64-netbsd-thread-multi/CORE"   Curl.c
Curl.xs:76:12: error: expected '{' before 'void'
     struct void *curlm;
            ^~~~
Curl.xs:76:12: error: two or more data types in declaration specifiers
In file included from Curl.xs:14:0:
Curl.xs: In function 'perl_curl_multi_new':
/usr/pkg/lib/perl5/5.30.0/x86_64-netbsd-thread-multi/CORE/handy.h:2320:25: warning: division by zero [-Wdiv-by-zero]
             MEM_SIZE_MAX/sizeof(t)) > MEM_SIZE_MAX/sizeof(t))
                         ^
/usr/pkg/lib/perl5/5.30.0/x86_64-netbsd-thread-multi/CORE/perl.h:3445:62: note: in definition of macro 'EXPECT'
 #  define EXPECT(expr,val)                  __builtin_expect(expr,val)
                                                              ^~~~
/usr/pkg/lib/perl5/5.30.0/x86_64-netbsd-thread-multi/CORE/perl.h:3450:52: note: in expansion of macro 'cBOOL'
 #define UNLIKELY(cond)                      EXPECT(cBOOL(cond),FALSE)


>Fix:
Make: p5-WWW-Curl-4.17nb11 available for NetBSD 9.0 amd64


>Release-Note:

>Audit-Trail:
From: Thomas Klausner <tk@giga.or.at>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/55109: p5-WWW-Curl Package is no longer available; 'cpan -i
 WWW::Curl' fails
Date: Thu, 26 Mar 2020 09:25:00 +0100

 Hi!

 There is an upstream bug report about this:

 https://rt.cpan.org/Public/Bug/Display.html?id=130591

 Looking at the bug reports in general, this does not seem supported by
 upstream at all for some years now. I suggest switching to some other
 way to interact with curl.
  Thomas

From: Graham Jenkins <grahjenk@hotmail.com>
To: "pkg-manager@netbsd.org" <pkg-manager@netbsd.org>,
	"gnats-admin@netbsd.org" <gnats-admin@netbsd.org>, "pkgsrc-bugs@netbsd.org"
	<pkgsrc-bugs@netbsd.org>, "gnats-bugs@netbsd.org" <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/55109: p5-WWW-Curl Package is no longer available; 'cpan -i
 WWW::Curl' fails
Date: Fri, 27 Mar 2020 05:57:10 +0000

 --_000_PS2P216MB01474CE713C4BAF906CC3CA4D9CC0PS2P216MB0147KORP_
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable

 Thanks Thomas. Turns out there is an easy solution which allows an existing=
  program to execute on machines (Ubuntu 18.04!) which have WWW::Curl::Easy =
 and also on machines which don't  .. thus
 --
 #!/usr/bin/env perl
 use strict;
 use warnings;
 BEGIN { eval { require Net::Curl::Compat; } }
 use WWW::Curl::Easy;
 use Sys::Syslog;
  .. etc
 --
 Regards ..
 Graham Jenkins
 ________________________________

 --_000_PS2P216MB01474CE713C4BAF906CC3CA4D9CC0PS2P216MB0147KORP_
 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable

 <html>
 <head>
 <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
 1">
 <style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
 ttom:0;} </style>
 </head>
 <body dir=3D"ltr">
 <div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
  color: rgb(0, 0, 0);">
 Thanks Thomas. Turns out there is an easy solution which allows an existing=
  program to execute on machines (Ubuntu 18.04!) which have WWW::Curl::Easy =
 and also on machines which don't&nbsp; .. thus</div>
 <div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
  color: rgb(0, 0, 0);">
 --</div>
 <blockquote style=3D"margin-top: 0px; margin-bottom: 0px;">
 <div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
  color: rgb(0, 0, 0);">
 <span>#!/usr/bin/env perl<br>
 </span>
 <div>use strict;<br>
 </div>
 <div>use warnings;<br>
 </div>
 <div>BEGIN { eval { require Net::Curl::Compat; } }<br>
 </div>
 <div>use WWW::Curl::Easy;<br>
 </div>
 <div>use Sys::Syslog;<br>
 </div>
 <span>&nbsp;.. etc</span><br>
 </div>
 </blockquote>
 <div>
 <div id=3D"appendonsend"></div>
 <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col=
 or:rgb(0,0,0)">
 --</div>
 <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col=
 or:rgb(0,0,0)">
 Regards ..</div>
 <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col=
 or:rgb(0,0,0)">
 Graham Jenkins<br>
 </div>
 <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
 </div>
 </body>
 </html>

 --_000_PS2P216MB01474CE713C4BAF906CC3CA4D9CC0PS2P216MB0147KORP_--

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 10 Jul 2021 22:29:32 +0000
State-Changed-Why:
p5-WWW-Curl was, eventually, removed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.