Have a look at fastcgi -
http://www.akbkhome.com/svn/rooscript/src/fcgi.d
http://www.akbkhome.com/svn/rooscript/src/fastcgi/

Ignore the licence in fcgi.d - that only relates to dmdscript related code - the fastcgi implementation is BSD style (with no restrictions)

Regards
Alan

Justin Johansson wrote:
Seeing this topic discussed here before but unable to ascertain a
definitive answer on the issue, please forgive me for asking again.

Is there any technical reason (e.g. position dependent code) why DMD
1.0 + Phobos cannot be used to build an Apache HTTPD server module as
a linux shared object (.so)?  I've tried linking some D + C code
together (the C code already being working apache module) and have
encountered unresolved symbol issues (which undoubtedly is no
surprise).



There was some previous report that gcd would cut it, but for this
project I need to stick with DMD or my D project will be hosed.  I
dread the thought of going back to Tomcat + Java.

Now I've read how to build a Windows DLL with D and well understand
the GC mechanics.  If its just a matter of hacking the runtime (CRT)
startup code I'm prepared to get my hands dirty but need some hints
to get there.

Alternative perhaps is to link the D module statically into the
Apache core but this doesn't fit well having to distribute a custom
build of Apache server.

Any hints or help on this mercy assignment would be much appreciated.


Again my apologies if this topic has been definitively dealt with
before on this forum.

Thanks.

Reply via email to