On Wed, Dec 28, 2011 at 7:20 PM, <[email protected]> wrote: > Trying to configure stunnel to execute althttpd to execute cgi in general, > fossil specifically > > > Next a hello world cgi c program. Not sure what the numbers mean, but > nothing happens. > > 2011-12-28 22:39:47 127.0.0.1 http://www.thomasstover.com/helloworld * > 350 0 0 0 0 0 0 1 > Mozilla/5.0_(Windows_NT_6.0;_WOW64;_rv:8.0)_Gecko/20100101_Firefox/8.0 * > > And a #! fossil cgi wrapper. no dice. > > 2011-12-28 22:53:16 127.0.0.1 http://www.thomasstover.com/fossiltestdjust* > 364 0 0 0 0 0 0 1 > Mozilla/5.0_(Windows_NT_6.0;_WOW64;_rv:8.0)_Gecko/20100101_Firefox/8.0 * > > Then I realized I'm getting hit with the chroot semantics again - wrapper > script paths etc. ... and that also means libraries. > > So I rebuilt the helloworld with static linkage > > #include <stdio.h> > int main(void) { > printf("Content-Type: text/plain;charset=us-ascii\n\n"); > printf("Hello world\n\n"); > return 0; > } > > gcc helloworld.c -static -o helloworld > > Which now does at least print hello world in the browser! Although it acts > like it is waiting for more output, then stops after several seconds. > > 2011-12-29 00:11:09 127.0.0.1 http://www.thomasstover.com/helloworld * > 200 350 137 0 0 0 0 0 1 > Mozilla/5.0_(Windows_NT_6.0;_WOW64;_rv:8.0)_Gecko/20100101_Firefox/8.0 * > > So do I now need to build fossil with static linkage to the libc, or have > I wondered into the woods? >
Yes. Rebuild fossil with --static. That's the way it is built on the Fossil website. > > > Also note that the -https 1 args still show http in the log file. > I'm not sure if that is a feature or a bug. My log file analysis scripts expect it so if I changed it, I'd also need to change my log file analysis scripts. > > Thanks for any help. I'll try to make some more comprehensive notes when I > get it cooking. > > > www.thomasstover.com > > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > -- D. Richard Hipp [email protected]
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

