Description of problem: I'am trying to install the sf module for R (https://cran.r-project.org/web/packages/sf/), and the configure returns a gdal error here is the source code from the configure : cat > gdal_proj.cpp <<_EOCONF #include <gdal.h> #include <ogr_srs_api.h> #include <ogr_spatialref.h> int main(int argc, char *argv[]) { OGRSpatialReference *dest = new OGRSpatialReference; OGRSpatialReference *src = new OGRSpatialReference; src->importFromEPSG(4326); dest->importFromEPSG(3857); OGRCoordinateTransformation *ct = OGRCreateCoordinateTransformation(src, dest); return(ct == NULL); // signals PROJ is not available through gdal } _EOCONF g++ -I/usr/include/gdal -o gdal_proj gdal_proj.cpp -lgdal prompt> ./gdal_proj ERROR 6: Unable to load PROJ.4 library (libproj.so.13), creation of OGRCoordinateTransformation failed. looking into gdal-2.4.1-2.mga7.src.rpm, the problem seems to come frome gdal-2.3.1-libname.patch patch --- gdal-2.3.1/ogr/ogrct.cpp~ 2018-06-23 17:09:11.000000000 +0200 +++ gdal-2.3.1/ogr/ogrct.cpp 2018-07-30 15:55:10.059763422 +0200 @@ -124,7 +124,7 @@ #elif defined(__APPLE__) # define LIBNAME "libproj.dylib" #else -# define LIBNAME "libproj.so" +# define LIBNAME "libproj.so.13" #endif #endif // PROJ_VERSION == 4 on mageia 7, I have libproj.so.15 (linked to libproj.so) $ ls /usr/lib64/libproj.so* /usr/lib64/libproj.so@ /usr/lib64/libproj.so.15.1.0* /usr/lib64/libproj.so.15@ If gdal rpm packlage is built without the gdal-2.3.1-libname.patch, the sf configure code does not return any more error Version-Release number of selected component (if applicable): gdal-2.4.1-2.mga7.src.rpm How reproducible: every time Steps to Reproduce: 1. compile test code : g++ -I/usr/include/gdal -o gdal_proj gdal_proj.cpp -lgdal 2. execute test binary : ./gdal_proj 3.
Thank you for this report. Assigning to all packagers as 'gdal' has no registered maintainer.
Assignee: bugsquad => pkg-bugs
I have pushed gdal-2.4.1-2.1.mga7 with updated libname patch to core/updates_testing. Please test it. I'd say dropping the patch is wrong as then the devel pkg of libproj must be installed as it provides the .so file. I don't know if it's the case anyway, though.
CC: (none) => jani.valimaa
Assignee: pkg-bugs => qa-bugs
MGA7-64 Plasma on Lenovo B50 Installing gdal package draws in lib64gdal20 But after creating the gdal_proj.cpp file I get: $ g++ -I/usr/include/gdal -o gdal_proj gdal_proj.cpp -lgdal gdal_proj.cpp:1:10: fatale fout: gdal.h: Bestand of map bestaat niet #include <gdal.h> ^~~~~~~~ compilatie is beëindigd. in English:fatal error, file or folder does not exist, compilation ended Something missing ??? Checked urmpf, indicated devel package. installed that and then: $ g++ -I/usr/include/gdal -o gdal_proj gdal_proj.cpp -lgdal $ ./gdal_proj No further feedback, no error thus. If this is conclusive, this can be OK'ed.
CC: (none) => herman.viaene
@Herman, comment 3. Courage mon ami. You should add the OK.
CC: (none) => tarazed25
Your wish is my command.
Whiteboard: (none) => MGA7-64-OK
Keywords: (none) => advisory, validated_updateCC: (none) => tmb, sysadmin-bugs
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2019-0151.html
Resolution: (none) => FIXEDStatus: NEW => RESOLVED