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