Re: Compiling ifmail in Sun

Roeland Meyer (
Wed, 25 Sep 1996 10:05:08 -0700

At 03:08 AM 9/25/96 +0200, Eduardo Martinez wrote:
>> It seems that either your MAKE doesn't understand the Makefile or the
>> Makefile is corrupted or you missed a configuration setting in the
>> Makefile.
>Yes, the Makefile was corrupted.
>But, now I get the next error:

You've got your compiler wound up a bit too tightly. Get it to loosen up
some on the error conditions. An unused variable shouldn't cause a
compile abort. Look at the options for -Wall and RTFM for the compiler.

Released code shouldn't have unused variables which aren't either commented
out or documented, preferrably BOTH and the mechanism should be an #ifdef.

Final release code should pass -Wall compile with no errors and no
warnings! Anything less is still ALPHA! Even my alpha code hasn't done
it in years. Released code with these features indicates sloth.
[end soapbox]

>=== cut ===
>for d in iflib ifgate ifcico; do (cd $d && echo $d && /usr/ccs/bin/make
all) || exit;
>gcc -c -O2 -Wall -I../iflib -DNEWSLOG=LOG_LOCAL0 -DMAILLOG=LOG_LOCAL0 -
>ifunpack.c: In function `checkspace':
>ifunpack.c:218: storage size of `sfs' isn't known
>ifunpack.c:223: warning: implicit declaration of function `statfs'
>ifunpack.c:218: warning: unused variable `sfs'
>*** Error code 1
>make: Fatal error: Command failed for target `ifunpack.o'
>Current working directory /usr/ifmail/ifmail/ifgate
>*** Error code 1
>make: Fatal error: Command failed for target `all'
>=== cut ===
>What's the problem, now ?
>Saludos, Eduardo.
| Roeland M.J. Meyer email: |
| Web Page: |