Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Problem building install kernel with ssh for NSLU2
I'm trying to build the install kernel for NSLU2 with ssh added to the
memory disk, but I have an error I can't figure out. I'll give a top
level overview here that hopefully will have enough information for
somebody to figure out - if not, please let me know what else you'd like
to see.
The error I get is towards the end of the "release" build, where it is
putting together the memory disk. The messages are:
/home/hayford/net/src/obj/destdir.evbarm/usr/lib/libcrypto.a(e_rc5.o):
In function `EVP_rc5_32_12_16_ecb': e_rc5.c:(.text+0x244): warning: RC5
is a patented algorithm; link against libcrypto_rc5.a
<snip...several more like this>
e_idea.c:(.text+0xd4): warning: IDEA is a patented algorithm; link
against libcrypto_idea.a
<snip...several more like this>
sshd.cro: In function `_crunched_sshd_stub':
auth2-krb5.c:(.text+0x2b2c): undefined reference to `request_init'
auth2-krb5.c:(.text+0x2b34): undefined reference to `sock_host'
auth2-krb5.c:(.text+0x2b3c): undefined reference to `hosts_access'
auth2-krb5.c:(.text+0x2b54): undefined reference to `refuse'
<snip...several more like this>
*** Failed command:
/home/hayford/net/src/obj/tooldir.Linux-2.6.23.15-137.fc8-i686/bin/armeb--netbsdelf-gcc
-Wl,-nostdlib -static -o ramdiskbin
-Wl,-rpath-link,/home/hayford/net/src/obj/destdir.evbarm/lib:/home/hayford/net/src/obj/destdir.evbarm/usr/lib
-L/home/hayford/net/src/obj/destdir.evbarm/lib
-B/home/hayford/net/src/obj/destdir.evbarm/usr/lib/
-B/home/hayford/net/src/obj/destdir.evbarm/usr/lib/ ramdiskbin.o cat.cro
chmod.cro cp.cro dd.cro df.cro ed.cro ln.cro ls.cro mkdir.cro mv.cro
pax.cro pwd.cro rm.cro rmdir.cro sh.cro stty.cro sync.cro disklabel.cro
fsck.cro fsck_ffs.cro ifconfig.cro init.cro mknod.cro mount.cro
mount_cd9660.cro mount_ffs.cro mount_kernfs.cro mount_msdos.cro
mount_nfs.cro newfs.cro ping.cro reboot.cro restore.cro route.cro
shutdown.cro slattach.cro swapctl.cro umount.cro ftp.cro gzip.cro
less.cro sed.cro tset.cro chown.cro chroot.cro sshd.cro sysinst.cro
progress.cro libhack.o -lssh -lbz2 -ledit -lutil -lcurses -ltermcap
-lrmt -lcrypto -lcrypt libcrypto_rc5.a libcrypto_idea.a -ll -lm -lz
-L/home/hayford/net/src/obj/destdir.evbarm/usr/lib
-L/home/hayford/net/src/obj/destdir.evbarm/usr/lib
I've added libcrypto_rc5.a and libcrypto_idea.a to the "list" file in
~/net/src/distrib/evbarm/instkernel/ramdisk, i.e., the LIBS line in that
file looks like:
LIBS libhack.o -lssh -lbz2 -ledit -lutil -lcurses -ltermcap -lrmt
-lcrypto -lcrypt libcrypto_rc5.a libcrypto_idea.a -ll -lm -lz
I also added sshd to the list of programs:
PROG usr/sbin/sshd
and I added the directory for sshd and the libraries to the SRCDIRS line.
SRCDIRS bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin
usr.bin/ssh regress/lib/libcrypto/idea regress/lib/libcrypto/rc5
I've also defined MKCRYPTO_IDEA and MKCRYPTO_RC5 to my environment
before compiliing:
$ env | grep CRYPTO
MKCRYPTO_IDEA=yes
MKCRYPTO_RC5=yes
The libraries that I think are the problem (libcrypto_rc5.a and
libcrypto_idea.a) are in the directory that is defined in the -L part of
the gcc command that failed:
$ cd /home/hayford/net/src/obj/destdir.evbarm/usr/lib
$ ls -la | grep crypto
-r--r--r-- 1 hayford hayford 2219260 2008-02-09 22:54 libcrypto.a
-r--r--r-- 1 hayford hayford 14806 2008-02-12 22:31 libcrypto_idea.a
-r--r--r-- 1 hayford hayford 15934 2008-02-12 22:31 libcrypto_idea_p.a
-r--r--r-- 1 hayford hayford 2480402 2008-02-09 22:54 libcrypto_p.a
-r--r--r-- 1 hayford hayford 2403210 2008-02-09 22:54 libcrypto_pic.a
-r--r--r-- 1 hayford hayford 15022 2008-02-12 22:31 libcrypto_rc5.a
-r--r--r-- 1 hayford hayford 16310 2008-02-12 22:31 libcrypto_rc5_p.a
lrwxrwxrwx 1 hayford hayford 26 2008-02-09 23:27 libcrypto.so ->
../../lib/libcrypto.so.3.2
lrwxrwxrwx 1 hayford hayford 26 2008-02-09 23:27 libcrypto.so.3 ->
../../lib/libcrypto.so.3.2
lrwxrwxrwx 1 hayford hayford 26 2008-02-09 23:27 libcrypto.so.3.2
-> ../../lib/libcrypto.so.3.2
That is pretty much the highlights. Any help or suggestions greatly
appreciated.
Thanks - Don
Home |
Main Index |
Thread Index |
Old Index