Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] can't build xfree86-devel

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] can't build xfree86-devel
  • Date: Wed, 10 Mar 2004 08:33:15 -0800

Quoting Jeremy Kolb <jkolb AT brandeis.edu>:
> won't compile. I get this:
>
> gcc -m32 -c -O -march=athlon-tbird -mmmx -m3dnow -pipe -O3 -O
> -march=athlon-tbird -mmmx -m3dnow -pipe -O3
> -I../../../../exports/include/X11 -I../../../../exports/include
> -I../../../../lib/X11 -I../../../../include/extensions
> -I../../../../programs/Xserver/hw/xfree86/common
> -I../../../../programs/Xserver/hw/xfree86/os-support
> -I../../../../programs/Xserver/hw/xfree86/os-support/linux/drm/kernel
>
> -I../../../../programs/Xserver/hw/xfree86/drivers/i810 -I../../../..
> -I../../../../exports/include -Dlinux -D__i386__
> -D_POSIX_C_SOURCE=199309L
> -D_POSIX_SOURCE -D_XOPEN_SOURCE
> -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
>
> -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
>
> -DMALLOC_0_RETURNS_NULL -DTRUE=1 -DFALSE=0 -fPIC xf86drm.c
> xf86drm.c:531: error: parse error before '*' token
> xf86drm.c: In function `drmFreeKernelVersion':
> xf86drm.c:533: error: `v' undeclared (first use in this function)
> xf86drm.c:533: error: (Each undeclared identifier is reported only once
> xf86drm.c:533: error: for each function it appears in.)
> xf86drm.c: At top level:
> xf86drm.c:551: error: parse error before '*' token
> xf86drm.c: In function `drmCopyVersion':
> xf86drm.c:553: error: `d' undeclared (first use in this function)
> xf86drm.c:553: error: `s' undeclared (first use in this function)
> xf86drm.c: In function `drmGetVersion':
> xf86drm.c:583: error: `drm_version_t' undeclared (first use in this
> function)
> xf86drm.c:583: error: `version' undeclared (first use in this function)
> xf86drm.c:593: error: `DRM_IOCTL_VERSION' undeclared (first use in this
> function)
> xf86drm.c: In function `drmGetLibVersion':
> xf86drm.c:643: error: `drm_version_t' undeclared (first use in this
> function)
> xf86drm.c:643: error: `version' undeclared (first use in this function)
> xf86drm.c: In function `drmGetBusid':
> xf86drm.c:687: error: `drm_unique_t' undeclared (first use in this
> function)
> xf86drm.c:687: error: parse error before "u"
> xf86drm.c:689: error: `u' undeclared (first use in this function)
> xf86drm.c:692: error: `DRM_IOCTL_GET_UNIQUE' undeclared (first use in
> this function)
> xf86drm.c: In function `drmSetBusid':
> xf86drm.c:714: error: `drm_unique_t' undeclared (first use in this
> function)
> xf86drm.c:714: error: parse error before "u"
> xf86drm.c:716: error: `u' undeclared (first use in this function)
> xf86drm.c:719: error: `DRM_IOCTL_SET_UNIQUE' undeclared (first use in
> this function)
> xf86drm.c: In function `drmGetMagic':
> xf86drm.c:727: error: `drm_auth_t' undeclared (first use in this
> function)
> xf86drm.c:727: error: parse error before "auth"
> xf86drm.c:730: error: `DRM_IOCTL_GET_MAGIC' undeclared (first use in
> this function)
> xf86drm.c:730: error: `auth' undeclared (first use in this function)
> xf86drm.c: In function `drmAuthMagic':
> xf86drm.c:737: error: `drm_auth_t' undeclared (first use in this
> function)
> xf86drm.c:737: error: parse error before "auth"
> xf86drm.c:739: error: `auth' undeclared (first use in this function)
> xf86drm.c:740: error: `DRM_IOCTL_AUTH_MAGIC' undeclared (first use in
> this function)
> xf86drm.c: In function `drmAddMap':
> xf86drm.c:801: error: `drm_map_t' undeclared (first use in this
> function)
> xf86drm.c:801: error: parse error before "map"
> xf86drm.c:803: error: `map' undeclared (first use in this function)
> xf86drm.c:814: error: `DRM_IOCTL_ADD_MAP' undeclared (first use in this
> function)
> xf86drm.c: In function `drmRmMap':
> xf86drm.c:821: error: `drm_map_t' undeclared (first use in this
> function)
> xf86drm.c:821: error: parse error before "map"
> xf86drm.c:823: error: `map' undeclared (first use in this function)
> xf86drm.c:825: error: `DRM_IOCTL_RM_MAP' undeclared (first use in this
> function)
> xf86drm.c: In function `drmAddBufs':
> xf86drm.c:848: error: `drm_buf_desc_t' undeclared (first use in this
> function)
> xf86drm.c:848: error: parse error before "request"
> xf86drm.c:850: error: `request' undeclared (first use in this function)
> xf86drm.c:857: error: `DRM_IOCTL_ADD_BUFS' undeclared (first use in this
> function)
> xf86drm.c: In function `drmMarkBufs':
> xf86drm.c:863: error: `drm_buf_info_t' undeclared (first use in this
> function)
>
> And so on and so forth. The thing is I selected not to build dri or drm
> so what gives? Thanks.
>
> Jeremy

Did you compile DRM into the kernel? X may decide to pick it up whether or not
you told it not to. Also check your host.def for any HAVE_DRM (or just DRM)
and
make sure it is turned off. Why don't you want DRI/DRM? xfree86-devel compiled
fine for me with this on my 2.6.3 machine, and the new xfree86 4.4 even allows
my ATI card to /use/ DRI. ;)

-sandalle

--
PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61
http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o?
K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++)
tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+
------END GEEK CODE BLOCK------

Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.24.

Top of Page