[kmailtransport] [Bug 373799] New: Compilation error with cyrus-sasl 2.1.26

Daniel Schepler bugzilla_noreply at kde.org
Sun Dec 18 03:24:36 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=373799

            Bug ID: 373799
           Summary: Compilation error with cyrus-sasl 2.1.26
           Product: kmailtransport
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdepim-bugs at kde.org
          Reporter: dschepler at gmail.com
  Target Milestone: ---

Compiling kmailtransport 16.12.0 gives several compilation errors:

[ 37%] Building CXX object
kioslave/src/smtp/CMakeFiles/kio_smtp.dir/command.cpp.o
In file included from
/home/daniel/src/kmailtransport/kmailtransport-16.12.0/kioslave/src/smtp/command.h:36:0,
                 from
/home/daniel/src/kmailtransport/kmailtransport-16.12.0/kioslave/src/smtp/command.cpp:32:
/usr/include/sasl/sasl.h:228:35: error: typedef 'sasl_malloc_t' is initialized
(use decltype instead)
 typedef void *sasl_malloc_t(size_t);
                                   ^
/usr/include/sasl/sasl.h:228:29: error: 'size_t' was not declared in this scope
 typedef void *sasl_malloc_t(size_t);
                             ^~~~~~
/usr/include/sasl/sasl.h:229:29: error: typedef 'sasl_calloc_t' is initialized
(use decltype instead)
 typedef void *sasl_calloc_t(size_t, size_t);
                             ^~~~~~
/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
 typedef void *sasl_calloc_t(size_t, size_t);
                                     ^~~~~~
/usr/include/sasl/sasl.h:230:38: error: 'size_t' has not been declared
 typedef void *sasl_realloc_t(void *, size_t);
                                      ^~~~~~
/usr/include/sasl/sasl.h:233:33: error: variable or field 'sasl_set_alloc'
declared void
 LIBSASL_API void sasl_set_alloc(sasl_malloc_t *,
                                 ^~~~~~~~~~~~~
/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
 LIBSASL_API void sasl_set_alloc(sasl_malloc_t *,
                                                ^
/usr/include/sasl/sasl.h:234:5: error: 'sasl_calloc_t' was not declared in this
scope
     sasl_calloc_t *,
     ^~~~~~~~~~~~~
/usr/include/sasl/sasl.h:234:20: error: expected primary-expression before ','
token
     sasl_calloc_t *,
                    ^
/usr/include/sasl/sasl.h:235:20: error: expected primary-expression before '*'
token
     sasl_realloc_t *,
                    ^
/usr/include/sasl/sasl.h:235:21: error: expected primary-expression before ','
token
     sasl_realloc_t *,
                     ^
/usr/include/sasl/sasl.h:236:17: error: expected primary-expression before '*'
token
     sasl_free_t *);
                 ^
/usr/include/sasl/sasl.h:236:18: error: expected primary-expression before ')'
token
     sasl_free_t *);
                  ^
make[2]: *** [kioslave/src/smtp/CMakeFiles/kio_smtp.dir/build.make:159:
kioslave/src/smtp/CMakeFiles/kio_smtp.dir/command.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:357:
kioslave/src/smtp/CMakeFiles/kio_smtp.dir/all] Error 2
make: *** [Makefile:139: all] Error 2

The cyrus-sasl version is 2.1.26 (without any patches).  It would appear the
sasl.h header from that version is missing a #include <sys/types.h>.  I found I
can work around the issue and get kmailtransport to compile by adding #include
<sys/types.h> to kioslave/src/smtp/command.h.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list