Bug 7383 - DRM_IOC_READ and DRM_IOC_WRITE undeclared in xf86drm.c
Summary: DRM_IOC_READ and DRM_IOC_WRITE undeclared in xf86drm.c
Status: RESOLVED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: DRI git
Hardware: PowerPC Mac OS X (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-30 22:38 UTC by Pierre Vinet
Modified: 2006-07-01 02:04 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pierre Vinet 2006-06-30 22:38:20 UTC
I download the drm modules with the command

root # cvs -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/dri co drm

on Friday June 30 2006.

root # uname -a
Darwin NZQRC.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu
-517.12.7.obj~1/RELEASE_PPC  Power Macintosh powerpc PowerMac3,3 Darwin

root # gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)

On build of libdrm, the commands

root # cd /usr/local/cvs/drm
root # ./configure
root # make all

abort with message 

cd . && \
  /bin/sh /usr/local/cvs/drm/missing --run automake-1.6 --foreign  Makefile
cd . && /bin/sh ./config.status Makefile 
config.status: creating Makefile
Making all in libdrm
make[1]: Entering directory `/usr/local/cvs/drm/libdrm'
make  all-am
make[2]: Entering directory `/usr/local/cvs/drm/libdrm'
source='xf86drm.c' object='xf86drm.lo' libtool=yes \
depfile='.deps/xf86drm.Plo' tmpdepfile='.deps/xf86drm.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/gnu/include -I/sw/
include -I/opt/local/include -I../shared-core -g -O2 -c -o xf86drm.lo `test -f 'xf86drm.c' || echo './
'`xf86drm.c
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/gnu/include -I/sw/include -I/opt/local/include -I../
shared-core -g -O2 -c xf86drm.c -MT xf86drm.lo -MD -MP -MF .deps/xf86drm.TPlo  -fno-common 
-DPIC -o .libs/xf86drm.o
xf86drm.c: In function `drmCommandRead':
xf86drm.c:2173: error: `DRM_IOC_READ' undeclared (first use in this function)
xf86drm.c:2173: error: (Each undeclared identifier is reported only once
xf86drm.c:2173: error: for each function it appears in.)
xf86drm.c: In function `drmCommandWrite':
xf86drm.c:2202: error: `DRM_IOC_WRITE' undeclared (first use in this function)
xf86drm.c: In function `drmCommandWriteRead':
xf86drm.c:2231: error: `DRM_IOC_READ' undeclared (first use in this function)
xf86drm.c:2231: error: `DRM_IOC_WRITE' undeclared (first use in this function)
make[2]: *** [xf86drm.lo] Erreur 1
make[2]: Leaving directory `/usr/local/cvs/drm/libdrm'
make[1]: *** [all] Erreur 2
make[1]: Leaving directory `/usr/local/cvs/drm/libdrm'
make: *** [all-recursive] Erreur 1

--
pv
Comment 1 Jerome Glisse 2006-07-01 02:04:10 UTC
DRM is for time being only for linux & freebsd. I don't know any work on
os x and don't think there will be any.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.