I have recompiled mod_lisp2.c against Apache 2.2.8 for Windows using Visual C++ Express 2008. mod_lisp itself only needs the include files and libraries that are an optional part of the Apache binary installation, but I downloaded the Apache source (that includes Visual Studio 6 project files) so that I could check the compiler and linker settings.
My slightly modified mod_lisp2.c, the Visual C++ 9 project file and the Release build of the module are available in a .zip file. Please note the title of this blog when considering whether to use any of it.
The diff looks like this:
*** ../../download/programming/Other Lisp stuff/mod_lisp2 - svn.c Tue Apr 8 23:33:07 2008
--- mod_lisp2.c Mon Jun 2 18:15:31 2008
***************
*** 443,451 ****
{
char crlf[2] = {0xd, 0xa};
char length[16];
! snprintf(length, 16, "%x", n_bytes);
! apr_status_t status = write_lisp_data (socket, length, strlen(length));
if ( status == APR_SUCCESS)
{
status = write_lisp_data (socket, crlf, 2);
--- 443,453 ----
{
char crlf[2] = {0xd, 0xa};
char length[16];
! apr_status_t status;
!
! apr_snprintf(length, 16, "%x", n_bytes); // 2 Jun 08 JDP
! status = write_lisp_data (socket, length, strlen(length));
if ( status == APR_SUCCESS)
{
status = write_lisp_data (socket, crlf, 2);
Python Paste