login | register
Mon 08 of Sep, 2008 [06:12 UTC]

voip-info.org

dongdongk

User Page

gnuTLS not installed

Q: I see these error message in the CLI, what is wrong? "res_jabber.c:1504 aji_recv_loop: JABBER: socket read error" and "res_jabber.c:482 aji_act_hook: gnuTLS not installed."

A1: I had installed iksemel (XML parsing library for Jabber) from an rpm package, and i guess it had been compiled without GNUTLS being included. i wrote a test program calling a gnutls function call and it failed. So I downloaded iksemel source, compiled it and ran the same test program again, and this time it returned the int value from the function call that i was expecting. Now, "jabber show connected" shows the google talk account as connected.

A2: I was getting a similar problem on ubuntu. It keep saying GnuTLS not installed. After much debugging, we checked the config.log for iksemel-1.2 and observed that the following:
checking for libgnutls-config 
checking for libgnutls - version >= 0.1.0 
were failing. The fix was to download the source for libgnuTLS and issue a recompile

A3: This works for me, during iksemel source compilation, specify the --with-gnutls option in ./configure.

           ./configure --with-gnutls 
           make 
           make check 
           make install 

A4: This is my testing. Create test.c
$vi test.c

'#include <stdlib.h>
'#include <stdio.h>
'#include <iksemel.h>
int main()
{
       printf("test iks_has_tls\n\r");
       if(iks_has_tls())
               printf("iks_has_tls is 1\n\r");
       else
               printf("iks_has_tls is 0\n\r");
       return 0;
}


$gcc -liksemel -o test test.c
run ./test if out iks_has_tls is 0, then gnutls need recompile .

$wget http://www.gnu.org/software/gnutls/releases/gnutls-1.7.15.tar.bz2
recompile gnutls
$tar -jxvf gnutls-1.7.15.tar.bz2
$cd gnutls-1.7.15
$./configure --prefix=/usr
$make
$make install

get iksemel from svn
$svn checkout http://svn.uludag.org.tr/projeler/iksemel iksemel
$cd iksemel
$./configure --prefix=/usr --with-libgnutls-prefix=/usr --with-gnutls
$make
$make install

Then run ./test ,I get the right out "iks_has_tls is 1". Good luck!! haha

User Information

dongdongk

Login
dongdongk
Real Name
wangdong
Member since
Tuesday 07 of August, 2007
Last Login
Monday 17 of September, 2007 [03:42:17 UTC]

Content List

Select Content Type
You can restrict the content listing to a given content type or apply a filter on content title.
Available Content [ 2 ]
IDTitle ascendingContent TypeAuthorMost recent editorLast Modified
42122epbxWiki PagedongdongkdongdongkTue 07 of Aug, 2007
42121dongdongkUser InformationdongdongkdongdongkWed 08 of Aug, 2007