I am trying to use the libwww , it compiles well -under the debugging version of XSB- (xsb-dbg) , but it doesn't work on the normal XSB version , so i just copied the *so files into the dir* of the normal XSB and it worked , however in both versions of XSB , when i try to execute any prolog code with libwww such as :
It would me give a bunch of warnings (about 10000 lines of this !!!)
[+Warning[XSB]: [Runtime/C] [C2P_STRING] Argument 2 must be a variable]
Well i searched where this message is defined and it was in cinterf.c and exactly with the func.
xsbbool is_var(prolog_term term)
The function itself seems okay , but i can't get into it , because i don't have the required exp* with XSB.
Anyway the real Error comes next with :
Error[XSB/Runtime/P]: [Miscellaneous] ++Error[XSB]: [Runtime/C] [LIBWWW_REQUEST] Request 1: Arg 4 (Result) must be unbound variable
However Arg 4 in the request is an unbound var* !!!
I tried to use the low lever debugger for XSB , but it seems just too scrambled , not very useful if your not exp. with XSB .My resort was Gdb with xsb-debug , but Gdb wouldn't run xsb-debug !!! (not the right format) I wonder what is the point of xsb-dbg if you can debug xsb with -T ? and you can't use a normal debugger .
Of course the same errors appear with different request types (fetch , rdf ...)
I am very desperate about this , so please give me a clue , any Ideas are welcome . I mean libwww seems to work from the outside very well and it is also new (2008) , the cinterface of XSB seems also to be working due to some tests using other packages.
I mean where should i look if this sort of warnings are appearing ? why is the var* not recognized ? and why there is 10000 lines of warnings , is there some kind of recursion ? I spent more than 4 hours in this , and i am running out of ideas ... ALL the warnings/ errors point out that the argument should be a variable .I managed to compile all the library's
So it must be the Cinterface .
PS :I am not using the multi-threaded engine of xsb.
Thanks a lot .
PS : I am working with Darko