[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] SSH Errors when compiling the kernel



Hello people.

I'm trying to get SSH to work in my XUP V2P, unsucessful ...

I have SSH, SSHD, inetd and zlib in the kernel. Telnet and ftp works great, but when I try to 'make' the kernel with SSH, it crash. As I searched the list, I found that ssh (wich I belive is Openssh ?)  needs the openssl to work (wich is an empty directory in CVS). With just openssl in the tree, I get these errors :

ucfront-gcc mb-gcc  -c -o versioning.o versioning.c -Os -g -fomit-frame-pointer -fno-common -fno-builtin -Wall   -msoft-float -mno-xl-soft-mul -mxl-soft-div  -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -DFTP -DVENDOR=\"Xilinx\" -DPRODUCT=\"uclinux-auto\" -DVERSION=\"3.2.0\" -Dnetflashmain=main
ucfront-gcc mb-gcc  -Wl,-elf2flt -o netflash tftpmain.o tftp.o tftpsubs.o http.o cmds.o cmdtab.o domacro.o ftp.o glob.o ftpmain.o ruserpass.o netflash.o versioning.o
make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/user/netflash'
make[2]: Entering directory `/home2/adi_mohr/uClinux-dist/user/openssl'
make[2]: *** No rule to make target `progs.pl', needed by `progs.h'.  Stop.
make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/user/openssl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home2/adi_mohr/uClinux-dist/user'
make: *** [subdirs] Error 1
-bash-3.00$



Well then, I dowloaded Openssl and apply the patches, as is in http://mailman.uclinux.org/pipermail/uclinux-dev/2001-November/005589.html, but then I got new errors :


make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/lib'
make[2]: Entering directory `/home2/adi_mohr/uClinux-dist/lib/libssl'
making all in crypto...
make[3]: Entering directory `/home2/adi_mohr/uClinux-dist/lib/libssl/crypto'
( echo "#ifndef MK1MF_BUILD"; \
echo "  /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
echo "  #define CFLAGS \"ucfront-gcc mb-gcc  -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall   -mso ft-float -mno-xl-soft-mul -mxl-soft-div  -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -I/home2/adi_mohr/uC linux-dist/tools/gcc-include -I/home2/adi_mohr/uClinux-dist/lib/libc/include -I/home2/adi_mohr/uClinux-dist/li b/libm -DNO_ERR -DNO_ASM -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall\""; \
echo "  #define PLATFORM \"linux-sparcv7\""; \
echo "  #define DATE \"`date`\""; \
echo "#endif" ) >buildinf.h
ucfront-gcc mb-gcc  -I. -I../include -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall   -msoft-float  -mno-xl-soft-mul -mxl-soft-div  -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -I/home2/adi_mohr/uClinux-di st/tools/gcc-include -I/home2/adi_mohr/uClinux-dist/lib/libc/include -I/home2/adi_mohr/uClinux-dist/lib/libm - DNO_ERR -DNO_ASM -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall   -c -o cryptlib.o cryptlib.c
In file included from /home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:9,
                 from cryptlib.c:59:
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdarg.h:3:28: machine/stdarg.h: No such file or directory
In file included from cryptlib.c:59:
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:125: error: parse error before "va_list"
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:126: error: parse error before "va_list"
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:127: error: parse error before "va_list"
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:129: error: parse error before "va_list"
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:130: error: parse error before "va_list"
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:131: error: parse error before "va_list"
/home2/adi_mohr/uClinux-dist/lib/libc/include/stdio.h:132: error: parse error before "va_list"
make[3]: *** [cryptlib.o] Error 1
make[3]: Leaving directory `/home2/adi_mohr/uClinux-dist/lib/libssl/crypto'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/lib/libssl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home2/adi_mohr/uClinux-dist/lib'
make: *** [subdirs] Error 1
-bash-3.00$


The part of the file with those errors is :

extern int vscanf __P ((__const char*, va_list));
extern int vfscanf __P ((FILE*, __const char*, va_list));
extern int vsscanf __P ((__const char*, __const char*, va_list));
extern int snprintf __P ((char *str, size_t size, __const char *format, ...));
extern int vprintf __P ((__const char*, va_list));
extern int vfprintf __P ((FILE*, __const char*, va_list));
extern int vsprintf __P ((char*, __const char*, va_list));
extern int vsnprintf __P ((char*, size_t, __const char*, va_list));
extern int scanf __P ((__const char *format, ...));
extern int fscanf __P ((FILE*, __const char*, ...));
extern int sscanf __P ((__const char *str, __const char *format, ...));


I think it is all right, since stdio.h is a library from uClinux, and not from Openssl.

I'm gonna try with a newer version of openssl (0.9.7c), as is in http://www.ucdot.org/article.pl?sid=03/07/30/0114226&mode=thread

But while I do that, I ask : am I missing something ? After all, I think the 0.9.5a should built ok, since some users in the list are using ssh ...

Regards,
Arthur.


Yahoo! Messenger com voz - Instale agora e faça ligações de graça.