Hi all,
Qmail, vpomail+qmailadmin installed and working on MacOSX2.6
- configure OK:
./configure \ --enable-cgibindir=/library/webserver/CGI-Executables \ --enable-imagedir=/library/webserver/images/sqwebmail \ --enable-mimetypes=/private/etc/httpd/mime.types
- make ERROR:
make
[...]
Making all in userdb
make all-am
Compiling userdbpw.c
userdbpw.c:160: illegal expression, found `void'
userdbpw.c:80: parse error in conditional expression
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[2]: *** [userdbpw.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
The error in userdbpw.c:80 occurs with this code:
static RETSIGTYPE sighandler(int signum) { write(1, "\n", 1); tcsetattr(0, TCSANOW, &tios); _exit(0); #if RETSIGTYPE != void return (0); #endif }
In the userdb directory, the config.h file contains:
... /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void ...
Can you help me?
Best regards, Guy
You need to use the following arguments to configure, for Courier/SqWebMail to compile on OS X. (You could put them in your environment prior to configuring instead of on the command line, if that's your preference. But since I build the full system, I put them on the command line so that 'courier-config' will report what they were later... so I don't have to remember. ;)
Actually, I'm not sure whether the last one is needed for sqwebmail, or if it's specific to some other part of Courier. (Personally, I always build the full system, not just sqwebmail... and I forget which problem it solved. =) But the first 3 are *definitely* needed if you want to have any chance of successfully compiling on OS X.
./configure \ 'RANLIB=ranlib -c' \ 'CFLAGS=-traditional-cpp' \ 'CXXFLAGS=-traditional-cpp' \ 'CPPFLAGS=-D _INTL_REDIRECT_MACROS'
I would also point out that you are using an improper specification of the imagedir path. That path should be based on the web server's document root, not the filesystem root. E.g. '--enable-imagedir=/images/sqwebmail'
And lastly... There shouldn't be any need for the --enable-mimetypes setting anymore on OS X. The Mac OS X default location for mime.types was added to the Courier build system in a previous release. So configure should find it automatically. -- Of course, if it doesn't, then ask Sam if there has possibly been a regression of some sort with regard to that option.
HTH.
-jab
