qmail won't compile on AIX 4.3

2000-07-06 Thread lewst

I'm not able to get qmail-1.03 to compile on my AIX 4.3 server.  I've
tried both xlc (AIX C compiler) and GCC-2.95.2 without success.  Here
is far as I get with "make setup check".  Any ideas?  Please CC: me on
followups.  Thanks.

With GCC:

auto-str.c: In function `main':
auto-str.c:15: warning: return type of `main' is not `int'
./load auto-str substdio.a error.a str.a 
ld: 0711-317 ERROR: Undefined symbol: .__main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.

With XLC:

./compile dns.c
"dns.c", line 11.12: 1506-275 (S) Unexpected text 'int' encountered.
"dns.c", line 11.12: 1506-275 (S) Unexpected text ')' encountered.
"dns.c", line 11.19: 1506-276 (S) Syntax error: possible missing ')'?
"dns.c", line 11.12: 1506-343 (S) Redeclaration of h_errno_which differs from previous 
declaration
on line 55 of "/usr/include/netdb.h".
"dns.c", line 11.12: 1506-050 (I) Return type "int**" in redeclaration is not 
compatible with the
previous return type "void*".
"ipalloc.h", line 6.23: 1506-007 (S) "struct ip_address" is undefined.
"dns.c", line 31.15: 1506-007 (S) "struct ip_address" is undefined.
"dns.c", line 229.34: 1506-285 (S) The indirection operator cannot be applied to a 
pointer to an
incomplete struct or union.
"dns.c", line 231.34: 1506-285 (S) The indirection operator cannot be applied to a 
pointer to an
incomplete struct or union.
"dns.c", line 233.34: 1506-285 (S) The indirection operator cannot be applied to a 
pointer to an
incomplete struct or union.
"dns.c", line 235.34: 1506-285 (S) The indirection operator cannot be applied to a 
pointer to an
incomplete struct or union.
make: 1254-004 The error code from the last command is 1.


__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/



dot-qmail: write to mbox named after current year month

2000-05-01 Thread lewst

What is the easiest way to have qmail deliver an incoming message to
an mbox named after the current year and month without having to
manually adjust the .qmail each month?  For example, "mbox.2000-05".

I've tried the following:

  % cat .qmail
  ./mbox.`date +%Y-%m`

This results in a mailbox file literally named "mbox.`date +%Y-%m`",
which is obviously not what I want.


__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/