[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 145501] cmake error on Solaris in kdepimlibs with ldap/lber
From:       stevee () zuken ! co ! uk
Date:       2007-05-21 14:38:47
Message-ID: 20070521143847.22591.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic