I ran the PDL-2.007 build and PDL-2.007_14 with the
same settings for PROJ_LIBS and PROJ_INC.

The PDL-2.007 built successfully and the proj tests pass.

The PDL-2.007_14 failed to correctly detect the proj
install files and failed to compile due to PROJ4 link errors..

The output from the 'perl Makefile.PL' stage suggests that
the code handling the library location directory has changed,
hence the problem.

>From PDL-2.007:

>         PDL::GIS::Proj: Found /cygdrive/f/perl/local64/lib/libproj.a
>      Trying check for projUV...
>                 YES
>  Building PDL::GIS::Proj. Turn off WITH_PROJ if there are any problems
>
> Generating a Unix-style Makefile
> Writing Makefile for PDL::GIS::Proj
> Generating a Unix-style Makefile
> Writing Makefile for PDL::Lib::GIS
> Generating a Unix-style Makefile
> Writing Makefile for PDL::Transform::Cartography
>
>    Will forcibly try and build PDL::Transform::Proj4 on this system
>
>         PDL::Transform::Proj4: Found /cygdrive/f/perl/local64/lib/libproj.a
>      Trying check for projUV...
>      Carp.pm
> Carp/Heavy.pm*****************************************
> *****************************************
> Carp.pm
> Carp/Heavy.pm           YES
> Subroutine MY::postamble redefined at ./Makefile.PL line 212.
>  Building PDL::Transform::Proj4. Turn off WITH_PROJ if there are any
> problems
>
>
while the PDL-2.007_14 configure gives this:

>  Unrecognized argument in LIBS ignored: '"-L/cygdrive/f/perl/local64/lib"'
> Warning (mostly harmless): No library found for -lproj
> Unrecognized argument in LIBS ignored: '"-L/cygdrive/f/perl/local64/lib"'
> Warning (mostly harmless): No library found for -lproj
> Building PDL::GIS::Proj. Turn off WITH_PROJ if there are any problems
> Generating a Unix-style Makefile
> Writing Makefile for PDL::GIS::Proj
> Generating a Unix-style Makefile
> Writing Makefile for PDL::Lib::GIS
> Generating a Unix-style Makefile
> Writing Makefile for PDL::Transform::Cartography
>    Will forcibly try and build PDL::Transform::Proj4 on this system
> Building PDL::Transform::Proj4. Turn off WITH_PROJ if there are any
> problems
> Generating a Unix-style Makefile
> Writing Makefile for PDL::Transform::Proj4
>
>
which seems doubly broken because if it failed to find the library,
we shouldn't be forcing a build at all.  See below where I think the
problem may arise...

--Chris


On Thu, Apr 16, 2015 at 4:46 PM, Ed <ej...@hotmail.com> wrote:

>   Hi Chris,
>
> Thanks for this note. What values did BSLOADLIBS and EXTRALIBS get set to
> previously?
>
>

I was wrong about BSLOADLIBS, params set in PDL-2.007
were EXTRALIBS and LDLOADLIBS.  The top of the generated Makefile
suggests that it is a quoting problem in PDL-2.007_14:

> # This Makefile is for the PDL::GIS::Proj extension to perl.
> #
> # It was generated automatically by MakeMaker version
> # 6.86 (Revision: 68600) from the contents of
> # Makefile.PL. Don't edit this file, edit Makefile.PL instead.
> #
> #       ANY CHANGES MADE HERE WILL BE LOST!
> #
> #   MakeMaker ARGV: ()
> #
>
> #   MakeMaker Parameters:
>
> #     BUILD_REQUIRES => {  }
> #     CONFIGURE_REQUIRES => {  }
> #     INC => q["-I/cygdrive/f/chm/pdl/try/PDL-2.007_14/Basic/Core"
> "-I/cygdrive/f/perl/local64/include" "-Iinclude"]
> #     LIBS => [q["-L/cygdrive/f/perl/local64/lib" -lproj -lm]]
> #     MAN3PODS => { Proj.pm=>q[$(INST_MAN3DIR)/PDL::GIS::Proj.$(MAN3EXT)] }
> #     NAME => q[PDL::GIS::Proj]
> #     NO_MYMETA => q[1]
> #     OBJECT => q[Proj$(OBJ_EXT)]
> #     PM => { Proj.pm=>q[$(INST_LIBDIR)/Proj.pm] }
> #     PREREQ_PM => {  }
> #     TEST_REQUIRES => {  }
> #     TYPEMAPS =>
> [q[/cygdrive/f/chm/pdl/try/PDL-2.007_14/Basic/Core/typemap.pdl]]
> #     VERSION_FROM => q[Proj.pd]
> #     clean => { FILES=>q[Proj.xs Proj.pm Proj$(OBJ_EXT) Proj.c] }
> #     dist => { PREOP=>q[$(PERL) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
> -MPDL::Core::Dev -e pdlpp_mkgen $(DISTVNAME)] }
>
>


> Cheers,
> Ed
>
>  *From:* Chris Marshall <devel.chm...@gmail.com>
> *Sent:* Wednesday, April 15, 2015 6:09 PM
> *To:* pdl-devel@lists.sourceforge.net
> *Subject:* [Pdl-devel] RC1 doesn't build PROJ
>
>   PDL-2.007 used to build PROJ4 based components with
> the appropriate setting of the PROJ_LIBS and PROJ_INC
> in the perldl.conf file.  With the same settings, it now fails.
> In fact, the Makefile never sets the values of BSLOADLIBS
> or EXTRALIBS.  This regression needs to be fixed before
> PDL-2.008.
>
>
> This is a cygwin64/win7 system and the relevant library
> and includes are in
>
>         PROJ_LIBS => ['/cygdrive/f/perl/local64/lib'],
>         PROJ_INC => ['/cygdrive/f/perl/local64/include'],
>
>
> Thanks,
> Chris
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live
> exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>
> ------------------------------
> _______________________________________________
> pdl-devel mailing list
> pdl-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-devel
>
>
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to