Pavel,
> -----Original Message-----
> From: Pavel Hlavnicka [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 05, 2000 1:40 PM
> To: Sablotron Mailing List
> Subject: Re: [Sab] XML-Sablotron 0.35 patch
>
>
> Hi John,
>
> thank you very much for your patch. I'm ready to add it into next
> release of XML-Sablotron.
Great.
>
> What exactly is the problem? Using VC4.2 all works fine for standard
> perl build. Do you use your own Perl build. Does error occur for both of
> multi-threaded and object builds? Can you tell me little bit more about
> you workaround? (What's spatial for PERL_OBJECT?)
I use a binary distribution of ActivePerl 522 (ActiveState - AS) and have on
hand Perl 5.6 built from sources (AS build 611). I did some more
experimenting with the defines and got it down to a simple !WIN32 to exclude
malloc.h. It still builds and tests properly. Without excluding malloc.h,
this code ...
//line 98 in malloc.h = /* Function prototypes */
_CRTIMP void * __cdecl calloc(size_t, size_t);
_CRTIMP void __cdecl free(void *);
_CRTIMP void * __cdecl malloc(size_t);
_CRTIMP void * __cdecl realloc(void *, size_t);
produces this error with AS 522:
Microsoft (R) Program Maintenance Utility Version 1.62.7022
Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
D:\Perl\bin\perl.exe -ID:\Perl\lib -ID:\Perl\lib
D:\Perl\lib\ExtUtils/xsubpp -typemap D:\Perl\lib\ExtUtils\typemap
Sablotron.xs >xstmp.c &&
D:\Perl\bin\perl.exe -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
xstmp.c Sablotron.c
cl.exe -c -I../include -Od -MD -DNDEBUG -TP -GX -DWIN32 -D_CONSOLE -DNO_
STRICT -DHAVE_DES_FCRYPT -DPERL_OBJECT -Od -MD -DNDEBUG -TP -GX -DVERSIO
N=\"
0.35\" -DXS_VERSION=\"0.35\" -ID:\Perl\lib\CORE Sablotron.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
Copyright (C) Microsoft Corp 1984-1997. All rights reserved.
Sablotron.c
D:\DevStudio\VC\INCLUDE\malloc.h(101) : error C2059: syntax error : '('
D:\DevStudio\VC\INCLUDE\malloc.h(102) : error C2059: syntax error : '('
D:\DevStudio\VC\INCLUDE\malloc.h(103) : error C2059: syntax error : '('
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
and this error in AS 611:
Microsoft (R) Program Maintenance Utility Version 1.62.7022
Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
G:\usr\bin\perl.exe -IG:\usr\lib -IG:\usr\lib
G:\usr\lib\ExtUtils/xsubpp
-typemap G:\usr\lib\ExtUtils\typemap Sablotron.xs > Sablotron.xsc &&
G:\usr\bi
n\perl.exe -IG:\usr\lib -IG:\usr\lib -MExtUtils::Command -e mv Sablotron.xsc
Sab
lotron.c
cl -c -I../include -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAV
E_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READF
IX -
O1 -MD -DNDEBUG -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" -IG:\usr\lib
\COR
E Sablotron.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
Copyright (C) Microsoft Corp 1984-1997. All rights reserved.
Sablotron.c
D:\DevStudio\VC\INCLUDE\malloc.h(101) : error C2059: syntax error : '('
D:\DevStudio\VC\INCLUDE\malloc.h(102) : error C2059: syntax error : '('
D:\DevStudio\VC\INCLUDE\malloc.h(103) : error C2059: syntax error : '('
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
>
> Thank you.
>
> It's great, thanks again. We're going to move our modules into CPAN in
> the near future. But we have first to fix few problems and improve
> documentation etc.
>
> Pavel
>
> --
> Pavel Hlavnicka
> Ginger Alliance Ltd.; Prague
> Czech Republic
>