Bug 23591

Summary: cannot build libdrm-2.4.13: libudev.h: No such file or directory
Product: DRI Reporter: John Taylor <pi00100100>
Component: libdrmAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.