[CF-Devel] Uuh... compile errors - neverthless, PR is great!
Mark Wedel
mwedel at scruz.net
Mon Dec 4 20:52:17 CST 2000
Andreas Vogl wrote:
>
o make depend: dumped *heaps* of errormessages, looking like:
>
--------
>
/usr/include/unistd.h:967: macro or `#include' recursion too deep
>
In file included from ../include/includes.h:76,
>
from ../include/global.h:36,
>
from button.c:28:
>
/usr/include/unistd.h:300: macro or `#include' recursion too deep
>
/usr/include/unistd.h:301: macro or `#include' recursion too deep
>
[etc, etc...]
>
In file included from ../include/includes.h:76,
>
from ../include/global.h:36,
>
from button.c:28:
>
/usr/include/unistd.h:967: macro or `#include' recursion too deep
>
[etc...]
>
---------
>
For godssake, this did not really affect the make-process. Maybe
>
I could even do without "make depend" anyways, never tried though.
>
Still I have not the slightest idea why this happened.
This is obnoxious, but not really an error. my personal opinion is that this
is a problem with the C library or make depend.
On my system in fact (running glibc 2.2), I had to modify one of the files in
/usr/include because it had a line like:
#define stderr stderr
which makedepend barf's on - I wouldn't really be concerned with that, except
that data it then dumps into the Makefiles is bad.
>
>
o make:
>
First error: crossedit/xutil.c, Line 39: #include "png.c"
Fixed (or should be). I thought I had added that file to the cvs repository,
but apparantly that commit didn't take or I forgot the cvs add.
>
Second error: main.c Line 154: function des_crypt() not defined.
>
Reason: The #ifdefs deciding between "des_crypt()" and "crypt()"
>
just plain failed. When looking into /usr/include/des.h one can
>
see that it´s possible to have des.h existing and included but
>
still no des_crypt() defined. Bad luck, this happened on *my* OS.
>
Easy to fix for me, but not so easy to make it work on every OS...
I think I have a better check in the configure.in - when checking for libdes,
it will also check to see that des_crypt is in it.
Unfortunately, none of the systems I use (redhat linux or solaris) have/use
libdes by default, so this is only something I and attempt to adjust based on
feedback and hope I get it right.
.
>
>
o make install: uses the following compile flags:
>
gcc -g -02 (X_EXTRA_CFLAGS) -I../include [...]
>
^^^^^^^^^^^^^^^^
>
"(X_EXTRA_CFLAGS)" is not an acceptable flag for gcc, at least
>
on my system. So I had to open the makefile and delete these
>
extra-cflags. Seems to be new stuff, never seen it before.
Found the bug for that - will check in a change shortly (sometime this
evening). The makefile.in had some ($XX_...) instead of $(XX_...) entries in
it.
More information about the crossfire
mailing list