Hi Rob, Your premise seems to be that my code (in Lib/GIS/Proj/Makefile.PL and Lib/Transform/Proj4/Makefile.PL) doesn't pass the relevant %PDL::Config contents through to Alien::Proj4. However, it in fact does, with the Alien::Proj4->import method, as documented in the Alien::Proj4 POD, which I'm assuming you've read.
You also seem to have the premise that @DEFAULT_INC and @DEFAULT_LIB need to have your perldl.conf vars there, but they don't, because they're only the default. The values Alien::Proj4 works off are @inc_locations and @lib_locations. So that we're definitely working off the same songsheet, could you help me by making a clean copy of the relevant git code, copying only your modified perldl.conf in, and trying that? Could you then put "warn"s in the Alien::Proj4->import method to make sure whether in fact I made a mistake and somehow it's not being called, and then also put "warn"s in Alien::Proj4->installed and Alien::Proj4->incflags and Alien::Proj4->libdir to see what's going on? Cheers, Ed -----Original Message----- From: sisyph...@optusnet.com.au Sent: Tuesday, March 31, 2015 3:37 AM To: Sisyphus Cc: pdl-devel Subject: Re: [Pdl-devel] Proj presently broken Oops ... failed to 'cc' the list. (Looks to me that I might not be on the pdl-devel list at this stage, so please 'cc' me. In the meantime, I'll make yet another attempt to subscribe to pdl-devel.) -----Original Message----- From: Ed Sent: Tuesday, March 31, 2015 3:08 AM To: sisyph...@optusnet.com.au Cc: pdl-devel Subject: Re: [Pdl-devel] Proj presently broken > Rob, could you help me figure why it's not working 100%? After setting > WITH_PROJ to undef, in inc/Alien/Proj4.pm, in sub installed, could you add > "warn"s between each of the statements to see which one it's deciding it > doesn't have? Aaah ... I was guessing that Alien::Proj4->installed *should* be false for me. (My guesswork is still clearly as crappy as it's always been.) The problem is that Proj4.pm's @DEFAULT_LIB and @DEFAULT_INC need to include @{$PDL::Config{PROJ_LIBS}} and (resp.) @{$PDL::Config{PROJ_INC}} - but they don't. I don't get bitten by the absence of @{$PDL::Config{PROJ_LIBS}} from @DEFAULT_LIB because my PROJ_LIBS directory is, as luck would have it, also in $Config{libpth}. But @{$PDL::Config{PROJ_INC}} is not found anywhere in the existing @DEFAULT_INC, and that's what causes check_lib(), and hence installed(), to return false. The eval() in check_lib() sets $@ to: Can't link/include C library 'proj_api.h', 'proj', aborting. Unfortunately, specifying "use PDL::Config;" in Alien/Proj4.pm is *not* the appropriate thing to do - as that results in a Config.pm that's a copy of the previously installed version of that module. One solution I can see is to have Alien/Proj4.pm parse perld.conf for the relevant PROJ_LIBS and PROJ_INC settings, for inclusion in @DEFAULT_LIB and @DEFAULT_INC. Is there a better way ? Cheers, Rob ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel