Subject: pkg/30101: libmatroska-0.7.6 does not build as of April 22
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jklowden@schemamania.org>
List: pkgsrc-bugs
Date: 04/30/2005 22:03:00
>Number:         30101
>Category:       pkg
>Synopsis:       libmatroska-0.7.6 does not build as of April 22
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 30 22:03:00 +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

>Unformatted:
 pkgsrc HEAD as of April 22.