All versions of exiv2 package in the portage fails with: crwparse.cpp:(.text+0x2c6): undefined reference to `typeinfo for Exiv2::Error' crwparse.cpp:(.text+0x2e2): undefined reference to `vtable for Exiv2::CiffHeader' crwparse.cpp:(.text+0x315): undefined reference to `Exiv2::CiffHeader::read(unsigned char const*, unsigned int)' crwparse.cpp:(.text+0x345): undefined reference to `Exiv2::CiffHeader::print(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' crwparse.cpp:(.text+0x38d): undefined reference to `Exiv2::FileIo::~FileIo()' crwparse.cpp:(.text+0x436): undefined reference to `vtable for Exiv2::Error' crwparse.cpp:(.text+0x482): undefined reference to `Exiv2::FileIo::~FileIo()' crwparse.o: In function `Exiv2::Error::~Error()': crwparse.cpp:(.text._ZN5Exiv25ErrorD1Ev[Exiv2::Error::~Error()]+0xd): undefined reference to `vtable for Exiv2::Error' collect2: ld returned 1 exit status make[1]: *** [crwparse] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-gfx/exiv2-0.13/work/exiv2-0.13/src' make: *** [all] Error 2 !!! ERROR: media-gfx/exiv2-0.13 failed. Call stack: ebuild.sh, line 1621: Called dyn_compile ebuild.sh, line 973: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile exiv2-0.13.ebuild, line 43: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/media-gfx/exiv2-0.13/temp/build.log'. emerge --info Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6-r0, 2.6.20-suspend2-r6 i686) ================================================================= System uname: 2.6.20-suspend2-r6 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 19 Jul 2007 18:00:01 +0000 dev-lang/python: 2.4.4-r4, 2.5-r2 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=prescott -O3 -pipe -fomit-frame-pointer -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="cs" LC_ALL="cs_CZ" LINGUAS="en cs" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl alsa berkdb bitmap-fonts cli cracklib crypt cups dri gdbm gif gpm gtk hal iconv ipv6 isdnlog jpeg kde libg++ midi mplayer mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl pppd python readline reflection samba session spl ssl tcpd truetype-fonts type1-fonts unicode v4l2 x86 xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1. emerge exiv2 2. 3. Suspicious about following messages about char*: crwparse.cpp:(.text+0x269): undefined reference to `Exiv2::FileIo::read(unsigned char*, long)'
Created attachment 125376 [details] build.log build.log
How about w/ C[XX]FLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" ?
Have just compiled this on x86 and amd64 with no problems, using both -O2 and -O3 - am just running on my x86 machine with -O3 -fomit-frame-pointer to see if that's where the problem lies
Works just fine w/ C[XX]FLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr" for me as well. Really retry with sane flags.
Hi, this was the problem: -fvisibility=hidden -fvisibility-inlines-hidden in CFLAGS. I removed this part and compilation went ok. It was no even bug but matter of setting. Thank you for support. Closing this case.