hi everybody, when trying to cross compile openssh-4.6 i got the following error : --------------------- /opt/sparc-linux/bin/sparc-linux-ld -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/opt/sparc-linux/lib -L/usr/src/SparcV8Linux/zlib-1.2.3-L/opt/sparc-linux/sparc-linux/sys-include/ -lssh -lopenbsd-compat -lresolv -lcrypto -lutil -lz -lnsl -ldl -lcrypt /opt/sparc-linux/bin/sparc-linux-ld.real: AVERTISSEMENT: ne peut trouver le symbole d'entr?e _start; utilise par d?faut 0000000000012200 readconf.o(.text+0x1014): In function `process_config_line': /usr/src/SparcV8Linux/openssh-4.6p1/readconf.c:527: undefined reference to `__muldi3' readconf.o(.text+0x1028):/usr/src/SparcV8Linux/openssh-4.6p1/readconf.c:529: undefined reference to `__divdi3' ./libssh.a(packet.o)(.text+0xab4): In function `set_newkeys': /usr/src/SparcV8Linux/openssh-4.6p1/packet.c:670: undefined reference to `__ashldi3' /opt/sparc-linux/lib/libcrypto.a(bn_div.o)(.text+0x264): In function `BN_div': : undefined reference to `__udivdi3' /opt/sparc-linux/lib/libcrypto.a(bn_word.o)(.text+0x264): In function `BN_mod_word': : undefined reference to `__umoddi3' /opt/sparc-linux/lib/libcrypto.a(b_print.o)(.text+0x3c4): In function `fmtint': : undefined reference to `__umoddi3' /opt/sparc-linux/lib/libcrypto.a(b_print.o)(.text+0x3fc): In function `fmtint': : undefined reference to `__udivdi3' make: *** [ssh] Erreur 1 ------------------- i have cross-compiled OpenSSL and istalled it but it didn't resolv the problem any suggestion? thx
Amine SALHI wrote:> hi everybody, > when trying to cross compile openssh-4.6 i got the following error : > --------------------- > /opt/sparc-linux/bin/sparc-linux-ld -o ssh ssh.o readconf.o clientloop.o[...]> /usr/src/SparcV8Linux/openssh-4.6p1/readconf.c:527: undefined reference to > `__muldi3'These are gcc internal functions that are in libgcc, and the linker doesn't know to look there. Try using gcc to do the linking instead (eg LD=sparc-linux-gcc or similar) instead. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
This has little to do with OpenSSH, but.. On Thu, Apr 26, 2007 at 04:37:39PM +0200, Amine SALHI wrote:> hi everybody, > when trying to cross compile openssh-4.6 i got the following error : > /opt/sparc-linux/bin/sparc-linux-ld.real: AVERTISSEMENT: ne peut > trouver le symbole d'entr?e _start; utilise par d?faut > 0000000000012200It is always best to send error messages in english so that everyone can understand exactly what is going on.> /usr/src/SparcV8Linux/openssh-4.6p1/readconf.c:527: undefined > reference to `__muldi3'[..]> /opt/sparc-linux/lib/libcrypto.a(bn_div.o)(.text+0x264): In > function `BN_div': > : undefined reference to `__udivdi3'[..]> i have cross-compiled OpenSSL and istalled it but it didn't resolv > the problemSomething is not right with your cross compilation setup, multiplication and division implementations seem to be missing.. //Peter
Seemingly Similar Threads
- [Bug 1272] Unable to make OpenSSH with undefined refs in readconf.o
- [Bug 1173] scp reports lost connection for very large files
- [Bug 462] compile failure with openssl 0.9.7
- installation : make fails (R-1.7.1 on RedHat 8.0)
- [PATCH] Next cleanup part 4 or 5 by now.=)