Created attachment 446048 [details] build.log.xz >>> Failed to emerge app-emulation/qemu-2.7.0-r2, Log file: >>> '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/temp/build.log.gz' >>> Jobs: 19 of 20 complete, 1 failed Load avg: 11.7, 11.8, 10.8 * Package: app-emulation/qemu-2.7.0-r2 * Repository: gentoo * Maintainer: qemu@gentoo.org * USE: abi_x86_64 aio amd64 bzip2 caps curl elibc_glibc fdt filecaps jpeg kernel_linux lzo ncurses nls numa pin-upstream-blobs png python python_targets_python2_7 qemu_softmmu_targets_aarch64 qemu_softmmu_targets_arm qemu_softmmu_t argets_x86_64 qemu_user_targets_aarch64 qemu_user_targets_arm qemu_user_targets_x86_64 seccomp snappy spice static static-softmmu static-user threads usb usbredir userland_GNU uuid vhost-net virtfs vnc xattr * FEATURES: compressdebug installsources preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking qemu-2.7.0.tar.bz2 to /var/tmp/portage/app-emulation/qemu-2.7.0-r2/work >>> Source unpacked in /var/tmp/portage/app-emulation/qemu-2.7.0-r2/work >>> Preparing source in /var/tmp/portage/app-emulation/qemu-2.7.0-r2/work/qemu-2.7.0 ... * Applying qemu-2.5.0-cflags.patch ... [ ok ] * Applying qemu-2.5.0-sysmacros.patch ... [ ok ] * Applying qemu-2.7.0-CVE-2016-6836.patch ... [ ok ] * Applying qemu-2.7.0-CVE-2016-7155.patch ... [ ok ] * Applying qemu-2.7.0-CVE-2016-7156.patch ... [ ok ] * Applying qemu-2.7.0-CVE-2016-7157-1.patch ... [ ok ] * Applying qemu-2.7.0-CVE-2016-7157-2.patch ... [ ok ] * Applying qemu-2.7.0-CVE-2016-7170.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-emulation/qemu-2.7.0-r2/work/qemu-2.7.0 ... ../configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 --docdir=/usr/share/doc/qemu-2.7.0-r2/html --disable-bsd-user --disable-guest-agent --disable-strip --disable-werror --disable-gcrypt --python=/usr/bin/python2.7 --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --host-cc=x86_64-pc-linux-gnu-gcc --disable-debug-info --disable-debug-tcg --enable-docs --disable-tcg-interpreter --enable-attr --disable-brlapi --enable-linux-aio --enable-bzip2 --disable-bluez --enable-cap-ng --enable-curl --enable-fdt --disable-glusterfs --disable-gnutls --disable-nettle --disable-gtk --disable-rdma --disable-libiscsi --enable-vnc-jpeg --enable-kvm --enable-lzo --enable-curses --disable-libnfs --enable-numa --disable-opengl --enable-vnc-png --disable-rbd --disable-vnc-sasl --disable-sdl --enable-seccomp --disable-smartcard --enable-snappy --enable-spice --disable-libssh2 --enable-libusb --enable-usb-redir --enable-uuid --disable-vde --enable-vhost-net --disable-virglrenderer --enable-virtfs --enable-vnc --disable-vte --disable-xen --disable-xen-pci-passthrough --disable-xfsctl --disable-linux-user --enable-system --with-system-pixman --audio-drv-list=oss --target-list=aarch64-softmmu,arm-softmmu,x86_64-softmmu --static --disable-pie ERROR: User requested feature libsnappy configure was not able to find it. Install libsnappy devel * ERROR: app-emulation/qemu-2.7.0-r2::gentoo failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 13485: Called qemu_src_configure 'softmmu' * environment, line 13207: Called die * The specific snippet of code: * ../configure "${conf_opts[@]}" || die "configure failed"; * * If you need support, post the output of `emerge --info '=app-emulation/qemu-2.7.0-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-2.7.0-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/temp/build.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/work/qemu-2.7.0/softmmu-build' * S: '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/work/qemu-2.7.0' * Messages for package app-emulation/qemu-2.7.0-r2: * You will also need support for 802.1d Ethernet Bridging for some network configurations. * If you have an AMD CPU, you must enable KVM_AMD in your kernel configuration. * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems. * Messages for package app-emulation/qemu-2.7.0-r2: * ERROR: app-emulation/qemu-2.7.0-r2::gentoo failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 13485: Called qemu_src_configure 'softmmu' * environment, line 13207: Called die * The specific snippet of code: * ../configure "${conf_opts[@]}" || die "configure failed"; * * If you need support, post the output of `emerge --info '=app-emulation/qemu-2.7.0-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-2.7.0-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/temp/build.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/work/qemu-2.7.0/softmmu-build' * S: '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/work/qemu-2.7.0' * * The following package has failed to build, install, or execute postinst: * * (app-emulation/qemu-2.7.0-r2:0/0::gentoo, ebuild scheduled for merge), Log file: * '/var/tmp/portage/app-emulation/qemu-2.7.0-r2/temp/build.log.gz' * mzj-i3virthost temp # emerge --info Portage 2.2.28 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.22-r4, 4.4.8-hardened-r1 x86_64) ================================================================= System uname: Linux-4.4.8-hardened-r1-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.2 KiB Mem: 99002996 total, 1297880 free KiB Swap: 10485756 total, 10439792 free Timestamp of repository gentoo: Thu, 15 Sep 2016 16:27:05 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.3_p42-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/cmake: 3.5.2-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.21.3::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 inin-gentoo-overlay location: /usr/portage-overlays/inin-gentoo-overlay sync-type: git sync-uri: https://jonesmz@bitbucket.org/jonesmz/inin-gentoo-overlay.git masters: gentoo jonesmz-public-overlay location: /usr/portage-overlays/jonesmz-public-overlay sync-type: git sync-uri: https://github.com/jonesmz/gentoo-overlay.git masters: gentoo Installed sets: @amd64-desktop-applications, @archive, @development-cli, @development-gui, @lxqt, @pc-base-system, @portage, @vcs, @work ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage-distfiles" EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --deep --backtrack=3000 --complete-graph --with-bdeps=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j25" PKGDIR="/usr/portage-packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 apng avahi berkdb branding bzip2 cairo cdda cdr clang cli cracklib crypt cxx d-pau dbus dconf dri dts dvd dvdr egl emboss encode exif fam ffmpeg flac gd gdbm gif gnome-keyring gpm gstreamer gtk gudev hardened iconv icu ipv6 jpeg justify lcms libnotify libsecret lm_sensors mad minizip mmx mmxext mng modules mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pax_kernel pcre pdf perforce pie png policykit ppds pulseaudio python qt5 readline samba sdl seccomp session sound spell sqlite sse sse2 ssl ssp startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower urandom usb vaapi vorbis x264 xattr xcb xinerama xml xtpax xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="coreboot efi-64 emu qemu pc" INPUT_DEVICES="evdev synaptics mouse keyboard wacom" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm aarch64 x86_64" QEMU_USER_TARGETS="arm aarch64 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa modesetting fbdev qxl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON emerge -pqv --ignore-default-opts qemu [ebuild R ] app-emulation/qemu-2.7.0-r2 USE="aio bzip2 caps curl fdt filecaps jpeg lzo* ncurses nls numa pin-upstream-blobs png python seccomp snappy* spice static* static-softmmu* static-user threads usb usbredir uuid vhost-net virtfs vnc xattr -accessibility -alsa* -bluetooth -debug (-glusterfs) -gnutls -gtk* -gtk2 -infiniband -iscsi -nfs -opengl* -pulseaudio* -rbd -sasl -sdl* -sdl2 (-selinux) -smartcard -ssh -systemtap -tci {-test} -vde -virgl -vte -xen -xfs" LINGUAS="-bg -de_DE -fr_FR -hu -it -tr -zh_CN" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64 -alpha -cris -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -or32 -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="aarch64 arm x86_64 -alpha -armeb -cris -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -or32 -ppc -ppc64 -ppc64abi32 -ppc64le -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -unicore32" mzj-i3virthost temp # emerge -pqv --ignore-default-opts snappy [ebuild R ] app-arch/snappy-1.1.2-r1 USE="static-libs" mzj-i3virthost temp # equery f snappy * Searching for snappy ... * Contents of app-arch/snappy-1.1.2-r1: /usr /usr/include /usr/include/snappy-c.h /usr/include/snappy-sinksource.h /usr/include/snappy-stubs-public.h /usr/include/snappy.h /usr/lib /usr/lib/debug /usr/lib/debug/usr /usr/lib/debug/usr/lib64 /usr/lib/debug/usr/lib64/libsnappy.so.1.2.1.debug /usr/lib64 /usr/lib64/libsnappy.a /usr/lib64/libsnappy.so -> libsnappy.so.1.2.1 /usr/lib64/libsnappy.so.1 -> libsnappy.so.1.2.1 /usr/lib64/libsnappy.so.1.2.1 /usr/share /usr/share/doc /usr/share/doc/snappy-1.1.2-r1 /usr/share/doc/snappy-1.1.2-r1/ChangeLog.xz /usr/share/doc/snappy-1.1.2-r1/NEWS.xz /usr/share/doc/snappy-1.1.2-r1/README.xz /usr/share/doc/snappy-1.1.2-r1/format_description.txt.xz /usr/share/doc/snappy-1.1.2-r1/framing_format.txt.xz
I haven't investigated any further into why the configure is unhappy and does not pick up statis libsnappy from snappy[static-libs]. As a pragmatic workaround for the moment, I suggest you either disable static (i.e. "-static -static-user -static-softmmu") if you don't need it, or disable "snappy" if not needed.
I turned off the snappy use flag, and now it's complaining about not finding libcurl :-) ../configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 --docdir=/usr/share/doc/qemu-2.7.0-r3/html --disable-bsd-user --disable-guest-agent --disable-strip --disable-werror --disable-gcrypt --python=/usr/bin/python2.7 --cc=x86_64- pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --host-cc=x86_64-pc-linux-gnu-gcc --disable-debug-info --disable-debug-tcg --enable-docs --disable-tcg-interpreter --enable-attr --disable-brlapi --enable-linux-aio --enable-bzip2 --disable-bl uez --enable-cap-ng --enable-curl --enable-fdt --disable-glusterfs --disable-gnutls --disable-nettle --disable-gtk --disable-rdma --disable-libiscsi --enable-vnc-jpeg --enable-kvm --enable-lzo --enable-curses --disable-libnfs --enable-numa --disable-opengl --enable-vnc-png --disable-rbd --disable-vnc-sasl --disable-sdl --enable-seccomp --disable-smartcard --disable-snappy --enable-spice --disable-libssh2 --enable-libusb --enable-usb-redir --enable-uuid --disable-vde --enabl e-vhost-net --disable-virglrenderer --enable-virtfs --enable-vnc --disable-vte --disable-xen --disable-xen-pci-passthrough --disable-xfsctl --disable-linux-user --enable-system --with-system-pixman --audio-drv-list=oss --target-list=aarch6 4-softmmu,arm-softmmu,x86_64-softmmu --static --disable-pie ERROR: User requested feature curl configure was not able to find it. Install libcurl devel
Thank you for taking a look at this issue. It's not urgent for me or anything, I'm just reporting the bug so you're aware of the problem.
Hrmmmm Disabling curl gives yet-another-error. Seems there might be something wrong with dependency scanning with regard to static linking? ../configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 --docdir=/usr/share/doc/qemu-2.7.0-r3/html --disable-bsd-user --disable-guest-agent --disable-strip --disable-werror --disable-gcrypt --python=/usr/bin/python2.7 --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --host-cc=x86_64-pc-linux-gnu-gcc --disable-debug-info --disable-debug-tcg --enable-docs --disable-tcg-interpreter --enable-attr --disable-brlapi --enable-linux-aio --enable-bzip2 --disable-bluez --enable-cap-ng --disable-curl --enable-fdt --disable-glusterfs --disable-gnutls --disable-nettle --disable-gtk --disable-rdma --disable-libiscsi --enable-vnc-jpeg --enable-kvm --enable-lzo --enable-curses --disable-libnfs --enable-numa --disable-opengl --enable-vnc-png --disable-rbd --disable-vnc-sasl --disable-sdl --enable-seccomp --disable-smartcard --disable-snappy --enable-spice --disable-libssh2 --enable-libusb --enable-usb-redir --enable-uuid --disable-vde --enable-vhost-net --disable-virglrenderer --enable-virtfs --enable-vnc --disable-vte --disable-xen --disable-xen-pci-passthrough --disable-xfsctl --disable-linux-user --enable-system --with-system-pixman --audio-drv-list=oss --target-list=aarch64-softmmu,arm-softmmu,x86_64-softmmu --static --disable-pie ERROR: User requested feature spice configure was not able to find it. Install spice-server(>=0.12.0) and spice-protocol(>=0.12.3) devel
please attach the config.log from the build dir also try running this: $ cat >test.c <<EOF #include <snappy-c.h> int main(void) { snappy_max_compressed_length(4096); return 0; } EOF $ gcc -lsnappy test.c -static
mzj-i3virthost ~ # cat >test.c <<EOF #include <snappy-c.h> int main(void) { snappy_max_compressed_length(4096); return 0; } EOF mzj-i3virthost ~ # gcc -lsnappy test.c -static /tmp/cct327JN.o: In function `main': test.c:(.text+0x2e): undefined reference to `snappy_max_compressed_length' collect2: error: ld returned 1 exit status mzj-i3virthost ~ # mzj-i3virthost ~ # emerge --info app-arch/snappy Portage 2.3.0 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.22-r4, 4.7.10-hardened x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.7.10-hardened-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.2 KiB Mem: 99002588 total, 427740 free KiB Swap: 62914536 total, 62673544 free Timestamp of repository gentoo: Mon, 14 Nov 2016 19:42:35 +0000 sh bash 4.3_p48 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.3_p48::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/cmake: 3.7.0::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.21.7::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 inin-gentoo-overlay location: /usr/portage-overlays/inin-gentoo-overlay sync-type: git sync-uri: https://jonesmz@bitbucket.org/jonesmz/inin-gentoo-overlay.git masters: gentoo jonesmz-public-overlay location: /usr/portage-overlays/jonesmz-public-overlay sync-type: git sync-uri: https://github.com/jonesmz/gentoo-overlay.git masters: gentoo Installed sets: @archive, @development-cli, @pc-base-system, @portage, @vcs, @work ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage-distfiles" EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --deep --backtrack=3000 --complete-graph --with-bdeps=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j25" PKGDIR="/usr/portage-packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 apng avahi berkdb branding bzip2 cairo cdda cdr clang cli cracklib crypt cxx d-pau dbus dconf dri dts dvd dvdr egl emboss encode exif fam ffmpeg flac gd gdbm gif gnome-keyring gpm gstreamer gtk gudev hardened iconv icu ipv6 jpeg justify lcms libnotify libsecret lm_sensors mad minizip mmx mmxext mng modules mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pax_kernel pcre pdf perforce pie png policykit ppds pulseaudio python qt5 readline samba sdl seccomp session sound spell sqlite sse sse2 ssl ssp startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower urandom usb vaapi vorbis widevine x264 xattr xcb xinerama xml xtpax xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="coreboot efi-64 emu qemu pc" INPUT_DEVICES="evdev mouse keyboard libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm aarch64 x86_64" QEMU_USER_TARGETS="arm aarch64 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa modesetting fbdev qxl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= app-arch/snappy-1.1.3-r1::gentoo was built with the following: USE="static-libs"
Do you still need the emerge log?
sorry, that cmdline was incorrect. use this instead: $ gcc -static test.c -lsnappy
mzj-i3virthost ~ # cat >test.c <<EOF #include <snappy-c.h> int main(void) { snappy_max_compressed_length(4096); return 0; } EOF mzj-i3virthost ~ # gcc -static test.c -lsnappy /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::internal::WorkingMemory::GetHashTable(unsigned long, int*)': snappy.cc:(.text+0x220): undefined reference to `operator new[](unsigned long)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Compress(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x1e6c): undefined reference to `operator new[](unsigned long)' snappy.cc:(.text+0x1e80): undefined reference to `operator new[](unsigned long)' snappy.cc:(.text+0x1e95): undefined reference to `operator delete[](void*)' snappy.cc:(.text+0x1ea1): undefined reference to `operator delete[](void*)' snappy.cc:(.text+0x1eaf): undefined reference to `operator delete[](void*)' snappy.cc:(.text+0x1f5b): undefined reference to `operator delete[](void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Uncompress(char const*, unsigned long, std::string*)': snappy.cc:(.text+0x2216): undefined reference to `std::string::resize(unsigned long, char)' snappy.cc:(.text+0x2230): undefined reference to `std::string::_M_leak_hard()' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Compress(char const*, unsigned long, std::string*)': snappy.cc:(.text+0x2486): undefined reference to `std::string::resize(unsigned long, char)' snappy.cc:(.text+0x249f): undefined reference to `std::string::_M_leak_hard()' snappy.cc:(.text+0x24bf): undefined reference to `std::string::resize(unsigned long, char)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Uncompress(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x2df6): undefined reference to `operator delete(void*)' snappy.cc:(.text+0x2e0b): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::UncompressAsMuchAsPossible(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x30f0): undefined reference to `operator delete(void*)' snappy.cc:(.text+0x3101): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::SnappySinkAllocator::Deleter(void*, char const*, unsigned long)': snappy.cc:(.text._ZN6snappy19SnappySinkAllocator7DeleterEPvPKcm[_ZN6snappy19SnappySinkAllocator7DeleterEPvPKcm]+0x3f): undefined reference to `operator delete[](void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>::~SnappyScatteredWriter()': snappy.cc:(.text._ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED2Ev[_ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED5Ev]+0x34): undefined reference to `operator delete(void*)' snappy.cc:(.text._ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED2Ev[_ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED5Ev]+0x57): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `std::vector<snappy::SnappySinkAllocator::Datablock, std::allocator<snappy::SnappySinkAllocator::Datablock> >::_M_insert_aux(__gnu_cxx::__normal_iterator<snappy::SnappySinkAllocator::Datablock*, std::vector<snappy::SnappySinkAllocator::Datablock, std::allocator<snappy::SnappySinkAllocator::Datablock> > >, snappy::SnappySinkAllocator::Datablock const&)': snappy.cc:(.text._ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_[_ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_]+0xf2): undefined reference to `operator new(unsigned long)' snappy.cc:(.text._ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_[_ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_]+0x1ae): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `std::vector<char*, std::allocator<char*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, char* const&)': snappy.cc:(.text._ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[_ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_]+0xdd): undefined reference to `operator new(unsigned long)' snappy.cc:(.text._ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[_ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_]+0x12f): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>::SlowAppend(char const*, unsigned long)': snappy.cc:(.text._ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEE10SlowAppendEPKcm[_ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEE10SlowAppendEPKcm]+0x127): undefined reference to `operator new[](unsigned long)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o):(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::ByteArraySource::~ByteArraySource()': snappy-sinksource.cc:(.text+0x327): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::UncheckedByteArraySink::~UncheckedByteArraySink()': snappy-sinksource.cc:(.text+0x367): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::Source::~Source()': snappy-sinksource.cc:(.text+0x4e7): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::Sink::~Sink()': snappy-sinksource.cc:(.text+0x567): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy4SinkE[_ZTIN6snappy4SinkE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy6SourceE[_ZTIN6snappy6SourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy15ByteArraySourceE[_ZTIN6snappy15ByteArraySourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy22UncheckedByteArraySinkE[_ZTIN6snappy22UncheckedByteArraySinkE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x20): undefined reference to `__cxa_pure_virtual' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x28): undefined reference to `__cxa_pure_virtual' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x30): undefined reference to `__cxa_pure_virtual' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy4SinkE[_ZTVN6snappy4SinkE]+0x20): undefined reference to `__cxa_pure_virtual' collect2: error: ld returned 1 exit status mzj-i3virthost ~ #
ok, that makes sense. next step: change `gcc` to `g++` and see if it works. if it does, change "test.c" to "test.cc" and try again with `gcc`.
First step works ymir jonesmz # cat >test.c <<EOF #include <snappy-c.h> int main(void) { snappy_max_compressed_length(4096); return 0; } EOF ymir jonesmz # g++ -static test.c -lsnappy ymir jonesmz # Second does not ymir jonesmz # cat >test.cc <<EOF #include <snappy-c.h> int main(void) { snappy_max_compressed_length(4096); return 0; } EOF ymir jonesmz # gcc -static test.cc -lsnappy /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::internal::WorkingMemory::GetHashTable(unsigned long, int*)': snappy.cc:(.text+0x220): undefined reference to `operator new[](unsigned long)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Compress(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x1e6c): undefined reference to `operator new[](unsigned long)' snappy.cc:(.text+0x1e80): undefined reference to `operator new[](unsigned long)' snappy.cc:(.text+0x1e95): undefined reference to `operator delete[](void*)' snappy.cc:(.text+0x1ea1): undefined reference to `operator delete[](void*)' snappy.cc:(.text+0x1eaf): undefined reference to `operator delete[](void*)' snappy.cc:(.text+0x1f5b): undefined reference to `operator delete[](void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Uncompress(char const*, unsigned long, std::string*)': snappy.cc:(.text+0x2216): undefined reference to `std::string::resize(unsigned long, char)' snappy.cc:(.text+0x2230): undefined reference to `std::string::_M_leak_hard()' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Compress(char const*, unsigned long, std::string*)': snappy.cc:(.text+0x2486): undefined reference to `std::string::resize(unsigned long, char)' snappy.cc:(.text+0x249f): undefined reference to `std::string::_M_leak_hard()' snappy.cc:(.text+0x24bf): undefined reference to `std::string::resize(unsigned long, char)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::Uncompress(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x2df6): undefined reference to `operator delete(void*)' snappy.cc:(.text+0x2e0b): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::UncompressAsMuchAsPossible(snappy::Source*, snappy::Sink*)': snappy.cc:(.text+0x30f0): undefined reference to `operator delete(void*)' snappy.cc:(.text+0x3101): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::SnappySinkAllocator::Deleter(void*, char const*, unsigned long)': snappy.cc:(.text._ZN6snappy19SnappySinkAllocator7DeleterEPvPKcm[_ZN6snappy19SnappySinkAllocator7DeleterEPvPKcm]+0x3f): undefined reference to `operator delete[](void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>::~SnappyScatteredWriter()': snappy.cc:(.text._ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED2Ev[_ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED5Ev]+0x34): undefined reference to `operator delete(void*)' snappy.cc:(.text._ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED2Ev[_ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEED5Ev]+0x57): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `std::vector<snappy::SnappySinkAllocator::Datablock, std::allocator<snappy::SnappySinkAllocator::Datablock> >::_M_insert_aux(__gnu_cxx::__normal_iterator<snappy::SnappySinkAllocator::Datablock*, std::vector<snappy::SnappySinkAllocator::Datablock, std::allocator<snappy::SnappySinkAllocator::Datablock> > >, snappy::SnappySinkAllocator::Datablock const&)': snappy.cc:(.text._ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_[_ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_]+0xf2): undefined reference to `operator new(unsigned long)' snappy.cc:(.text._ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_[_ZNSt6vectorIN6snappy19SnappySinkAllocator9DatablockESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_]+0x1ae): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `std::vector<char*, std::allocator<char*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, char* const&)': snappy.cc:(.text._ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[_ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_]+0xdd): undefined reference to `operator new(unsigned long)' snappy.cc:(.text._ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[_ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_]+0x12f): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o): In function `snappy::SnappyScatteredWriter<snappy::SnappySinkAllocator>::SlowAppend(char const*, unsigned long)': snappy.cc:(.text._ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEE10SlowAppendEPKcm[_ZN6snappy21SnappyScatteredWriterINS_19SnappySinkAllocatorEE10SlowAppendEPKcm]+0x127): undefined reference to `operator new[](unsigned long)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy.o):(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::ByteArraySource::~ByteArraySource()': snappy-sinksource.cc:(.text+0x327): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::UncheckedByteArraySink::~UncheckedByteArraySink()': snappy-sinksource.cc:(.text+0x367): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::Source::~Source()': snappy-sinksource.cc:(.text+0x4e7): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o): In function `snappy::Sink::~Sink()': snappy-sinksource.cc:(.text+0x567): undefined reference to `operator delete(void*)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy4SinkE[_ZTIN6snappy4SinkE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy6SourceE[_ZTIN6snappy6SourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy15ByteArraySourceE[_ZTIN6snappy15ByteArraySourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTIN6snappy22UncheckedByteArraySinkE[_ZTIN6snappy22UncheckedByteArraySinkE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x20): undefined reference to `__cxa_pure_virtual' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x28): undefined reference to `__cxa_pure_virtual' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy6SourceE[_ZTVN6snappy6SourceE]+0x30): undefined reference to `__cxa_pure_virtual' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../lib64/libsnappy.a(snappy-sinksource.o):(.data.rel.ro._ZTVN6snappy4SinkE[_ZTVN6snappy4SinkE]+0x20): undefined reference to `__cxa_pure_virtual' collect2: error: ld returned 1 exit status ymir jonesmz #
thanks, i think that summarizes the issue nicely
Can't this be fixed?
(In reply to Tamas Jantvik from comment #13) > Can't this be fixed? Not really. Further, upstream and maintainer of snappy decided to not support static builds any more, see https://bugs.gentoo.org/651602 I have pushed a dependency updated that disallows USE=+snappy in case of USE=+static. Closing as wontfix.