NetBSD Problem Report #30101
From jklowden@schemamania.org Sat Apr 30 22:02:10 2005
Return-Path: <jklowden@schemamania.org>
Received: from oak.schemamania.org (dsl254-083-208.nyc1.dsl.speakeasy.net [216.254.83.208])
by narn.netbsd.org (Postfix) with ESMTP id 55F7363B117
for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 Apr 2005 22:02:10 +0000 (UTC)
Message-Id: <20050430220204.40B3250CE5@oak.schemamania.org>
Date: Sat, 30 Apr 2005 18:02:04 -0400 (EDT)
From: jklowden@schemamania.org
Reply-To: jklowden@schemamania.org
To: gnats-bugs@netbsd.org
Subject: libmatroska-0.7.6 does not build as of April 22
X-Send-Pr-Version: 3.95
>Number: 30101
>Category: pkg
>Synopsis: libmatroska-0.7.6 does not build as of April 22
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: salo
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 30 22:03:00 +0000 2005
>Closed-Date: Sun May 01 22:41:49 +0000 2005
>Last-Modified: Sun May 01 22:41:49 +0000 2005
>Originator: jklowden@schemamania.org
>Release: NetBSD 2.0
>Organization:
>Environment:
System: NetBSD oak.schemamania.org 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec 1 10:58:25 UTC 2004 builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
$ pkg_info |grep libebml
libebml-0.7.4 Extensible Binary Meta Language support library
>Description:
Build of libmatroska fails almost immediately because it doesn't find
its include files. A full log is attached, but here's the error:
/usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/KaxTypes.h:38:28: ebml/EbmlTypes.h: No such file or directory
ebml/EbmlTypes.h is not in /usr/pkg/include, even though libebml is installed.
The file does exist in $WRKOBJDIR:
$ find /usr/.pkg.2005-03-27/tmp -name EbmlTypes.h
/usr/.pkg.2005-03-27/tmp/devel/libebml/work/libebml-0.7.4/ebml/EbmlTypes.h
The -I paths passed to c++ are (wrapped for length):
/usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/\
libmatroska-0.7.6/make/linux/../..
/usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/\
libmatroska-0.7.6/make/linux/../../../libebml
You might want to know the following idiosynchrasies of my setup:
$ ls -ld /usr/pkg
lrwxr-xr-x 1 root wheel 21 Mar 27 12:35 /usr/pkg -> /usr/.pkg.2005-03-27/
$ tail -3 /etc/mk.conf
WRKOBJDIR= /usr/pkg/tmp
LOCALBASE?= /usr/pkg
VARBASE?= /var/pkg
Also, I just did "cvs -n update" in multimedia/libmatroska and devel/libebml.
Neither reported anything, so I believe there's no reason to update my tree.
>How-To-Repeat:
afaik:
cd /usr/pkgsrc/multimedia/libmatroska && make
>Fix:
I don't know. Log follows:
===> Checking for vulnerabilities in libmatroska-0.7.6
=> Checksum SHA1 OK for libmatroska-0.7.6.tar.bz2.
=> Checksum RMD160 OK for libmatroska-0.7.6.tar.bz2.
work -> /usr/pkg/tmp/multimedia/libmatroska/work
===> Extracting for libmatroska-0.7.6
===> Required installed package gmake>=3.78: gmake-3.80nb4 found
===> Required installed package libebml>=0.7.4: libebml-0.7.4 found
===> Patching for libmatroska-0.7.6
===> Applying pkgsrc patches for libmatroska-0.7.6
===> Overriding tools for libmatroska-0.7.6
===> Creating toolchain wrappers for libmatroska-0.7.6
===> Building for libmatroska-0.7.6
c++ -c -O2 -I/usr/pkg/include -I/usr/pkg/include -Wall -Wno-unknown-pragmas -ansi -fno-gnu-keywords -D_GNU_SOURCE -Wshadow -I/usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/make/linux/../.. -I/usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/make/linux/../../../libebml -o /usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/make/linux/../../src/FileKax.o /usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/make/linux/../../src/FileKax.cpp
In file included from /usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/FileKax.h:40,
from /usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/src/FileKax.cpp:36:
/usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/KaxTypes.h:38:28: ebml/EbmlTypes.h: No such file or directory
In file included from /usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/KaxTypes.h:39,
from /usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/FileKax.h:40,
from /usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/src/FileKax.cpp:36:
/usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/c/libmatroska_t.h:45:30: ebml/c/libebml_t.h: No such file or directory
In file included from /usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/src/FileKax.cpp:36:
/usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/FileKax.h:41:29: ebml/IOCallback.h: No such file or directory
In file included from /usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/src/FileKax.cpp:36:
/usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/FileKax.h:48: error: namespace
`LIBEBML_NAMESPACE' undeclared
/usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/FileKax.h:63: error: parse
error before `&' token
/usr/pkg/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/matroska/FileKax.h:146: error: syntax
error before `&' token
/usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/src/FileKax.cpp:47: error: parse
error before `&' token
gmake: *** [/usr/.pkg.2005-03-27/tmp/multimedia/libmatroska/work/libmatroska-0.7.6/make/linux/../../src/FileKax.o] Error 1
*** Error code 2
Stop.
make: stopped in /OLD/USR/pkgsrc/multimedia/libmatroska
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===> * log of the build
===> * /usr/pkg/tmp/multimedia/libmatroska/work/.work.log
===>
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/multimedia/libmatroska
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->salo
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sat, 30 Apr 2005 23:00:54 +0000
Responsible-Changed-Why:
Logged against a package salo maintains.
Perhaps an installation problem?
What does "pkg_admin check libebml" say?
State-Changed-From-To: open->feedback
State-Changed-By: salo@netbsd.org
State-Changed-When: Sat, 30 Apr 2005 23:06:19 +0000
State-Changed-Why:
i can't reproduce it neither on a normal system nor in a clean pkg_comp
chroot on HEAD. sounds like a pilot error, corrupted pkg tree,
corrupted installed package or some other problem in your local
environment.
please make sure you have up to date pkgsrc tree, delete libebml package
and try again.
From: Thomas Klausner <wiz@netbsd.org>
To: "James K. Lowden" <jklowden@schemamania.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/30101
Date: Sun, 1 May 2005 17:49:23 +0200
On Sun, May 01, 2005 at 11:41:39AM -0400, James K. Lowden wrote:
> Bingo! See below. What causes that, please?
The package is registered, but the files are not there any longer.
I don't know how you ended up in this state, but you'll have
to reinstall the package.
Cheers,
Thomas
From: "James K. Lowden" <jklowden@schemamania.org>
To: salo@netbsd.org
Cc: salo@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/30101
Date: Sun, 1 May 2005 11:42:07 -0400
salo@netbsd.org wrote:
> Synopsis: libmatroska-0.7.6 does not build as of April 22
>
> State-Changed-From-To: open->feedback
> State-Changed-By: salo@netbsd.org
> State-Changed-When: Sat, 30 Apr 2005 23:06:19 +0000
> State-Changed-Why:
> i can't reproduce it neither on a normal system nor in a clean pkg_comp
> chroot on HEAD. sounds like a pilot error, corrupted pkg tree,
> corrupted installed package or some other problem in your local
> environment.
>
> please make sure you have up to date pkgsrc tree, delete libebml package
> and try again.
Will do.
--jkl
From: "James K. Lowden" <jklowden@schemamania.org>
To: salo@netbsd.org
Cc: salo@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/30101
Date: Sun, 1 May 2005 11:57:28 -0400
salo@netbsd.org wrote:
> Synopsis: libmatroska-0.7.6 does not build as of April 22
>
> State-Changed-From-To: open->feedback
> State-Changed-By: salo@netbsd.org
> State-Changed-When: Sat, 30 Apr 2005 23:06:19 +0000
> State-Changed-Why:
> i can't reproduce it neither on a normal system nor in a clean pkg_comp
> chroot on HEAD. sounds like a pilot error, corrupted pkg tree,
> corrupted installed package or some other problem in your local
> environment.
>
> please make sure you have up to date pkgsrc tree, delete libebml package
> and try again.
That was it, absolutely. All is well. Thank you for your help, and I'm
sorry for wasting your time.
When I deinstalled libebml, it complained about the missing headers:
pkg_delete: cannot remove non-existent directory `/usr/pkg/include/ebml'
this packing list is incorrect - ignoring delete request
pkg_delete: couldn't entirely delete package `libebml-0.7.4'
(perhaps the packing list is incorrectly specified?)
Rebuilding it, and 'make install' of libmatroska proceeded uneventfully.
Perhaps at some point in the past the ebml package failed to install its
header files. Even though my tree was up to date, perhaps the package had
been installed before updating the tree.
The reason I decided to open a PR was that the latest binary build of
libmatroska is a version behind on
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/multimedia/libmatroska/README.html.
I thought perhaps there were problems building it and that I had
identified a possible cause. Was that misguided?
Regards,
--jkl
From: "James K. Lowden" <jklowden@schemamania.org>
To: Thomas Klausner <wiz@netbsd.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/30101
Date: Sun, 1 May 2005 12:13:29 -0400
Thomas Klausner wrote:
> On Sun, May 01, 2005 at 11:41:39AM -0400, James K. Lowden wrote:
> > Bingo! See below. What causes that, please?
>
> The package is registered, but the files are not there any longer.
> I don't know how you ended up in this state, but you'll have
> to reinstall the package.
Done, and everything's fine now. Thanks very much for your help. I'll
know to run pkg_admin check in the future. Sorry for the misdirection. I
really do try to make sure I've done my homework before filing a PR.
I haven't deinstalled any packages recently (mostly I'm building the
machine).
My theory:
libebml was installed previously, but at that time it didn't install its
headers (due to an error in the package). Later, the pkgsrc tree was
updated with correct instructions, but of course the package remained
registered. Doing the admin check showed that the installed set didn't
match the current packing list.
Looking at the CVS history, though, I don't see any support for my
theory....
Thanks again and regards,
--jkl
From: Thomas Klausner <wiz@netbsd.org>
To: "James K. Lowden" <jklowden@schemamania.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/30101
Date: Sun, 1 May 2005 18:15:32 +0200
On Sun, May 01, 2005 at 12:13:29PM -0400, James K. Lowden wrote:
> My theory:
>
> libebml was installed previously, but at that time it didn't install its
> headers (due to an error in the package). Later, the pkgsrc tree was
> updated with correct instructions, but of course the package remained
> registered. Doing the admin check showed that the installed set didn't
> match the current packing list.
Actually, the pkg_admin check compares the old PLIST with the
contents, so you should have already gotten the error when you
installed the package (because the files it expected weren't there).
Thomas
From: "James K. Lowden" <jklowden@schemamania.org>
To: Thomas Klausner <wiz@netbsd.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/30101
Date: Sun, 1 May 2005 12:29:17 -0400
Thomas Klausner wrote:
>
> Actually, the pkg_admin check compares the old PLIST with the
> contents, so you should have already gotten the error when you
> installed the package (because the files it expected weren't there).
I stand corrected. And I'm out of theories. I'll just thank you for your
kind attention and chalk it up to experience.
Regards,
--jkl
State-Changed-From-To: feedback->closed
State-Changed-By: salo@netbsd.org
State-Changed-When: Sun, 01 May 2005 22:41:49 +0000
State-Changed-Why:
corrupted libebml package installation on submitter's machine.
>Unformatted:
pkgsrc HEAD as of April 22.
(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.