NetBSD Problem Report #37380

From martin@duskware.de  Tue Nov 13 21:41:02 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 58AEF63B867
	for <gnats-bugs@gnats.netbsd.org>; Tue, 13 Nov 2007 21:41:02 +0000 (UTC)
Message-Id: <20071113214005.23F6D63BA68@narn.NetBSD.org>
Date: Tue, 13 Nov 2007 21:40:05 +0000 (UTC)
From: srcshelton@gmail.com
Reply-To: srcshelton@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: pkgtools/p5-pkgsrc-Dewey fails due to missing err function on IRIX
X-Send-Pr-Version: www-1.0

>Number:         37380
>Category:       pkg
>Synopsis:       pkgtools/p5-pkgsrc-Dewey fails due to missing err function on IRIX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 13 21:45:00 +0000 2007
>Closed-Date:    Sun May 01 06:03:53 +0000 2016
>Last-Modified:  Sun May 01 06:03:53 +0000 2016
>Originator:     Stuart Shelton
>Release:        n/a - pkgsrc from CVS
>Organization:
>Environment:
IRIX64 octane 6.5 07202013 IP30 ; MIPSpro 7.4.4m compilers
>Description:

pkgtools/p5-pkgsrc-Dewey fails because it contains '#include <err.h>'  and uses the 'err' function, but neither exists on IRIX :(

The build appears to succeed, but the test failure output is:


===> test-message [p5-pkgsrc-Dewey-1.0nb1] ===> Testing for p5-pkgsrc-Dewey-1.0nb1
PERL_DL_NONLAZY=1 /usr/bsd/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Dewey....NOK 1                                                             
#   Failed test 'use pkgsrc::Dewey;'
#   at t/Dewey.t line 9.
#     Tried to use 'pkgsrc::Dewey'.
#     Error:  Can't load '/usr/bsd/var/tmp/pkgtools/p5-pkgsrc-Dewey/work/p5-pkgsrc-Dewey-1.0/blib/arch/auto/pkgsrc/Dewey/Dewey.so' for module pkgsrc::Dewey: 3132286:/usr/bsd/bin/perl: rld: Fatal Error: unresolvable symbol in /usr/bsd/var/tmp/pkgtools/p5-pkgsrc-Dewey/work/p5-pkgsrc-Dewey-1.0/blib/arch/auto/pkgsrc/Dewey/Dewey.so: err at /usr/bsd/lib/perl5/5.8.0/mipseb-irix-thread-multi/DynaLoader.pm line 230.
#  at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/Dewey.t line 9.
Undefined subroutine &main::dewey_cmp called at t/Dewey.t line 16.
# Looks like you planned 5 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/Dewey....dubious                                                           
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-5
        Failed 5/5 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/Dewey.t    255 65280     5    9 180.00%  1-5
Failed 1/1 test scripts, 0.00% okay. 5/5 subtests failed, 0.00% okay.
*** Error code 255

Stop.
bmake: stopped in /usr/bsd/var/tmp/pkgtools/p5-pkgsrc-Dewey/work/p5-pkgsrc-Dewey-1.0
*** Error code 1

Stop.
bmake: stopped in /usr/bsd/src/pkgtools/p5-pkgsrc-Dewey
*** Error code 1

Stop.
bmake: stopped in /usr/bsd/src/pkgtools/p5-pkgsrc-Dewey


... the output is identical regardless of whether libnbcompat/inplace.mk is included in the Makefile - I guess there's more needed to have the libnbcompat includes & libraries actually used for a package: as well as the include in the package Makefile, what else needs to be done to make libnbcompat-specific headers available to a package?

>How-To-Repeat:

The previous p5-pkgsrc-Dewey was removed when I upgraded perl5.  This problem allows p5-pkgsrc-Dewey to be installed, but it doesn't work at all.
>Fix:

I threw together a patch to defs.h (v1.5, 2006/04/24) which replaced calls to err() within macros NEWARRAY, RENEW, and ALLOC (and defined support macros NEW and FREE) with 'fprintf( stderr, ....)'.

This worked for me then, but the source must have changed since - and in-tree is where this should really be fixed.

>Release-Note:

>Audit-Trail:
From: "Stuart Shelton" <srcshelton@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/37380: pkgtools/p5-pkgsrc-Dewey fails due to missing err function on IRIX
Date: Tue, 13 Nov 2007 22:10:19 +0000

 Actually, it'd probably make sense to replace calls to the err with
 calls to perror() or fprintf() and exit().

 Having said that, even when this is done I get the following output:


 ===> test-message [p5-pkgsrc-Dewey-1.0nb1] ===> Testing for
 p5-pkgsrc-Dewey-1.0nb1
 PERL_DL_NONLAZY=1 /usr/bsd/bin/perl "-MExtUtils::Command::MM" "-e"
 "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
 t/Dewey....dubious
         Test returned status 1 (wstat 256, 0x100)
 DIED. FAILED tests 2-5
         Failed 4/5 tests, 20.00% okay
 Failed Test Stat Wstat Total Fail  Failed  List of Failed
 -------------------------------------------------------------------------------
 t/Dewey.t      1   256     5    8 160.00%  2-5
 Failed 1/1 test scripts, 0.00% okay. 4/5 subtests failed, 20.00% okay.
 *** Error code 1

 Stop.
 bmake: stopped in
 /usr/bsd/var/tmp/pkgtools/p5-pkgsrc-Dewey/work/p5-pkgsrc-Dewey-1.0
 *** Error code 1

 Stop.
 bmake: stopped in /usr/bsd/src/pkgtools/p5-pkgsrc-Dewey
 *** Error code 1

 Stop.
 bmake: stopped in /usr/bsd/src/pkgtools/p5-pkgsrc-Dewey


 ... so there's obviously something else not right...


 On 13/11/2007, gnats-admin@netbsd.org <gnats-admin@netbsd.org> wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `pkg/37380'.
 > The individual assigned to look at your
 > report is: pkg-manager.
 >
 > >Category:       pkg
 > >Responsible:    pkg-manager
 > >Synopsis:       pkgtools/p5-pkgsrc-Dewey fails due to missing err function on IRIX
 > >Arrival-Date:   Tue Nov 13 21:45:00 +0000 2007
 >
 >

Responsible-Changed-From-To: pkg-manager->wiz
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Wed, 14 Nov 2007 00:51:43 +0000
Responsible-Changed-Why:
Over to maintainer.
USE_FEATURES+=err fixes this?


From: Stuart Shelton <srcshelton@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: wiz@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
	gnats-admin@netbsd.org, obache@netbsd.org
Subject: Re: pkg/37380 (pkgtools/p5-pkgsrc-Dewey fails due to missing err function on IRIX)
Date: Tue, 20 Nov 2007 19:49:20 +0000

 Nope - no effect, unfortunately.


 On 14 Nov 2007, at 00:51, obache@netbsd.org wrote:

 > Synopsis: pkgtools/p5-pkgsrc-Dewey fails due to missing err function  
 > on IRIX
 >
 > Responsible-Changed-From-To: pkg-manager->wiz
 > Responsible-Changed-By: obache@netbsd.org
 > Responsible-Changed-When: Wed, 14 Nov 2007 00:51:43 +0000
 > Responsible-Changed-Why:
 > Over to maintainer.
 > USE_FEATURES+=err fixes this?
 >
 >
 >

Responsible-Changed-From-To: wiz->joerg
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sun, 25 Nov 2007 12:35:12 +0000
Responsible-Changed-Why:
The code in question is in pkg_install -- joerg, could you please take a look
at it?


From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/37380 (pkgtools/p5-pkgsrc-Dewey fails due to missing err
	function on IRIX)
Date: Mon, 26 Nov 2007 12:30:46 +0100

 On Sun, Nov 25, 2007 at 12:35:14PM +0000, wiz@netbsd.org wrote:
 > Responsible-Changed-Why:
 > The code in question is in pkg_install -- joerg, could you please take a look
 > at it?

 It works in pkg_install though. I suppose the source of the problem is
 that p5-pkgsrc-Dewey is not actually including libnbcompat and running
 its configure.

 Joerg

Responsible-Changed-From-To: joerg->pkg-manager
Responsible-Changed-By: joerg@narn.netbsd.org
Responsible-Changed-When: Sat, 26 Jan 2008 23:35:00 +0000
Responsible-Changed-Why:
Assign back to role account, I don't deal with the specific
issues of the Perl wrapper. Problem is discussed in the PR.


Responsible-Changed-From-To: pkg-manager->tnn
Responsible-Changed-By: tnn@narn.netbsd.org
Responsible-Changed-When: Fri, 22 Feb 2008 13:21:54 +0000
Responsible-Changed-Why:
Take. To be able to support shared modules (such as
perl modules) the features framework will need some updates.
Working on this.


From: Steven Drake <sbd@users.sf.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/37380 (pkgtools/p5-pkgsrc-Dewey fails due to missing err
 function on IRIX)
Date: Wed, 25 Mar 2009 21:37:11 +1300 (NZDT)

 Same problem on linux!

 to fix (on linux) add to the Makefile:

 USE_FEATURES+=err
 MAKE_ENV+=LIBS=${LIBS:Q}

 and apply this patch:

 --- Makefile.PL
 +++ Makefile.PL
 @@ -5,4 +5,5 @@ WriteMakefile(
      VERSION_FROM      => 'Dewey.pm', # finds $VERSION
      INC               => '-I.',
      OBJECT            => '$(O_FILES)', # link all the C files too
 +    LIBS              => "$ENV{LDFLAGS} $ENV{LIBS}", # for -lnbcompat
  );

Responsible-Changed-From-To: tnn->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 01 Feb 2013 22:42:27 +0000
Responsible-Changed-Why:
Back to role account.


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/37380 CVS commit: pkgsrc/pkgtools/p5-pkgsrc-Dewey
Date: Thu, 18 Jun 2015 06:29:18 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Thu Jun 18 06:29:18 UTC 2015

 Modified Files:
 	pkgsrc/pkgtools/p5-pkgsrc-Dewey: Makefile
 	pkgsrc/pkgtools/p5-pkgsrc-Dewey/files: Makefile.PL

 Log Message:
 Apply sbd's patch for PR 37380 to fix build failure on systems without
 err(3) in libc.


 To generate a diff of this commit:
 cvs rdiff -u -r1.26 -r1.27 pkgsrc/pkgtools/p5-pkgsrc-Dewey/Makefile
 cvs rdiff -u -r1.1.1.1 -r1.2 \
     pkgsrc/pkgtools/p5-pkgsrc-Dewey/files/Makefile.PL

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 18 Jun 2015 06:30:44 +0000
State-Changed-Why:
should be fixed, please check when an opportunity arises


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 01 May 2016 06:03:53 +0000
State-Changed-Why:
feedback timeout


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.