Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219909 - STLPort 5.1.5 + gcc-4.{1,2}*: '__std_alias::wcsftime' has not been declared
Summary: STLPort 5.1.5 + gcc-4.{1,2}*: '__std_alias::wcsftime' has not been declared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on: 127188
Blocks:
  Show dependency tree
 
Reported: 2008-05-01 09:21 UTC by Laurent G.
Modified: 2008-05-04 09:07 UTC (History)
4 users (show)

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 Laurent G. 2008-05-01 09:21:06 UTC
The merge starts as this :
>>> Compiling source in /var/tmp/portage/dev-libs/STLport-5.1.5/work/STLport-5.1.5 ...
Don't forget to define _STLP_USE_BOOST_SUPPORT in stlport/stl/config/user_config.h file
make: Entering directory `/var/tmp/portage/dev-libs/STLport-5.1.5/work/STLport-5.1.5/build/lib'
powerpc-unknown-linux-gnu-g++ -pthread -fexceptions -fident  -fPIC  -fuse-cxa-atexit -mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec  -D_REENTRANT -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -I../../stlport -I/usr/include  -c -o obj/gcc/so/dll_main.o ../../src/dll_main.cpp
In file included from ../../stlport/stl/_limits.h:37,
                 from ../../stlport/limits:33,
                 from ../../src/dll_main.cpp:50:
../../stlport/stl/_cwchar.h:219: error: '__std_alias::wcsftime' has not been declared
make: *** [obj/gcc/so/dll_main.o] Error 1


Reproducible: Always




Portage 2.1.5_rc6 (default-linux/ppc/ppc32/2006.1, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r3-l0 ppc)
=================================================================
System uname: 2.6.24-gentoo-r3-l0 ppc 7447A, altivec supported
Timestamp of tree: Thu, 01 May 2008 08:34:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ ftp://ftp.du.se/pub/os/gentoo "
LANG="C"
LC_ALL="C"
LDFLAGS=""
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/bazaar"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 alsa altivec apache2 arts berkdb bitmap-fonts bonobo branding cdr cli cracklib crypt cscope cups dba dri dvd eds emboss encode esd fbcon firefox flac flash fortran gb gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml iconv ipv6 isdnlog java jikes jpeg kde kdehiddenvisibility ldap libwww mad midi mikmod mng mozdevelop mozsvg mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis opengl openmp pam pcre pdf pdflib perl png povray ppc ppds pppd python qt qt3 qt4 quicktime readline reflection ruby samba scanner sdl session spell spl ssl svg tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode usb vorbis wmf xine xinerama xml xml2 xorg xosd xprint xv zlib" ALSA_CARDS="snd-aoa" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" USERLAND="GNU" VIDEO_CARDS="ati fbdev radeon r128 fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-05-01 10:23:46 UTC
Confirmed for GCC 4.2.3. This tidbit from 5.1.3 fixes it. The ifdefs are convoluted, but a real fix should be possible later.

        sed -i \
                -e 's/_STLP_VENDOR_CSTD::wcsftime/::wcsftime/' \
                stlport/stl/_cwchar.h || die "sed failed"
Comment 2 James Ausmus 2008-05-01 20:06:42 UTC
(In reply to comment #1)
> Confirmed for GCC 4.2.3. This tidbit from 5.1.3 fixes it. The ifdefs are
> convoluted, but a real fix should be possible later.
> 
>         sed -i \
>                 -e 's/_STLP_VENDOR_CSTD::wcsftime/::wcsftime/' \
>                 stlport/stl/_cwchar.h || die "sed failed"
> 


This fixed the build error for me
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2008-05-01 21:06:46 UTC
I have tracked this down to being an issue only with GCC-4.1.x and GCC-4.2.x. The original 5.1.5 ebuild compiles with GCC 3.4.6 and GCC 4.3.0. Which were the two versions I tested it with, incidentally ;-(

With the fix I have confirmed STLport to now compile with GCC 3.4.6, 4.1.2, 4.2.3 and 4.3.0 on ~x86.
Comment 4 Martin Ereth 2008-05-02 16:27:27 UTC
The fix works for me too.
amd64, gcc-4.1.2
Comment 5 Pham Ngoc Hai 2008-05-04 07:39:27 UTC
This fix also works for me, STLport-5.1.5 amd64 gcc 4.2.3
Comment 6 Tiziano Müller (RETIRED) gentoo-dev 2008-05-04 09:07:35 UTC
Fixed. Thanks.