5 messages in net.sourceforge.lists.courier-users[courier-users] Courier on AIX- conti...
FromSent OnAttachments
dani...@tonservices.comApr 12, 2001 5:13 pm 
dani...@tonservices.comApr 13, 2001 8:00 am 
Paulus HendarwanApr 14, 2001 2:15 am 
Prashant DesaiApr 14, 2001 4:57 am 
Prashant DesaiApr 17, 2001 11:57 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Courier on AIX- continuing workActions...
From:dani...@tonservices.com (dani@tonservices.com)
Date:Apr 12, 2001 5:13:03 pm
List:net.sourceforge.lists.courier-users

Sam, I am still not able to get a working Courier build on AIX. I have actually got it to compile completely, only to have make check fail in $couriersrc/rfc822. I have attached a list of changes I have made, in the hopes that they may help others and that you may
look over the changes and see if I got something wrong.

Issues I am working on that may help: How can I get configure to detect the HAVE_STRINGS_H properly for AIX? Will this
help make check pass?

I have invested a lot of time to get this far. I would really like to use the
complete Courier package, rather than Qmail+Courier-Imap or using this AIX system as an NFS server for a RedHat box running Courier. Sorry Sam, I am a sysadmin and a
mail server admin, not a C programmer, or maybe I could get further with this.

Thanks for your work making the Courier program and for any help you can give
me.

___________________________________________________________ Changes log

I have found that setting these environment variables is necessary for
compilation on AIX using the native xlC compiler.

export CXX=xlC CFLAGS="-qcpluscmt" \ CPPFLAGS="-I /usr/local/include" \ LDFLAGS="-L /usr/local/lib" ./configure --enable-mimetypes=/usr/HTTPServer/conf

This compensates for the xlC invocation of the C++ compiler, which configure
cannot detect. It also compensates for many .c files that have C++ style comments in them, which the IBM compiler treats as a fatal error. IBM's HTTP server keeps
its mime.types file in an unusual location, so the --enable mimetypes tells configure where to find it.

$couriersrc/afx vi Makefile search for -Dinline=__inline, replace with -DHAVE_STRINGS_H vi afxtempl.h search for CStringTok, change smart=false to /*smart=false*/

$couriersrc/soxwrap vi soxwrapproto.h insert: #include <sys/time.h> at line 3

$couriersrc/unicode, $couriersrc/rfc822, $couriersrc/imap, $couriersrc/gpglib,
$couriersrc/courier/libs, $couriersrc/courier/module.esmtp, $couriersrc/webmail, $couriersrc/courier/module.uucp, $couriersrc/courier/module.esmtp all contain .c
files with c++ comments, used compiler option to fix.

$couriersrc/gpglib vi export.c search for unicode.h add full path to #include line ie: /home/ddyer/src/courier-0.33.0/unicode add full path to #include line for numlib ie: /home/ddyer/src/courier-0.33.0/numlib

vi genkey.c make same fixes as export.c

vi import.c make same fixes as export.c

vi list.c make same fixes as export.c

vi delete.c make same fixes as export.c

vi sign.c make same fixes as export.c

vi checksign.c make same path fixes as export.c

vi rfc2045.c add full path to #include "rfc2045.h" /home/ddyer/src/courier-0.33.0/rfc2045/rfc2045.h

vi testgpg.c make same fixes as export.c

$couriersrc/courier/libs vi Makefile search for DEF add -DHAVE_STRINGS_H to DEF line

vi comtmpfile.c remove "return" from line 57

vi rwdefaulthost.c remove "return" from line 31

$couriersrc/courier/module.local vi local.c goto line 93 :93 remove "return"

$couriersrc/courier/module.dsn vi dsnstub.c remove return from lines 44,45

$couriersrc/courier vi cmlm.C :365 comment out line 365 replace with (insert above): if (!modfs.rdbuf()->is_open()) line 448.16 replace with if (!fs.rdbuf()->is_open()) line 538.24 replace with if (ifs.rdbuf()->is_open()) line 558.24 replace with if (ifs.rdbuf()->is_open())

similar changes for all the following files

vi cmlmcmdmisc.C line 35.17 line 197.17 line 197.35

vi cmlmsubunsubmsg.C line 271.21

vi aliasexp.C line 251.17

vi submit2.C line 190 line 218 line 246 line 294 line 301 line 336 line 480 line 485 line 655 line 791