Thread: QMAIL for AIX
View Single Post

   
  #7 (permalink)  
Old 01-04-2008, 08:56 PM
Garry
 
Posts: n/a
Default Re: QMAIL for AIX

Hey Thanks,

With the changes that you suggested I was able to compile
succsssfully. I am running AIX 4.3.3 by the way.

However got such errors while building qmail. There were a couple of
these however the compilation completed successfully and did not error
out.

1500-030: (I) INFORMATION: datetime_tai: Additional optimization may
be attained by recompiling and specifying MAXMEM option with a value
greater than 2048.

1500-010: (W) WARNING in main: Infinite loop. Program may not stop.

Also was not able to install daemontools. Here's what came up ...

package/install
Linking ./src/* into ./compile...
Compiling everything in ./compile...
./compile byte_chr.c
cc: 1501-210 command option Wimplicit contains an incorrect
subargument
make: 1254-004 The error code from the last command is 40.


Stop.

I am no "C" expert so cannot figure out what it means. However here
are the contents of compile byte_chr.c

/* Public domain. */

#include "byte.h"

unsigned int byte_chr(s,n,c)
char *s;
register unsigned int n;
int c;
{
register char ch;
register char *t;

ch = c;
t = s;
for (; {
if (!n) break; if (*t == ch) break; ++t; --n;
if (!n) break; if (*t == ch) break; ++t; --n;
if (!n) break; if (*t == ch) break; ++t; --n;
if (!n) break; if (*t == ch) break; ++t; --n;
}
return t - s;
}


Stefaan A Eeckels <hoendech@ecc.lu> wrote in message news:<20030826231659.7896797f.hoendech@ecc.lu>...
> On 26 Aug 2003 11:15:01 -0700
> girishmodak@yahoo.com (Garry) wrote:
>
> > For the inherent bugs and complexity with sendmail, I am considering
> > QMAIL for my AIX servers. Has anyone installed QMAIL on AIX, I tried
> > compiling QMAIL with IBM C-Compiler and with the GCC compiler as well.
> > Could not get past the "make setup check" errors. Has anyone dealt with
> > a similar problem.

>
> The problem is that there's an annoying coding error in
> qmail, which treats "errno" as an int, which it isn't
> (it started out that way, but on AIX and most other
> modern multi-threading systems it's a macro defined in
> /usr/include/errno.h).
>
> The solution is to edit the following files:
>
> dns.c
> error.h
> cdb_seek.c
>
> and remove the references to "extern int errno", and
> "extern int h_errno".
>
> Then add "#include <errno.h> to error.h, and recompile.
>
> I use IBM's cc on AIX 4.3.3 and with these modifications
> qmail (not QMAIL, BTW) compiles and runs without problems.
>
> Take care,
>
> --
> Stefaan

Reply With Quote