NetBSD Problem Report #40394
From kre@munnari.OZ.AU Wed Jan 14 09:24:02 2009
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 538C563B884
for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Jan 2009 09:24:02 +0000 (UTC)
Message-Id: <200901140923.n0E9NlYZ019339@jade.coe.psu.ac.th>
Date: Wed, 14 Jan 2009 16:23:47 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: graphics/libv4l compilation errros (missing include) on NetBSD 4.0
X-Send-Pr-Version: 3.95
>Number: 40394
>Category: pkg
>Synopsis: graphics/libv4l compilation errros (missing include) on NetBSD 4.0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 14 09:25:00 +0000 2009
>Closed-Date: Wed Jan 14 11:28:06 +0000 2009
>Last-Modified: Wed Jan 14 11:30:03 +0000 2009
>Originator: Robert Elz
>Release: NetBSD 4.0_STABLE (pkgsrc current within an hour or so)
>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:
graphics/libv4l (or the libv4l1 part of it, at least, if that
is not all of it) requires videodev.h which doesn't exist on
NetBSD 4.0. That leads to lots of undefined symbols, etc.
>How-To-Repeat:
I use pkg_comp and the NetBSD 4.0 release sets with libkver to
simulate a pure 4.0 environment. For this build I'm using
pkgsrc modular xorg, rather than the x* sets from 4.0 (I doubt
any of this information is particularly relevant here).
Building graphics/libv4l results in ...
gmake[1]: Entering directory `/pkg_comp/obj/pkgsrc/graphics/libv4l/4x/libv4l-0.4.3/libv4l1'
cc -c -MMD -I../include -I../../../../linux/include -fvisibility=hidden -fPIC -g -O1 -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o libv4l1.o libv4l1.c
libv4l1.c:65:22: error: videodev.h: No such file or directory
libv4l1.c: In function 'palette_to_pixelformat':
libv4l1.c:91: error: 'VIDEO_PALETTE_GREY' undeclared (first use in this function)
libv4l1.c:91: error: (Each undeclared identifier is reported only once
libv4l1.c:91: error: for each function it appears in.)
libv4l1.c:93: error: 'VIDEO_PALETTE_RGB555' undeclared (first use in this function)
libv4l1.c:95: error: 'VIDEO_PALETTE_RGB565' undeclared (first use in this function)
libv4l1.c:97: error: 'VIDEO_PALETTE_RGB24' undeclared (first use in this function)
And lots more like that (incl deref ptr to incomplete type errs).
>Fix:
Perhaps this package should be restructed to NetBSD 5 and above?
If so, something needs to be done with devel/ptlib that depends upon
this one (wnd which used to build fine on NetBSD 4.0).
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Wed, 14 Jan 2009 11:28:06 +0000
State-Changed-Why:
Fixed. Thanks!
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40394 CVS commit: pkgsrc/graphics/libv4l
Date: Wed, 14 Jan 2009 11:27:34 +0000 (UTC)
Module Name: pkgsrc
Committed By: obache
Date: Wed Jan 14 11:27:34 UTC 2009
Modified Files:
pkgsrc/graphics/libv4l: Makefile
Log Message:
Changes the path to put videodev.h. Fixes PR 40394.
And changes the path for such a purpose to ${BUILDLINK_DIR}/include.
To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 pkgsrc/graphics/libv4l/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
Severity: serious
(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.