Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 165067

Summary: app-office/openoffice-2.1.0 compile error due to STLport: limits.h fighting
Product: Gentoo Linux Reporter: Michael Schreckenbauer <grimlog>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Schreckenbauer 2007-02-02 23:09:10 UTC
When building openoffice-2.1.0 compiling /.../build/OOE680_m6/jvmfwk/source/framework.cxx fails, because 
/usr/include/stlport/limits.h and /include/limits.h seem to be in an "include-loop"

Reproducible: Always

Steps to Reproduce:
1.Have a ~x86 machine
2.emerge openoffice-2.1.0
3.Wait

Actual Results:  
Unsuccessful compile of openoffice. I'm happy, this happens in an early stage ;)

Expected Results:  
Compile openoffice with no errors

The compile fails with the following error:
-----------------------------------------------------------------------
                von /usr/include/libxml2/../include/limits.h:126,
                 von /usr/include/stlport/limits.h:27,
                 von /usr/include/libxml2/../include/limits.h:126,
                 von /usr/include/stlport/limits.h:27,
                 von /usr/include/libxml2/../include/limits.h:126,
                 von /usr/include/stlport/limits.h:27,
                 ... von /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/../g++-v4/climits:51,
                 von /usr/include/stlport/climits:27,
                 von /usr/include/stlport/stl/_algobase.h:42,
                 von /usr/include/stlport/stl/_alloc.h:47,
                 von /usr/include/stlport/stl/_string.h:23,
                 von /usr/include/stlport/stl/_ios_base.h:34,
                 von /usr/include/stlport/stl/_ios.h:23,
                 von /usr/include/stlport/stl/_ostream.h:24,
                 von /usr/include/stlport/ostream:31,
                 von /var/tmp/portage/app-office/openoffice-2.1.0/work/ooo/build/OOE680_m6/solver/680/unxlngi6.pro/inc/rtl/ustring.hxx:61,
                 von /var/tmp/portage/app-office/openoffice-2.1.0/work/ooo/build/OOE680_m6/jvmfwk/source/framework.cxx:39:
/usr/include/stlport/limits.h:27:41: Fehler: #include ist zu tief geschachtelt
/usr/include/stlport/stl/_limits.h:148: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
/usr/include/stlport/stl/_limits.h:253: Fehler: »CHAR_MIN« wurde in diesem Gültigkeitsbereich nicht definiert
/usr/include/stlport/stl/_limits.h:253: Fehler: »CHAR_MAX« wurde in diesem Gültigkeitsbereich nicht definiert
-------------------------------------------------------------------------

To me, this looks like /usr/include/limits.h and /usr/include/stlport/limits.h including each other. Looking at /usr/include/limits.h this looks suspicous:

 /* Get the compiler's limits.h, which defines almost all the ISO constants.

    We put this #include_next outside the double inclusion check because
    it should be possible to include this file more than once and still get
    the definitions from gcc's header.  */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
# include_next <limits.h>
#endif


As mentioned this is ~x86. STLport version is 5.1.0, emerge --info is as follows:

Portage 2.1.2-r6 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 i686)
=================================================================
System uname: 2.6.19-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.9
Timestamp of tree: Fri, 02 Feb 2007 19:00:01 +0000
distcc 2.18.3 i686-pc-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-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
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-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.19.2-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
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/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://85.25.128.62 http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 3dnow 3dnowext X a52 aac aalib acpi ada aiglx alsa ao apache2 arts artswrappersuid artworkextra asf asm async audiofile bash-completion bcmath berkdb bitmap-fonts blender-game bzip2 c++ cairo cdda cddb cdio cdparanoia cdr cdrom cegui cg cli cracklib crypt css cups cvs devil dga dio directfb dlloader dri dvd dvdr dvdread eds effects encode enscript examples extrafilters fame fbcon ffmpeg fftw flac fluidsynth fmod foomaticdb fortran freetype gdbm gif gimp gphoto2 gpm gstreamer gtk gtk2 hbci iconv idn imagemagick imap imlib insecure-savers ipod jack jack-tmpfs java javascript joystick jpeg jpeg2k kde kdeenablefinal kqemu ladcca ladspa lame lcms ldap libcaca libg++ libsamplerate lm_sensors logitech-mouse lua lzo mad maildir matroska midi mikmod mjpeg mmap mmx mmxext mng motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg2 mplayer musepack mysql mysqli ncurses netjack network nls no-old-linux nptl nptlonly nsplugin nvidia objc offensive ogg oggvorbis ogre openal opengl oss pam pascal pcre pdf perl physfs plugin png povray ppds pppd python qt3 qt4 quicktime readline real reflection roe rtc ruby scanner sdl session sharedmem smime sndfile soundtouch sox speex spell spl sse sse-filters sse2 ssl stencil-buffer subtitles svg sysfs tcpd tetex tga theora threads tiff timidity truetype truetype-fonts type1-fonts udev usb vcd visualization vorbis webdav win32codecs wma wma123 wmf x86 xcomposite xforms xfs xine xml xml2 xorg xpm xrandr xscreensaver xv xvid xvmc yv12 zlib" ALSA_CARDS="ens1371 ice1712 mpu401" 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Thanks,
Michael
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-02 23:12:17 UTC
Set your locales to C when reporting bugs.


*** This bug has been marked as a duplicate of bug 163905 ***
Comment 2 Michael Schreckenbauer 2007-02-02 23:23:18 UTC
Ok, I will do that the next time. Additionally I have learned now how to use bugzilla search better to find duplicates. I did search, but not see it :(

Sorry for the noise and many thanks,
Michael