Skip Menu |
 

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 21492
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.57
Fixed in: (no value)



Subject: Will not install when INC is set.
Download (untitled) / with headers
text/plain 3.7k
I just installed Alien::wxWidgets 0.21 and let it build wxwidgets. Then I ran make on Wx. Everything ran fine up until this point below. As you can see the first (and all previous) g++ invocations it includes the Alien::wxWidgets installed libraries and headers. Second g++ invocation it does not and then with the exploding. The reason appears to be because I ran with "perl Makefile.PL INC=-I/sw/include LIBS=-L/sw/lib" which is my default (to include headers and libraries installed via fink). The resulting top level Makefile has its INC set to -I/sw/include and does not include the Alien headers. The other Makefiles have the correct INC. Wx should prepend to a provided INC rather than allow it to completely override. This is with MakeMaker 6.30_03 and 6.30. I was able to work around this problem by running Makefile.PL manually without INC or LIBS set. cp lib/Wx/FS.pm ../../blib/lib/Wx/FS.pm /usr/local/perl/5.8.8/bin/perl /usr/local/perl/5.8.8/lib/ExtUtils/xsubpp -noprototypes -nolinenumbers -typemap /usr/local/perl/5.8.8/lib/ExtUtils/typemap -typemap ../../typemap -typemap typemap FS.xs > FS.xsc && mv FS.xsc FS.c g++ -c -I. -I../.. -I/usr/local/lib/site_perl/5.8.8/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_6_3/lib/wx/include/mac-ansi-release-2.6 -I/usr/local/lib/site_perl/5.8.8/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_6_3/include/wx-2.6 -UWX_PRECOMP -O3 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-I/usr/local/perl/5.8.8/lib/darwin-thread-multi-2level/CORE" -DWXPL_EXT -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA FS.c ../../cpp/v_cback.h:40: warning: 'unused' attribute ignored Running Mkbootstrap for Wx::FS () chmod 644 FS.bs rm -f ../../blib/arch/auto/Wx/FS/FS.bundle LD_RUN_PATH="/usr/local/lib/site_perl/5.8.8/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_6_3/lib" g++ -L/sw/lib -bundle -undefined dynamic_lookup FS.o -o ../../blib/arch/auto/Wx/FS/FS.bundle \ -L/usr/local/lib/site_perl/5.8.8/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_6_3/lib -lwx_base_carbon_net-2.6 -lwx_mac_core-2.6 -lwx_base_carbon-2.6 \ chmod 755 ../../blib/arch/auto/Wx/FS/FS.bundle cp FS.bs ../../blib/arch/auto/Wx/FS/FS.bs chmod 644 ../../blib/arch/auto/Wx/FS/FS.bs cp SplashFast.pm ../../../blib/lib/Wx/Perl/SplashFast.pm Manifying ../../../blib/man3/Wx::Perl::SplashFast.3 cp Carp.pm ../../../blib/lib/Wx/Perl/Carp.pm Manifying ../../../blib/man3/Wx::Perl::Carp.3 cp TextValidator.pm ../../../blib/lib/Wx/Perl/TextValidator.pm Manifying ../../../blib/man3/Wx::Perl::TextValidator.3 /usr/local/perl/5.8.8/bin/perl /usr/local/perl/5.8.8/lib/ExtUtils/xsubpp -nolinenumbers -noprototypes -typemap /usr/local/perl/5.8.8/lib/ExtUtils/typemap -typemap typemap Wx.xs > Wx.xsc && mv Wx.xsc Wx.c g++ -c -I/sw/include -UWX_PRECOMP -O3 -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" "-I/usr/local/perl/5.8.8/lib/darwin-thread-multi-2level/CORE" -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA Wx.c In file included from Wx.c:32: cpp/wxapi.h:21:21: error: wx/defs.h: No such file or directory cpp/wxapi.h:23:24: error: cpp/compat.h: No such file or directory cpp/wxapi.h:26:2: error: #error wxWindows 2.2.x and 2.3.x are no longer supported by wxPerl cpp/wxapi.h:33:27: error: cpp/chkconfig.h: No such file or directory cpp/wxapi.h:80:25: error: cpp/helpers.h: No such file or directory Wx.c:34:23: error: wx/window.h: No such file or directory Wx.c:35:23: error: wx/module.h: No such file or directory In file included from Wx.c:65: cpp/helpers.h:16:23: error: wx/object.h: No such file or directory cpp/helpers.h:17:21: error: wx/list.h: No such file or directory cpp/helpers.h:18:23: error: wx/gdicmn.h: No such file or directory cpp/helpers.h:20:25: error: wx/dynarray.h: No such file or directory cpp/helpers.h:21:23: error: wx/arrstr.h: No such file or directory ...etc...
Subject: Makefile
Download Makefile
application/octet-stream 43.5k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #21492] Will not install when INC is set.
Date: Thu, 14 Sep 2006 21:45:33 +0200
To: bug-Wx [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
Download (untitled) / with headers
text/plain 1.5k
On Thu, 14 Sep 2006 11:20:14 -0400 "Michael_G_Schwern via RT" <bug-Wx@rt.cpan.org> wrote: Show quoted text
> > Thu Sep 14 11:20:13 2006: Request 21492 was acted upon. > Transaction: Ticket created by MSCHWERN > Queue: Wx > Subject: Will not install when INC is set. > Broken in: 0.57 > Severity: Important > Owner: Nobody > Requestors: MSCHWERN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21492 > > > > I just installed Alien::wxWidgets 0.21 and let it build wxwidgets. Then > I ran make on Wx. Everything ran fine up until this point below. As > you can see the first (and all previous) g++ invocations it includes the > Alien::wxWidgets installed libraries and headers. Second g++ invocation > it does not and then with the exploding. > > The reason appears to be because I ran with "perl Makefile.PL > INC=-I/sw/include LIBS=-L/sw/lib" which is my default (to include > headers and libraries installed via fink). The resulting top level > Makefile has its INC set to -I/sw/include and does not include the Alien > headers. The other Makefiles have the correct INC. > > Wx should prepend to a provided INC rather than allow it to completely > override.
I agree. Would you mind fixing ExtUtils::MakeMaker::parse_args ($self->{ARGS}{uc $name} = $self->{uc $name} = $value;) not to stomp on CONFIGURE-derived values? :-) Show quoted text
> This is with MakeMaker 6.30_03 and 6.30. > > I was able to work around this problem by running Makefile.PL manually > without INC or LIBS set.
Thanks! Mattia


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.