app-accessibility/at-spi2-core-2.8.0 does not compile without libSM being installed. During the configure phase, "checking for XTestFakeKeyEvent in -lXtst" fails. Here's the relevant part from config.log: configure:13408: checking for XTestFakeKeyEvent in -lXtst configure:13433: x86_64-pc-linux-gnu-gcc -o conftest -O2 -march=x86-64 -pipe -Wl,-O1 -Wl,--as-needed conftest.c -lXtst -lSM -lICE -lX11 >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSM collect2: error: ld returned 1 exit status configure:13433: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "at-spi2-core" | #define PACKAGE_TARNAME "at-spi2-core" | #define PACKAGE_VERSION "2.8.0" | #define PACKAGE_STRING "at-spi2-core 2.8.0" | #define PACKAGE_BUGREPORT "accessibility-atspi@lists.linux-foundation.org" | #define PACKAGE_URL "" | #define PACKAGE "at-spi2-core" | #define VERSION "2.8.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char XTestFakeKeyEvent (); | int | main () | { | return XTestFakeKeyEvent (); | ; | return 0; | } configure:13442: result: no configure:13448: error: Couldn't find the Xtst library. Check config.log However, ld's error message is "cannot find -lSM." On the system where I observed this failure, libXtst is installed but libSM was not. To solve this, I added x11-libs/libSM to the ebuild dependencies and everything configured/built normally. Reproducible: Always Steps to Reproduce: 1. Start with new system (or chroot) that does not have x11-libs/libSM installed 2. Try to emerge =app-accessibility/at-spi2-core-2.8.0 3. Observe failure Actual Results: Ebuild fails in configure phase (see summary for details) Expected Results: Software should have compiled and installed normally
This seems to be an upstream bug - AFAICT, there's no need to include X_PRE_LIBS among the needed libraries.
Thanks for filing that.
+ 24 Dec 2013; Pacho Ramos <pacho@gentoo.org> -at-spi2-core-2.2.3.ebuild, + -at-spi2-core-2.4.2.ebuild, at-spi2-core-2.8.0.ebuild: + x11-libs/libSM is needed until upstream #719808 is solved either making the + dep unneeded or fixing their configure, drop old. +