Subject: pkg/37130: x11/libdrm fails to build on Darwin 8.10.3 (i386)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <lguillaume@berklee.edu>
List: pkgsrc-bugs
Date: 10/14/2007 16:00:00
>Number: 37130
>Category: pkg
>Synopsis: x11/libdrm fails to build on Darwin 8.10.3 (i386)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 14 16:00:00 +0000 2007
>Originator: Louis Guillaume
>Release: Darwin 8.10.3
>Organization:
>Environment:
Darwin dhcp-203.zabrico.com 8.10.3 Darwin Kernel Version 8.10.3: Wed Jun 27 23:29:36 PDT 2007; root:xnu-792.23.3~1/RELEASE_I386 i386 i386
>Description:
===> Building for libdrm-2.3.0nb1
Making all in libdrm
/usr/pkg/bin/bmake all-am
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -no-cpp-precomp -I../shared-core -pipe -O2 -MT xf86drm.lo -MD -MP -MF ".deps/xf86drm.Tpo" -c -o xf86drm.lo xf86drm.c; then mv -f ".deps/xf86drm.Tpo" ".deps/xf86drm.Plo"; else rm -f ".deps/xf86drm.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -no-cpp-precomp -I../shared-core -pipe -O2 -MT xf86drm.lo -MD -MP -MF .deps/xf86drm.Tpo -c xf86drm.c -fno-common -DPIC -o .libs/xf86drm.o
xf86drm.c: In function 'drmCommandRead':
xf86drm.c:2195: error: 'DRM_IOC_READ' undeclared (first use in this function)
xf86drm.c:2195: error: (Each undeclared identifier is reported only once
xf86drm.c:2195: error: for each function it appears in.)
xf86drm.c: In function 'drmCommandWrite':
xf86drm.c:2224: error: 'DRM_IOC_WRITE' undeclared (first use in this function)
xf86drm.c: In function 'drmCommandWriteRead':
xf86drm.c:2253: error: 'DRM_IOC_READ' undeclared (first use in this function)
xf86drm.c:2253: error: 'DRM_IOC_WRITE' undeclared (first use in this function)
*** Error code 1
>How-To-Repeat:
cd /usr/pkgsrc/x11/libdrm && bmake package.
It happens for me when attempting to build x11/modular-xorg-server
>Fix: