Hi,

I ran into some problems when trying to install some R packages and I
believe the problem has something to do with my gdal configuration. The R
package is trying to load the gdal libraries.

I am using Fedora 32 with installed package:

Installed Packages
Name         : gdal-devel
Version      : 3.0.4
Release      : 2.fc32
Architecture : x86_64
Size         : 1.0 M
Source       : gdal-3.0.4-2.fc32.src.rpm
Repository   : @System
>From repo    : fedora
Summary      : Development files for the GDAL file format library
URL          : http://www.gdal.org
License      : MIT
Description  : This package contains development files for GDAL.

Installed Packages
Name         : gdal
Version      : 3.0.4
Release      : 2.fc32
Architecture : x86_64
Size         : 768 k
Source       : gdal-3.0.4-2.fc32.src.rpm
Repository   : @System
>From repo    : fedora
Summary      : GIS file format library
URL          : http://www.gdal.org
License      : MIT
Description  : Geospatial Data ....

When running

$ld /usr/lib64/libgdal.so

I get:

ld: warning: cannot find entry symbol _start; not setting start address
ld: /usr/lib64/libgdal.so: undefined reference to `PQcmdStatus@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQfname@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to
`PQsetNoticeProcessor@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQftable@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQstatus@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQftablecol@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQconnectdb@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to
`PQescapeStringConn@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `lo_close@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQputCopyEnd@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQgetvalue@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQgetisnull@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQftype@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQfmod@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `lo_creat@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQresultStatus@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `lo_read@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQexec@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to
`PQsetClientEncoding@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQgetlength@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQputCopyData@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQgetResult@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `lo_write@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQfinish@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQclear@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQerrorMessage@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQnfields@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `lo_open@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQexecParams@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to `PQntuples@RHPG_9.6'
ld: /usr/lib64/libgdal.so: undefined reference to
`PQresultErrorMessage@RHPG_9.6'

So I figured out that PHPG_9.6 has something to do with PostgreSQL and I
have installed libpq-devel to try and remedy the issue but it does not
help. I am not sure how to troubleshoot this further and hence my email. I
would be very grateful for any assistance.

Best regards,

Matthys Kroon
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to