2.3.12rc1 doesn't compile with LDAP

Милен Димов milen at blueboard.biz
Wed Apr 9 10:01:38 EDT 2008


Hello,

Cyrus-IMAPd 2.3.12rc1 doesn't compile with LDAP support for me. This  
is what I do:

dev:~/cyrus-imapd-2.3.12rc1 # ./configure --with-ldap
...
dev:~/cyrus-imapd-2.3.12rc1 # make
...
### Making all in /root/cyrus-imapd-2.3.12rc1/ptclient
make[1]: Entering directory `/root/cyrus-imapd-2.3.12rc1/ptclient'
gcc -c -I.. -I./../imap -I./../lib    -I/usr/include  -Iyes/include - 
DHAVE_CONFIG_H -fPIC ldap.c
ldap.c: In function ‘Copyright’:
ldap.c:3: error: expected declaration specifiers before numeric constant
ldap.c:27: error: stray ‘@’ in program
ldap.c:31: error: missing terminating " character
In file included from /usr/include/sys/time.h:25,
                  from ../config.h:388,
                  from ldap.c:45:
/usr/include/bits/types.h:34: error: storage class specified for  
parameter ‘__u_char’
/usr/include/bits/types.h:35: error: storage class specified for  
parameter ‘__u_short’
/usr/include/bits/types.h:36: error: storage class specified for  
parameter ‘__u_int’
/usr/include/bits/types.h:37: error: storage class specified for  
parameter ‘__u_long’
/usr/include/bits/types.h:40: error: storage class specified for  
parameter ‘__int8_t’
/usr/include/bits/types.h:41: error: storage class specified for  
parameter ‘__uint8_t’
/usr/include/bits/types.h:42: error: storage class specified for  
parameter ‘__int16_t’
/usr/include/bits/types.h:43: error: storage class specified for  
parameter ‘__uint16_t’
/usr/include/bits/types.h:44: error: storage class specified for  
parameter ‘__int32_t’
/usr/include/bits/types.h:45: error: storage class specified for  
parameter ‘__uint32_t’
/usr/include/bits/types.h:47: error: storage class specified for  
parameter ‘__int64_t’
/usr/include/bits/types.h:48: error: storage class specified for  
parameter ‘__uint64_t’
/usr/include/bits/types.h:56: error: storage class specified for  
parameter ‘__quad_t’
/usr/include/bits/types.h:57: error: storage class specified for  
parameter ‘__u_quad_t’
...

With the same config option (--with-ldap) cyrus-imapd-2.3.11 built  
successfully on the same system.

dev:~/cyrus-imapd-2.3.12rc1 # uname -a
Linux dev 2.6.18.8-0.9-default #1 SMP Sun Feb 10 22:48:05 UTC 2008  
x86_64 x86_64 x86_64 GNU/Linux

Any help will be appreciated!

Thank you,
Milen


More information about the Cyrus-devel mailing list