Skip Menu |

This queue is for tickets about the Geo-Shapelib CPAN distribution.

Report information
The Basics
Id: 19132
Status: resolved
Priority: 0/
Queue: Geo-Shapelib

People
Owner: ari.jolma [...] gmail.com
Requestors: elubarsky [...] gmail.com
Cc:
AdminCc:

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



Subject: Compilation failure on Windows
ActiveState's compilation for Windows fails with cp Shapelib/contrib/makefile.vc blib\lib\Geo\Shapelib/contrib/makefile.vc cp Shapelib/ChangeLog blib\lib\Geo\Shapelib/ChangeLog cmakefile(314) : fatal error U1033: syntax error : '$(AR)' unexpected Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. It seems that nmake is whinging about an extra space after the libshp line. I've also added a runtime check to use either "lib" or "ar" Makefile attached (compiles under Visual Studio 2005 - not tested under linux)
Subject: Makefile.PL
use ExtUtils::MakeMaker; $Verbose = 1; my @incdirs = ('/usr/include','/usr/local/include'); my $incs = ''; foreach (@incdirs) { $incs .= " -I$_"; } WriteMakefile( NAME => 'Geo::Shapelib::shputils', INC => $incs, # for GNU Linux use this: DEFINE => '-ggdb -Wall -DDEBUG', # for W2k Visual Studio 6 use this: # DEFINE => '-ggdb -DDEBUG', clean => {'FILES' => 'libshp$(LIB_EXT)'}, ); sub MY::top_targets { my $libcmd; if ($^O =~ /win32/i) { # for W2k Visual Studio 6 use this: $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; } else { # for GNU Linux use this: $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; } ' pure_all :: all :: static static :: libshp$(LIB_EXT) '. 'libshp$(LIB_EXT) :: $(O_FILES) '. $libcmd . ' $(RANLIB) libshp$(LIB_EXT) '; }
From: elubarsky [...] gmail.com
fixed bug in Makefile.PL
use ExtUtils::MakeMaker; $Verbose = 1; my @incdirs = ('/usr/include','/usr/local/include'); my $incs = ''; foreach (@incdirs) { $incs .= " -I$_"; } if ($^O =~ /win32/i) { # for visual studio $define = '-ggdb -DDEBUG'; } else { # for linux $define = '-ggdb -Wall -DDEBUG'; } WriteMakefile( NAME => 'Geo::Shapelib::shputils', INC => $incs, DEFINE => $define, clean => {'FILES' => 'libshp$(LIB_EXT)'}, ); sub MY::top_targets { my $libcmd; if ($^O =~ /win32/i) { # for W2k Visual Studio 6 use this: $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; } else { # for GNU Linux use this: $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; } ' pure_all :: all :: static static :: libshp$(LIB_EXT) '. 'libshp$(LIB_EXT) :: $(O_FILES) '. $libcmd . ' $(RANLIB) libshp$(LIB_EXT) '; }
Subject: Re: [rt.cpan.org #19132] Compilation failure on Windows
Date: Wed, 17 May 2006 10:50:46 +0300
To: bug-Geo-Shapelib [...] rt.cpan.org
From: Ari Jolma <ari.jolma [...] tkk.fi>
The attached Makefile.PL is not from the latest version. And I don't see any point in this: ($libcmd ends up exactly the same??) sub MY::top_targets { my $libcmd; if ($^O =~ /win32/i) { # for W2k Visual Studio 6 use this: $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; } else { # for GNU Linux use this: $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; } Regards, Ari Jolma Guest via RT kirjoitti: Show quoted text
> Sun May 07 05:53:31 2006: Request 19132 was acted upon. > Transaction: Ticket created by guest > Queue: Geo-Shapelib > Subject: Compilation failure on Windows > Owner: Nobody > Requestors: elubarsky@gmail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=19132 > > > > ActiveState's compilation for Windows fails with > > cp Shapelib/contrib/makefile.vc blib\lib\Geo\Shapelib/contrib/makefile.vc > cp Shapelib/ChangeLog blib\lib\Geo\Shapelib/ChangeLog > cmakefile(314) : fatal error U1033: syntax error : '$(AR)' unexpected > Stop. > NMAKE : fatal error U1077: 'cd' : return code '0x2' > Stop. > > It seems that nmake is whinging about an extra space after the libshp line. > I've also added a runtime check to use either "lib" or "ar" > > Makefile attached (compiles under Visual Studio 2005 - not tested under > linux)
-- Prof. Ari Jolma Kartografia ja Geoinformatiikka / Cartography and Geoinformatics Teknillinen Korkeakoulu / Helsinki University of Technology tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma
From: elubarsky [...] gmail.com
Hi Sorry about this - now compiles under both Visual Studio 6 and Linux.. The version I updated to pass the compiler-specific flags was 0.20 This is pretty messy but I haven't figured out anything better Eugene On Wed May 17 03:55:13 2006, ari.jolma@tkk.fi wrote: Show quoted text
> The attached Makefile.PL is not from the latest version. > > And I don't see any point in this: ($libcmd ends up exactly the > same??) > > sub MY::top_targets { > my $libcmd; > if ($^O =~ /win32/i) { > # for W2k Visual Studio 6 use this: > $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; > } else { > # for GNU Linux use this: > $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; > } > > Regards, > > Ari Jolma > > Guest via RT kirjoitti:
> > Sun May 07 05:53:31 2006: Request 19132 was acted upon. > > Transaction: Ticket created by guest > > Queue: Geo-Shapelib > > Subject: Compilation failure on Windows > > Owner: Nobody > > Requestors: elubarsky@gmail.com > > Status: new > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=19132 > > > > > > > ActiveState's compilation for Windows fails with > > > > cp Shapelib/contrib/makefile.vc
> blib\lib\Geo\Shapelib/contrib/makefile.vc
> > cp Shapelib/ChangeLog blib\lib\Geo\Shapelib/ChangeLog > > cmakefile(314) : fatal error U1033: syntax error : '$(AR)'
> unexpected
> > Stop. > > NMAKE : fatal error U1077: 'cd' : return code '0x2' > > Stop. > > > > It seems that nmake is whinging about an extra space after the
> libshp line.
> > I've also added a runtime check to use either "lib" or "ar" > > > > Makefile attached (compiles under Visual Studio 2005 - not tested
> under
> > linux)
> >
use ExtUtils::MakeMaker; $Verbose = 1; my @incdirs = ('/usr/include','/usr/local/include'); my $incs = ''; foreach (@incdirs) { $incs .= " -I$_"; } WriteMakefile( NAME => 'Geo::Shapelib::shputils', INC => $incs, # for GNU Linux use this: DEFINE => '-ggdb -Wall -DDEBUG', # for W2k Visual Studio 6 use this: # DEFINE => '-ggdb -DDEBUG', clean => {'FILES' => 'libshp$(LIB_EXT)'}, ); sub MY::top_targets { ' pure_all :: all :: static static :: libshp$(LIB_EXT) libshp$(LIB_EXT): $(O_FILES) # for GNU Linux use this: $(AR) cr libshp$(LIB_EXT) $(O_FILES) # for W2k Visual Studio 6 use this: # $(AR) /OUT:libshp$(LIB_EXT) $(O_FILES) $(RANLIB) libshp$(LIB_EXT) '; }
From: elubarsky [...] gmail.com
argh, had the wrong file again On Thu May 18 10:11:34 2006, guest wrote: Show quoted text
> Hi > > Sorry about this - now compiles under both Visual Studio 6 and Linux.. > The version I updated to pass the compiler-specific flags was 0.20 > > This is pretty messy but I haven't figured out anything better > > > Eugene >
use ExtUtils::MakeMaker; $Verbose = 1; my @incdirs = ('/usr/include','/usr/local/include'); my $incs = ''; foreach (@incdirs) { $incs .= " -I$_"; } if ($^O =~ /win32/i) { # for visual studio $define = '-DDEBUG'; } else { # for linux $define = '-ggdb -Wall -DDEBUG'; } WriteMakefile( NAME => 'Geo::Shapelib::shputils', INC => $incs, DEFINE => $define, clean => {'FILES' => 'libshp$(LIB_EXT)'}, ); sub MY::top_targets { my $libcmd; if ($^O =~ /win32/i) { # for W2k Visual Studio 6 use this: $libcmd = '$(AR) /OUT:libshp$(LIB_EXT) $(O_FILES)'; } else { # for GNU Linux use this: $libcmd = '$(AR) cr libshp$(LIB_EXT) $(O_FILES)'; } ' pure_all :: all :: static static :: libshp$(LIB_EXT) libshp$(LIB_EXT) :: $(O_FILES) '. $libcmd . ' $(RANLIB) libshp$(LIB_EXT) '; }