NetBSD Problem Report #47084
From www@NetBSD.org Tue Oct 16 09:33:48 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 7C26963E424
for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Oct 2012 09:33:48 +0000 (UTC)
Message-Id: <20121016093347.5F4CD63E410@www.NetBSD.org>
Date: Tue, 16 Oct 2012 09:33:47 +0000 (UTC)
From: admin@freenet59.ru
Reply-To: admin@freenet59.ru
To: gnats-bugs@NetBSD.org
Subject: perl-5.16.1 fails to build Haiku OS
X-Send-Pr-Version: www-1.0
>Number: 47084
>Category: pkg
>Synopsis: perl-5.16.1 fails to build Haiku OS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: haiku-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 16 09:35:00 +0000 2012
>Closed-Date: Mon Apr 29 00:22:33 +0000 2013
>Last-Modified: Mon Apr 29 00:22:33 +0000 2013
>Originator: Diger
>Release: Haiku 1 BePC
>Organization:
freenet
>Environment:
Haiku work 1 hrev44659 Sep 20 2012 13:04:37 BePC Haiku
>Description:
I try to build perl 5.16.1 through pkgsrc on Haiku.
Making x2p stuff
--- pod/perltoc.pod ---
LIBRARY_PATH=/Haiku-Work/build/lang/perl5/work/perl-5.16.1:%A/lib:/boot/home/config/lib:/boot/common/lib:/boot/system/lib ./perl -f -Ilib pod/buildtoc -q
--- translators ---
--- s2p ---
../miniperl -I../lib s2p.PL
Extracting s2p (with variable substitutions)
Linking s2p to psed.
--- find2perl ---
../miniperl -I../lib find2perl.PL
--- pod/perltoc.pod ---
resolve symbol "PL_L1PosixUpper" returned: -2147478780
Can't load 'lib/auto/re/re.so' for module re: Symbol not found at lib/XSLoader.pm line 68.
at lib/re.pm line 85.
Compilation failed in require at lib/Text/Wrap.pm line 50.
BEGIN failed--compilation aborted at lib/Text/Wrap.pm line 50.
Compilation failed in require at pod/buildtoc line 7.
BEGIN failed--compilation aborted at pod/buildtoc line 7.
*** [pod/perltoc.pod] Error code 255
bmake: stopped in /Haiku-Work/build/lang/perl5/work/perl-5.16.1
==========================
Previously successful build of Perl 5.14. Build perl native also successful.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->haiku-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 16 Oct 2012 10:35:34 +0000
Responsible-Changed-Why:
Problem on Haiku.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
Date: Tue, 16 Oct 2012 20:22:11 +0900
Last my build of perl with pkgsrc on Haiku OS is (probably) 5.12.x on R1 Alpha2.
I would like to do setup recent environment and try later, but I'm not familiar
with recent Haiku status and your environment, so please let me know followings:
1. i386? or x86_64?
2. builtin perl (with version if exists)
3. environment variables affect to build (gcc version, LIBRARY_PATH, and so on)
--
OBATA Akio / obache@NetBSD.org
From: =?UTF-8?Q?=D0=91=D0=BE=D1=80=D0=BE=D0=B4=D1=83=D0=BB=D0=B8=D0=BD_=D0=92=D0=B8=D1=82=D0=B0=D0=BB=D0=B8=D0=B9_=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= <admin@freenet59.ru>
To: <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
Date: Wed, 17 Oct 2012 10:45:14 +0600
On Tue, 16 Oct 2012 11:25:02 +0000 (UTC), "OBATA Akio" <obache@netbsd.org>
wrote:
> The following reply was made to PR pkg/47084; it has been noted by
GNATS.
>
> From: "OBATA Akio" <obache@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
> Date: Tue, 16 Oct 2012 20:22:11 +0900
>
> Last my build of perl with pkgsrc on Haiku OS is (probably) 5.12.x on
R1
> Alpha2.
>
> I would like to do setup recent environment and try later, but I'm not
> familiar
> with recent Haiku status and your environment, so please let me know
> followings:
>
> 1. i386? or x86_64?
> 2. builtin perl (with version if exists)
> 3. environment variables affect to build (gcc version, LIBRARY_PATH,
and
> so on)
>
> --
> OBATA Akio / obache@NetBSD.org
Hi OBATA Akio.
1. I use Haiku hrev44659 gcc4 i386
2. perl 5, version 14, subversion 2 (v5.14.2) built for i386-haiku, build
with pkgsrc
3. gcc version 4.6.3
PATH=.:/boot/home/config/bin:/boot/common/bin:/bin:/boot/apps:/boot/preferences:/boot/system/apps:/boot/system/preferences:/boot/develop/tools/gnupro/bin:/boot/common/pkg/bin
BELIBRARIES=/boot/develop/abi/current/library-paths/common:/boot/develop/lib/x86
--
Jabber ID: admin@freenet59.ru
--
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
Date: Wed, 17 Oct 2012 21:51:29 +0900
I still using R1 Alpha2 though, I can build perl-5.16.1 with gcc2.
then try to use gcc4 with "/bin/setgcc gcc4"
I found following ticket on Haiku Development Tracker:
http://dev.haiku-os.org/ticket/8931
(perl fails to build with gcc4 - multiple definition of `__stack_chk_fail_local')
After apply following patch mentioned in the ticket, the issue will not be happened;
http://lists.ports.haiku-files.org/pipermail/haikuports-devs-ports.haiku-files.org/2010-April/000917.html
Then I hit issues similar to yours (but differnt symbol).
After rename /boot/common/libperl.so to *.bak, the issue had gone away.
(it is for bundled perl-5.10.1, not from pkgsrc)
Haiku with gcc4 may have the issue loading unwanted shlib.
( One issue not relevant to gcc already should be fixed
http://dev.haiku-os.org/ticket/7638 )
--
OBATA Akio / obache@NetBSD.org
From: diger <admin@freenet59.ru>
To: <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
Date: Wed, 17 Oct 2012 23:42:27 +0600
On Wed, 17 Oct 2012 12:55:02 +0000 (UTC), "OBATA Akio" <obache@netbsd.org>
wrote:
> The following reply was made to PR pkg/47084; it has been noted by
GNATS.
>
> From: "OBATA Akio" <obache@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
> Date: Wed, 17 Oct 2012 21:51:29 +0900
>
> I still using R1 Alpha2 though, I can build perl-5.16.1 with gcc2.
> then try to use gcc4 with "/bin/setgcc gcc4"
>
> I found following ticket on Haiku Development Tracker:
> http://dev.haiku-os.org/ticket/8931
> (perl fails to build with gcc4 - multiple definition of
> `__stack_chk_fail_local')
>
> After apply following patch mentioned in the ticket, the issue will not
> be happened;
>
http://lists.ports.haiku-files.org/pipermail/haikuports-devs-ports.haiku-files.org/2010-April/000917.html
>
> Then I hit issues similar to yours (but differnt symbol).
> After rename /boot/common/libperl.so to *.bak, the issue had gone away.
> (it is for bundled perl-5.10.1, not from pkgsrc)
>
> Haiku with gcc4 may have the issue loading unwanted shlib.
> ( One issue not relevant to gcc already should be fixed
> http://dev.haiku-os.org/ticket/7638 )
>
> --
> OBATA Akio / obache@NetBSD.org
Ticket #8931 now closed http://dev.haiku-os.org/ticket/8931#comment:12
Now Pearl build native and earlier I build of perl from pkgsrc. I am using
perl 5.14.2 from pkgsrc...
--
Jabber ID: admin@freenet59.ru
--
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
Date: Sat, 20 Oct 2012 16:30:14 +0900
On Thu, 18 Oct 2012 02:45:02 +0900, diger <admin@freenet59.ru> wrote:
> Ticket #8931 now closed http://dev.haiku-os.org/ticket/8931#comment:12
> Now Pearl build native and earlier I build of perl from pkgsrc. I am using
> perl 5.14.2 from pkgsrc...
* succeed to build native perl (5.10.1) in /boot/common
* succeed to build pkgsrc perl (5.14.2) in /boot/common/pkg
* failed to build perl 5.16.1 from pkgsrc
OK?
I believe that workaround for you also "temporary rename /boot/common/lib/libperl.so
to something like libperl.so.bak".
I found some RPATH related issues, and hopefully will fix it later...
--
OBATA Akio / obache@NetBSD.org
From: diger <admin@freenet59.ru>
To: <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
Date: Sun, 21 Oct 2012 00:09:14 +0600
On Sat, 20 Oct 2012 07:35:03 +0000 (UTC), "OBATA Akio" <obache@netbsd.org>
wrote:
> The following reply was made to PR pkg/47084; it has been noted by
GNATS.
>
> From: "OBATA Akio" <obache@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/47084: perl-5.16.1 fails to build Haiku OS
> Date: Sat, 20 Oct 2012 16:30:14 +0900
>
> On Thu, 18 Oct 2012 02:45:02 +0900, diger <admin@freenet59.ru> wrote:
>
> > Ticket #8931 now closed
http://dev.haiku-os.org/ticket/8931#comment:12
> > Now Pearl build native and earlier I build of perl from pkgsrc. I am
> > using
> > perl 5.14.2 from pkgsrc...
>
> * succeed to build native perl (5.10.1) in /boot/common
> * succeed to build pkgsrc perl (5.14.2) in /boot/common/pkg
> * failed to build perl 5.16.1 from pkgsrc
>
> OK?
>
> I believe that workaround for you also "temporary rename
> /boot/common/lib/libperl.so
> to something like libperl.so.bak".
>
> I found some RPATH related issues, and hopefully will fix it later...
>
> --
> OBATA Akio / obache@NetBSD.org
Thank you OBATA, it helped me!
--
Jabber ID: admin@freenet59.ru
--
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 29 Apr 2013 00:22:33 +0000
State-Changed-Why:
Fixed finally with mk/buildlink/bsd.buildlink3.mk,v 1.219,
avoid to add system default rpath /boot/common/lib.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.