Hi! It seems, that sys-power/suspend can't be compiled. I don't know the exactly problem. But it can be fixed, when I am adding -lbz2 to "Libs:" in Libs: -L${libdir} -lfbsplashrender -lbz2 libtool: link: x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -march=core2 -O2 -pipe -o s2ram s2ram-main.o libsuspend-common.a -lx86 -lpci /bin/sh ./libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -march=core2 -O2 -pipe -all-static -o resume resume-resume.o libsuspend-common.a -llzo2 -lpthread -lfbsplashrender -lbz2 /bin/sh ./libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -march=core2 -O2 -pipe -o s2disk suspend.o libsuspend-common.a -llzo2 -lpthread -lfbsplashrender -lbz2 libtool: link: x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -march=core2 -O2 -pipe -static -o resume resume-resume.o libsuspend-common.a -llzo2 -lpthread /usr/lib64/libfbsplashrender.a -L/usr/lib64 /usr/lib64/libfbsplash.a -lmng -ljpeg -llcms2 -lpng16 -lz -lfreetype -lm -lbz2 libtool: link: x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -march=core2 -O2 -pipe -o s2disk suspend.o libsuspend-common.a -llzo2 -lpthread /usr/lib64/libfbsplashrender.so -L/usr/lib64 /usr/lib64/libfbsplash.so -lmng -ljpeg -llcms2 -lpng16 -lz -lfreetype -lm -lbz2 /bin/sh ./libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -DCONFIG_BOTH -march=core2 -O2 -pipe -o s2both s2both-suspend.o libsuspend-common.a -lx86 -lpci -llzo2 -lpthread -lfbsplashrender -lbz2 /usr/lib64/liblcms2.a(cmsplugin.o): In function `cmsDeleteContext': (.text+0x1bbe): undefined reference to `pthread_mutex_lock' /usr/lib64/liblcms2.a(cmsplugin.o): In function `cmsDeleteContext': (.text+0x1bf6): undefined reference to `pthread_mutex_unlock' /usr/lib64/liblcms2.a(cmsplugin.o): In function `cmsCreateContext': (.text+0x1d45): undefined reference to `pthread_mutex_lock' /usr/lib64/liblcms2.a(cmsplugin.o): In function `cmsCreateContext': (.text+0x1d60): undefined reference to `pthread_mutex_unlock' /usr/lib64/liblcms2.a(cmsplugin.o): In function `cmsDupContext': (.text+0x1f31): undefined reference to `pthread_mutex_lock' /usr/lib64/liblcms2.a(cmsplugin.o): In function `cmsDupContext': (.text+0x1f4d): undefined reference to `pthread_mutex_unlock' /usr/lib64/liblcms2.a(cmserr.o): In function `defMtxLock': (.text+0x88): undefined reference to `pthread_mutex_lock' /usr/lib64/liblcms2.a(cmserr.o): In function `defMtxCreate': (.text+0x131): undefined reference to `pthread_mutex_init' /usr/lib64/liblcms2.a(cmserr.o): In function `defMtxDestroy': (.text+0x200): undefined reference to `pthread_mutex_destroy' /usr/lib64/liblcms2.a(cmserr.o): In function `defMtxUnlock': (.text+0x74): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info_bases': (.text+0x16e7): undefined reference to `pthread_mutex_lock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info': (.text+0x1782): undefined reference to `pthread_mutex_lock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame': (.text+0x1824): undefined reference to `pthread_mutex_lock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info_table_bases': (.text+0x18ab): undefined reference to `pthread_mutex_lock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__deregister_frame_info_bases': (.text+0x194e): undefined reference to `pthread_mutex_lock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__deregister_frame_info_bases': (.text+0x19e8): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE': (.text+0x1ab6): undefined reference to `pthread_mutex_lock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE': (.text+0x1b06): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE': (.text+0x1bf0): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info_bases': (.text+0x1706): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info': (.text+0x17a1): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame': (.text+0x1848): undefined reference to `pthread_mutex_unlock' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_eh.a(unwind-dw2-fde-dip.o):(.text+0x18ca): more undefined references to `pthread_mutex_unlock' follow collect2: error: ld returned 1 exit status Makefile:794: recipe for target 'resume' failed make[2]: *** [resume] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: link: x86_64-pc-linux-gnu-gcc -DS2RAM -D_LARGEFILE64_SOURCE -DCONFIG_BOTH -march=core2 -O2 -pipe -o s2both s2both-suspend.o libsuspend-common.a -lx86 -lpci -llzo2 -lpthread /usr/lib64/libfbsplashrender.so -L/usr/lib64 /usr/lib64/libfbsplash.so -lmng -ljpeg -llcms2 -lpng16 -lz -lfreetype -lm -lbz2 make[2]: Leaving directory '/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0' Makefile:991: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-power/suspend-1.0/work/suspend-utils-1.0' Makefile:620: recipe for target 'all' failed
Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20, 3.17.4-gentoo x86_64) ================================================================= System uname: Linux-3.17.4-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.2 KiB Mem: 8053684 total, 7736136 free KiB Swap: 8912892 total, 8912892 free Timestamp of tree: Sun, 30 Nov 2014 01:15:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.2_p53 dev-lang/perl: 5.20.1-r3 dev-lang/python: 2.7.8, 3.3.5-r1, 3.4.2 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.6 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3, 4.9.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers) sys-libs/glibc: 2.20 Repositories: gentoo serenity ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=core2 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mcx16 -msahf -pipe -fomit-frame-pointer -mfpmath=sse -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now" MAKEOPTS="-j3 -l2" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9e" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 bzip2 caps crypt cxx gmp gpm ipv6 jpeg lcms lzma mng ncurses nls nptl openmp pam pcre pie png readline slang ssl suid symlink threads tiff truetype udev unicode vim-syntax xml zlib" ABI_X86="64" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="nmea" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LINGUAS="de" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU" VIDEO_CARDS="fbdev intel modesetting vesa" USE_PYTHON="2.7" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND
Grrr.. sorry, wrong paste. The solution is: Add -lbz2 and -lpthread - to "Libs:". After that, I am able to compile suspend.
(In reply to Conrad Kostecki from comment #2) > Add -lbz2 and -lpthread - to "Libs:" where is thin “Libs:” you are speaking of? There is no such line in the suspend ebuild.
… nor in suspend-utils-1.0.tar.bz2
(In reply to Navid Zamani from comment #3) > (In reply to Conrad Kostecki from comment #2) > > Add -lbz2 and -lpthread - to "Libs:" > > where is thin “Libs:” you are speaking of? There is no such line in the > suspend ebuild. That applied to splashutils. Sorry.
Should be fixed in suspend-1.0_p20150810: splashutils[freetype] + freetype[bzip2] issue is handled there.