Giter VIP home page Giter VIP logo

Comments (9)

shawnlaffan avatar shawnlaffan commented on July 18, 2024

These all look like issues with getting the dynamic libs from Alien:gdal.

Not sure if it is a system or share install, but it might be worth adding more debugging to the test suite. Something like this:

warn 'Alien::gdal install type is: ' . Alien::gdal->install_type;

Rebuilding Alien::gdal on each system takes a lot of resources, so I'd like to avoid uploading a new version of it until it's really necessary.

from geo-gdal-ffi.

shawnlaffan avatar shawnlaffan commented on July 18, 2024

The errors are also for Alien::gdal 1.11 and 1.13. Maybe there is something in that?

from geo-gdal-ffi.

shawnlaffan avatar shawnlaffan commented on July 18, 2024

Alien::gdal prints out its dynamic libs during testing, so we can cross check that way also.

As one example, the failing BSD rig has dynamic libs for Alien::gdal: http://www.cpantesters.org/cpan/report/81bf8cce-f448-11e8-acc3-94b892bdfc8e

This is during testing, though, and not the final installation location, so maybe something changes?

from geo-gdal-ffi.

ajolma avatar ajolma commented on July 18, 2024

One more http://www.cpantesters.org/cpan/report/17620bc0-fcce-11e8-8354-cb55eff47a06

from geo-gdal-ffi.

shawnlaffan avatar shawnlaffan commented on July 18, 2024

I think we need to instrument the tests to run code like that below and upload a dev release.

Alien::Base uses FFI::CheckLib to search for dynamic libs, so if a direct call returns an empty list then it is missing a dir in the path or there is an issue with FFI::CheckLib.

use FFI::CheckLib qw /find_lib/;

print find_lib (lib => 'gdal');

from geo-gdal-ffi.

shawnlaffan avatar shawnlaffan commented on July 18, 2024

It's just speculation, but I wonder if it is due to the require Alien::gdal call being inside the BEGIN block?

require PkgConfig;
PkgConfig->import;
require Alien::gdal;

I would normally expect this to affect all perl versions, though.

from geo-gdal-ffi.

shawnlaffan avatar shawnlaffan commented on July 18, 2024

I'm getting fails for Alien::freexl which are possibly related. The dynamic_libs, cflags and libs methods all return empty.
http://www.cpantesters.org/cpan/report/81a624fc-0e18-11e9-afbf-aec3b07506ca

There are similar failing cases for several other of my alien distros.

@plicease might have some sense of why an alien that compiles will have empty cflags, dynamic_libs etc.

from geo-gdal-ffi.

shawnlaffan avatar shawnlaffan commented on July 18, 2024

This was possibly caused by incomplete dynamic libs being listed due to dependencies.

If so then it might be fixed by shawnlaffan/perl-alien-gdal@0b19413

This is in Alien::gdal 1.15, which is now on cpan.

from geo-gdal-ffi.

shawnlaffan avatar shawnlaffan commented on July 18, 2024

This should be fixed now Alien::gdal updates the rpaths of the dynamic libraries.
shawnlaffan/perl-alien-gdal#22

from geo-gdal-ffi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.