When I try to compile dev-libs/libpcre-6.3 with these CFLAGS: CFLAGS="-O2 -mtune=athlon-xp -pipe -fomit-frame-pointer " CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden -fvisibility=hidden" The emerging process fails. If I remove this "-fvisibility=hidden" everything goes OK. Reproducible: Always Steps to Reproduce: 1. Add -fvisibility=hidden to your CXXFLAGS 2. emerge dev-libs/libpcre-6.3 3. Actual Results: This is the begining of the error output: /bin/sh ./libtool --mode=link i686-pc-linux-gnu-g++ -I. -I. -o pcre_scanner_unittest pcre_scanner_unittest.o \ libpcrecpp.la libpcreposix.la i686-pc-linux-gnu-g++ -I. -I. -o .libs/pcre_scanner_unittest pcre_scanner_unittest.o ./.libs/libpcrecpp.so -L/var/tmp/portage/libpcre-6.3/work/pcre-6.3 -L/var/tmp/portage/libpcre-6.3/work/pcre-6.3/.libs /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib ./.libs/libpcreposix.so /var/tmp/portage/libpcre-6.3/work/pcre-6.3/.libs/libpcre.so -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.4 i686-pc-linux-gnu-g++ -I. -I. -o .libs/pcrecpp_unittest pcrecpp_unittest.o ./.libs/libpcrecpp.so -L/var/tmp/portage/libpcre-6.3/work/pcre-6.3 -L/var/tmp/portage/libpcre-6.3/work/pcre-6.3/.libs /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib ./.libs/libpcreposix.so /var/tmp/portage/libpcre-6.3/work/pcre-6.3/.libs/libpcre.so -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.4 pcre_scanner_unittest.o: In function `main': pcre_scanner_unittest.cc:(.text+0x91): undefined reference to `pcrecpp::Scanner::Scanner(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' pcre_scanner_unittest.cc:(.text+0xc6): undefined reference to `pcrecpp::Scanner::Skip(char const*)' pcre_scanner_unittest.cc:(.text+0xcc): undefined reference to `pcrecpp::Arg::parse_int(char const*, int, void*)' I'll attach the whole emerge output later. Expected Results: Be emerged. Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.6.13 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=athlon-xp -pipe -fomit-frame-pointer " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=athlon-xp -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -fvisibility=hidden" DISTDIR="/mnt/hda/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="pt_BR" LC_ALL="pt_BR" LINGUAS="pt_BR" MAKEOPTS="-j2" PKGDIR="/mnt/hda/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cmipci crypt curl dga dts eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gdbm ggi gif glut gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 java javascript jpeg kdeenablefinal kdexdeltas lcms libg++ libwww mad matroska mikmod mjpeg mmx mng mozcalendar mp3 mpeg ncurses nls nomotif nptl nptlonly nsplugin nvidia ogg oggvorbis opengl pam pcre pdflib perl png python qt quicktime readline sdl speex spell sse sse2 ssl svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts udev userlocales v4l vorbis xine xml2 xmms xv xvid zlib video_cards_nvidia linguas_pt_BR userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
Created attachment 73864 [details] The full emerge of libpcre log.
(In reply to comment #0) > If I remove this "-fvisibility=hidden" everything > goes OK. Good that you've found out. So remove it and don't *ever* put it back if you don't want another bug to be marked INVALID. Thanks.