"Eric J. Schwertfeger" <[EMAIL PROTECTED]> writes:
> I saw this too, and assumed it was a BSD make vs GNU make, switched to
> GNU, and that solved the problem.
There are a few dependencies of GNU-make specific features. I should
fix the README to say that clearly. But I don't see how switching to
GNU-make could possibly solve this particular problem.
> I've never been able to get any of the lsh snapshots to work under
> FreeBSD, but 0.1.20 is the first time that I had this many problems
> building lsh (the last time I tried was 0.1.12-0.1.15, or so).
Can you please send me precise bug reports for the problems you find?
To make it easy for me to fix it, I'd like to know (i) symptoms (i.e
compiler error messages, etc), (ii) what the problem is, and (iii) the
right way to solve the problem on BSD. Of course, patches for the code
*and* the autoconf-related files are also appreciated.
> socklen_t isn't defined on any of the 4 Unix I use at work, but the source
> makes no attempt to work around this.
greping for socklen_t, it seems it is used in one place, in daemon.c.
Can you tell me what the appripriate type is on your system? size_t or
a plain int or something else? It should be straight-forward to add a
configure test for it.
> The 0.1.20 snapshot requires a scheme compiler, though configure doesn't
> die if it doesn't find one. I haven't seen this before, so I believe
> that earlier snapshots had spki.c.xT in the distribution. I did laugh the
> first time I saw this, though:
>
> false -l /home/ejs/lsh-0.1.20/src/scm/false-compat.scm -e main -l \
> /home/ejs/lsh-0.1.20/src/scm/compiler.scm \
> -s /home/ejs/lsh-0.1.20/src/scm/gaba.scm <spki.c >spki.c.xT
;-) As for the fallback SCHEME=false, that's the best way I could find to
let the configure script continue, and still fail reliably if some of
the automatically generated files must be remade.
In general, I hate configure scripts that fail completely just because
the envorinment is not quite supported. I remember one time when I
downloaded glibc for its documentatiuon, and wanted to say make doc.
By I couldn't convince the configure script to generate a Makefile to
do that, just because the machine wasn't a supported platform for
glibc.
Anyway, all needed *.x files are supposed to be included with the
dist. You should not need any scheme just to do a plain ./configure &&
make. They depend on the corresponding .h and .c files, though.
> On FreeBSD 3.3, sys/time.h needs to be included before sys/resource.h to
> eliminate some warnings, and daemon.c also needs to include it, but I
> forget why.
greping again, sys/resource.h is included by daemon.c (used by the
function that disables core files). I'll add an #include <sys/time.h>
there. It is also included by symmetric/desTest.c, but that file
already includes sys/time.h. But you will still get some warnings on
desTest.c, though (it's a test program that came with Dana How's DES
implementation, and I haven't really tried get it to compile cleanly).
/Niels