NetBSD Problem Report #48989

From www@NetBSD.org  Sat Jul 12 18:54:18 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 02C65A653E
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Jul 2014 18:54:18 +0000 (UTC)
Message-Id: <20140712185416.0B177A654A@mollari.NetBSD.org>
Date: Sat, 12 Jul 2014 18:54:15 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: x11/modular-xorg-server PKG_OPTIONS.freetype2 = png needed for X11_TYPE=modular
X-Send-Pr-Version: www-1.0

>Number:         48989
>Category:       pkg
>Synopsis:       x11/modular-xorg-server PKG_OPTIONS.freetype2 = png needed for X11_TYPE=modular
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 12 18:55:00 +0000 2014
>Closed-Date:    Fri Nov 07 21:01:23 +0000 2014
>Last-Modified:  Fri Nov 07 21:01:23 +0000 2014
>Originator:     David Shao
>Release:        NetBSD 6.99.47 amd64
>Organization:
>Environment:
NetBSD 6.99.47 NetBSD 6.99.47 (GENERIC) #5: Sat Jul 12 07:51:37 PDT 2014 xxxxx@/usr/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:
For both NetBSD 6.99.47 amd64 and DragonFly 3.9-DEVELOPMENT x86_64, systems running pkgsrc with X11_TYPE=modular and without in mk.conf

PKG_OPTIONS.freetype2 = png

have packages such as x11/modular-xorg-server fail to build with error messages such as:

sdksyms.c:1681:5: warning: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Wcast-qual]
  CCLD     Xorg
/usr/libexec/binutils224/elf/ld.bfd: cannot find -lpng16
Makefile:644: recipe for target 'Xorg' failed
gmake[4]: *** [Xorg] Error 1
gmake[4]: Leaving directory '/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.12.4/hw/xfree86'
Makefile:689: recipe for target 'all-recursive' failed
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.12.4/hw/xfree86'
Makefile:563: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.12.4/hw/xfree86'
Makefile:520: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.12.4/hw'
Makefile:676: recipe for target 'all-recursive' failed
gmake: *** [all-recursive] Error 1

>How-To-Repeat:

>Fix:
Setting in mk.conf

PKG_OPTIONS.freetype2 = png

and rebuilding graphics/freetype2 and perhaps some other dependencies allows x11/modular-xorg-server to be built.  I have not actually verified the minimal number of dependencies that need to be rebuilt.

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/48989: x11/modular-xorg-server PKG_OPTIONS.freetype2 = png
 needed for X11_TYPE=modular
Date: Sun, 13 Jul 2014 14:27:34 +0200

 On Sat, Jul 12, 2014 at 06:55:00PM +0000, davshao@gmail.com wrote:
 > For both NetBSD 6.99.47 amd64 and DragonFly 3.9-DEVELOPMENT x86_64, systems running pkgsrc with X11_TYPE=modular and without in mk.conf
 > 
 > PKG_OPTIONS.freetype2 = png
 > 
 > have packages such as x11/modular-xorg-server fail to build with error messages such as:
 > 
 > sdksyms.c:1681:5: warning: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Wcast-qual]
 >   CCLD     Xorg
 > /usr/libexec/binutils224/elf/ld.bfd: cannot find -lpng16


 There must be more to it, because I don't see this while regularly
 building on NetBSD-current with X11_TYPE=modular and the following
 options for freetype2 (none):

 # make show-options
 Any of the following general options may be selected:
         png      Enable PNG support.
         subpixel

 These options are enabled by default:

 These options are currently enabled:

 You can select which build options to use by setting PKG_DEFAULT_OPTIONS
 or PKG_OPTIONS.freetype2.
 #

  Thomas

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 16 Jul 2014 01:32:45 +0000
State-Changed-Why:
Can you check config.log and see if you can find why it thinks it ought
to be using png? There must be some configure test that causes it to
think so.

(If there isn't a configure test in modular-xorg-server and the -lpng16
is coming from pkg-config, check in freetype2.)


From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48989: x11/modular-xorg-server PKG_OPTIONS.freetype2 = png
 needed for X11_TYPE=modular
Date: Fri, 7 Nov 2014 09:18:29 -0800

 Given that others have reported being able to successfully build
 X11_TYPE=modular packages without requiring PKG_OPTIONS.freetype2 =
 png in mk.conf, I must conclude there is some local error on my part.

 This PR can therefore be closed.  Thanks for your attention.

State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 07 Nov 2014 21:01:23 +0000
State-Changed-Why:
Probably a local problem; submitter retracted the report. Thanks for the update!


>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.