On Thu, 26 Apr 2001 [EMAIL PROTECTED] wrote:

> i have succesfully compiled apache 1_3.19 under win 98 with vc6 
> and dsw project
> 
> I'm trying to compile mod_perl 1_25 under windows 98 the same way 
> i downloaded the source 1_25 and found the modperl.dsp 
> for vc++ compiling
> i followed the install.win32 notes but when compiling there are 
> missing files :
[ ... ]
> c:\apache_1.3.19\src\include\ap_config.h(114) : fatal error C1083: 
> Cannot open include file: 'os.h': No such file or directory
[ ... ]

Apache_1.3.19 changed the way that the header os.h was included.
To fix this, if you're building mod_perl.so from Visual Studio,
include
        C:\apache_1.3.19\src\os\win32
as well as
        C:\apache_1.3.19\src\include
in the list of include directories. If you're building this
from command line arguments, find the line in the mod_perl
top-level Makefile.PL

s!(/D "WIN32")!/I "$apache_inc" /I "$perl_inc" $1!;

and change this to (all on one line)

s!(/D "WIN32")!/I "$apache_inc" /I "$apache_inc/../os/win32" 
/I "$perl_inc" $1!;

Whichever way you choose, does this then build OK? If so,
the tests might fail for a different reason, due to another
change in apache_1.3.19 in setting the relative server root
to the path of the apache binary. As a temporary fix,
in t\docs\startup.pl and t\docs\rl.pl, find occurrences of
        $Apache::Server::CWD
and change this to the path to the mod_perl build directory
(eg, "C:\mod_perl-1.25"). 

best regards,
randy kobes

Reply via email to