develooper Front page | perl.perl5.porters | Postings from November 2003

Re: build failure in ext/SDBM_File on FreeBSD

Thread Previous
From:
Enache Adrian
Date:
November 11, 2003 17:18
Subject:
Re: build failure in ext/SDBM_File on FreeBSD
Message ID:
20031112021247.GA1185@ratsnest.hole
On Tue, Nov 11, 2003 a.d., I wrote:
> On Mon, Nov 10, 2003 a.d., Michael G Schwern wrote:
> > On Tue, Nov 11, 2003 at 08:23:37AM +0200, I wrote:
> > > I have the following line in ext/SDBM_File/sdbm/Makefile:
> > > linkext :: $(LINKTYPE)
> > >         $(NOECHO) $(NOOP)
> > > 
> > > where LINKTYPE is defined as 'dynamic'.
> > > That's with perl as of 21697.
> > > I managed to successfully finish the build by removing the '$(LINKTYPE)'.
> > 
> > Try this.
> 
> Sorry, it doesn't seem to work.

at ext/SDBM_File/Makefile:472, I have

subdirs ::
	$(NOECHO)cd sdbm && $(MAKE) -f $(FIRST_MAKEFILE) all $(PASTHRU)

and the PASTHRU contains a LINKTYPE=dynamic. That overrides the one defined
in sdbm/Makefile in your patch.

I'm not at all familiar with MakeMaker, but this seems to do the right
thing for me:

--- /arc/bleadperl/ext/SDBM_File/Makefile.PL	Sun Sep  2 05:11:02 2001
+++ ext/SDBM_File/Makefile.PL	Wed Nov 12 03:51:21 2003
@@ -20,7 +20,7 @@
 	      PERL_MALLOC_OK => 1,
              );
 
-sub MY::postamble {
+sub MY::subdirs {
   if ($^O =~ /MSWin32/ && Win32::IsWin95()) {
 	if ($Config{'make'} =~ /dmake/i) {
 	    # dmake-specific

??

Regards,
Adi

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About