sohottoday
24-02-2006, 12:42
hi all..
i try to use mipsel-uclibc-gcc compile ssh on debian
ive install zlib and openssl ...
debian:~/ssh/zlib-1.2.3# export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin
debian:~/ssh/zlib-1.2.3# export AR=mipsel-uclibc-ar
debian:~/ssh/zlib-1.2.3# export AS=mipsel-uclibc-as
debian:~/ssh/zlib-1.2.3# export CPP=mipsel-uclibc-cpp
debian:~/ssh/zlib-1.2.3# export CC=mipsel-uclibc-gcc
debian:~/ssh/zlib-1.2.3# export LD=mipsel-uclibc-ld
debian:~/ssh/zlib-1.2.3# export RANLIB=mipsel-uclibc-ranlib
debian:~/ssh/zlib-1.2.3# export STRIP=mipsel-uclibc-strip
debian:~/ssh/zlib-1.2.3# export NM=mipsel-uclibc-nm
debian:~/ssh/zlib-1.2.3# export OBJCOPY=mipsel-uclibc-objcopy
debian:~/ssh/zlib-1.2.3# export OBJDUMP=mipsel-uclibc-objdump
debian:~/ssh/zlib-1.2.3# export cross_compiling=yes
debian:~/ssh/zlib-1.2.3# ./configure -shared
debian:~/ssh/zlib-1.2.3# make
debian:~/ssh/zlib-1.2.3# make install
debian:~/ssh/openssl-0.9.8a# ./config -shared -no-asm
debian:~/ssh/openssl-0.9.8a# joe Makefile (change CC to mipsel-uclibc-gcc )
debian:~/ssh/openssl-0.9.8a# make
debian:~/ssh/openssl-0.9.8a# make install
then when i try to compile ssh , i got a lot error message
debian:~/ssh/openssh-4.3p2# ./configure -enable-shared -host=mipsel-linux
debian:~/ssh/openssh-4.3p2# make
..........
..........
make[1]: Entering directory `/root/ssh/openssh-4.3p2/openbsd-compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/ssh/openssh-4.3p2/openbsd-compat'
mipsel-uclibc-ld -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -rpath=/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full/lib -rpath-link=/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full/lib -lssh -lopenbsd-compat -lcrypto -lutil -lz -lcrypt -lresolv -lresolv
/opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-ld: warning: cannot find entry symbol __start; defaulting to 0000000000414e90
/usr/local/ssl/lib/libcrypto.a(bn_div.o): In function `BN_div':
bn_div.o(.text+0x42c): undefined reference to `__udivdi3'
/usr/local/ssl/lib/libcrypto.a(bn_word.o): In function `BN_mod_word':
bn_word.o(.text+0x90): undefined reference to `__umoddi3'
/usr/local/ssl/lib/libcrypto.a(bn_asm.o): In function `bn_div_words':
bn_asm.o(.text+0x618): undefined reference to `__udivdi3'
/usr/local/ssl/lib/libcrypto.a(b_print.o): In function `fmtint':
b_print.o(.text+0x40c): undefined reference to `__umoddi3'
b_print.o(.text+0x480): undefined reference to `__udivdi3'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.o(.text+0xa0): undefined reference to `dlopen'
dso_dlfcn.o(.text+0x180): undefined reference to `dlclose'
dso_dlfcn.o(.text+0x1e0): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.o(.text+0x328): undefined reference to `dlsym'
dso_dlfcn.o(.text+0x3a4): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.o(.text+0x554): undefined reference to `dlsym'
dso_dlfcn.o(.text+0x5d0): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.o(.text+0xc04): undefined reference to `dlclose'
.........
.........
can u guys tell how to solve this problem? ... thx
i try to use mipsel-uclibc-gcc compile ssh on debian
ive install zlib and openssl ...
debian:~/ssh/zlib-1.2.3# export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin
debian:~/ssh/zlib-1.2.3# export AR=mipsel-uclibc-ar
debian:~/ssh/zlib-1.2.3# export AS=mipsel-uclibc-as
debian:~/ssh/zlib-1.2.3# export CPP=mipsel-uclibc-cpp
debian:~/ssh/zlib-1.2.3# export CC=mipsel-uclibc-gcc
debian:~/ssh/zlib-1.2.3# export LD=mipsel-uclibc-ld
debian:~/ssh/zlib-1.2.3# export RANLIB=mipsel-uclibc-ranlib
debian:~/ssh/zlib-1.2.3# export STRIP=mipsel-uclibc-strip
debian:~/ssh/zlib-1.2.3# export NM=mipsel-uclibc-nm
debian:~/ssh/zlib-1.2.3# export OBJCOPY=mipsel-uclibc-objcopy
debian:~/ssh/zlib-1.2.3# export OBJDUMP=mipsel-uclibc-objdump
debian:~/ssh/zlib-1.2.3# export cross_compiling=yes
debian:~/ssh/zlib-1.2.3# ./configure -shared
debian:~/ssh/zlib-1.2.3# make
debian:~/ssh/zlib-1.2.3# make install
debian:~/ssh/openssl-0.9.8a# ./config -shared -no-asm
debian:~/ssh/openssl-0.9.8a# joe Makefile (change CC to mipsel-uclibc-gcc )
debian:~/ssh/openssl-0.9.8a# make
debian:~/ssh/openssl-0.9.8a# make install
then when i try to compile ssh , i got a lot error message
debian:~/ssh/openssh-4.3p2# ./configure -enable-shared -host=mipsel-linux
debian:~/ssh/openssh-4.3p2# make
..........
..........
make[1]: Entering directory `/root/ssh/openssh-4.3p2/openbsd-compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/ssh/openssh-4.3p2/openbsd-compat'
mipsel-uclibc-ld -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -rpath=/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full/lib -rpath-link=/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full/lib -lssh -lopenbsd-compat -lcrypto -lutil -lz -lcrypt -lresolv -lresolv
/opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-ld: warning: cannot find entry symbol __start; defaulting to 0000000000414e90
/usr/local/ssl/lib/libcrypto.a(bn_div.o): In function `BN_div':
bn_div.o(.text+0x42c): undefined reference to `__udivdi3'
/usr/local/ssl/lib/libcrypto.a(bn_word.o): In function `BN_mod_word':
bn_word.o(.text+0x90): undefined reference to `__umoddi3'
/usr/local/ssl/lib/libcrypto.a(bn_asm.o): In function `bn_div_words':
bn_asm.o(.text+0x618): undefined reference to `__udivdi3'
/usr/local/ssl/lib/libcrypto.a(b_print.o): In function `fmtint':
b_print.o(.text+0x40c): undefined reference to `__umoddi3'
b_print.o(.text+0x480): undefined reference to `__udivdi3'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.o(.text+0xa0): undefined reference to `dlopen'
dso_dlfcn.o(.text+0x180): undefined reference to `dlclose'
dso_dlfcn.o(.text+0x1e0): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.o(.text+0x328): undefined reference to `dlsym'
dso_dlfcn.o(.text+0x3a4): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.o(.text+0x554): undefined reference to `dlsym'
dso_dlfcn.o(.text+0x5d0): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.o(.text+0xc04): undefined reference to `dlclose'
.........
.........
can u guys tell how to solve this problem? ... thx