2008-10-08 17:26:10 Again OpenVPN problem
Leandro Dardini (ITALY)
Message: 63290
I am very sorry, I see the OpenVPN compilation thread was already discussed some months ago, but even following the Hans Eklund recipe at http://www.vpx.nu/dokuwiki/doku.php?id=vpn_solutions I still get errors.
Kernel compilation went smooth, I patch the kernel, enable libssl library and compile it. I install the new kernel and this is ok.
I start with compilink openvpn, download the 2.0.9 version, unpack and start configuring with
./configure --host=bfin-uclinux --disable-lzo --with-ssl-headers=../../lib/libssl/include/ --with-ssl-lib=../../lib/libssl CPPFLAGS="-DUCLINUX" LDFLAGS="-Wl,-elf2flt"
but it exit with an error
...
configure: checking for libdl Library and Header files...
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen... no
checking for dlopen in -ldl... no
libdl library not found.
configure: checking for OpenSSL Crypto Library and Header files...
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking for EVP_CIPHER_CTX_init in -lcrypto... no
configure: error: OpenSSL Crypto library not found.
If I look, libraries seem present in the --with-ssl-lib directory
# ls -la -s ../../lib/libssl/lib*a
2344 -rw-r--r-- 1 root root 2395028 2008-10-08 22:19 ../../lib/libssl/libcrypto.a
416 -rw-r--r-- 1 root root 418598 2008-10-08 22:19 ../../lib/libssl/libssl.a
EVP_CIPHER_CTX_init seems to be present in libcrypto.a
# nm ../../lib/libssl/libcrypto.a | grep EVP_CIPHER_CTX_init
00000000 T EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
U EVP_CIPHER_CTX_init
Any hint? is there the ipkg package for openvpn available for download?
Leandro
QuoteReplyEditDelete
2008-10-08 17:36:44 Re: Again OpenVPN problem
Mike Frysinger (UNITED STATES)
Message: 63292
this isnt the forum for ipkg as none of those are maintained with the normal uclinux-dist
you have to read the config.log to figure out the real error
QuoteReplyEditDelete
2008-10-09 08:50:47 Re: Again OpenVPN problem
Leandro Dardini (ITALY)
Message: 63332
Poor me, I am getting old and repeating always the same mistake. I always forget it!
Thank you
Leandro
QuoteReplyEditDelete
2008-10-26 21:22:23 Re: Again OpenVPN problem
Vinh Nguyen (VIET NAM)
Message: 64209
@ Leandro Dardini
I faced the same problem
Could you tell me how to resolve it? I tried for several days and still stuck with it
Thanks.
QuoteReplyEditDelete
2009-04-04 05:16:58 Re: Again OpenVPN problem
David Lee (UNITED STATES)
Message: 72149
Has anyone made it work?
Thanks,
David
QuoteReplyEditDelete
2009-04-05 00:16:02 Re: Again OpenVPN problem
David Lee (UNITED STATES)
Message: 72156
Below is what I found related from config.log:
configure:9830: checking for openssl/evp.h
configure:9837: result: yes
configure:9842: checking for EVP_CIPHER_CTX_init in -lcrypto
configure:9872: bfin-uclinux-gcc -o conftest -g -O2 -DUCLINUX -I../../lib/libssl/include -I. -Wl,-elf2flt -L../../lib/libssl/ conftest.c -lcrypto >&5
../../lib/libssl//libcrypto.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
Please advise how to fix it.
Thanks.
David
QuoteReplyEditDelete
2009-04-05 04:38:30 Re: Again OpenVPN problem
Mike Frysinger (UNITED STATES)
Message: 72173
you cant mix FLAT and FDPIC file formats