On 30/01/07, Brian Candler <[EMAIL PROTECTED]> wrote: > On Mon, Jan 29, 2007 at 12:59:02PM +0000, Gareth Morris wrote: > > Hi there, i'm using Bill's Linux Qmail Toaster > > (http://www.shupp.org/toaster/index.php) to set up my mailserver. All > > has been well until the Courier part of the installation. > > (If you have problems following those instructions, then probably your first > port of call should be the author of those instructions)
I have tried compiling with the latest version of Courier downloaded from Sourceforge, following the instructions exactly as in INSTALL.html - the same thing happened. > > I'm using courier-imap-4.1.0 and courier-authlib-0.58 in keeping with > > the toaster, however I have tried the latest versions of Courier and > > get the same error as below. > > > > Not sure if this is relevant - I struggled at first with compiling > > courier-authlib - i had to remove "-mtune=i686" and add "-lcrypt" to > > the CFLAGS line in the Makefile generated by ./configure in order to > > make it compile. I couldn't find anybody else who had that problem > > with authlib but I got there eventually. > > If you posted the actual command lines you typed, and the actual errors > given by 'make', then it might have been possible to diagnose these > problems. > > Actually, the string 'i686' doesn't occur anywhere in the courier-imap > source tree, so almost certainly this is something picked up from your build > environment (e.g. make.conf or CFLAGS/CPPFLAGS) I'll do that now, with a fresh download of the latest version from SourceForge. This is as my normal unprivileged user account: $ tar -xjf courier-authlib-0.59.1.tar.bz2 $ cd courier-authlib-0.59.1 $ ./configure $ make ..... Compiling authdaemon.c cc1: error: invalid option `tune=i686' make[2]: *** [authdaemon.lo] Error 1 make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/courier-authlib-0.59.1' make: *** [all] Error 2 I suppose this suggests problems with my build environment as you stated - I'm not really sure what to do to diagnose this though. I've definitely not set anything myself - I don't even know where to look to see if I have strange settings in my CFLAGS/CPPFLAGS - they're not shown up when i type 'export'. I don't seem to have a 'make.conf' on my system either. This is a fresh install of Slackware which has just had a few programs compiled - daemontools, Lighttpd, php, qmail is about it. This is the CFLAGS in the courier-authlib Makefile after running ./configure: CFLAGS = -I/usr/include/mysql -march=i486 -mtune=i686 -I/home/vpopmail/include -g -O2 -Wall -I.. -I./.. CPPFLAGS = Having searched my system for this elusive "-mtune=i686" switch, it seems that is has come from /usr/bin/mysql_config - i had installed mysql-5.0.24a from a Slackware package. I've just removed this package and downloaded the latest binary distribution from mysql.com, and everything seems to be working now! I have gone back and re-configured courier-authlib and it built without problems, then onto configure and build courier-imap without any problems either! So thanks very much for your help - turns out to have been something in the Slackware MySQL package that was causing dodgy CFLAGS to be used when compiling Courier. It's the first time i'd used a slackware package for MySQL - i won't be doing that again. Thanks again for all your help, Gareth ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
