Re: please help
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | tolj.org system architecture |
| Message-ID | <[email protected]> |
Ayham ............. schrieb:
> i have a problem with wtls
> with kannel 1.4
> am using ubuntu 7.10 server 64
> i configure it with command./configure
> --enable-docs --enable-start-stop-daemon --enable-ssl
> --with-ssl=/usr/lib/ssl --with-wtls=openssl
> --prefix=/usr/local/kannel
>
>
> i got no error and i wtls support i got :
>
> Configuring WTLS support ...
> checking for WTLS library... openssl
> checking for RSA_new in -lcrypto... yes
> checking openssl/objects.h usability... yes
> checking openssl/objects.h presence... yes
> checking for openssl/objects.h... yes
> checking openssl/rc5.h usability... yes
> checking openssl/rc5.h presence... yes
> checking for openssl/rc5.h... yes
>
> but i got errors in make
>
> gcc -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -I/usr/local/openssl/lib/include -rdynamic -o gw/wapbox gw/wapbox.o libgw.a libwmlscript.a libwap.a libgwlib.a -lssl -lrt -lresolv -lnsl -lm -lpthread -L/usr/lib -lxml2 -L/usr/local/openssl/lib/lib -lcrypto -lssl -L/usr/local/ssl/lib -lcrypto
> libwap.a(wtls_statesupport.o): In function `wtls_encrypt_rc5':
> /home/user/kannel-snapshot/wap/wtls_statesupport.c:410: undefined reference to `RC5_32_set_key'
> /home/user/kannel-snapshot/wap/wtls_statesupport.c:416: undefined reference to `RC5_32_cbc_encrypt'
> /home/user/kannel-snapshot/wap/wtls_statesupport.c:432: undefined reference to `RC5_32_cbc_encrypt'
> libwap.a(wtls_statesupport.o): In function `wtls_decrypt_rc5':
> /home/user/kannel-snapshot/wap/wtls_statesupport.c:347: undefined reference to `RC5_32_set_key'
> /home/user/kannel-snapshot/wap/wtls_statesupport.c:355: undefined reference to `RC5_32_cbc_encrypt'
> /home/user/kannel-snapshot/wap/wtls_statesupport.c:373: undefined reference to `RC5_32_cbc_encrypt'
> collect2: ld returned 1 exit status
> make: *** [gw/wapbox] Error 1
the issue here is the concurrency problem between your distro's openssl package
and the one you have installed at /usr/local/opsnessl.
The references ARE defined in libcrypto., but the -L/usr/lib that is added for
libxml2 support is causing the linker to pick the distro's /usr/lib/libcrypto.a
in favor of /usr/local/openssl/lib/libcrypto.a.
I will need to check configure.in to change this. For a quick workaround, please
edit your Makefile and remove the -L/usr/lib while building the binaries.
In any case, the WTLS support within Kannel has never been finalized. So it's
most likely that you won't be able to use it in production environments.
Stipe
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------