On Thu, 7 Nov 2002, jheckel wrote:

> Hi
> since two weeks I can no longer compile the mod_perl-2.0 package from 
> the snapshot server without errors. The last "good" compilation was 
> 10/27/2002:-(
> 
> Apache version 2.0.44-dev, WinXP, Perl 5.6.1 Build 633.
> 
> My install commands:
> perl Makefile.PL MP_AP_PREFIX=f:/apache2
> nmake
> nmake install
> .....
> "C:\Programme\Microsoft Visual Studio\VC98\lib\msvcrt.lib" -def:Access.def
>     Creating library ..\..\..\blib\arch\auto\Apache\Access\Access.lib 
> and object
> ..\..\..\blib\arch\auto\Apache\Access\Access.exp
> Access.obj : error LNK2001: unresolved external symbol _newSVpvf
> ..\..\..\blib\arch\auto\Apache\Access\Access.dll : fatal error LNK1120: 
> 1 unresolved externals

The following patch,
==================================================================
Index: xs/Apache/Access/Apache__Access.h
===================================================================
RCS file: /home/cvspublic/modperl-2.0/xs/Apache/Access/Apache__Access.h,v
retrieving revision 1.6
diff -u -r1.6 Apache__Access.h
--- xs/Apache/Access/Apache__Access.h   22 Oct 2002 15:13:22 -0000      1.6
+++ xs/Apache/Access/Apache__Access.h   9 Nov 2002 05:06:47 -0000
@@ -60,7 +60,7 @@
     const char *errmsg;
     AV *config = newAV();
 
-    av_push(config, newSVpvf("%s %s", directive, val));
+    av_push(config, Perl_newSVpvf(aTHX_ "%s %s", directive, val));
 
     errmsg =
         modperl_config_insert_request(aTHX_ r,

=======================================================================
allows this symbol to be found, and the associated access
tests pass with perl-5.8 on Win32.

-- 
best regards,
randy

Reply via email to