Rafal Maszkowski <[EMAIL PROTECTED]> writes:

> > I would be grateful if you people could test this a little. When the
> > obvious bugs and portability problems are sorted out, I think I want
> > to release an lsh-0.01.
> 
> On Solaris 2.5.1:
> 
> Undefined                       first referenced
>  symbol                             in file
> inet_aton                           liblsh.a(io.o)
> getopt_long                         lsh.o
> ld: fatal: Symbol referencing errors. No output written to lsh
> make: *** [lsh] Error 1
> 
> 1st problem is already described in io.c, changing 1 to 0 in line 506
> workarounds this. What would be the proper solution - using something more than
> just 1 or 0 in #if or writing inet_aton function for Solaris?

I didn't know if inet_aton was portable or not. I have now added a
test for it to configure.in.

> Missing getopt_long can be found in getopt1.c in glibc, I used version 2.1.108.

The getopt files (getopt.h, getopt.c and getopt1.c) are supposed to be
included in the distribution, but it seems they were left out. I have
hacked the makefile and the configure script a little to make it work
better. 

> Then it works but doesn't like  -z z :
> 
> rzm@galera:~/lsh/lsh-snapshot-1999-01-10,1> ./lsh -z z -p 24 galera
> make_device_random: Failed to open '%s' (errno = %d): %s
> Warning: Falling back to an insecure pseudorandom generator.
> No such host or service

Hmm, this is strange. I would think the options processing is broken.
I have added a missing break; statement in lsh.c's main(), but I don't
think that was related to this problem.

The ugly error messages (with unexpanded %-sequences) are because
there's no vsnprint() on your system. It would be better to include
one in the distribution. Or use some custom format function instead.

I just uploaded a new snapshot. Could you try it and see if it solves
any of the problems?

/Niels

Reply via email to