GeoTools
  1. GeoTools
  2. GEOT-4104

Build failure with UnsatisfiedLinkError in imagio-ext-gdal

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 8.0-RC1
    • Fix Version/s: 8.0-RC2
    • Labels:
      None
    • Environment:

      Description

      Build of imagio-ext-gdal passes in Maven 2 / 32-bit but fails in Maven 3 / 64-bit with UnsatisfiedLinkError:

      Results :
      
      Tests in error: 
        test(org.geotools.coverageio.gdal.envihdr.EnviHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testIsAvailable(org.geotools.coverageio.gdal.envihdr.EnviHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        test(org.geotools.coverageio.gdal.rpftoc.RPFTOCTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testIsAvailable(org.geotools.coverageio.gdal.rpftoc.RPFTOCTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        test(org.geotools.coverageio.gdal.aig.AIGTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testIsAvailable(org.geotools.coverageio.gdal.aig.AIGTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        test(org.geotools.coverageio.gdal.idrisi.IDRISIImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testIsAvailable(org.geotools.coverageio.gdal.idrisi.IDRISIImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        test(org.geotools.coverageio.gdal.nitf.NITFTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testIsAvailable(org.geotools.coverageio.gdal.nitf.NITFTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        test(org.geotools.coverageio.gdal.dted.DTEDTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testService(org.geotools.coverageio.gdal.dted.DTEDTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        test(org.geotools.coverageio.gdal.erdasimg.ErdasImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testIsAvailable(org.geotools.coverageio.gdal.erdasimg.ErdasImgTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        test(org.geotools.coverageio.gdal.ehdr.EsriHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
        testIsAvailable(org.geotools.coverageio.gdal.ehdr.EsriHdrTest): org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
      
      Tests run: 26, Failures: 0, Errors: 16, Skipped: 0
      

      In Eclipse (Indigo R2, Java 6 64-bit) the stack traces look like:

      java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.SWIGDriverUpcast(J)J
      	at org.gdal.gdal.gdalJNI.SWIGDriverUpcast(Native Method)
      	at org.gdal.gdal.Driver.<init>(Driver.java:18)
      	at org.gdal.gdal.gdal.GetDriverByName(gdal.java:521)
      	at it.geosolutions.imageio.gdalframework.GDALUtilities.isDriverAvailable(GDALUtilities.java:355)
      	at it.geosolutions.imageio.gdalframework.GDALImageReaderSpi.isAvailable(GDALImageReaderSpi.java:257)
      	at org.geotools.coverageio.gdal.aig.AIGFormatFactory.isAvailable(AIGFormatFactory.java:61)
      	at org.geotools.coverageio.gdal.GDALTestCase.testingEnabled(GDALTestCase.java:105)
      	at org.geotools.coverageio.gdal.GDALTestCase.setUp(GDALTestCase.java:88)
      

        Activity

        Ben Caradoc-Davies made changes -
        Field Original Value New Value
        Assignee Simone Giannecchini [ simboss ]
        Ben Caradoc-Davies made changes -
        Summary Build failures with UnsatisfiedLinkError in imagio-ext-gdal in Maven 3 / 64-bit Build failure with UnsatisfiedLinkError in imagio-ext-gdal
        Ben Caradoc-Davies made changes -
        Priority Blocker [ 1 ] Major [ 3 ]
        Ben Caradoc-Davies made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 8.0-RC2 [ 18530 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Simone Giannecchini
            Reporter:
            Ben Caradoc-Davies
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: