here is the relevant part of the build log: cd /var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0_build/kioslave/smtp && /usr/bin/x86_64-pc-linux-gnu-g++ -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=51 -DKDE_DEPRECATED_WARNINGS -DMAKE_KIO_SMTP_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOURCE -D_REENTRANT -D_XOPEN_SOURCE=500 -DQT_NO_DEBUG -DNDEBUG -O2 -pipe -march=native -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -I/var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0_build/kioslave/smtp -I/var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0/kioslave/smtp -I/var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0 -I/var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0_build -I/var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0/kioslave -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtMultimedia -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -o CMakeFiles/kio_smtp.dir/command.cpp.o -c /var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0/kioslave/smtp/command.cpp In file included from /var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0/kioslave/smtp/command.h:37:0, from /var/tmp/portage/kde-base/kdepimlibs-4.10.0-r1/work/kdepimlibs-4.10.0/kioslave/smtp/command.cpp:32: /usr/include/sasl/sasl.h:228:35: error: typedef ‘sasl_malloc_t’ is initialized (use decltype instead) /usr/include/sasl/sasl.h:228:29: error: ‘size_t’ was not declared in this scope /usr/include/sasl/sasl.h:229:29: error: typedef ‘sasl_calloc_t’ is initialized (use decltype instead) /usr/include/sasl/sasl.h:229:29: error: ‘size_t’ was not declared in this scope /usr/include/sasl/sasl.h:229:37: error: ‘size_t’ was not declared in this scope /usr/include/sasl/sasl.h:230:38: error: ‘size_t’ has not been declared /usr/include/sasl/sasl.h:233:33: error: variable or field ‘sasl_set_alloc’ declared void /usr/include/sasl/sasl.h:233:33: error: ‘sasl_malloc_t’ was not declared in this scope /usr/include/sasl/sasl.h:233:48: error: expected primary-expression before ‘,’ token /usr/include/sasl/sasl.h:234:5: error: ‘sasl_calloc_t’ was not declared in this scope /usr/include/sasl/sasl.h:234:20: error: expected primary-expression before ‘,’ token /usr/include/sasl/sasl.h:235:20: error: expected primary-expression before ‘*’ token /usr/include/sasl/sasl.h:235:21: error: expected primary-expression before ‘,’ token /usr/include/sasl/sasl.h:236:17: error: expected primary-expression before ‘*’ token /usr/include/sasl/sasl.h:236:18: error: expected primary-expression before ‘)’ token
Portage 2.2.0_alpha163 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.16.0, 3.7.1-gentoo x86_64) ================================================================= System uname: Linux-3.7.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.2 KiB Mem: 4044500 total, 637672 free KiB Swap: 2939888 total, 2939888 free Timestamp of tree: Fri, 22 Feb 2013 18:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p42 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.3-r3, 3.2.3-r2, 3.3.0-r1 dev-util/cmake: 2.8.10.2-r1 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6, 1.13.1 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3, 4.7.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo duchier ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xorg.conf.d /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" 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 xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirror.ovh.net/gentoo-distfiles/ http://de-mirror.org/distro/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage" SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apache2 apng bazaar berkdb bluetooth branding bzip2 cairo cdda cdr cli clucene consolekit cracklib crypt cups cvs cxx darcs dbus declarative djvu doc dri dts dvd dvdr emacs emboss encode exif fam firefox flac fontconfig fortran gd gdbm gif git gmp gnutls gpm gstreamer gtk iconv idn imagemagick ipv6 jadetex java jpeg jpeg2k json kde kdepim kipi kpathsea lame latex lcms ldap libnotify libxml2 lzma mad marble mercurial mmx mng modules mp3 mp4 mpeg msn mudflap multilib mysql ncurses nls nptl nsplugin ntp odbc ogg opengl openmp pam pango pcre pdf phonon php plasma png policykit ppds pygments qt3support qt4 readline ruby savedconfig sdl semantic-desktop session skype slp sms spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg tcpd theora threads tiff tk toolkit-scroll-bars truetype udev udisks unicode upower usb v4l v4l2 vdpau vlc vorbis webkit webpresence wxwidgets x264 xattr xcb xcomposite xft xine xinerama xml xscreensaver xv xvid xvmc yahoo zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 auth_digest" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 339746 [details, diff] add an include for stddef.h where needed
on my system patch works! thanks :) BTW kdepimlibs fails to compile because https://bugs.gentoo.org/show_bug.cgi?id=447984
I can confirm build failure, which is avoided with the patch in comment 2. I can't say anything for runtime correctness, though. I used gcc-4.7.2 , which may be significant. To me at least, this looks like a bug in dev-libs/cyrus-sasl-2.1.26 , and should be patched there, probably still including stddef.h .
Same error here.
(In reply to comment #2) > Created attachment 339746 [details, diff] [details, diff] > add an include for stddef.h where needed Thx Denys! works for me
Since the error is reported in <sasl/sasl.h>, which belongs to dev-libs/cyrus-sasl-2.1.26, that is the package that should be patched. Hence I suggest to change the summary to: "dev-libs/cyrus-sasl-2.1.26 misses to include stddef.h in sasl.h: /usr/include/sasl/sasl.h:228:29: error: ‘size_t’ was not declared in this scope"
Created attachment 339774 [details, diff] cyrus-sasl patch to include stddef.h automatically This (applied to cyrus-sasl) seemed to do it for my similar problem w/ kde-sunset.
The patch to cyrus-sasl above is confirmed working for me.
I can confirm that bug too + the above patch for cyrus-sasl worked for me! Thanks alot :)
Adding the net-mail herd on this. Looks like cyrus-sasl needs to be patched.
Thanks for the bug report. +*cyrus-sasl-2.1.26-r1 (23 Feb 2013) + + 23 Feb 2013; Eray Aslan <eras@gentoo.org> +cyrus-sasl-2.1.26-r1.ebuild: + Add missing header - bug #458790 +
*** Bug 458860 has been marked as a duplicate of this bug. ***
(In reply to comment #12) > Thanks for the bug report. > > +*cyrus-sasl-2.1.26-r1 (23 Feb 2013) > + > + 23 Feb 2013; Eray Aslan <eras@gentoo.org> +cyrus-sasl-2.1.26-r1.ebuild: > + Add missing header - bug #458790 > + >>> Emerging (1 of 1) dev-libs/cyrus-sasl-2.1.26-r1 * cyrus-sasl-2.1.26.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking cyrus-sasl-2.1.26.tar.gz to /var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r1/work >>> Source unpacked in /var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r1/work >>> Preparing source in /var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r1/work/cyrus-sasl-2.1.26 ... * Applying cyrus-sasl-2.1.25-sasldb_al.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-saslauthd_libtool.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-avoid_pic_overwrite.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-autotools_fixes.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-as_needed.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-missing_header.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-fix_heimdal.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-auxprop.patch ... [ ok ] * Applying cyrus-sasl-2.1.23-gss_c_nt_hostbased_service.patch ... [ ok ] * Applying cyrus-sasl-2.1.25-service_keytabs.patch ... [ ok ] * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-missing-size_t.patch * ( cyrus-sasl-2.1.26-missing-size_t.patch ) * ERROR: dev-libs/cyrus-sasl-2.1.26-r1 failed (prepare phase): * Cannot find $EPATCH_SOURCE! *
+ 23 Feb 2013; Lars Wendler <polynomial-c@gentoo.org> + +files/cyrus-sasl-2.1.26-missing-size_t.patch: + Added forgotten patch from previous commit. + Re-sync in a while...
I can have a look in a few hours. Thanks for taking care of it.
*** Bug 458900 has been marked as a duplicate of this bug. ***
*** Bug 458844 has been marked as a duplicate of this bug. ***
*** Bug 458862 has been marked as a duplicate of this bug. ***