NetBSD Problem Report #40212
From kre@munnari.OZ.AU Wed Dec 17 18:24:19 2008
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 48E0663BA47
for <gnats-bugs@gnats.NetBSD.org>; Wed, 17 Dec 2008 18:24:19 +0000 (UTC)
Message-Id: <200812171822.mBHIMvhQ004896@jade.coe.psu.ac.th>
Date: Thu, 18 Dec 2008 01:22:57 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: x11/nucleo compilation errors (NetBSD 4.0, pkgsrc modular xorg)
X-Send-Pr-Version: 3.95
>Number: 40212
>Category: pkg
>Synopsis: x11/nucleo compilation errors (NetBSD 4.0, pkgsrc modular xorg)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 17 18:25:01 +0000 2008
>Closed-Date: Mon Dec 22 13:43:52 +0000 2008
>Last-Modified: Mon Dec 22 13:43:52 +0000 2008
>Originator: Robert Elz
>Release: NetBSD 4.0_STABLE (pkgsrc current within last 10 hours)
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
x11/nucleo fails to compile (missing include file, followed by
many compilation errors)
>How-To-Repeat:
I use pkg_comp with libkver and NetBSD 4.0 release sets, except
the X sets, but with X11_TYPE=modular in (the sandbox) mk.conf
(probably all irrelevant to this problem).
Building x11/nucleo results in ...
Making all in ffmpeg
gmake[4]: Entering directory `/pkg_comp/obj/pkgsrc/x11/nucleo/4x/nucleo-0.7.1/nucleo/plugins/ffmpeg'
/bin/sh ../../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../../nucleo -I../../.. -I../../.. -I/usr/pkg/include -D__STDC_CONSTANT_MACROS -I/usr/pkg/include/python2.4 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/include -I/usr/pkg/include/libpng12 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/include -O2 -I/usr/pkg/include/python2.4 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/include -MT ffmpegImageSource.lo -MD -MP -MF .deps/ffmpegImageSource.Tpo -c -o ffmpegImageSource.lo ffmpegImageSource.cxx
mkdir .libs
c++ -DHAVE_CONFIG_H -I. -I../../../nucleo -I../../.. -I/pkg_comp/obj/pkgsrc/x11/nucleo/4x/.buildlink/include -D__STDC_CONSTANT_MACROS -I/pkg_comp/obj/pkgsrc/x11/nucleo/4x/.buildlink/include/python2.4 -I/pkg_comp/obj/pkgsrc/x11/nucleo/4x/.buildlink/include/freetype2 -I/pkg_comp/obj/pkgsrc/x11/nucleo/4x/.buildlink/include/libpng12 -O2 -MT ffmpegImageSource.lo -MD -MP -MF .deps/ffmpegImageSource.Tpo -c ffmpegImageSource.cxx -fPIC -DPIC -o .libs/ffmpegImageSource.o
In file included from ffmpegImageSource.cxx:14:
ffmpegImageSource.H:21:22: error: avformat.h: No such file or directory
ffmpegImageSource.H:32: error: ISO C++ forbids declaration of 'AVFormatContext' with no type
ffmpegImageSource.H:32: error: expected ';' before '*' token
ffmpegImageSource.H:35: error: ISO C++ forbids declaration of 'AVCodecContext' with no type
ffmpegImageSource.H:35: error: expected ';' before '*' token
ffmpegImageSource.cxx: In constructor 'nucleo::ffmpegImageSource::ffmpegImageSource(const nucleo::URI&, nucleo::Image::Encoding)':
ffmpegImageSource.cxx:31: error: 'av_register_all' was not declared in this scope
ffmpegImageSource.cxx: In member function 'virtual bool nucleo::ffmpegImageSource::start()':
ffmpegImageSource.cxx:41: error: 'fctx' was not declared in this scope
ffmpegImageSource.cxx:41: error: 'av_open_input_file' was not declared in this scope
ffmpegImageSource.cxx:47: error: 'av_find_stream_info' was not declared in this scope
ffmpegImageSource.cxx:53: error: 'dump_format' was not declared in this scope
[ and quite a few more ]
I see no sign of avformat.h in any standard NetBSD location
(not even in current), though I do see it in the FreeBSD
ports repository (their ffmpeg port). No idea if it is the
same file or not (or a suitable version) but it seems
plausible.
>Fix:
??
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 21 Dec 2008 12:55:18 +0000
State-Changed-Why:
Just fix build failure. Could you try it and confirm that it works as expected?
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40212 CVS commit: pkgsrc/x11/nucleo
Date: Sun, 21 Dec 2008 12:53:25 +0000 (UTC)
Module Name: pkgsrc
Committed By: obache
Date: Sun Dec 21 12:53:24 UTC 2008
Modified Files:
pkgsrc/x11/nucleo: distinfo
Added Files:
pkgsrc/x11/nucleo/patches: patch-an patch-ao patch-ap
Log Message:
Try to fix build failure with ffmpeg-snapshot, PR 40212.
To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 pkgsrc/x11/nucleo/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/x11/nucleo/patches/patch-an \
pkgsrc/x11/nucleo/patches/patch-ao pkgsrc/x11/nucleo/patches/patch-ap
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/40212 (x11/nucleo compilation errors (NetBSD 4.0, pkgsrc modular xorg))
Date: Mon, 22 Dec 2008 19:58:09 +0700
Date: Sun, 21 Dec 2008 12:55:20 +0000 (UTC)
From: obache@NetBSD.org
Message-ID: <20081221125520.5801E63B8BD@narn.NetBSD.org>
| Just fix build failure.
| Could you try it and confirm that it works as expected?
The package builds on NetBSD 4 (modular xorg). I haven't been able
to test it (yet) on NetBSD 3, it requires multimedia/x264-devel
(via multimedia/ffmpeg) and that one (multimedia/x264-devel) isn't
building for me on NetBSD 3 at the minute ... so x11/nucleo isn't
even beginning to compile there.
But by all means close this PR, if there's another problem on NetBSD
I can always submit another PR...
Thanks,
kre
State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 22 Dec 2008 13:43:52 +0000
State-Changed-Why:
compilation errors on NetBSD-4.0 was fixed.
Another PRs are welcomed! Thanks!
>Unformatted:
(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.