NetBSD Problem Report #48931

From www@NetBSD.org  Fri Jun 20 11:01:02 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 EFA16A585B
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 20 Jun 2014 11:01:02 +0000 (UTC)
Message-Id: <20140620110100.C98DEA6531@mollari.NetBSD.org>
Date: Fri, 20 Jun 2014 11:01:00 +0000 (UTC)
From: dhgutteridge@sympatico.ca
Reply-To: dhgutteridge@sympatico.ca
To: gnats-bugs@NetBSD.org
Subject: Unable to compile x11/gtk2 on NetBSD 5.2/i386
X-Send-Pr-Version: www-1.0

>Number:         48931
>Category:       pkg
>Synopsis:       Unable to compile x11/gtk2 on NetBSD 5.2/i386
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 20 11:05:00 +0000 2014
>Closed-Date:    Wed Jul 22 05:01:18 +0000 2015
>Last-Modified:  Wed Jul 22 05:01:18 +0000 2015
>Originator:     David H. Gutteridge
>Release:        NetBSD 5.2 with current pkgsrc
>Organization:
>Environment:
NetBSD arcusvii.nonus-porta.net 5.2_STABLE NetBSD 5.2_STABLE (ARCUSVII) #2: Tue Jun 10 22:26:54 EDT 2014  disciple@arcusvii.nonus-porta.net:/home/disciple/netbsd-5/usr/src/sys/arch/i386/compile/obj/ARCUSVII i386

>Description:
When trying to build gtk2 (in the process of rebuilding pretty much
everything in pkgsrc from scratch), I'm getting a build failure as
follows below. I'm using native X11, not the "modular" version from
pkgsrc (though I see pkgsrc needs to pull in a whole bunch of newer
X11 packages to build).

===> Installing dependencies for gtk2+-2.24.22nb5
==========================================================================
The supported build options for gtk2+ are:

        cups debug x11

The currently selected options are:

        x11

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

        PKG_OPTIONS.gtk2 (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
gtk2+-2.24.22nb5.  Their current value is shown below:

        * PYTHON_VERSION_DEFAULT = 27

Based on these variables, the following variables have been set:

        * PYPACKAGE = python27

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency libtool-base>=2.2.6bnb3: found libtool-base-2.2.6bnb3
=> Tool dependency gmake>=3.81: found gmake-3.81
=> Tool dependency perl>=5.0: found perl-5.20.0nb1
=> Tool dependency pkg-config>=0.25: found pkg-config-0.28
=> Tool dependency xz>=4.999.9betanb1: found xz-5.0.0
=> Build dependency x11-links>=0.91: found x11-links-0.91
=> Build dependency gobject-introspection>=1.34.0: found gobject-introspection-1.38.0nb2
=> Build dependency fixesproto>=3.0.0: found fixesproto-5.0
=> Build dependency xextproto>=7.0.3: found xextproto-7.3.0
=> Build dependency inputproto>=2.3: found inputproto-2.3.1
=> Build dependency xineramaproto>=1.1.1: found xineramaproto-1.2.1
=> Build dependency compositeproto>=0.3.1: found compositeproto-0.4.2
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.10
=> Build dependency damageproto>=1.1.0: found damageproto-1.2.1
=> Build dependency xf86vidmodeproto>=2.3: found xf86vidmodeproto-2.3.1
=> Full dependency py27-expat-[0-9]*: found py27-expat-2.7.7
=> Full dependency shared-mime-info>=1.0nb1: found shared-mime-info-1.3
=> Full dependency atk>=2.6.0: found atk-2.10.0
=> Full dependency glib2>=2.34.0: found glib2-2.38.2nb2
=> Full dependency gdk-pixbuf2>=2.26.5nb2: found gdk-pixbuf2-2.30.3
=> Full dependency libX11>=1.5: NOT found
=> Verifying reinstall for ../../x11/libX11
=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Configuring for libX11-1.6.2nb1

<SNIP>

checking for X11... configure: error: Package requirements (xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92 kbproto inputproto) were not met:

Requested 'xproto >= 7.0.17' but version of Xproto is 7.0.15

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X11_CFLAGS
and X11_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

*** Error code 1

Stop.
make: stopped in /home/disciple/pkgsrc/x11/libX11

Installing a newer version of Xproto from pkgsrc doesn't resolve the
issue, presumably because the build is preferring the older native
version.
>How-To-Repeat:
Try building x11/gtk2.
>Fix:

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48931: Unable to compile x11/gtk2 on NetBSD 5.2/i386
Date: Sat, 21 Jun 2014 05:20:10 +0000

 On Fri, Jun 20, 2014 at 11:05:00AM +0000, dhgutteridge@sympatico.ca wrote:
  > When trying to build gtk2 (in the process of rebuilding pretty much
  > everything in pkgsrc from scratch), I'm getting a build failure as
  > follows below. I'm using native X11, not the "modular" version from
  > pkgsrc (though I see pkgsrc needs to pull in a whole bunch of newer
  > X11 packages to build).

 At this point I suspect you'd be better off using pkgsrc X11... the
 native X11 in -5, even 5.2, is pretty old and it bitrots fast.

 Theoretically you should be able to install the pkgsrc versions of
 just the parts that are newer (and the parts that depend on those
 parts) but given that IIRC one of them is libX11 it's probably
 futile.

 -- 
 David A. Holland
 dholland@netbsd.org

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48931: Unable to compile x11/gtk2 on NetBSD 5.2/i386
Date: Sat, 21 Jun 2014 01:49:09 -0400

 On 2014-06-21, at 1:25 AM, David Holland wrote:
 > At this point I suspect you'd be better off using pkgsrc X11... the
 > native X11 in -5, even 5.2, is pretty old and it bitrots fast.
 >=20
 > Theoretically you should be able to install the pkgsrc versions of
 > just the parts that are newer (and the parts that depend on those
 > parts) but given that IIRC one of them is libX11 it's probably
 > futile.

 I've come to the same conclusion. I'd seen a discussion in tech-pkg
 in early June where it was stated "builtin X11 is sufficient unless
 using gtk3", but apparently that's no longer the case. (Or I just
 misunderstood the context of the discussion...)

 Setting a few preferences in /etc/mk.conf gets me farther:

 PREFER.xproto=3Dpkgsrc
 PREFER.fixesproto=3Dpkgsrc
 PREFER.xextproto=3Dpkgsrc
 PREFER.inputproto=3Dpkgsrc

 But then I run into other problems, e.g. with libXi:

 =3D=3D=3D> Installing dependencies for libXi-1.7.2
 =3D> Tool dependency libtool-base>=3D2.2.6bnb3: found =
 libtool-base-2.2.6bnb3
 =3D> Tool dependency pkg-config>=3D0.25: found pkg-config-0.28
 =3D> Build dependency x11-links>=3D0.91: found x11-links-0.91
 =3D> Build dependency inputproto>=3D2.3: found inputproto-2.3.1
 =3D> Build dependency xproto>=3D7.0.13: found xproto-7.0.26
 =3D> Build dependency xextproto>=3D7.0.3: found xextproto-7.3.0
 =3D> Build dependency fixesproto>=3D3.0.0: found fixesproto-5.0
 =3D> Build dependency xcb-proto>=3D1.4: found xcb-proto-1.10
 =3D> Full dependency libX11>=3D1.5: found libX11-1.6.2nb1
 =3D> Full dependency libXext>=3D1.1: found libXext-1.3.2
 =3D> Full dependency libXfixes>=3D4.0.1: found libXfixes-5.0.1
 =3D> Full dependency libxcb>=3D1.6: found libxcb-1.10

 <SNIP>

 checking for XFIXES... no
 configure: error: Package requirements (xfixes >=3D 5) were not met:

 Requested 'xfixes >=3D 5' but version of Xfixes is 4.0.3

 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 installed software in a non-standard prefix.

 Alternatively, you may set the environment variables XFIXES_CFLAGS
 and XFIXES_LIBS to avoid the need to call pkg-config.
 See the pkg-config man page for more details.
 *** Error code 1

 Stop.
 make: stopped in /home/disciple/pkgsrc/x11/libXi

 I got around that one by manually editing where the link pointed for
 the xfixes.pc file, but then that just leads to:

 In file included from XGetCPtr.c:39:
 ../include/X11/extensions/XInput2.h:178: error: expected =
 specifier-qualifier-list before 'PointerBarrier'
 ../include/X11/extensions/XInput2.h:359: error: expected =
 specifier-qualifier-list before 'PointerBarrier'
 ../include/X11/extensions/XInput2.h:649: error: expected declaration =
 specifiers or '...' before 'PointerBarrier'
 *** Error code 1

 Stop.
 make: stopped in /home/disciple/pkgsrc/x11/libXi/work/libXi-1.7.2/src
 *** Error code 1

 Which is telling me I'm trying too hard and should find a better way.

 Dave

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	dhgutteridge@sympatico.ca
Subject: Re: pkg/48931: Unable to compile x11/gtk2 on NetBSD 5.2/i386
Date: Sat, 21 Jun 2014 06:52:16 +0000

 On Sat, Jun 21, 2014 at 05:50:01AM +0000, David H. Gutteridge wrote:
  >  > Theoretically you should be able to install the pkgsrc versions of
  >  > just the parts that are newer (and the parts that depend on those
  >  > parts) but given that IIRC one of them is libX11 it's probably
  >  > futile.
  >  
  >  I've come to the same conclusion. I'd seen a discussion in tech-pkg
  >  in early June where it was stated "builtin X11 is sufficient unless
  >  using gtk3", but apparently that's no longer the case. (Or I just
  >  misunderstood the context of the discussion...)

 That is not true - my misadventure with gtk2 resulting in no more gtk2
 on -5 seems to be dated in early May. (If anyone's wondering I didn't
 post/complain about it because it might be partly a local issue.)

  >  Setting a few preferences in /etc/mk.conf gets me farther:
  >  [...]

 Rebuilding x11-links may "help" also.

 Better off dropping it though - pkg_delete x11-links, change X11_TYPE
 to "modular" (we really need to change that so it accepts "pkgsrc")
 and rebuild all the packages where grep x11-links
 /var/db/pkg/foo/+CONTENTS is nonempty.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 21 Jul 2015 19:49:40 +0000
State-Changed-Why:
This seems to be a local problem, and the fix is using
modular X11, as stated in the discussion.

OK to close this?


From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48931 (Unable to compile x11/gtk2 on NetBSD 5.2/i386)
Date: Tue, 21 Jul 2015 20:32:58 -0400

 On 2015-07-21, at 3:49 PM, bsiegert@NetBSD.org wrote:
 > Synopsis: Unable to compile x11/gtk2 on NetBSD 5.2/i386
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: bsiegert@NetBSD.org
 > State-Changed-When: Tue, 21 Jul 2015 19:49:40 +0000
 > State-Changed-Why:
 > This seems to be a local problem, and the fix is using
 > modular X11, as stated in the discussion.
 > 
 > OK to close this?

 Yes, it's no longer an issue for me. (Later I upgraded the machine
 to the netbsd-7 branch.)

 Thanks,

 Dave


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 22 Jul 2015 05:01:18 +0000
State-Changed-Why:
Submitter says ok to close.

(it's not a local problem; but -5's native X is too old to be useful at
this point)


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