> ./configure --with-wtls=openssl --disable-docs > > when I type make, everything is OK until I get the following : > > gcc -D_REENTRANT=1 -I. -g -O2 -DBROKEN_PTHREADS=1 > -I/usr/include/libxml2 > -I/usr/local/ssl/include -o gw/wapbox gw/wapbox.o libgw.a > libwmlscript.a > libwap.a libgwlib.a -lssl -lpthread -lresolv -lnsl -lm > -L/usr/lib -lxml2 > -lz -lm -L/usr/local/ssl/lib -lcrypto -lssl > -L/usr/local/ssl/lib -lcrypto > libwap.a(wtls_statesupport.o): In function `wtls_decrypt_rc5': > /home/marpate1/gateway-1.2.0/wap/wtls_statesupport.c:291: undefined > reference to `RC5_32_set_key' > /home/marpate1/gateway-1.2.0/wap/wtls_statesupport.c:299: undefined > reference to `RC5_32_cbc_encrypt' > /home/marpate1/gateway-1.2.0/wap/wtls_statesupport.c:317: undefined > reference to `RC5_32_cbc_encrypt' > libwap.a(wtls_statesupport.o): In function `wtls_encrypt_rc5': > /home/marpate1/gateway-1.2.0/wap/wtls_statesupport.c:354: undefined > reference to `RC5_32_set_key' > /home/marpate1/gateway-1.2.0/wap/wtls_statesupport.c:360: undefined > reference to `RC5_32_cbc_encrypt' > /home/marpate1/gateway-1.2.0/wap/wtls_statesupport.c:376: undefined > reference to `RC5_32_cbc_encrypt' > collect2: ld returned 1 exit status > make: *** [gw/wapbox] Error 1 > > Any ideas?
One possibility is that because RC5 is not a 'free' algorithm (RSA hold some IP rights in the US and maybe elsewhere), your OpenSSL build did not have RC5 support enabled by default. You should at least check that OpenSSL is built with RC5 support at this stage. And as you can see from above, WTLS needs RC5...
