Ben Caradoc-Davies created GEOT-4104:
----------------------------------------

             Summary: Build failures with UnsatisfiedLinkError in 
imagio-ext-gdal in Maven 3 / 64-bit
                 Key: GEOT-4104
                 URL: https://jira.codehaus.org/browse/GEOT-4104
             Project: GeoTools
          Issue Type: Bug
          Components: imageio-ext-gdal plugin
    Affects Versions: 8.0-RC1
         Environment: Apache Maven 3.0.3 (r1075438; 2011-03-01 01:31:09+0800)
Maven home: /home/car605/junk/java/maven3
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: /home/car605/junk/java/jdk1.6.0_29.x64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "2.6.42.12-1.fc15.x86_64", arch: "amd64", family: 
"unix"

            Reporter: Ben Caradoc-Davies
            Priority: Blocker


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

{noformat}
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
{noformat}

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

{noformat}
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)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to