SNAP 20010209 fails to compile sftp on Slackware

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Sat Feb 10 12:00:57 EST 2001


It's been resolved in the current tree.

- Ben

On Fri, 9 Feb 2001, Gary E. Miller wrote:

> Yo All!
> 
> openssh-SNAP-20010209.tar.gz fails to compile on Slackware.  Patch at
> the end of this message.
> 
> Here is the error:
> 
> gcc -o sftp sftp.o sftp-client.o sftp-common.o sftp-int.o log-client.o -L. -Lopenbsd-compat/  -L/usr/local/ssl/lib -L/usr/local/ssl -lssh -lopenbsd-compat -lcrypt -lz -lnsl  -lutil -lcrypto  -lwrap
> openbsd-compat//libopenbsd-compat.a(bsd-arc4random.o): In function `arc4random_stir':
> /usr/local/src/openssh-SNAP-02082001/openbsd-compat/bsd-arc4random.c:61: undefined reference to `seed_rng'
> collect2: ld returned 1 exit status
> make: *** [sftp] Error 1
> 
> Here is my configure:
> 
> ./configure --with-tcp-wrappers --with-md5-passwords --with-default-path=$PATH
> 
> OpenSSH configured has been configured with the following options.
>                  User binaries: /usr/local/bin
>                System binaries: /usr/local/sbin
>            Configuration files: /usr/local/etc
>                Askpass program: /usr/local/libexec/ssh-askpass
>                   Manual pages: /usr/local/man/manX
>                       PID file: /var/run
>       Random number collection: Device (/dev/urandom)
>                 Manpage format: man
>                    PAM support: no
>             KerberosIV support: no
>                    AFS support: no
>                  S/KEY support: no
>           TCP Wrappers support: yes
>           MD5 password support: yes
>    IP address in $DISPLAY hack: no
>       Use IPv4 by default hack: no
>        Translate v4 in v6 hack: yes
> 
>               Host: i686-pc-linux-gnu
>           Compiler: gcc
>     Compiler flags: -g -O2 -Wall
> Preprocessor flags:  -I/usr/local/ssl/include
>       Linker flags:  -L/usr/local/ssl/lib -L/usr/local/ssl
>          Libraries: -lcrypt -lz -lnsl  -lutil -lcrypto  -lwrap
> 
> The quick fix is to add entropy.o to the link of sftp:
> 
> --- Makefile.in.DIST	Fri Feb  9 15:59:44 2001
> +++ Makefile.in	Fri Feb  9 16:00:04 2001
> @@ -111,7 +111,7 @@
>  	$(LD) -o $@ sftp-server.o sftp-common.o log-server.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
> 
>  sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-int.o sftp-common.o log-client.o
> -	$(LD) -o $@ sftp.o sftp-client.o sftp-common.o sftp-int.o log-client.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
> +	$(LD) -o $@ sftp.o entropy.o sftp-client.o sftp-common.o sftp-int.o log-client.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
> 
>  # test driver for the loginrec code - not built by default
>  logintest: logintest.o $(LIBCOMPAT) libssh.a log-client.o loginrec.o
> 
> 
> I am sure there is a better way, don't know what it may break...
> 
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 20340 Empire Ave, Suite E-3, Bend, OR 97701
> 	gem at rellim.com  Tel:+1(541)382-8588 Fax: +1(541)382-8676
> 
> 
> 






More information about the openssh-unix-dev mailing list