Bug 23591 - cannot build libdrm-2.4.13: libudev.h: No such file or directory
Summary: cannot build libdrm-2.4.13: libudev.h: No such file or directory
Status: RESOLVED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: libdrm (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-29 12:40 UTC by John Taylor
Modified: 2010-05-07 16:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description John Taylor 2009-08-29 12:40:23 UTC
I'm trying to manually build libdrm-2.4.13. I passed to the configure script the following arguments: --prefix=/usr --build=i686-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --disable-udev. I get the following error after having issued `make':

/bin/sh ../libtool --tag=CC   --mode=compile x86_64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../libdrm-2.4.13/tests -I../libdrm  -I ../../libdrm-2.4.13/shared-core -I ../../libdrm-2.4.13/libdrm   -g -O2 -MT drmtest.lo -MD -MP -MF .deps/drmtest.Tpo -c -o drmtest.lo ../../libdrm-2.4.13/tests/drmtest.c
libtool: compile:  x86_64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../libdrm-2.4.13/tests -I../libdrm -I ../../libdrm-2.4.13/shared-core -I ../../libdrm-2.4.13/libdrm -g -O2 -MT drmtest.lo -MD -MP -MF .deps/drmtest.Tpo -c ../../libdrm-2.4.13/tests/drmtest.c  -fPIC -DPIC -o .libs/drmtest.o
../../libdrm-2.4.13/tests/drmtest.c:34:21: error: libudev.h: No such file or directory
../../libdrm-2.4.13/tests/drmtest.c: In function 'drm_open_matching':
../../libdrm-2.4.13/tests/drmtest.c:65: warning: assignment makes pointer from integer without a cast
../../libdrm-2.4.13/tests/drmtest.c:72: warning: assignment makes pointer from integer without a cast
../../libdrm-2.4.13/tests/drmtest.c:75: error: expected ';' before '{' token
make[2]: *** [drmtest.lo] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/libdrm-build/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/libdrm-build/tests'
make: *** [all-recursive] Error 1

I think this is a bug because the build process should not look for libudev.h if I asked for --disable-udev.
Comment 1 Kristian Høgsberg 2010-05-07 16:46:01 UTC
As of today (version 2.4.20) this works for me.  The test programs that require udev are conditional in test/Makefile.am and kick in when udev is enabled and found.


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.