Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173322 - dev-libs/STLport (5.1.2) fails - undefined variables in _cmath.h library
Summary: dev-libs/STLport (5.1.2) fails - undefined variables in _cmath.h library
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:
Blocks:
 
Reported: 2007-04-04 09:36 UTC by Federico Corradi
Modified: 2007-04-11 20:02 UTC (History)
1 user (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 Federico Corradi 2007-04-04 09:36:12 UTC
This morning I did the sync. After it I was updating the system with "emerge --update word" , I found out that this STL-port doesn't want to compile.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-libs/STL-port 
(version STL-port-5.1.2)

Actual Results:  
I came here writing to you guys

Expected Results:  
it should have compiled

>>> Unpacking source...
>>> Unpacking STLport-5.1.2.tar.bz2 to /var/tmp/portage/dev-libs/STLport-5.1.2/work
 #[32;01m*#[0m Applying STLport-5.1.2-wrong_russian_currency_name.patch ...
#[A#[72C  #[34;01m[ #[32;01mok#[34;01m ]#[0m
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2 ...
make: Entering directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'
powerpc-unknown-linux-gnu-g++ -pthread -fexceptions -fident  -fuse-cxa-atexit -O3 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -D_REENTRANT -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -I../../stlport  -c -o obj/gcc/so/dll_main.o ../../src/dll_main.cpp
In file included from ../../stlport/stl/_cstdlib.h:162,
                 from ../../stlport/stl/_alloc.h:39,
                 from ../../stlport/memory:32,
                 from ../../src/dll_main.cpp:42:
../../stlport/stl/_cmath.h: In function `long double abs(long double)':
../../stlport/stl/_cmath.h:417: error: `::fabsl' has not been declared
../../stlport/stl/_cmath.h: In function `long double acos(long double)':
../../stlport/stl/_cmath.h:422: error: `::acosl' has not been declared
../../stlport/stl/_cmath.h: In function `long double asin(long double)':
../../stlport/stl/_cmath.h:423: error: `::asinl' has not been declared
../../stlport/stl/_cmath.h: In function `long double atan(long double)':
../../stlport/stl/_cmath.h:424: error: `::atanl' has not been declared
../../stlport/stl/_cmath.h: In function `long double atan2(long double, long double)':
../../stlport/stl/_cmath.h:425: error: `::atan2l' has not been declared
../../stlport/stl/_cmath.h: In function `long double ceil(long double)':
../../stlport/stl/_cmath.h:426: error: `::ceill' has not been declared
../../stlport/stl/_cmath.h: In function `long double cos(long double)':
../../stlport/stl/_cmath.h:427: error: `::cosl' has not been declared
../../stlport/stl/_cmath.h: In function `long double cosh(long double)':
../../stlport/stl/_cmath.h:428: error: `::coshl' has not been declared
../../stlport/stl/_cmath.h: In function `long double exp(long double)':
../../stlport/stl/_cmath.h:429: error: `::expl' has not been declared
../../stlport/stl/_cmath.h: In function `long double fabs(long double)':
../../stlport/stl/_cmath.h:430: error: `::fabsl' has not been declared
../../stlport/stl/_cmath.h: In function `long double floor(long double)':
../../stlport/stl/_cmath.h:431: error: `::floorl' has not been declared
../../stlport/stl/_cmath.h: In function `long double fmod(long double, long double)':
../../stlport/stl/_cmath.h:432: error: `::fmodl' has not been declared
../../stlport/stl/_cmath.h: In function `long double frexp(long double, int*)':
../../stlport/stl/_cmath.h:433: error: `::frexpl' has not been declared
../../stlport/stl/_cmath.h: In function `long double ldexp(long double, int)':
../../stlport/stl/_cmath.h:434: error: `::ldexpl' has not been declared
../../stlport/stl/_cmath.h: In function `long double log(long double)':
../../stlport/stl/_cmath.h:435: error: `::logl' has not been declared
../../stlport/stl/_cmath.h: In function `long double log10(long double)':
../../stlport/stl/_cmath.h:436: error: `::log10l' has not been declared
../../stlport/stl/_cmath.h: In function `long double modf(long double, long double*)':
../../stlport/stl/_cmath.h:437: error: `::modfl' has not been declared
../../stlport/stl/_cmath.h: In function `long double sin(long double)':
../../stlport/stl/_cmath.h:438: error: `::sinl' has not been declared
../../stlport/stl/_cmath.h: In function `long double sinh(long double)':
../../stlport/stl/_cmath.h:439: error: `::sinhl' has not been declared
../../stlport/stl/_cmath.h: In function `long double sqrt(long double)':
../../stlport/stl/_cmath.h:440: error: `::sqrtl' has not been declared
../../stlport/stl/_cmath.h: In function `long double tan(long double)':
../../stlport/stl/_cmath.h:441: error: `::tanl' has not been declared
../../stlport/stl/_cmath.h: In function `long double tanh(long double)':
../../stlport/stl/_cmath.h:442: error: `::tanhl' has not been declared
../../stlport/stl/_cmath.h: In function `long double pow(long double, long double)':
../../stlport/stl/_cmath.h:443: error: `::powl' has not been declared
../../stlport/stl/_cmath.h: In function `long double pow(long double, int)':
../../stlport/stl/_cmath.h:459: error: `::powl' has not been declared
make: *** [obj/gcc/so/dll_main.o] Error 1
make: Leaving directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'

!!! ERROR: dev-libs/STLport-5.1.2 failed.
Call stack:
  ebuild.sh, line 1611:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3512:   Called src_compile
  STLport-5.1.2.ebuild, line 79:   Called die

!!! Compile failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-libs:STLport-5.1.2:20070404-071502.log'.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2007-04-04 15:34:57 UTC
Please post "emerge --info". Thanks!
Comment 2 Federico Corradi 2007-04-04 18:01:57 UTC
Portage 2.1.2.3 (default-linux/ppc/ppc32/2006.0/G4, gcc-3.4.6, glibc-2.3.5-r3, 2.6.17-gentoo-r7 ppc)
=================================================================
System uname: 2.6.17-gentoo-r7 ppc 7447A, altivec supported
Gentoo Base System version 1.6.14
Timestamp of tree: Wed, 04 Apr 2007 09:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.12-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-O3 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo http://mirrors.acm.cs.rpi.edu/gentoo"
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="X alsa altivec apache2 apm arts berkdb bitmap-fonts bluetooth bonobo bzlib cdr cli cracklib crypt cups dri dvd dvdread eds emboss encode esd fbcon fftw foomaticdb fortran freetype ftp gdbm gif gimp gpm gstreamer gtk gtk2 gtkhtml iconv imagemagick imlib isdnlog java jpeg ldap libg++ libwww mad midi mikmod mime motif mozilla mozsvg mp3 mpeg mpeg4 mysql ncurses nls nptl ogg opengl oss pam pcre pcres pda pdflib perl plotutils png ppc pppd pwdb python qt qt3 qt4 quicktime radeon readline reflection ruby sdl session spell spl ssl sysfs tcpd tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vorbis wifi xml xorg xscreensaver xv zlib" ALSA_CARDS="powermac" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Francesco Romano 2007-04-11 14:21:20 UTC
Similar problem:
>>> Emerging (1 of 1) dev-libs/STLport-5.1.2 to /
 * STLport-5.1.2.tar.bz2 RMD160 ;-) ...                                   [ ok ]
 * STLport-5.1.2.tar.bz2 SHA1 ;-) ...                                     [ ok ]
 * STLport-5.1.2.tar.bz2 SHA256 ;-) ...                                   [ ok ]
 * STLport-5.1.2.tar.bz2 size ;-) ...                                     [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking STLport-5.1.2.tar.bz2 ;-) ...                                 [ ok ]
>>> Unpacking source...
>>> Unpacking STLport-5.1.2.tar.bz2 to /var/tmp/portage/dev-libs/STLport-5.1.2/work
 * Applying STLport-5.1.2-wrong_russian_currency_name.patch ...           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2 ...
make: Entering directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'
powerpc-unknown-linux-gnu-g++ -pthread -fexceptions -fident  -fPIC  -fuse-cxa-atexit -O2 -mcpu=7400 -pipe -maltivec -mabi=altivec -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -D_REENTRANT -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -I../../stlport  -c -o obj/gcc/so/dll_main.o ../../src/dll_main.cpp
../../stlport/stl/_cstdlib.h:91: error: '__std_alias::llabs' has not been declared
../../stlport/stl/_cstdlib.h:92: error: '__std_alias::lldiv_t' has not been declared
../../stlport/stl/_cstdlib.h:93: error: '__std_alias::lldiv' has not been declared
../../stlport/stl/_cstdlib.h: In function 'long long int abs(long long int)':
../../stlport/stl/_cstdlib.h:144: error: 'llabs' is not a member of '__std_alias'
../../stlport/stl/_cstdlib.h: In function 'lldiv_t div(long long int, long long int)':
../../stlport/stl/_cstdlib.h:145: error: 'lldiv' is not a member of '__std_alias'
make: *** [obj/gcc/so/dll_main.o] Error 1
make: Leaving directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'

!!! ERROR: dev-libs/STLport-5.1.2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3540:   Called src_compile
  STLport-5.1.2.ebuild, line 79:   Called die

!!! Compile 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/dev-libs/STLport-5.1.2/temp/build.log'. 
____________
emerge --info

Portage 2.1.2.2 (default-linux/ppc/2005.1/ppc/G4, gcc-4.1.1, glibc-2.5-r0, 2.6.17-gentoo-r4 ppc)
=================================================================
System uname: 2.6.17-gentoo-r4 ppc 7400, altivec supported
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 10 Apr 2007 13:20:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7400 -pipe -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -mcpu=7400 -pipe -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo"
LINGUAS="it"
MAKEOPTS="-j4"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X aac alsa altivec berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dga directfb dri dv eds emboss encode fbcon fortran gif gimpprint gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jack jpeg libcaca libwww live mad matroska midi motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre pdf perl png ppc pppd python readline reflection sdk session spell spl ssl tcpd tga theora truetype truetype-fonts type1-fonts unicode vorbis xml2 xorg xv xvid zlib" 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="it" USERLAND="GNU" VIDEO_CARDS="r128"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2007-04-11 14:41:54 UTC
@Francesco: Please try to re-emerge gcc and then emerge STLport
@Federico: Please update your profile, update glibc, emerge gcc-4.1.x (or just switch it, if not using hardened) and try again.
Comment 5 Federico Corradi 2007-04-11 20:02:47 UTC
I upgrade to...
gcc-4.1.2 and glibc-2.5-r1

now it works fine.
thanks tiziano