You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Steve Hay <st...@uk.radan.com> on 2004/11/03 12:11:55 UTC

mp2 build error on Win32

Current CVS mp2 doesn't build any more on Win32 :(

I get this strange error about the Makefile shortly after libaprext.lib 
is built:

==========
        lib -out:..\..\..\blib\arch\auto\libaprext\libaprext.lib 
modperl_error.obj modperl_bucket.obj modperl_common_util.obj 
modperl_common_log.obj
Microsoft (R) Library Manager Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

        C:\apache2\perl5\bin\perl.exe -MExtUtils::Command -e chmod 755 
..\..\..\blib\arch\auto\libaprext\libaprext.lib
cp lib/Apache/PerlSections.pm blib\lib\Apache\PerlSections.pm
cp lib/ModPerl/TestRun.pm blib\lib\ModPerl\TestRun.pm
cp lib/Apache/BuildConfig.pm blib\lib\Apache\BuildConfig.pm
cp lib/ModPerl/Config.pm blib\lib\ModPerl\Config.pm
cp lib/ModPerl/FunctionMap.pm blib\lib\ModPerl\FunctionMap.pm
cp lib/ModPerl/Manifest.pm blib\lib\ModPerl\Manifest.pm
cp lib/Apache/PerlSections/Dump.pm blib\lib\Apache\PerlSections\Dump.pm
cp lib/APR/XSLoader.pm blib\lib\APR\XSLoader.pm
cp lib/Bundle/Apache2.pm blib\lib\Bundle\Apache2.pm
cp lib/ModPerl/Code.pm blib\lib\ModPerl\Code.pm
cp lib/ModPerl/CScan.pm blib\lib\ModPerl\CScan.pm
cp lib/Apache/Reload.pm blib\lib\Apache\Reload.pm
cp lib/ModPerl/MM.pm blib\lib\ModPerl\MM.pm
cp lib/ModPerl/ParseSource.pm blib\lib\ModPerl\ParseSource.pm
cp lib/Apache/ParseSource.pm blib\lib\Apache\ParseSource.pm
cp lib/Apache/compat.pm blib\lib\Apache\compat.pm
cp lib/Apache2.pm blib/lib/Apache2.pm
cp lib/Apache/SourceTables.pm blib\lib\Apache\SourceTables.pm
cp lib/ModPerl/BuildOptions.pm blib\lib\ModPerl\BuildOptions.pm
cp lib/typemap blib\arch/auto/Apache/typemap
cp lib/ModPerl/MethodLookup.pm blib\lib\ModPerl\MethodLookup.pm
cp lib/ModPerl/WrapXS.pm blib\lib\ModPerl\WrapXS.pm
cp lib/Apache/porting.pm blib\lib\Apache\porting.pm
cp lib/Apache/Build.pm blib\lib\Apache\Build.pm
AutoSplitting blib\lib\Apache\Build.pm (blib\lib\auto\Apache\Build)
cp lib/ModPerl/BuildMM.pm blib\lib\ModPerl\BuildMM.pm
cp lib/ModPerl/MapUtil.pm blib\lib\ModPerl\MapUtil.pm
cp lib/ModPerl/TypeMap.pm blib\lib\ModPerl\TypeMap.pm
cp lib/ModPerl/TestReport.pm blib\lib\ModPerl\TestReport.pm
cp lib/mod_perl.pm blib\lib\mod_perl.pm
cp lib/Apache/XSLoader.pm blib\lib\Apache\XSLoader.pm
cp lib/ModPerl/StructureMap.pm blib\lib\ModPerl\StructureMap.pm
cp lib/Apache/Status.pm blib\lib\Apache\Status.pm
Makefile(619) : fatal error U1036: syntax error : too many names to left 
of '='
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
==========

mp2-1.99_17 works fine, and I'm damned if I can see what the cause of 
the error is.  The next few lines of output from the 1.99_17 build are:

cp lib/Apache/TestRun.pm ..\blib\lib\Apache\TestRun.pm
cp lib/Apache/TestSmoke.pm ..\blib\lib\Apache\TestSmoke.pm
cp lib/Apache/TestTrace.pm ..\blib\lib\Apache\TestTrace.pm
cp lib/Apache/TestClient.pm ..\blib\lib\Apache\TestClient.pm
cp lib/Apache/TestMM.pm ..\blib\lib\Apache\TestMM.pm
cp lib/Apache/TestCommonPost.pm ..\blib\lib\Apache\TestCommonPost.pm
...

I've attached the top-level Makefile in case anyone else can see what 
the problem is.

Any ideas?  Anyone else having this problem?

I'm using perl-5.8.5 and Apache-2.0.50 on Win32.

- Steve


------------------------------------------------
This email has been scanned for viruses and content by the Radan Computational Webshield Appliances.

Re: [PATCH] Re: mp2 build error on Win32

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>>You need to look for "?=" appearing in a few of the Makefiles (not the
>>top-level one).  IIRC it's coming from a TEST_VERBOSE assignment, so it 
>>might be Test::Harness that's borked?  Anyways, replacing them with "="
>>seemed to let the Win32 build go through, but some of the tests failed 
>>for me.
>>
> 
> Spot on!
> 
> Apache-Test and ModPerl-Registry Makefile's both have:
> 
> TEST_VERBOSE ?= 0
> 
> Deleting the "?" fixes it.

blarg, that was me.  from the log:

  revision 1.42
  date: 2004/10/26 01:42:14;  author: geoff;  state: Exp;  lines: +1 -1
  make sure TEST_VERBOSE respects the environment, not just the current
  shell command.

  somebody shout if ?= isn't portable

anyway, I reverted TestMM.pm back to 1.42.  the issue I was trying to fix
was that if you do

  $ make test TEST_VERBOSE=1

TEST_VERBOSE is respected.  however, if you do

  $ export TEST_VERBOSE=1
  $ make test

TEST_VERBOSE is not respected.

a minor issue, sure, but one that was nagging me.

anyway, sorry for the late response, and thanks gozer for pinging me :)

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [PATCH] Re: mp2 build error on Win32

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> Makefile(619) : fatal error U1000: syntax error : ')' missing in macro 
> invocation
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.

rats, thanks for trying.

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [PATCH] Re: mp2 build error on Win32

Posted by Steve Hay <st...@uk.radan.com>.
Geoffrey Young wrote:

>>Apache-Test and ModPerl-Registry Makefile's both have:
>>
>>TEST_VERBOSE ?= 0
>>
>>Deleting the "?" fixes it.
>>    
>>
>
>ok, here is a different syntax, suggested by the GNU manual.  can you win32
>guys give it a whirl and see if it works?
>
Sorry -- it doesn't:

Makefile(619) : fatal error U1000: syntax error : ')' missing in macro 
invocation
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

- Steve



------------------------------------------------
This email has been scanned for viruses and content by the Radan Computational Webshield Appliances.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [PATCH] Re: mp2 build error on Win32

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> Apache-Test and ModPerl-Registry Makefile's both have:
> 
> TEST_VERBOSE ?= 0
> 
> Deleting the "?" fixes it.

ok, here is a different syntax, suggested by the GNU manual.  can you win32
guys give it a whirl and see if it works?

thanks

--Geoff

[PATCH] Re: mp2 build error on Win32

Posted by Steve Hay <st...@uk.radan.com>.
Joe Schaefer wrote:

>Steve Hay <st...@uk.radan.com> writes:
>
>  
>
>>Current CVS mp2 doesn't build any more on Win32 :(
>>    
>>
>
>[...]
>
>  
>
>>mp2-1.99_17 works fine, and I'm damned if I can see what the cause of 
>>the error is.  The next few lines of output from the 1.99_17 build are:
>>    
>>
>
>You need to look for "?=" appearing in a few of the Makefiles (not the
>top-level one).  IIRC it's coming from a TEST_VERBOSE assignment, so it 
>might be Test::Harness that's borked?  Anyways, replacing them with "="
>seemed to let the Win32 build go through, but some of the tests failed 
>for me.
>
Spot on!

Apache-Test and ModPerl-Registry Makefile's both have:

TEST_VERBOSE ?= 0

Deleting the "?" fixes it.

The attached patch removes the "?" from TestMM.pm, which seems to 
prevent it from appearing in either of the above Makefile's.  Not quite 
sure I understand how it affects ModPerl-Registry, but there you go...

- Steve


------------------------------------------------
This email has been scanned for viruses and content by the Radan Computational Webshield Appliances.

Re: mp2 build error on Win32

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Steve Hay <st...@uk.radan.com> writes:

> Current CVS mp2 doesn't build any more on Win32 :(

[...]

> mp2-1.99_17 works fine, and I'm damned if I can see what the cause of 
> the error is.  The next few lines of output from the 1.99_17 build are:

You need to look for "?=" appearing in a few of the Makefiles (not the
top-level one).  IIRC it's coming from a TEST_VERBOSE assignment, so it 
might be Test::Harness that's borked?  Anyways, replacing them with "="
seemed to let the Win32 build go through, but some of the tests failed 
for me.

Sorry I don't have a Win32 box in front of me to double-check,
so I'm only speaking from (week-old) memory.  Also I was testing
against httpd/apr HEAD, so I was expecting lots of problems
(esp wrt apxs, apr-1-config and apu-1-config), but there were 
actually only a few minor glitches with that.


-- 
Joe Schaefer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org