NetBSD Problem Report #48990

From www@NetBSD.org  Mon Jul 14 02:13:45 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E7B5CA654D
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Jul 2014 02:13:45 +0000 (UTC)
Message-Id: <20140714021344.44A70A6559@mollari.NetBSD.org>
Date: Mon, 14 Jul 2014 02:13:44 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: audio/pulseaudio build failure on netbsd-5/i386
X-Send-Pr-Version: www-1.0

>Number:         48990
>Category:       pkg
>Synopsis:       audio/pulseaudio build failure on netbsd-5/i386
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 14 02:15:00 +0000 2014
>Closed-Date:    Thu Jul 17 23:37:19 +0000 2014
>Last-Modified:  Thu Jul 17 23:37:19 +0000 2014
>Originator:     John D. Baker
>Release:        NetBSD/i386-5.2_STABLE, pkgsrc-2014Q2
>Organization:
>Environment:
NetBSD verthandi.technoskunk.fur 5.2_STABLE NetBSD 5.2_STABLE (VERTHANDI) #17: Wed May 21 19:01:55 CDT 2014  sysop@verthandi.technoskunk.fur:/d0/build/netbsd-5/obj/i386/sys/arch/i386/compile/VERTHANDI i386

>Description:
Attempting to build "audio/pulseaudio" from pkgsrc-2014Q2 on
netbsd-5/i386 fails as follows:

[...]
  CCLD     pulseaudio
/d0/build/pkgsrc/audio/pulseaudio/work/.buildlink/lib/libjson-c.so: undefined reference to `__sync_val_compare_and_swap_4'
Makefile:6135: recipe for target 'pulseaudio' failed
gmake[3]: *** [pulseaudio] Error 1
gmake[3]: Leaving directory '/d0/build/pkgsrc/audio/pulseaudio/work/pulseaudio-5.0/src'
Makefile:4654: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/d0/build/pkgsrc/audio/pulseaudio/work/pulseaudio-5.0/src'
Makefile:759: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/d0/build/pkgsrc/audio/pulseaudio/work/pulseaudio-5.0'
Makefile:594: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /x/pkgsrc/audio/pulseaudio
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/audio/pulseaudio


Just to be sure this wasn't a hidden case of needing a newer GCC, I
tried again with "audio/pulseaudio" marked as needing "GCC_REQD+=4.6",
but it failed during configuration with:

[...]
checking how to hardcode library paths into programs... immediate
checking ltdl.h usability... no
checking ltdl.h presence... yes
configure: WARNING: ltdl.h: present but cannot be compiled
configure: WARNING: ltdl.h:     check for missing prerequisite headers?
configure: WARNING: ltdl.h: see the Autoconf documentation
configure: WARNING: ltdl.h:     section "Present But Cannot Be Compiled"
configure: WARNING: ltdl.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------------------------------ ##
configure: WARNING:     ## Report this to pulseaudio-discuss (at) lists (dot) freedesktop (dot) org ##
configure: WARNING:     ## ------------------------------------------------------------------------ ##
checking for ltdl.h... no
configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.4 or later installed.
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/audio/pulseaudio

>How-To-Repeat:
Attempt to build "audio/pulseaudio" from pkgsrc-2014Q2 on netbsd-5/i386.
Also try with "GCC_REQD+=4.5" (or later).
>Fix:

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obata@lins.jp>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48990: audio/pulseaudio build failure on netbsd-5/i386
Date: Wed, 16 Jul 2014 21:21:54 +0900

 On Mon, 14 Jul 2014 11:15:01 +0900, <jdbaker@mylinuxisp.com> wrote:

 > [...]
 >   CCLD     pulseaudio
 > /d0/build/pkgsrc/audio/pulseaudio/work/.buildlink/lib/libjson-c.so: undefined reference to `__sync_val_compare_and_swap_4'
 > Makefile:6135: recipe for target 'pulseaudio' failed

 Could you try to rebuild textproc/json-c with following addition to Makefile?

 .include "../../mk/bsd.prefs.mk"
 .if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
 GNU_ARCH.i386=          i486
 CFLAGS+=                -march=i486
 .endif


 -- 
 OBATA Akio / obata@lins.jp

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48990: audio/pulseaudio build failure on netbsd-5/i386
Date: Wed, 16 Jul 2014 15:22:13 +0200

 On Wed, Jul 16, 2014 at 12:25:01PM +0000, OBATA Akio wrote:
 > The following reply was made to PR pkg/48990; it has been noted by GNATS.
 > 
 > From: "OBATA Akio" <obata@lins.jp>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/48990: audio/pulseaudio build failure on netbsd-5/i386
 > Date: Wed, 16 Jul 2014 21:21:54 +0900
 > 
 >  On Mon, 14 Jul 2014 11:15:01 +0900, <jdbaker@mylinuxisp.com> wrote:
 >  
 >  > [...]
 >  >   CCLD     pulseaudio
 >  > /d0/build/pkgsrc/audio/pulseaudio/work/.buildlink/lib/libjson-c.so: undefined reference to `__sync_val_compare_and_swap_4'
 >  > Makefile:6135: recipe for target 'pulseaudio' failed
 >  
 >  Could you try to rebuild textproc/json-c with following addition to Makefile?
 >  
 >  .include "../../mk/bsd.prefs.mk"
 >  .if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
 >  GNU_ARCH.i386=          i486
 >  CFLAGS+=                -march=i486
 >  .endif

 Note, this is not needed for NetBSD 6+, which defaults to i486.

 Joerg

From: "OBATA Akio" <obata@lins.jp>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48990: audio/pulseaudio build failure on netbsd-5/i386
Date: Wed, 16 Jul 2014 22:33:22 +0900

 On Wed, 16 Jul 2014 22:25:01 +0900, Joerg Sonnenberger <joerg@britannica.bec.de> wrote:

 >  >  .include "../../mk/bsd.prefs.mk"
 >  >  .if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
 >  >  GNU_ARCH.i386=          i486
 >  >  CFLAGS+=                -march=i486
 >  >  .endif
 > Note, this is not needed for NetBSD 6+, which defaults to i486.

 Note, NetBSD-5 removed support for 80386 level CPUs, so 5 also should default to i486.
 Same settings are in various packages, so it should be set globally.

 -- 
 OBATA Akio / obata@lins.jp

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48990: audio/pulseaudio build failure on netbsd-5/i386
Date: Wed, 16 Jul 2014 08:45:01 -0500 (CDT)

 On Wed, 16 Jul 2014, OBATA Akio wrote:

 >  Could you try to rebuild textproc/json-c with following addition to Makefile?
 >  
 >  .include "../../mk/bsd.prefs.mk"
 >  .if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
 >  GNU_ARCH.i386=          i486
 >  CFLAGS+=                -march=i486
 >  .endif

 With this change and update of "textproc/json-c", "audio/pulseaudio"
 builds and installs on netbsd-5/i386.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48990: audio/pulseaudio build failure on netbsd-5/i386
Date: Wed, 16 Jul 2014 15:51:35 +0200

 On Wed, Jul 16, 2014 at 01:35:00PM +0000, OBATA Akio wrote:
 > The following reply was made to PR pkg/48990; it has been noted by GNATS.
 > 
 > From: "OBATA Akio" <obata@lins.jp>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/48990: audio/pulseaudio build failure on netbsd-5/i386
 > Date: Wed, 16 Jul 2014 22:33:22 +0900
 > 
 >  On Wed, 16 Jul 2014 22:25:01 +0900, Joerg Sonnenberger <joerg@britannica.bec.de> wrote:
 >  
 >  >  >  .include "../../mk/bsd.prefs.mk"
 >  >  >  .if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
 >  >  >  GNU_ARCH.i386=          i486
 >  >  >  CFLAGS+=                -march=i486
 >  >  >  .endif
 >  > Note, this is not needed for NetBSD 6+, which defaults to i486.
 >  
 >  Note, NetBSD-5 removed support for 80386 level CPUs, so 5 also should default to i486.
 >  Same settings are in various packages, so it should be set globally.

 I meant: GCC uses the i486 instruction set on NetBSD 6 and newer by
 default. The above can override user settings, which should be avoided.
 I wonder if we should introduce mk/hacks.mk :)

 Joerg

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48990 CVS commit: pkgsrc/textproc/json-c
Date: Thu, 17 Jul 2014 09:18:27 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Thu Jul 17 09:18:27 UTC 2014

 Modified Files:
 	pkgsrc/textproc/json-c: Makefile
 Added Files:
 	pkgsrc/textproc/json-c: hacks.mk

 Log Message:
 Add hack for using gcc builtin atomic function, missing for i386.
 PR pkg/48990.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/textproc/json-c/Makefile
 cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/json-c/hacks.mk

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

State-Changed-From-To: open->pending-pullups
State-Changed-By: obache@NetBSD.org
State-Changed-When: Thu, 17 Jul 2014 13:12:03 +0000
State-Changed-Why:
Fixed in HEAD.


From: "Matthias Scheler" <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48990 CVS commit: [pkgsrc-2014Q2] pkgsrc/textproc/json-c
Date: Thu, 17 Jul 2014 22:32:01 +0000

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Thu Jul 17 22:32:01 UTC 2014

 Modified Files:
 	pkgsrc/textproc/json-c [pkgsrc-2014Q2]: Makefile
 Added Files:
 	pkgsrc/textproc/json-c [pkgsrc-2014Q2]: hacks.mk

 Log Message:
 Pullup ticket #4458 - requested by obache
 textproc/json-c: bug fix patch

 Revisions pulled up:
 - textproc/json-c/Makefile                                      1.10
 - textproc/json-c/hacks.mk                                      1.1

 ---
    Module Name:	pkgsrc
    Committed By:	obache
    Date:		Thu Jul 17 09:18:27 UTC 2014

    Modified Files:
    	pkgsrc/textproc/json-c: Makefile
    Added Files:
    	pkgsrc/textproc/json-c: hacks.mk

    Log Message:
    Add hack for using gcc builtin atomic function, missing for i386.
    PR pkg/48990.

    Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.9.2.1 pkgsrc/textproc/json-c/Makefile
 cvs rdiff -u -r0 -r1.1.2.2 pkgsrc/textproc/json-c/hacks.mk

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

State-Changed-From-To: pending-pullups->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Thu, 17 Jul 2014 23:37:19 +0000
State-Changed-Why:
pulled up to pkgsrc-2014Q2.


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