Package Details: python-gdal-hdf4 3.6.0-4

Git Clone URL: https://aur.archlinux.org/gdal-hdf4.git (read-only, click to copy)
Package Base: gdal-hdf4
Description: Python bindings for GDAL
Upstream URL: https://gdal.org/
Licenses: custom
Conflicts: python-gdal
Provides: python-gdal
Submitter: ggranga
Maintainer: mmdoublem
Last Packager: mmdoublem
Votes: 4
Popularity: 0.000656
First Submitted: 2016-04-26 14:23 (UTC)
Last Updated: 2022-12-18 08:39 (UTC)

Dependencies (47)

Required by (11)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

stratosgear commented on 2023-03-24 14:03 (UTC) (edited on 2023-03-24 14:39 (UTC) by stratosgear)

This fails to build on my system:

...
...
[ 67%] Built target ogr_MapML
[ 67%] Built target ogr_GPX
[ 67%] Built target ogr_DXF
[ 67%] Built target ogr_OpenFileGDB
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/home/stratos/.cache/paru/clone/gdal-hdf4/src/build'
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'gdal-hdf4-3.6.0-4':
error: packages failed to build: gdal-hdf4-3.6.0-4

Earlier on on the build log, the only candidates for the failure that I see are:

[ 64%] Built target ogr_Selafin
[ 64%] Building CXX object ogr/ogrsf_frmts/sxf/CMakeFiles/ogr_SXF.dir/ogrsxfdriver.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/dxf/CMakeFiles/ogr_DXF.dir/ogrdxfreader.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/vdv/CMakeFiles/ogr_VDV.dir/ogrvdvdatasource.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/tiger/CMakeFiles/ogr_Tiger.dir/tigerfilebase.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/dxf/CMakeFiles/ogr_DXF.dir/ogrdxf_blockmap.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/openfilegdb/CMakeFiles/ogr_OpenFileGDB.dir/filegdbtable_write_fields.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/tiger/CMakeFiles/ogr_Tiger.dir/tigerpip.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/tiger/CMakeFiles/ogr_Tiger.dir/tigerpolygoneconomic.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/openfilegdb/CMakeFiles/ogr_OpenFileGDB.dir/filegdbtable_freelist.cpp.o
[ 65%] Built target ogr_PGDump
[ 65%] Building CXX object ogr/ogrsf_frmts/dxf/CMakeFiles/ogr_DXF.dir/ogrdxf_dimension.cpp.o
[ 65%] Built target ogr_SXF
[ 65%] Built target ogr_JML
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/ogrflatgeobufdataset.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/ogrflatgeobuflayer.cpp.o
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/packedrtree.cpp.o
[ 65%] Built target ogr_WAsP
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/geometryreader.cpp.o
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/header_gener
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogr_flatgeob
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogrflatgeobu
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."
      |  ^~~~~
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/header_gener
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogr_flatgeob
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/ogrflatgeobu
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."
      |  ^~~~~
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/packedrtree.
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/packedrtree.
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."
      |  ^~~~~
[ 65%] Building CXX object ogr/ogrsf_frmts/flatgeobuf/CMakeFiles/ogr_FlatGeobuf.dir/geometrywriter.cpp.o
In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/base.h:237,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/array.h:20,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/flatbuffers.h:22,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/feature_generated.h:7,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/geometryreader.h:32,
                 from /home/stratos/.cache/paru/clone/gdal-hdf4/src/gdal-3.6.0/ogr/ogrsf_frmts/flatgeobuf/geometryreader.cpp:32:
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."

And a lot more of the same: error: #error "C++ versions less than C++14 are not supported.

Running on the latest update arch release:

❯ uname -a
Linux iocaine 6.2.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Mar 2023 01:06:36 +0000 x86_64 GNU/Linux

What other debug info can I provide to help resolve this...?

NOTE: The normal gdal package installs correctly, but lacks the ability to read HDF4 files so it cannot be used with MODIS images!

mmdoublem commented on 2022-09-05 07:19 (UTC)

Ok will take it over then. Thanks so much for your hard work on this. Much appreciated.

ggranga commented on 2022-09-05 05:10 (UTC)

@mmdoublem I can no longer support updates for this package, feel free to adopt and maintain it. Thank you

mmdoublem commented on 2022-09-03 08:49 (UTC)

Hi,

I dunno if this is actively supported anymore but using arch and having to read MODIS datasets quite often, I would be happy to take this over. Thanks for all your work.

I just rebuilt gdal-hdf4 for the latest version of gdal and would be happy to share the PKGBUILD with you.

Brimstorm commented on 2022-05-24 16:42 (UTC) (edited on 2022-05-24 16:43 (UTC) by Brimstorm)

Can't seem to build. Gives the following message at the end:

==> ERROR: A failure occurred in build().
    Aborting...
removing untracked AUR files from cache...
:: Cleaning (1/1): /home/bmarcos/.cache/yay/gdal-hdf4
Removing gdal-3.4.0.tar.xz
Removing gdal-perl-vendor.patch
 -> error making: gdal-hdf4 (gdal-hdf4 python-gdal-hdf4)

The only error message I could find appears way back:

pdfdataset.cpp: In static member function ‘static PDFDataset* PDFDataset::Open(GDALOpenInfo*)’:
pdfdataset.cpp:4325:63: error: no matching function for call to ‘PDFDoc::PDFDoc(VSIPDFFileStream*&, std::nullptr_t, GooString*&)’
 4325 |         poDocPoppler = new PDFDoc(poStream, nullptr, poUserPwd);
      |                                                               ^

Do you know of any potential solution?

ggranga commented on 2021-11-23 14:56 (UTC)

Thanks @FabioLolix, I updated the PKGBUILD with your suggestion. @mhaffner gdal as installing correctly because it is in community, so you do not need to compile it. Now I am able to compile correctly.

mhaffner commented on 2021-11-22 21:22 (UTC)

@ggranga @FabioLoix I copy/pasted the gdal-perl-vendor.patch contents in your link into a local file and updated the PKGBUILD appropriately. The sha256sum of the gdal-perl-vendor.patch file is correct, so I didn't need to update it. Upon running makepkg in that directory I get an error that I'm guessing is related to gdal?

make[2]: Entering directory '/home/matt/gdal-hdf4/src/gdal-3.3.1/frmts/pdf'
/bin/sh /home/matt/gdal-hdf4/src/gdal-3.3.1/libtool --mode=compile --silent --tag=CXX g++ -I/home/matt/gdal-hdf4/src/gdal-3.3.1/port -I/home/matt/gdal-hdf4/src/gdal-3.3.1/gcore -I/home/matt/gdal-hdf4/src/gdal-3.3.1/alg -I/home/matt/gdal-hdf4/src/gdal-3.3.1/ogr -I/home/matt/gdal-hdf4/src/gdal-3.3.1/ogr/ogrsf_frmts -I/home/matt/gdal-hdf4/src/gdal-3.3.1/gnm -I/home/matt/gdal-hdf4/src/gdal-3.3.1/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Wmissing-include-dirs -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I../vrt -I../mem -I../../ogr/ogrsf_frmts/mem -DGNM_ENABLED -I/home/matt/gdal-hdf4/src/gdal-3.3.1/port -I/usr/include/openjpeg-2.4  -I/usr/include  -DGDAL_COMPILATION -DHAVE_XERCES -I/usr/include -I/usr/include/xercesc -I/home/matt/gdal-hdf4/src/gdal-3.3.1/port -I/usr/include/openjpeg-2.4  -I/usr/include  -DGDAL_COMPILATION -DHAVE_POPPLER -DPOPPLER_MAJOR_VERSION=21 -DPOPPLER_MINOR_VERSION=11 -I/usr/include -I/usr/include/poppler   -DDO_NOT_USE_DEBUG_BOOL -c -o ../o/pdfdataset.lo pdfdataset.cpp
pdfdataset.cpp: In static member function ‘static PDFDataset* PDFDataset::Open(GDALOpenInfo*)’:
pdfdataset.cpp:4966:59: error: cannot convert ‘std::unique_ptr<GooString>’ to ‘GooString*’ in initialization
 4966 |     GooString* poMetadata = poCatalogPoppler->readMetadata();
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                           |
      |                                                           std::unique_ptr<GooString>
make[2]: *** [../../GDALmake.opt:648: ../o/pdfdataset.lo] Error 1
make[2]: Leaving directory '/home/matt/gdal-hdf4/src/gdal-3.3.1/frmts/pdf'
make[1]: *** [GNUmakefile:15: pdf-install-obj] Error 2
make[1]: Leaving directory '/home/matt/gdal-hdf4/src/gdal-3.3.1/frmts'
make: *** [GNUmakefile:114: frmts-target] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

FabioLolix commented on 2021-11-22 19:52 (UTC)

Use this link for the perl vendor patch https://raw.githubusercontent.com/archlinux/svntogit-community/packages/gdal/trunk/gdal-perl-vendor.patch

mhaffner commented on 2021-11-22 19:48 (UTC)

@ggranga Thanks for clarifying - I see that now when I attempt to install gdal-hdf4. After a few weeks, it seems as though gdals' PKGBUILD is still not fixed. How should the maintainer be notified in order to fix it? That git repo does not have an "issues" section. Also, while I don't doubt that you are correct about this issue, why does gdal install correctly but gdal-hdf4 not, if they are based on the same PKGBUILD?

ggranga commented on 2021-11-02 16:50 (UTC)

It is an error related to gdal-perl-vendor.patch, which is not accessible at the URL set in the PKGBUILD. It is an issue inherited from gdal's PKGBUILD (https://github.com/archlinux/svntogit-community/blob/packages/gdal/trunk/PKGBUILD), so I will not change this one until new gdal rPKGBUILD will be released. In the meanwhile I uploaded the code of file gdal-perl-vendor.patch here: https://pastebin.com/raw/bgP79VkS ; you can manually download it, edit the PKGBUILD to update the sha256sum and compile.