|  | 
 
| 各位大侠,怎样编译openssl库啊? 
 我从网上找到一篇文章,http://www.ucdot.org/article.pl? ... amp;amp;mode=thread。
 按照这篇文章打上补丁,编译出错。
 
 文章内容如下:
 Firstly,  download the patches from:
 
 http://ftp.snapgear.org/pub/patches/openssl-0.9.7c.diff
 http://ftp.snapgear.org/pub/patches/openssl-0.9.7c_linux_include.diff
 http://ftp.snapgear.org/pub/patches/openssl-0.9.7c_makefile.diff
 
 
 The patch is in 3 parts.
 
 Installing openssl:
 
 cd lib
 tar zxvf ~/tmp/openssl-0.9.7c.tar.gz
 mv openssl-0.9.7c libssl
 cd libssl
 patch -p1 < ~/tmp/openssl.diff
 
 The kernel needs to be patched because the way we set up our include
 paths means that the openssl components in the kernel conflict with the ones in the openssl directory.
 
 cd linux-2.4.x/include/openssl
 patch -p0 < ~/tmp/openssl_linux_include.diff
 
 Also you may want to use the openssl application.  This small patch
 fixes the makefile in that directory.
 
 cd user/openssl
 patch -p0 < openssl_makefile.diff
 
 You should be able to compile and build everything now :-)
 
 
 我用make lib_only编译的结果如下:
 make[4]: Leaving directory `/uClinux-dist/lib/libssl/crypto'
 make[3]: Leaving directory `/uClinux-dist/lib/libssl'
 + arm-elf-gcc -nodefaultlibs -O2 -g -fomit-frame-pointer -fno-builtin -DEMBED -I/uClinux-dist/lib/uClibc/include -I/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/uClinux-dist/linux-2.4.x/include -Wl,-elf2flt -s -shared -o libcrypto.so.0.9.7 -Wl,-S,-soname=libcrypto.so.0 -Wl,--whole-archive libcrypto.a -Wl,--no-whole-archive -L/uClinux-dist/lib/uClibc/lib -lc -lgcc
 libcrypto.so.0.9.7.elf2flt: In function `__uClibc_start_main':
 libcrypto.so.0.9.7.elf2flt(.text+0x9759c): undefined reference to `main'
 collect2: ld returned 1 exit status
 make[2]: *** [linux-shared] Error 1
 make[2]: Leaving directory `/uClinux-dist/lib/libssl'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory `/uClinux-dist/lib'
 make: *** [lib_only] Error 2
 
 
 有人成功添加ssl库吗?
 | 
 |