NetBSD Problem Report #44281

From www@NetBSD.org  Sun Dec 26 21:55:21 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 98F0D63BA6E
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 26 Dec 2010 21:55:21 +0000 (UTC)
Message-Id: <20101226215521.6C9CB63B9D1@www.NetBSD.org>
Date: Sun, 26 Dec 2010 21:55:21 +0000 (UTC)
From: rga@sdf.lonestar.org
Reply-To: rga@sdf.lonestar.org
To: gnats-bugs@NetBSD.org
Subject: xf86-video-openchrome does not compile (pkgsrc2010Q3)
X-Send-Pr-Version: www-1.0

>Number:         44281
>Category:       pkg
>Synopsis:       xf86-video-openchrome does not compile (pkgsrc2010Q3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 26 22:00:00 +0000 2010
>Originator:     Ruben Gonzalez Arnau
>Release:        GNU/Linux sorry
>Organization:
none
>Environment:
2.6.35 i686 GNU/Linux
>Description:
xf86-video-openchrome does not compile on GNU/Linux.

ERROR:
pkgsrc/x11/xf86-video-openchrome/work/.buildlink/include/libdrm/drm_mode.h:311:2: error: expected specifier-qualifier-list before ‘uint32_t’

...

Full output:

/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/xorg -I/usr/pkg/include/     pixman-1 -I/usr/pkg/include -I/usr/pkg/include/drm -I/usr/pkg/include/libdrm   -I/usr/pkg/include -I/usr/pkg/include/drm -I/usr/pkg/include/libdrm -I/usr/pkg/ include/X11/dri   -I/usr/pkg/include   -I../src -I../libxvmc -DTRUE=1 -DFALSE=0 -Wno-error -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/xorg -I/usr/   pkg/include/pixman-1 -I/usr/pkg/include -I/usr/pkg/include/drm -I/usr/pkg/include/libdrm -MT libchromeXvMC_la-viaLowLevel.lo -MD -MP -MF .deps/                libchromeXvMC_la-viaLowLevel.Tpo -c -o libchromeXvMC_la-viaLowLevel.lo `test -f 'viaLowLevel.c' || echo './'`viaLowLevel.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/tmp/workdir/pkgsrc/x11/xf86-video-openchrome/work/.buildlink/include -I/tmp/workdir/pkgsrc/x11/xf86-video-  openchrome/work/.buildlink/include/xorg -I/tmp/workdir/pkgsrc/x11/xf86-video-openchrome/work/.buildlink/include/pixman-1 -I/tmp/workdir/pkgsrc/x11/xf86-video- openchrome/work/.buildlink/include/drm -I/tmp/workdir/pkgsrc/x11/xf86-video-openchrome/work/.buildlink/include/libdrm -I/tmp/workdir/pkgsrc/x11/xf86-video-    openchrome/work/.buildlink/include/X11/dri -I../src -I../libxvmc -DTRUE=1 -DFALSE=0 -Wno-error -MT libchromeXvMC_la-viaLowLevel.lo -MD -MP -MF .deps/          libchromeXvMC_la-viaLowLevel.Tpo -c viaLowLevel.c  -fPIC -DPIC -o .libs/libchromeXvMC_la-viaLowLevel.o
In file included from /tmp/workdir/pkgsrc/x11/xf86-video-openchrome/work/.buildlink/include/libdrm/drm.h:611:0,
                 from /tmp/workdir/pkgsrc/x11/xf86-video-openchrome/work/.buildlink/include/libdrm/via_drm.h:27,
                 from ../src/via_xvmc.h:29,
                 from viaXvMCPriv.h:34,
                 from viaLowLevel.c:34:
/tmp/workdir/pkgsrc/x11/xf86-video-openchrome/work/.buildlink/include/libdrm/drm_mode.h:311:2: error: expected specifier-qualifier-list before ‘uint32_t’
*** Error code 1

Stop
>How-To-Repeat:
pkgsrc/x11/f86-video-openchrome
bmake install


>Fix:
A simple patch fix this problem and compiled & works fine after.

vim x11/xf86-video-openchrome/work/xf86-video-openchrome-0.2.904/src/via_xvmc.h
+#include <stdint.h>
#include "via_drm.h"

bmake install

NetBSD Home
NetBSD PR Database Search

(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.