2008-11-17 23:08:12     compilation fails when ssh is enabled

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-11-17 23:08:12     compilation fails when ssh is enabled

San J (INDIA)

Message: 65393   

 

Hi,

 

        I am using the uClinux-dist-2008R1-RC8 for my BF527 custom board. I enabled the ssh and  sshd in the user configurations. When i tried to compile the code, it exits with the foll error:

 

===============================================

 

bfin-uclinux-gcc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o sshpty.o sshlogin.o servconf.o serverloop.o auth.o auth1.o auth2.o auth-options.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o auth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o audit.o audit-bsm.o -L. -Lopenbsd-compat/  -Wl,-elf2flt      -mcpu=bf527-0.0 -lssh -lopenbsd-compat   -lcrypto -lutil -lz  -lresolv -lresolv

openbsd-compat//libopenbsd-compat.a(xcrypt.o): In function `xcrypt':

../../openbsd-compat/xcrypt.c:74: undefined reference to `_crypt'

collect2: ld returned 1 exit status

 

 

===============================================

 

Please help me fix this issue.

 

Thanks,

 

San

 

 

 

 

QuoteReplyEditDelete

 

 

2008-11-17 23:18:59     Re: compilation fails when ssh is enabled

Mike Frysinger (UNITED STATES)

Message: 65394   

 

you should be using 2008R1.5 for BF52x systems, not 2008R1

 

you can add -lcrypt to the link line ... that'll probably fix build things

 

but really you shouldnt use openssh ... use dropbear as it's smaller

QuoteReplyEditDelete

 

 

2008-11-18 01:50:11     Re: compilation fails when ssh is enabled

San J (INDIA)

Message: 65401   

 

Thanks Mike !

 

dropbear is now up on my board. From the forum posts, I came across a couple of fixes done to the  user/dropbear/Makefile to make dropbear work on the uclinux version that  I am currently using. Also, I am planning to switch to the 2008R1.5 as you suggested.

 

Thanks

 

San

Attachments

    Outcomes