Re: Compiling ifmail in Sun

Roeland Meyer (rmeyer@mhsc.com)
Wed, 25 Sep 1996 10:05:08 -0700

At 03:08 AM 9/25/96 +0200, Eduardo Martinez wrote:
>Hello.
>
>>
>> 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.

[soapbox]
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;
>done;
>iflib
>ifgate
>gcc -c -O2 -Wall -I../iflib -DNEWSLOG=LOG_LOCAL0 -DMAILLOG=LOG_LOCAL0 -
>DNEWSSPOOL=\""/var/spool/news"\" -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -
>DHAS_NDBM_H -DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES -
>DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H -DHAS_TCP -DFORCEINTL -
>DHAS_SYSLOG -DNEED_UUCPFROM -DNEED_BSY -DREGEX_NEED_CARET -
>DNEED_TRAP -DSLAVE_SENDS_NAK_TOO -DNEED_FORK ifunpack.c
>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: rmeyer@mhsc.com |
| Web Page: http://www.rmi.net/~rmeyer |
+--------------------------------------------------------------------------+