[Bug 145501] cmake error on Solaris in kdepimlibs with ldap/lber

stevee at zuken.co.uk stevee at zuken.co.uk
Mon May 21 15:38:46 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=145501         




------- Additional Comments From stevee zuken co uk  2007-05-21 16:38 -------
/usr/include/lber.h on Solaris defines the prototypes for ber_printf and ber_scanf as:

#if defined(MACOS) || defined(BC31) || defined(_WIN32)
int ber_printf(BerElement *ber, char *fmt, ...);
#else
int ber_printf();
#endif

#if defined(MACOS) || defined(BC31) || defined(_WIN32)
ber_tag_t ber_scanf(BerElement *ber, char *fmt, ...);
#else
ber_tag_t ber_scanf();
#endif

Now I wouldn't expect MACOS or _WIN32 to be defined on Solaris and I cannot find anywhere that defines BC31, plus the man page the ber_ functions makes no mention of it. So you we are probably getting the non prototype versions :-(

Adding definitions of BC31 and LBER_USE_DER reduces the compile errors to the free functions and a missing definition of BerVarray:

[  9%] Building CXX object kldap/CMakeFiles/kldap.dir/ber.o
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp: In member function `int KLDAP::Ber::scanf(const QString&, ...)':
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp:256: error: `ber_memfree' was not declared in this scope
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp:267: error: `ber_memfree' was not declared in this scope
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp:300: error: `ber_memfree' was not declared in this scope
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp:335: error: `ber_memvfree' was not declared in this scope
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp:357: error: `BerVarray' was not declared in this scope
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp:357: error: expected `;' before "bv"
/cad4/stevee/kde-svn/kdepimlibs/kldap/ber.cpp:358: error: `bv' was not declared in this scope



More information about the Kdepim-bugs mailing list