NetBSD Problem Report #15999
Received: (qmail 25483 invoked from network); 21 Mar 2002 21:47:52 -0000
Message-Id: <16226-1016747272@rainier.reedmedia.net>
Date: Thu, 21 Mar 2002 13:47:53 -0800
From: reed@reedmedia.net
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.netbsd.org
Subject: x11/gnome-libs hasn't built for a week!
X-Send-Pr-Version: 3.95
>Number: 15999
>Category: pkg
>Synopsis: x11/gnome-libs can't configure
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: rh
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 21 21:48:00 +0000 2002
>Closed-Date: Wed Mar 27 20:53:41 +0000 2002
>Last-Modified: Wed May 13 13:27:00 +0000 2015
>Originator:
>Release: NetBSD 1.5.3_ALPHA
>Organization:
http://bsd.reedmedia.net/
>Environment:
System: NetBSD rainier.reedmedia.net 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (JCR-1.5-20020213) #9: Wed Mar 6 23:53:13 PST 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-1.5-20020213 i386
Architecture: i386
Machine: i386
>Description:
x11/gnome-libs won't build for me.
Makefile:
$NetBSD: Makefile,v 1.75 2002/03/13 17:37:56 fredb Exp $
buildlink.mk:
$NetBSD: buildlink.mk,v 1.14 2002/03/13 17:37:56 fredb Exp $
=> Creating wrapper script
/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/bin/orbit-config.
creating cache ./config.cache
..
checking for pthread_create in -lpthread... yes
checking for gtk-config...
/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/bin/gtk-config
checking for GTK - version >= 1.2.0... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log
for the
*** exact error that occured. This usually means GTK was incorrectly
installed
*** or that you have moved GTK since it was installed. In the latter case,
you
*** may want to edit the gtk-config script:
/usr/pkg/pkgsrc/x11/gnome-libs/work/
buildlink/bin/gtk-config
configure: error: GTK not installed
But I do have good version of gtk-config:
$ /usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/bin/gtk-config --version
1.2.22
But I see the problem in ./work/gnome-libs-1.4.1.2/config.log:
configure:2534: cc -o conftest
-I/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/
include -O2 -I/usr/pkg/share/x11-links/include -Wall -Wunused
-I/usr/pkg/pkgsrc
/x11/gnome-libs/work/.buildlink/pkgsrc/x11/gnome-libs/work/.buildlink/include/gt
k-1.2
-I/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/include/glib/glib-1.2 -I/
usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/lib/glib/include
-I/usr/pkg/share/
x11-links/include -I/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/include
-I/usr/pkg/share/x11-links/include
-L/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/
lib -L/usr/pkg/share/x11-links/lib -Wl,-R/usr/X11R6/lib
-Wl,-R/usr/pkg/lib conf
test.c -L/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/lib
-Wl,-R/usr/pkg/lib -
lintl -L/usr/pkg/share/x11-links/lib -Wl,-R/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib -
L/usr/pkg/share/x11-links/lib -L/usr/pkg/share/x11-links/lib -lgtk -lgdk
-L/usr/
pkg/pkgsrc/x11/gnome-libs/work/.buildlink/lib -Wl,-R/usr/pkg/lib -lgmodule
-lgli
b -lXi -lXext -lX11 -lm 1>&5
configure:2526: gtk/gtk.h: No such file or directory
configure: failed program was:
#line 2524 "configure"
#include "confdefs.h"
#include <gtk/gtk.h>
I do have /usr/X11R6/include/gtk-1.2/gtk/gtk.h
(Also broken on fh-regensburg.de bulk builds site, but because
glib-1.2.10 is broken -- but it works for me!)
>How-To-Repeat:
make # under pkgsrc/x11/gnome-libs
# later do a cvs update and make clean for all pkgsrc and do
make # again .. and then wait a week and do cvs update and make clean and
make # again
>Fix:
Sorry I don't know. Anyone have latest and greatest gimp package?
>Release-Note:
>Audit-Trail:
From: woods@weird.com (Greg A. Woods)
To: reed@reedmedia.net
Cc: gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups),
netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List)
Subject: Re: pkg/15999: x11/gnome-libs hasn't built for a week!
Date: Thu, 21 Mar 2002 17:38:00 -0500 (EST)
[ On Thursday, March 21, 2002 at 13:47:53 (-0800), reed@reedmedia.net wrote: ]
> Subject: pkg/15999: x11/gnome-libs hasn't built for a week!
>
>
> x11/gnome-libs won't build for me.
I built and installed 1.4.1.2nb1 on March 17, with those same versions
of the pkgsrc module files, and it seems to have been used successfully
for the following:
libglade-0.17nb1
oaf-0.6.7nb1
GConf-1.0.7nb1
gnome-vfs-1.0.2nb1
gdk-pixbuf-gnome-0.11.0nb1
galeon-1.2.0
However my build was on NetBSD-1.5W....
> I do have /usr/X11R6/include/gtk-1.2/gtk/gtk.h
$ ls -l /usr/pkg/include/gtk-1.2/gtk/gtk.h
-r--r--r-- 1 root wheel 4155 Aug 7 2001 /usr/pkg/include/gtk-1.2/gtk/gtk.h
$ /usr/sbin/pkg_info -I gtk+
gtk+-1.2.10 Gimp toolkit. Libraries for building X11 user interfaces
--
Greg A. Woods
+1 416 218-0098; <gwoods@acm.org>; <g.a.woods@ieee.org>; <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>
State-Changed-From-To: open->feedback
State-Changed-By: rh
State-Changed-When: Sun Mar 24 13:34:15 PST 2002
State-Changed-Why:
There seems to be some problem with your configuration. Specifically
version 1.2.22 of gtk+ can't be right. What does "pkg_info gtk+"
show?
My output for "gtk-config --version", for example, is 1.2.10
Also, can you please tell me what "gtk-config --cflags" shows on
your system?
Thanks
,
Rene
Responsible-Changed-From-To: pkg-manager->rh
Responsible-Changed-By: rh
Responsible-Changed-When: Sun Mar 24 13:34:15 PST 2002
Responsible-Changed-Why:
rh took responsibility for this PR
State-Changed-From-To: feedback->analyzed
State-Changed-By: rh
State-Changed-When: Sun Mar 24 13:50:07 PST 2002
State-Changed-Why:
Reading PR 16029 and looking back at your report now gave me a clue
about what's wrong here: the package system doesn't allow for any
unmanaged files to be placed in /usr/pkg (or wherever PREFIX points
to). Therefore /usr/pkg/pkgsrc is the wrong directory to store your
package sources -- therefore building fails on your system!
State-Changed-From-To: analyzed->feedback
State-Changed-By: rh
State-Changed-When: Sun Mar 24 13:52:39 PST 2002
State-Changed-Why:
The package system doesn't allow for any unmanaged files to go in
/usr/pkg (or wherever PREFIX points to). Could you please try moving
your package sources away from /usr/pkg/pkgsrc to something like
/usr/pkgsrc tell me if it works then?
Thanks
,
Rene
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: rh@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/15999
Date: Mon, 25 Mar 2002 09:25:24 -0800 (PST)
On 24 Mar 2002 rh@netbsd.org wrote:
> The package system doesn't allow for any unmanaged files to go in
> /usr/pkg (or wherever PREFIX points to). Could you please try moving
Why?
I've been using /usr/pkgsrc symlinked to /usr/pkg/pkgsrc for years.
Many others do to. (Masao emailed me yesterday that he uses a variety of
different locations for his pkgsrc directories.)
I don't recall any documentation that says it must be /usr/pkgsrc.
> your package sources away from /usr/pkg/pkgsrc to something like
> /usr/pkgsrc tell me if it works then?
I assume it will work.
Also, note that other buildlink.mk's do work on my system with different
path.
I believe the problem is in /usr/pkgsrc/x11/gtk/buildlink.mk -- probably
because the sed expression (I think) doesn't match correctly due to my
/usr/pkg/pkgsrc (instead of /usr/pkgsrc).
-I/usr/pkg/pkgsrc/x11/gnome-libs/work/.buildlink/pkgsrc/x11/gnome-libs/
work/.buildlink/include/gtk-1.2
I really don't understand this buildlink.
I appreciate that you are helping with this. I can't move my
/usr/pkg/pkgsrc to /usr/pkgsrc right now (time and diskspace). Anyways, I
am sure it will work -- but that doesn't fix the problem.
Jeremy C. Reed
http://www.reedmedia.net/
From: Rene Hexel <rh@netbsd.org>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/15999
Date: 26 Mar 2002 07:36:48 +1000
On Tue, 2002-03-26 at 03:25, Jeremy C. Reed wrote:
> On 24 Mar 2002 rh@netbsd.org wrote:
>
> > The package system doesn't allow for any unmanaged files to go in
> > /usr/pkg (or wherever PREFIX points to).
>
> Why?
Because it can cause all sorts of unforseen errors such as the one
described in this PR and in PR 16029. Mixing managed and unmanaged
files is always problematic, because you cannot foresee how they will
interact (and as experience has shown, they usually tend to interact in
an unpredictable, malicious way ;-)
> I've been using /usr/pkgsrc symlinked to /usr/pkg/pkgsrc for years.
That's exactly what I'm getting at. If you do something like that, it
is bound to break something sooner or later.
> Many others do to. (Masao emailed me yesterday that he uses a variety of
> different locations for his pkgsrc directories.)
>
> I don't recall any documentation that says it must be /usr/pkgsrc.
Ah, that may be the misunderstanding: I'm not saying it must be in
/usr/pkgsrc! All I'm saying is that it shouldn't be somewhere below
/usr/pkg!
So, for example, /usr/local/pkgsrc, /home/pkgsrc, etc. are perfectly
fine, only /usr/pkg and /usr/X11R6 are off-limits (if that's what PREFIX
and X11PREFIX happens to be pointing at).
> I really don't understand this buildlink.
It prevents "intelligent" configure scripts and makefiles from picking
up non-relevant executables, include files, and libraries. This avoids
ugly version mixes caused by a mixture of package and non-package files,
e.g. libraries you have installed in /usr/local.
The reason for this is that many packages (mostly the ones using GNU
configure) tended to cause problems if you installed your own programs,
libraries, and sources in addition to pkgsrc. Therefore, buildlink was
introduced to provide for a better separation of files managed by the
package system and those not managed by it.
But that's exactly what's happening on your system: you are putting
those two types of files together in one subtree again.
> I appreciate that you are helping with this. I can't move my
> /usr/pkg/pkgsrc to /usr/pkgsrc right now (time and diskspace). Anyways, I
> am sure it will work -- but that doesn't fix the problem.
I presume that you have a dedicated /usr/pkg partition?
As a temporary workaround, you could do something like
cd /usr/pkg
mkdir pkg
mv * pkg
mv pkg/pkgsrc .
cd /usr
umount /usr/pkg
mv pkg newmount
ln -s newmount/pkg .
Then you mount your partition under /usr/newmount (or whatever you
want to call it) and have a link from /usr/newmount/pkg to /usr/pkg (or
use nullfs to mount that subtree into /usr/pkg).
This way, you have your pkgsrc under /usr/newmount/pkgsrc, which will
no longer be what PREFIX points to.
Cheers
,
Rene
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Rene Hexel <rh@netbsd.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/15999
Date: Mon, 25 Mar 2002 16:28:57 -0800 (PST)
On 26 Mar 2002, Rene Hexel wrote:
> Ah, that may be the misunderstanding: I'm not saying it must be in
> /usr/pkgsrc! All I'm saying is that it shouldn't be somewhere below
> /usr/pkg!
Okay. My /usr/pkgsrc is now /usr/local/pkgsrc. And gnome-libs built.
Thanks for the help. I guess this PR can be closed -- but probably this
should be noted in Packages.txt first or the SED expression(s) or
buildlink.mk fixed to allow pkgsrc to be under LOCALBASE (or PREFIX).
Also, thanks for the buildlink explanation.
Jeremy C. Reed
http://bsd.reedmedia.net/
State-Changed-From-To: feedback->closed
State-Changed-By: rh
State-Changed-When: Wed Mar 27 12:42:32 PST 2002
State-Changed-Why:
The restriction not to mix package and non-package files is documented
in section 2.4 of Packages.txt. To clarify this some more, I have now
made this a little bit more explicit and added some examples there.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.