Without media-libs/imlib2[X] slimlock fails to build with the following: x86_64-pc-linux-gnu-g++ -O2 -pipe -march=core2 -mtune=generic -Wall -I. -I/usr/include/freetype2 -pthread -DPACKAGE=\"slimlock\" -DVERSION=\"0.11\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\" -c util.cpp -o util.o cfg.cpp: In member function 'std::string Cfg::getWelcomeMessage()': cfg.cpp:189:33: warning: ignoring return value of 'int getdomainname(char*, size_t)', declared with attribute warn_unused_result panel.cpp: In member function 'bool Panel::OnKeyPress(XEvent&)': panel.cpp:366:61: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result slimlock.cpp: In function 'void* RaiseWindow(void*)': slimlock.cpp:346:1: warning: no return statement in function returning non-void x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu cfg.o image.o panel.o slimlock.o util.o -o slimlock -lX11 -lXrandr -lXft -lfontconfig -lImlib2 -lXext -lrt -lpam -pthread image.o: In function `Image::createPixmap(_XDisplay*, int, unsigned long)': image.cpp:(.text+0x3b2): undefined reference to `imlib_context_set_display' image.cpp:(.text+0x3ca): undefined reference to `imlib_context_set_visual' image.cpp:(.text+0x3db): undefined reference to `imlib_context_set_colormap' image.cpp:(.text+0x427): undefined reference to `imlib_context_set_drawable' image.cpp:(.text+0x430): undefined reference to `imlib_render_image_on_drawable' collect2: ld returned 1 exit status
*slimlock-0.11-r1 (18 Aug 2012) 18 Aug 2012; Aaron W. Swenson <titanofold@gentoo.org> +slimlock-0.11-r1.ebuild, +files/slimlock-0.11-gcc47.patch: Add "X" USE flag dependency on imlib2. (Bug 427164) Add patch to fix building with GCC 4.7. (Bug 426866)