build failure; does not include X11 library path in link
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Fix Released
|
Medium
|
Stephen M. Webb | ||
compiz (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have just tried to build compiz-0.9.12.0. I encountered several problems, but the first one (which is at least easily worked around) is that the correct library paths for certain X11 libraries are not used when linking. I tried the most straightforward build possible:
mkdir build
cd build
cmake ..
make VERBOSE=1 2>&1 | tee build.log
I have attached the resulting build.log file. As you can see there is a link failure since the build tries to link against libraries libXrender and libX11, but it does not include the library path (via -L switch). On my system these libraries are in /usr/X11R7/lib, and this is correctly identified by pkg-config:
$ pkg-config --libs x11
-L/
Obviously this can be worked around be setting LIBRARY_
Related branches
- Christopher Townsend (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 31 lines (+2/-4)2 files modifiedCMakeLists.txt (+1/-1)
libdecoration/CMakeLists.txt (+1/-3)
Changed in compiz: | |
status: | Triaged → In Progress |
Changed in compiz: | |
status: | In Progress → Fix Committed |
Changed in compiz: | |
status: | Fix Committed → Fix Released |
This particular problem is die to a typo introduced in 2008 and only shows up when someone tries to build Compiz against Xrender development files build into a non-FHS-standard custom location (which explains why it's only being reported now).