Dear all,
As already pointed out the problem with PiLLoW is in save/1-2. Since SICStus 3.7 and 3.7.1 do not include save/1-2 PiLLoW was based we have to use save_program/1-2.
I used PiLLoW and SICStus 3.7.1 in our project on rewriting aggregate queries using views and changed a code of PiLLoW (html.pl) in the following way.
my_save(Name,Return,EntryPoint):- save_program(Name,my_goal(Name,EntryPoint)), Return = 0. my_goal(Name,EntryPoint) :- boot_form(1,Name,EntryPoint).
save_cgi_bin(Name,EntryPoint) :- cgi_bin_dir(BinDir), atom_concat(BinDir,Name,FullName), my_save(FullName,Return,EntryPoint), boot_form(Return,FullName,EntryPoint).
save_cgi(Name,EntryPoint) :- my_save(Name,Return,EntryPoint), boot_form(Return,Name,EntryPoint).
Now in order to create cgi_bin's save_cgi and save_cgi_bin may be used as usual.
Try it, probably this solution will fit your purposes as well.
Best regards, Alexander Serebrenik