[uClibc]OpenSSH and mipsel

Dana Soward dana at linuxboxen.org
Tue Feb 11 13:46:11 UTC 2003


I've been getting a lot of help with this in the uclibc IRC channel, but
I thought I would post my issues here as well to cover my bases, and
stop bothering the channel so much...

I'm trying to build openssh against the latest CVS (as of tonight)
toolchain, compiled on an i686 system for a mipsel system.  Busybox,
tinylogin, zlib, and openssl all build fine against the toolchain.  I
have openssh configuring ok using a hacked up configure script and a
config.cache from a native mipsel build.  Everything seems to compile
ok, but then at link time I run into problems...if anyone else has
crosscompiled openssh using this type of setup, and was successful, I'd
love some hints.  My error output is below. Thanks


/opt/toolchain/bin/mipsel-uclibc-ld -o ssh ssh.o sshconnect.o
sshconnect1.o sshconnect2.o sshtty.o readconf.o clientloop.o
-Lopenbsd-compat/ -L/opt/toolchain/usr/local/lib
-L/opt/toolchain/usr/lib/  -L. -L.. -L/opt/toolchain/lib
-L/opt/toolchain/usr/lib -L/opt/toolchain/usr/local/lib -lc -lssh
-lopenbsd-compat -lutil -lz  -lcrypto -lcrypt
/opt/toolchain/bin/mipsel-uclibc-ld: warning: cannot find entry symbol
__start; defaulting to 000000000040fef0
ssh.o: In function `usage':
/home/dragon/src/openssh-3.5p1/ssh.c:164: undefined reference to
`__progname'
/home/dragon/src/openssh-3.5p1/ssh.c:196: undefined reference to
`__progname'
ssh.o: In function `main':
/home/dragon/src/openssh-3.5p1/ssh.c:234: undefined reference to
`__progname'
sshconnect.o: In function `ssh_create_socket':
/home/dragon/src/openssh-3.5p1/sshconnect.c:179: undefined reference to
`rresvport_af'
sshconnect.o: In function `ssh_connect':
/home/dragon/src/openssh-3.5p1/sshconnect.c:272: undefined reference to
`__progname'
./libssh.a(log.o): In function `do_log':
/home/dragon/src/openssh-3.5p1/log.c:392: undefined reference to
`__progname'
openbsd-compat//libopenbsd-compat.a(getopt.o): In function `BSDgetopt':
/home/dragon/src/openssh-3.5p1/openbsd-compat/getopt.c:109: undefined
reference to `__progname'
/opt/toolchain/usr/local/lib/libcrypto.a(bn_div.o): In function
`BN_div':
bn_div.o(.text+0x3bc): undefined reference to `__udivdi3'
/opt/toolchain/usr/local/lib/libcrypto.a(bn_word.o): In function
`BN_mod_word':
bn_word.o(.text+0x74): undefined reference to `__umoddi3'
/opt/toolchain/usr/local/lib/libcrypto.a(bn_asm.o): In function
`bn_div_words':
bn_asm.o(.text+0x5a0): undefined reference to `__udivdi3'
/opt/toolchain/usr/local/lib/libcrypto.a(b_print.o): In function
`fmtint':
b_print.o(.text+0x310): undefined reference to `__umoddi3'
b_print.o(.text+0x370): undefined reference to `__udivdi3'
make: *** [ssh] Error 1

I can make the __progname errors go away with a bit of code from Erik.
The rest I'm not sure what to do with.  I have a feeling I'm linking
glibc stuff somehow...

Any help would be great...thanks.

Dana
dana at linuxboxen.org




More information about the uClibc mailing list