Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458790 - kde-base/kdepimlibs-4.10.0-r1 fails to compile due to sasl/sasl.h include
Summary: kde-base/kdepimlibs-4.10.0-r1 fails to compile due to sasl/sasl.h include
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 458844 458860 458862 458900 (view as bug list)
Depends on: 458870
Blocks:
  Show dependency tree
 
Reported: 2013-02-22 21:20 UTC by Denys Duchier
Modified: 2013-02-25 03:40 UTC (History)
20 users (show)

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


Attachments
add an include for stddef.h where needed (kioslave-smtp-command.patch,353 bytes, patch)
2013-02-22 21:22 UTC, Denys Duchier
Details | Diff
cyrus-sasl patch to include stddef.h automatically (dev_libs_cyrus_sasl_sasl_h_stddef_h.patch,414 bytes, patch)
2013-02-23 04:27 UTC, Greg Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denys Duchier 2013-02-22 21:20:14 UTC
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
Comment 1 Denys Duchier 2013-02-22 21:20:59 UTC
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
Comment 2 Denys Duchier 2013-02-22 21:22:49 UTC
Created attachment 339746 [details, diff]
add an include for stddef.h where needed
Comment 3 wojtek 2013-02-22 21:33:09 UTC
on my system patch works! thanks :)

BTW
kdepimlibs fails to compile because
https://bugs.gentoo.org/show_bug.cgi?id=447984
Comment 4 eroen 2013-02-22 21:42:41 UTC
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 .
Comment 5 Piotr Szymaniak 2013-02-22 22:12:14 UTC
Same error here.
Comment 6 Rainer 'Siju' Sigl 2013-02-23 00:45:44 UTC
(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
Comment 7 Dennis Schridde 2013-02-23 00:57:13 UTC
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"
Comment 8 Greg Turner 2013-02-23 04:27:27 UTC
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.
Comment 9 Russell Dwiggins 2013-02-23 05:17:48 UTC
The patch to cyrus-sasl above is confirmed working for me.
Comment 10 Michael Mair-Keimberger (iamnr3) 2013-02-23 10:06:11 UTC
I can confirm that bug too + the above patch for cyrus-sasl worked for me!

Thanks alot :)
Comment 11 Jason A. Donenfeld gentoo-dev 2013-02-23 13:25:37 UTC
Adding the net-mail herd on this. Looks like cyrus-sasl needs to be patched.
Comment 12 Eray Aslan gentoo-dev 2013-02-23 15:04:52 UTC
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
+
Comment 13 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-02-23 15:52:44 UTC
*** Bug 458860 has been marked as a duplicate of this bug. ***
Comment 14 iGentoo 2013-02-23 16:31:54 UTC
(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!
 *
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-02-23 17:35:41 UTC
+  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...
Comment 16 Eray Aslan gentoo-dev 2013-02-23 18:23:38 UTC
 I can have a look in a few hours. Thanks for taking care of it.
Comment 17 Eray Aslan gentoo-dev 2013-02-24 06:50:37 UTC
*** Bug 458900 has been marked as a duplicate of this bug. ***
Comment 18 Eray Aslan gentoo-dev 2013-02-24 06:51:08 UTC
*** Bug 458844 has been marked as a duplicate of this bug. ***
Comment 19 Doug Goldstein (RETIRED) gentoo-dev 2013-02-25 03:40:23 UTC
*** Bug 458862 has been marked as a duplicate of this bug. ***