perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Win32 build warnings
Date Sat, 01 Apr 2006 22:47:23 GMT
With the current svn sources, the 'perl Makefile.PL'
stage on Win32 produces warnings:

Note (probably harmless):
   No library found for /nologo
Note (probably harmless):
   No library found for /subsystem:windows
Note (probably harmless):
   No library found for /dll
Note (probably harmless):
   No library found for /machine:I386
Note (probably harmless):
   No library found for /nologo
Note (probably harmless):
   No library found for /subsystem:windows
Note (probably harmless):
   No library found for /dll
Note (probably harmless):
   No library found for /machine:I386

This I believe is due to revision 387662 in
lib/Apache2/Build.pm, which involved adding
--ldflags to a link command - Windows is interpreting
these flags as libraries to add. This patch:

=======================================================
Index: Build.pm
===================================================================
--- Build.pm	(revision 390692)
+++ Build.pm	(working copy)
@@ -1117,7 +1117,9 @@
      # first use apu_config_path and then apr_config_path in 
order to
      # resolve the symbols right during linking
      for ($self->apu_config_path, $self->apr_config_path) {
-        if (my $link = $_ && -x $_ && qx{$_ --link-ld 
--ldflags --libs}) {
+        my $flags = '--link-ld --libs';
+        $flags .= ' --ldflags' unless (WIN32);
+        if (my $link = $_ && -x $_ && qx{$_ $flags}) {
              chomp $link;

              # Change '/path/to/libanything.la' to 
'-L/path/to -lanything'

===================================================================

fixes this for me.

-- 
best regards,
Randy

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


Mime
View raw message