Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566078 - app-text/stardict with dev-libs/libsigc++-2.6.2 - /usr/include/sigc++-2.0/sigc++/type_traits.h:63:1: error: expected unqualified-id before 'using'
Summary: app-text/stardict with dev-libs/libsigc++-2.6.2 - /usr/include/sigc++-2.0/sig...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libsigc++-2.6
  Show dependency tree
 
Reported: 2015-11-17 18:16 UTC by iGentoo
Modified: 2015-11-21 12:58 UTC (History)
0 users

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


Attachments
stardict-3.0.6-r1-build.log.gz (stardict-3.0.6-r1-build.log.gz,44.14 KB, application/gzip)
2015-11-17 18:16 UTC, iGentoo
Details
workaround patch (stardict-3.0.6-r1.ebuild.diff,954 bytes, patch)
2015-11-17 18:22 UTC, iGentoo
Details | Diff
stardict-3.0.6-r1-build.log.bz2 (stardict-3.0.6-r1-build.log.bz2,31.73 KB, application/x-bzip)
2015-11-17 18:46 UTC, iGentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iGentoo 2015-11-17 18:16:25 UTC
Created attachment 417240 [details]
stardict-3.0.6-r1-build.log.gz

/bin/bash ../../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..  -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../.. -I../..  -I../../../lib/src   -Wall -march=native -O2 -pipe -frecord-gcc-switches -MT stardict_client.lo -MD -MP -MF .deps/stardict_client.Tpo -c -o stardict_client.lo stardict_client.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../.. -I../.. -I../../../lib/src -Wall -march=native -O2 -pipe -frecord-gcc-switches -MT stardict_client.lo -MD -MP -MF .deps/stardict_client.Tpo -c stardict_client.cpp  -fPIC -DPIC -o .libs/stardict_client.o
In file included from /usr/include/sigc++-2.0/sigc++/signal_base.h:26:0,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:86,
                 from stardict-sigc++.h:34,
                 from stardict_client.h:33,
                 from stardict_client.cpp:37:
/usr/include/sigc++-2.0/sigc++/trackable.h:40:3: warning: identifier 'noexcept' is a keyword in C++11 [-Wc++0x-compat]
   trackable_callback(void* data, func_destroy_notify func) noexcept
   ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.2.0/include/g++-v5/type_traits:35:0,
                 from /usr/include/sigc++-2.0/sigc++/visit_each.h:22,
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:6,
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:86,
                 from stardict-sigc++.h:34,
                 from stardict_client.h:33,
                 from stardict_client.cpp:37:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.2.0/include/g++-v5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:7:0,
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:7,
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:86,
                 from stardict-sigc++.h:34,
                 from stardict_client.h:33,
                 from stardict_client.cpp:37:
/usr/include/sigc++-2.0/sigc++/functors/functor_trait.h:92:3: warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
   static int check(X_functor* obj, decltype(&X_functor::operator()) p = nullptr);
   ^
/usr/include/sigc++-2.0/sigc++/functors/functor_trait.h:92:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
In file included from /usr/include/sigc++-2.0/sigc++/signal_base.h:25:0,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:86,
                 from stardict-sigc++.h:34,
                 from stardict_client.h:33,
                 from stardict_client.cpp:37:
/usr/include/sigc++-2.0/sigc++/type_traits.h:63:1: error: expected unqualified-id before 'using'
 using type_trait_pass_t = typename type_trait<T>::pass;
 ^
/usr/include/sigc++-2.0/sigc++/type_traits.h:66:1: error: expected unqualified-id before 'using'
 using type_trait_take_t = typename type_trait<T>::take;
 ^

...

Makefile:549: recipe for target 'stardict_client.lo' failed
make[4]: *** [stardict_client.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-text/stardict-3.0.6-r1/work/stardict-3.0.6/dict/src/lib'
Makefile:785: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-text/stardict-3.0.6-r1/work/stardict-3.0.6/dict/src'
Makefile:490: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-text/stardict-3.0.6-r1/work/stardict-3.0.6/dict'
Makefile:417: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-text/stardict-3.0.6-r1/work/stardict-3.0.6/dict'
Makefile:315: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1



Portage 2.2.24 (python 3.5.0-final-0, default/linux/amd64/13.0, gcc-5.2.0, glibc-2.22-r1, 4.2.6-hardened-r3.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.6-hardened-r3.x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2
KiB Mem:     6116276 total,   1271884 free
KiB Swap:   18873332 total,  18594648 free
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
ccache version 3.2.4 [disabled]
app-shells/bash:          4.4_beta::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r3::gentoo, 3.5.0-r2::local-repo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.0::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.2.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: -1000
    eclass-overrides: local-repo

local-repo
    location: /usr/local/portage
    masters: gentoo

Installed sets: @local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color=n --oneshot"
FCFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="V=1 -j9"
PKGDIR="/var/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9eT0"
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"
USE="X acl amd64 audit berkdb bzip2 cli cracklib crypt cxx dbus dri egl fortran gdbm iconv icu ipv6 jpeg mmx mmxext modules multilib ncurses nls nptl opengl openmp pam pax_kernel pcre pic png policykit pulseaudio readline seccomp session sse sse2 ssl systemd tcpd unicode vdpau vim-syntax wayland xattr zlib" ABI_X86="64 32 x32" 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" 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="en en_US zh zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-libs/libsigc++-2.6.2::gentoo was built with the following:
USE="-doc -static-libs -test" ABI_X86="32 64 x32"


app-text/stardict-3.0.6-r1::gentoo was built with the following:
USE="-espeak -pronounce -qqwry -spell -tools" ABI_X86="64"
Comment 1 iGentoo 2015-11-17 18:22:27 UTC
Created attachment 417242 [details, diff]
workaround patch

libsigc++ version 2.5.1 and later require a compiler with C++11 support.
Comment 2 iGentoo 2015-11-17 18:46:46 UTC
Created attachment 417244 [details]
stardict-3.0.6-r1-build.log.bz2
Comment 3 Pacho Ramos gentoo-dev 2015-11-19 15:10:44 UTC
I also see fedora does this:
# Remove unneeded sigc++ header files to make it sure
# that we are using system-wide libsigc++
# (and these does not work on gcc43)
find dict/src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f
Comment 4 Pacho Ramos gentoo-dev 2015-11-21 12:58:39 UTC
[master 9892912] app-text/stardict: Fix compilation with new libsigc++, ensure system libsigc++ is used, fix RDEPENDs (#566078 by iGentoo)
 1 file changed, 140 insertions(+)
 create mode 100644 app-text/stardict/stardict-3.0.6-r2.ebuild