2.3.12rc1 doesn't compile with LDAP

Hajimu UMEMOTO ume at mahoroba.org
Wed Apr 9 10:31:00 EDT 2008


Hi,

>>>>> On Wed, 9 Apr 2008 16:01:38 +0200
>>>>> Милен Димов <milen at blueboard.biz> said:

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

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

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

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

milen> Any help will be appreciated!

I met this, too.  The following patch should fix it:

Index: ptclient/ldap.c
diff -u -p ptclient/ldap.c.orig ptclient/ldap.c
--- ptclient/ldap.c.orig	2008-03-25 03:34:22.000000000 +0900
+++ ptclient/ldap.c	2008-04-09 14:56:36.000000000 +0900
@@ -1,4 +1,4 @@
-/* ldap.c - LDAP Backend to ptloader */
+/* ldap.c - LDAP Backend to ptloader
  *
  * Copyright (c) 1994-2008 Carnegie Mellon University.  All rights reserved.
  *

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the Cyrus-devel mailing list