Bug 60911 - Fails to find X libs without C_INCLUDE_PATH
Summary: Fails to find X libs without C_INCLUDE_PATH
Status: NEW
Alias: None
Product: at-spi2
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Rob Taylor
QA Contact:
Depends on:
Reported: 2013-02-15 16:48 UTC by Darxus
Modified: 2013-02-15 16:50 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description Darxus 2013-02-15 16:48:31 UTC
Without the environment variable C_INCLUDE_PATH set, and with X libs installed in a prefix specified with configure --prefix=, at-spi2-core's configure fails with:

checking for X... no
configure: error: X development libraries not found

With C_INCLUDE_PATH set to $installdir/include , it works.  

I've heard C_INCLUDE_PATH should not be required.  And I'm build testing lots of repos, and needing this is unusual.  

Seen in git master commit 8b08de05a756edba6d40debdd9dce09cf0c58734 , which was recently the latest commit.

Git repo containing what it's referring to as "X development libraries" is git://anongit.freedesktop.org/xorg/lib/libX11
Debian package containing it is, I believe, libx11-dev.

Also, I'd prefer a pkg-config error that the package "x11" is missing, to make it easier to figure out what exactly it's looking for and not finding (instead of "X development libraries not found").  Or at least something more closely mimicking it.
Comment 1 Darxus 2013-02-15 16:50:09 UTC
The other environment variables I have set which I believe should be sufficient to find the X libs are:

ACLOCAL="aclocal -I $installdir/share/aclocal"

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.