From owner-freebsd-ports@FreeBSD.ORG Sun May 22 16:36:37 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79E01106566C; Sun, 22 May 2011 16:36:37 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6D3858FC17; Sun, 22 May 2011 16:36:36 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:21b:d3ff:fe38:5381]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.4/8.14.4) with ESMTP/inet6 id p4MGaTaF027193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 May 2011 01:36:29 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 23 May 2011 01:36:29 +0900 Message-ID: From: Hajimu UMEMOTO To: Ion-Mihai Tetcu In-Reply-To: <20110522155135.287edeb7@it.buh.tecnik93.com> References: <20110521083645.346e7b40@seibercom.net> <20110522155135.287edeb7@it.buh.tecnik93.com> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (i386-portbld-freebsd8.2) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 8.2-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Mon, 23 May 2011 01:36:29 +0900 (JST) X-Virus-Scanned: clamav-milter 0.97 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on asuka.mahoroba.org Cc: Jerry , freebsd-ports@FreeBSD.org Subject: Re: net/sendemail fails with perl 5.14 (INET6) (was: Re: "net/sendemail" fails after updating Perl) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 16:36:37 -0000 Hi, >>>>> On Sun, 22 May 2011 15:51:35 +0300 >>>>> Ion-Mihai Tetcu said: > jerry> The port: "/net/sendemail" builds fine after the update to > jerry> Perl; however, it no longer runs. It terminates with this > jerry> error message: > > jerry> Subroutine IO::Socket::INET6::sockaddr_in6 redefined > jerry> at /usr/local/lib/perl5/5.14.0/Exporter.pm line 67. > jerry> at /usr/local/lib/perl5/site_perl/5.14.0/IO/Socket/INET6.pm > jerry> line 21 > > Perl 5.14 has its own IPv6 support. I suspect it is conflict with > p5-IO-Socket-INET6. itetcu> No, a nice thing about this port is that it's self contained (the only itetcu> two optional depends, for TLS, are p5-IO-Socket-SSL and p5-Crypt-SSLeay). Okay, net/sendemail itself doesn't depend on p5-IO-Socket-INET6, directly. However, it seems that p5-IO-Socket-SSL has an option to enable IPv6 support which is off by default. When an IPv6 option is enabled, p5-IO-Socket-SSL depends on p5-IO-Socket-INET6. /usr/local/lib/perl5/site_perl/5.14.0/IO/Socket/INET6.pm imports sockaddr_in6() from Socket6. However, 5.14 has sockaddr_in6() in /usr/local/lib/perl5/5.14.0/mach/Socket.pm. It seems to me that IO::Socket::INET6 has to import sockaddr_in6() conditionally, now. itetcu> The port is at the latest version (released in 2009, hmmmm). itetcu> Since perl 5.14 is not the default, I marked it broken for now and itetcu> ping upstream to see if there's still any active development. itetcu> I don't intend to maintain this as a fork ; anyone wanting to take over itetcu> maintainership has just to ping me. I agreed. 5.14 is not the default. > I found other compatibility issue that 5.14 deesn't has sv_undef, > sv_yes nor sv_no, anymore. It causes that cyrus-imapd doesn't build > with 5.14. Perhaps, there are more ports which are affected by this > issue. itetcu> Any way to detect this at build time? We could od a run on pointy if itetcu> that's the case, and at least have a list of problems. Yes, I found this at build time. I committed the workaround for cyrus-imapd23 and cyrus-imapd24, already. http://www.freebsd.org/cgi/cvsweb.cgi/ports/mail/cyrus-imapd24/files/patch-perl%3A%3Aimap%3A%3AIMAP.xs#rev1.3 Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/