Problem compiling imapd 2.1.12 on AIX 5

Christopher S. Pallone cpallone at michaels.com
Thu Feb 6 12:18:13 EST 2003


First off, thank you for you help in advance. Secondly, I'm sorry for such 
a long email. I figure the more info up front, the less time to 
troubleshoot the problem. ;)

I am using:
--------------------------------------------
CforAIX V5.0.2.5 (vac.C)
GNU Make V3.80
Cyrus SASL V2.1.12 (saslauthd w/LDAP)


I run configure with the following options:
--------------------------------------------
env CC=xlc MAKE=gmake \
CFLAGS="-O -qMAXMEM=16384 -brtl" \
CPPFLAGS="-I/usr/local/include" \
LDFLAGS="-L/usr/local/lib" \
./configure --with-cyrus-prefix=/usr/local/cyrus-imapd-2.1.12 \
--prefix=/usr/local/cyrus-imapd-2.1.12 \
--with-statedir=/var/imapd \
--with-bdb-libdir=/usr/local/BerkeleyDB-4/lib \
--with-bdb-incdir=/usr/local/BerkeleyDB-4/include \
--with-cyrus-group=mail \
--with-cyrus-user=cyrus \
--with-openssl=/usr/local/openssl \
--with-sasl=/usr/local \
--enable-fulldirhash \
--enable-netscapehack

Configure seems to run without error:
----------------------------------------------
creating cache ./config.cache
checking host system type... rs6000-ibm-aix
checking for makedepend... 
/home/cpallone/src/cyrus-imapd-2.1.12/tools/not-mkdep
configure: warning: Makedepend is not installed on this system.  You should 
compile and install the version from the makedepend subdirectory.
checking for gcc... xlc
checking whether the C compiler (xlc -O -qMAXMEM=16384 -brtl -qalias=noansi 
-qsrcmsg -r -L/usr/local/lib) works... yes
checking whether the C compiler (xlc -O -qMAXMEM=16384 -brtl -qalias=noansi 
-qsrcmsg -r -L/usr/local/lib) is a cross-compiler... yes
checking whether we are using GNU C... no
checking whether xlc accepts -g... yes
checking for ranlib... ranlib
checking whether gmake sets ${MAKE}... yes
checking for a BSD compatible install... ./install-sh -c
checking how to run the C preprocessor... xlc -E
checking for AIX... yes
checking for strerror in -lcposix... no
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking for working const... yes
checking for long file names... yes
checking for __attribute__... no
checking for runpath switch... -R
checking for unistd.h... yes
checking for sys/select.h... yes
checking for sys/param.h... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for ftruncate... yes
checking for strerror... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for connect... yes
checking for res_search... yes
checking for dn_expand... yes
checking for dns_lookup... yes
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking for getnameinfo... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... no
checking for tzname... yes
checking for vprintf... yes
checking for db.h... yes
checking for db_create in -ldb-4.1... yes
checking duplicate db database backend... db3_nosync
checking mboxlist database backend... db3
checking seen state database backend... flat
checking subscription database backend... flat
checking TLS cache database backend... db3_nosync
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking for main in -lfl... yes
checking for library containing regcomp... none required
checking for rxposix.h... no
checking for strerror... (cached) yes
checking for sys/resource.h... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for daemon... yes
checking for setsid... yes
checking for setproctitle... yes
checking nonblocking method... fcntl
checking timezone GMT offset method... gmtime
checking for shared mmap... no
checking for stupid shared mmap... no
configure: warning: *** This system does not have a working mmap()
configure: warning: *** Expect a considerable performance penalty
checking for fcntl... yes
checking for fdatasync... yes
checking for sigvec... yes
checking for openssl... /usr/local/openssl
checking for ZInitialize in -lzephyr... no
checking for com_err.h... no
configure: warning: com_err is required; included version will be used.
checking for modern syslog... yes
checking for getdtablesize... yes
checking to use old sieve service name... no
checking for dlopen... yes
checking for sasl/sasl.h... yes
checking for sasl/saslutil.h... yes
checking for prop_get in -lsasl2... yes
checking for sasl_checkapop in -lsasl2... yes
checking for perl... perl
checking for MD5Init... yes
checking for request_init in -lwrap... no
checking libwrap support... no
checking for sprint_objid in -lsnmp... yes
checking for ucd-snmp/version.h... no
checking UCD SNMP libraries... no
updating cache ./config.cache
creating ./config.status
creating man/Makefile
creating master/Makefile
creating lib/Makefile
creating acap/Makefile
creating imap/Makefile
creating imap/feedcyrus
creating imtest/Makefile
creating netnews/Makefile
creating perl/Makefile
creating sieve/Makefile
creating et/Makefile
creating timsieved/Makefile
creating notifyd/Makefile
creating perl/sieve/Makefile
creating perl/sieve/lib/Makefile
creating Makefile
creating config.h


Next I run gmake depend; gmake and fail with the following:
--------------------------------------------------
... skipping down to error ...
### Making all in /home/cpallone/src/cyrus-imapd-2.1.12/imap
gmake[1]: Entering directory `/usr/netscape/src/cyrus-imapd-2.1.12/imap'
./../snmp/snmpgen ./pushstats.snmp
basename pushstats
./../snmp/snmpgen ./lmtpstats.snmp
basename lmtpstats
rm -f version.o
AWK=nawk ./xversion.sh
../et/compile_et ./mupdate_err.et
xlc -c -I. -I.. -I. -I./../lib -I./../sieve -I./../acap -I./../et 
-I./../sieve -I/usr/local/BerkeleyDB-4/include -I/usr/local/include 
-I/usr/local/include -I/usr/local/openssl/include -I/usr/local/include 
-DHAVE_CONFIG_H  -O -qMAXMEM=16384 -brtl \
pushstats.c
"pushstats.c", line 576.1: 1506-356 (W) Compilation unit is empty.
xlc -c -I. -I.. -I. -I./../lib -I./../sieve -I./../acap -I./../et 
-I./../sieve -I/usr/local/BerkeleyDB-4/include -I/usr/local/include 
-I/usr/local/include -I/usr/local/openssl/include -I/usr/local/include 
-DHAVE_CONFIG_H  -O -qMAXMEM=16384 -brtl \
backend.c
xlc -c -I. -I.. -I. -I./../lib -I./../sieve -I./../acap -I./../et 
-I./../sieve -I/usr/local/BerkeleyDB-4/include -I/usr/local/include 
-I/usr/local/include -I/usr/local/openssl/include -I/usr/local/include 
-DHAVE_CONFIG_H  -O -qMAXMEM=16384 -brtl \
imapd.c
"pushstats.h", line 39.29: 1506-211 (S) Parameter list must be empty, or 
consist of one or more identifiers separated by commas.
"imapd.c", line 110.13: 1506-334 (S) Identifier imapd_clienthost has 
already been defined on line 67 of "imapd.h".
"imapd.c", line 114.12: 1506-334 (S) Identifier imapd_userisadmin has 
already been defined on line 58 of "imapd.h".
"imapd.c", line 125.23: 1506-334 (S) Identifier imapd_mailbox has already 
been defined on line 61 of "imapd.h".
"imapd.c", line 1783.29: 1506-045 (S) Undeclared identifier 
AUTHENTICATION_NO.
"imapd.c", line 1784.29: 1506-045 (S) Undeclared identifier VARIABLE_AUTH.
"imapd.c", line 1785.29: 1506-045 (S) Undeclared identifier 
VARIABLE_LISTEND.
"imapd.c", line 1791.29: 1506-045 (S) Undeclared identifier 
AUTHENTICATION_YES.
"imapd.c", line 1869.33: 1506-045 (S) Undeclared identifier 
AUTHENTICATION_NO.
"imapd.c", line 1870.33: 1506-045 (S) Undeclared identifier VARIABLE_AUTH.
"imapd.c", line 1871.33: 1506-045 (S) Undeclared identifier 
VARIABLE_LISTEND.
"imapd.c", line 1925.25: 1506-045 (S) Undeclared identifier 
AUTHENTICATION_YES.
"imapd.c", line 2246.29: 1506-280 (E) Function argument assignment between 
types "int*" and "unsigned int*" is not allowed.
gmake[1]: *** [imapd.o] Error 1
gmake[1]: Leaving directory `/usr/netscape/src/cyrus-imapd-2.1.12/imap'
gmake: *** [all] Error 1


Let me know if there is any further information I can provide.
Thanks,

Christopher S. Pallone
UNIX Consultant





More information about the Info-cyrus mailing list