Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500778 - app-text/libabw-0.0.1 - ABWStylesCollector.cpp:52:32: error: ‘uint32_t’ was not declared in this scope
Summary: app-text/libabw-0.0.1 - ABWStylesCollector.cpp:52:32: error: ‘uint32_t’ was n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-09 13:16 UTC by Randy Andy
Modified: 2014-02-25 19:46 UTC (History)
1 user (show)

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


Attachments
libabw-0.0.1.build.log (libabw-0.0.1.build.log.gz,3.91 KB, application/gzip)
2014-02-09 13:29 UTC, Randy Andy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Andy 2014-02-09 13:16:32 UTC
Doesn't compile on my ~amd64 system, but on my ~x86 it compiles successfully.

Cause this, I can't upgrade to libreoffice-4.2.0.4.

emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.18-r1, 3.12.8-gentoo x86_64)
=================================================================
System uname: Linux-3.12.8-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8167444 total,   1304648 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 09 Feb 2014 12:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo sunrise quarks_gentoo_hardened_overlay Local-Overlay
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --keep-going --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/quarks /usr/local/portage"
USE="X a52 aac aacs aalib accessibility acpi additions addressbook aften alsa amd64 amr animgif apm apng archive aspell audiofile autoipd autotrace avahi bash-completion berkdb binary-drivers binfilter bluetooth bluray branding btrfs bzip2 c++0x cairo canvas caps ccache cdda cddb cdio cdparanoia cdr cdrdao cdrom cgi chipcard chroot cjk clamav cli clucene compressed-lumas consolekit corefonts cover cracklib crypt css cups custom-cpuopts cvs cvsgraph cxx daemon dar64 dbus dc1394 declarative dhcpcd dia dirac disk-partition djbfft djvu dri dts dv dvd dvdnav dvdr dvi dynamic editor emboss emovix enca encode enscript excel exif extensions extrafilters extras fam fame fat ffmpeg fftw finger firefox firefox3 flac flash flv fmod fontconfig foomaticdb fortran fortran2003 fpx frei0r fuse g3dvl gallium gcj gd gdbm geolocation gif gimp glew glib glut gnokii gpac gphoto2 gpm graphviz gsl gstreamer gtk gtk3 gzip hddtemp hdri howl-compat html http httpd iconv icq id3 id3tag ieee1394 image imagemagick imap imlib inkjar inotify introspection ios iostats ipc iptv ipv6 irc ivtv jabber java java6 javacomm javascript jbig jce jingle joystick jpeg jpeg2k juju kde kdepim kdm kexiv2 kig-scripting kino kipi kmail kontact ladspa lame lcdfilter lcms ldap lensfun libcaca libnotify librrd libsamplerate libv4l libv4l2 libvisual lightning live llvm lm_sensors logrotate logwatch loop-aes lua lzma lzo mad marble math matroska max-idx-128 mdnsresponder-compat melt metric midi mikmod mime mjpeg mmx mng modplug modules mono mouse mozdevelop mozilla mp3 mp3rtp mp4 mpd mpeg mpg123 mpi mpi-threads mplayer mpu401 mtp muine multilib multimedia multiprocess musepack music musicbrainz mysql mysqli nano-syntax nas ncurses network network-cron networkmanager nfs nfsdcld nfsidmap nfsv4 nfsv41 nls nntp normalize nptl nsplugin nss ntfs nut nuv obex ocean ocr odk ofa ogg ogg123 ogm okular openctl openexr opengl openmedia openmp openssl opensslcrypt oss pam pango pch pcm pcre pda pdf pdfimport perforce perl pg-intdatetime phonon php physfs pipe plasma player plotutils pmount pmu png pnm podcast policykit pop postgis postproc ppds prison private-headers profile profiler proj ps pstoedit pvr python python3 q32 qalculate qos qt3support qt4 quesoglc quicktime quodlibet radio rar raw readline redeyes rle romio rsh rss rtc rtmp rtsp ruby scale0tilt scanner schedule schroedinger sdl sdl-image sdl-sound sdlaudio search secure-delete semantic-desktop sensord session sftp shaders shine shorten shout sift skins slideshow smp sms sndfile sound soundextract soundtouch soup source spamassassin speex spell sql sqlite srt srtp sse sse2 sse2check sse3 ssh ssl ssse3 startup-notification statistics stats stk stream suid svg svgz sysfs syslog szip t1lib tbb tcl tcmalloc tcpd teletext templates tesseract tga tgif themes theora threads threadsafe thumbnail thumbnails tiff timidity tk toolame tools transcode tremor truetype tv_check tv_combiner tv_pick_cgi twolame type3 udev udisks umfpack unicode unzip upower urlpicpreview usb utempter utils uudeview v4l v4l2 vaapi vamp vcd vcdinfo vcdx vdpau vdr video vim vim-syntax virtuoso visibility vlm vorbis vpx vrml vxml wav wavpack weather-metar weather-xoap webcam webdav webgl webkit webm webp windeco winpopup wma wma-fixed wmf word-perfect wordperfect wxwidgets wxwindows x11vnc x264 xanim xattr xcb xcf xcomposite xface xforms xine xinerama xml xmlreader xmlwriter xmp xorg xpm xscreensaver xsl xslt xterm xulrunner xv xvid xvmc xwax_decoders_aac xwax_decoders_cd xwax_decoders_flac xwax_decoders_misc xwax_decoders_mp3 xwax_decoders_ogg youtube yv12 zeroconf zip zlib zvbi" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nouveau v4l2" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



Reproducible: Always

Steps to Reproduce:
1. emerge app-text/libabw

Actual Results:  
ABWStylesCollector.cpp:52:32: error: ‘uint32_t’ was not declared in this scope
 static int abw_unichar_to_utf8(uint32_t c, char *outbuf)
                                ^
ABWStylesCollector.cpp:52:32: note: suggested alternative:
In file included from /usr/include/boost/integer_fwd.hpp:17:0,
                 from /usr/include/boost/integer.hpp:18,
                 from /usr/include/boost/function/function_base.hpp:21,
                 from /usr/include/boost/function/detail/prologue.hpp:17,
                 from /usr/include/boost/function.hpp:24,
                 from /usr/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from /usr/include/boost/algorithm/string/find_iterator.hpp:24,
                 from /usr/include/boost/algorithm/string/iter_find.hpp:27,
                 from /usr/include/boost/algorithm/string/split.hpp:16,
                 from /usr/include/boost/algorithm/string.hpp:23,
                 from ABWStylesCollector.cpp:11:
/usr/include/boost/cstdint.hpp:263:30: note:   ‘boost::uint32_t’
      typedef unsigned int    uint32_t;
                              ^
ABWStylesCollector.cpp:52:44: error: expected primary-expression before ‘char’
 static int abw_unichar_to_utf8(uint32_t c, char *outbuf)
                                            ^
ABWStylesCollector.cpp:52:56: error: expression list treated as compound expression in initializer [-fpermissive]
 static int abw_unichar_to_utf8(uint32_t c, char *outbuf)
                                                        ^
ABWStylesCollector.cpp:53:1: error: expected ‘,’ or ‘;’ before ‘{’ token
 {
 ^
ABWStylesCollector.cpp:423:1: error: expected ‘}’ at end of input
 }
 ^
ABWStylesCollector.cpp:423:1: error: expected ‘}’ at end of input
ABWStylesCollector.cpp:52:12: warning: ‘libabw::{anonymous}::abw_unichar_to_utf8’ defined but not used [-Wunused-variable]
 static int abw_unichar_to_utf8(uint32_t c, char *outbuf)
            ^
Makefile:516: recipe for target 'ABWStylesCollector.lo' failed
make[3]: *** [ABWStylesCollector.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/app-text/libabw-0.0.1/work/libabw-0.0.1/src/lib'
Makefile:369: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-text/libabw-0.0.1/work/libabw-0.0.1/src'
Makefile:480: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-text/libabw-0.0.1/work/libabw-0.0.1'
Makefile:390: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: app-text/libabw-0.0.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-text/libabw-0.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/libabw-0.0.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/libabw-0.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/libabw-0.0.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/libabw-0.0.1/work/libabw-0.0.1'
 * S: '/var/tmp/portage/app-text/libabw-0.0.1/work/libabw-0.0.1'
Comment 1 Randy Andy 2014-02-09 13:29:56 UTC
Created attachment 369942 [details]
libabw-0.0.1.build.log
Comment 2 Small_Penguin 2014-02-16 17:30:25 UTC
Confirmed on ~amd64 (gcc-4.8.2).
Comment 3 Randy Andy 2014-02-16 17:58:06 UTC
By the way,

if I switch over to gcc-4.7.3, I got exactly the same errors.
Comment 4 Small_Penguin 2014-02-16 21:16:29 UTC
libabw-0.0.2 builds fine here. Currently checking if libreoffice builds fine with that new version, it might be the faster fix...
Comment 5 Randy Andy 2014-02-17 17:23:31 UTC
I would like to test libabw-0.0.2, but couldn't find any ebuild of it.
Not in the tree, nor in an overlay.

Could you please attach your's?

Best, Andy.
Comment 6 Small_Penguin 2014-02-17 18:37:03 UTC
Simply copy the ebuild into your own overlay (creating a new one if you don't have one) and rename its filename to reflect the new version. That's all I did.

A link to the git repository can be found here: http://www.freedesktop.org/wiki/Software/libabw/
Comment 7 Randy Andy 2014-02-18 16:19:54 UTC
Thanks for you hints, Small_Penguin.

For information/ feedback.

libabw-0.0.2 and libreoffice compiled successfully:

Tue Feb 18 01:28:48 2014 >>> app-office/libreoffice-4.2.0.4
       merge time: 2 hours, 46 minutes and 35 seconds.

Libreoffice also seems to work fine. ;-)
Comment 8 Boris Vingradov 2014-02-22 07:56:23 UTC
I'm copied ebuild from 0.0.1 to 0.0.2 and build this lib.
This successefully for me.
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2014-02-25 19:46:59 UTC
Thanks for the bug fixed by bump to 0.0.2.