Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124201 - dev-libs/libpcre-6.{3,4} doesn't compile- gcc 3.4.{4,5}
Summary: dev-libs/libpcre-6.{3,4} doesn't compile- gcc 3.4.{4,5}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-26 13:38 UTC by Jonas MG
Modified: 2006-03-06 15:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas MG 2006-02-26 13:38:25 UTC
I have 2 systems, one with gcc 3.3.6 and another with 3.4.4

In system with gcc 3.4.4 it fails, and iget the next message:

        libpcrecpp.la libpcreposix.la
/bin/sh ./libtool --mode=link i686-pc-linux-gnu-g++  -I. -I.   -o pcre_scanner_unitte
st  pcre_scanner_unittest.o \
        libpcrecpp.la libpcreposix.la
i686-pc-linux-gnu-g++ -I. -I. -o .libs/pcrecpp_unittest pcrecpp_unittest.o  ./.libs/l
ibpcrecpp.so -L/var/tmp/portage/libpcre-6.4/work/pcre-6.4 -L/var/tmp/portage/libpcre-
6.4/work/pcre-6.4/.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/porta
ge/libpcre-6.4/work/pcre-6.4/.libs/libpcre.so -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-li
nux-gnu/3.4.4
./.libs/libpcrecpp.so: undefined reference to `std::iterator_traits<char const*>::dif
ference_type std::count<char const*, char>(char const*, char const*, char const&)'
./.libs/libpcrecpp.so: undefined reference to `std::vector<pcrecpp::StringPiece, std:
:allocator<pcrecpp::StringPiece> >::_M_insert_aux(__gnu_cxx::__normal_iterator<pcrecp
p::StringPiece*, std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiec
e> > >, pcrecpp::StringPiece const&)'
collect2: ld returned 1 exit status
make: *** [pcrecpp_unittest] Error 1
make: *** Waiting for unfinished jobs....
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.4/work/pcre-6.4 -L/var/tmp/portag
e/libpcre-6.4/work/pcre-6.4/.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.4/work/pcre-6.4/.libs/libpcre.so -Wl,--rpath -Wl,/usr/lib/gcc/
i686-pc-linux-gnu/3.4.4
collect: recompiling ./pcre_scanner_unittest.cc
collect: relinking
collect: recompiling ./pcre_scanner_unittest.cc
collect: relinking
./.libs/libpcrecpp.so: undefined reference to `std::iterator_traits<char const*>::dif
ference_type std::count<char const*, char>(char const*, char const*, char const&)'
./.libs/libpcrecpp.so: undefined reference to `std::vector<pcrecpp::StringPiece, std:
:allocator<pcrecpp::StringPiece> >::_M_insert_aux(__gnu_cxx::__normal_iterator<pcrecp
p::StringPiece*, std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiec
e> > >, pcrecpp::StringPiece const&)'
collect2: ld returned 1 exit status
make: *** [pcre_scanner_unittest] Error 1

!!! ERROR: dev-libs/libpcre-6.4 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

------------------------

Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1
 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 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.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/conf
ig /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shut
down /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvip
dfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/
share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -frepo"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks nodoc sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.switch.ch/m
irror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/distfiles/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 crypt cups eds emboss 
encode esd expat foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 
jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam 
pdflib perl pic png python qt quicktime readline sdl spell ssl tcpd truetype truetype
-fonts type1-fonts udev unicode vorbis xml xmms xv zlib linguas_es userland_GNU kerne
l_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jonas MG 2006-03-05 09:28:38 UTC
I installed a new system from scratch: gentoo 2006.0

With gcc 3.4.5, it follows failling:

i686-pc-linux-gnu-g++ -Wl,-O1 -Wl,--sort-common -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.5/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.5
collect: recompiling ./pcre_scanner_unittest.cc
./.libs/libpcrecpp.so: undefined reference to `std::iterator_traits<char const*>::difference_type std::count<char const*, char>(char const*, char const*, char const&)'
./.libs/libpcrecpp.so: undefined reference to `std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiece> >::_M_insert_aux(__gnu_cxx::__normal_iterator<pcrecpp::StringPiece*, std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiece> > >, pcrecpp::StringPiece const&)'
collect2: ld returned 1 exit status
make: *** [pcrecpp_unittest] Error 1
make: *** Waiting for unfinished jobs....
collect: relinking
collect: recompiling ./pcre_scanner_unittest.cc
collect: relinking
Comment 2 Jonas MG 2006-03-06 02:58:31 UTC
It is blocking metalog installation.
Comment 3 Jonas MG 2006-03-06 15:24:11 UTC
The failure was produced by '-frepo' CXXFLAG.