On Mon, Jan 11, 1999 at 10:37:12AM +0100, Niels Möller wrote:
> [EMAIL PROTECTED] (Niels Möller) writes:
> > By the way, I have now added a -h flag (default /etc/lsh_host_key) to
> > lshd. It should get into the next snapshot. That means that I think we
> > should have a feature freeze for lsh-0.01. ;)
> This snapshot is now available at
>   ftp://ftp.lysator.liu.se/pub/security/lsh/lsh-snapshot-1999-01-10.tar.gz

> 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:

gcc -DHAVE_CONFIG_H -I. -I/home/staff/rzm/lsh/lsh-snapshot-1999-01-10 -I.  
-I/home/staff/rzm/lsh/lsh-snapshot-1999-01-10/include 
-I/home/staff/rzm/lsh/lsh-snapshot-1999-01-10 -DLSH -D_GNU_SOURCE -g -O2 -Wall -W  
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  
-Wpointer-arith -Wbad-function-cast -Wnested-externs -c client_userauth.c
gcc -g -O2 -Wall -W  -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  
-Waggregate-return  -Wpointer-arith -Wbad-function-cast -Wnested-externs  -o lsh  
lsh.o client.o client_keyexchange.o client_password.o client_userauth.o liblsh.a 
lib/libsymmetric.a  -lsocket -lnsl -lcrypt -lz -lgmp
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?


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

--- Makefile.am.orig    Sun Jan 10 22:08:39 1999
+++ Makefile.am Mon Jan 11 12:45:35 1999
@@ -38,7 +38,7 @@
        bignum.c blocking_write.c blowfish.c \
        cascade.c cbc.c channel.c charset.c compress.c connection.c crypto.c \
        debug.c des.c disconnect.c  dss_keygen.c encrypt.c \
-       format.c gc.c getopt.c hmac.c io.c keyexchange.c \
+       format.c gc.c getopt.c getopt1.c hmac.c io.c keyexchange.c \
        list.c md5.c packet_ignore.c pad.c parse.c password.c publickey_crypto.c \
        randomness.c \
        read_scan.c read_data.c read_line.c read_packet.c resource.c \

But maybe both getopt*.c files should be used only on non-Linux systems.


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
rzm@galera:~/lsh/lsh-snapshot-1999-01-10,1> ./lsh  -p 24 galera
make_device_random: Failed to open '%s' (errno = %d): %s
Warning: Falling back to an insecure pseudorandom generator.
Password for rzm:
User authentication successful.
id
uid=4495(rzm) gid=100(icm-staff)

R.

Reply via email to