[gdal-dev] Failing to include libgdal.so on Fedora 32
Andrew C Aitchison
andrew at aitchison.me.uk
Wed Sep 30 05:38:34 PDT 2020
On Wed, 30 Sep 2020, Matthys Kroon wrote:
> Hi,
>
> I'm trying to build "sf" package in R on Fedora 32 but it fails to
> configure gdal. The error output is below:
>
> It seems to be some issue referring to a postgres lib? I have libpq-devel
> installed.
>
> I googled for hours and I'm still stuck. Please let me know what other
> information I can provide to help troubleshoot.
>
> /usr/bin/ld /usr/lib64/libgdal.so
> ld: warning: cannot find entry symbol _start; not setting start address
> ld: /usr/lib64/libgdal.so: undefined reference to `PQcmdStatus at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQfname at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to
> `PQsetNoticeProcessor at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQftable at RHPG_9.6'
On RHEL6 /usr/lib64/libpq.so.5.2 is in the package "postgresql-libs";
on Ubuntu20.04 /usr/lib/x86_64-linux-gnu/libpq.so.5.12 is in the package
"libpq5". The dev/devel packages have libpq.so as a symbolic link to
these numbered .so libraries, so I guess you need a non-devel package
like libpq or libpq5.
> ld: /usr/lib64/libgdal.so: undefined reference to `PQstatus at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQftablecol at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQconnectdb at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to
> `PQescapeStringConn at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `lo_close at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQputCopyEnd at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQgetvalue at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQgetisnull at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQftype at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQfmod at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `lo_creat at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQresultStatus at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `lo_read at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQexec at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to
> `PQsetClientEncoding at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQgetlength at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQputCopyData at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQgetResult at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `lo_write at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQfinish at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQclear at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQerrorMessage at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQnfields at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `lo_open at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQexecParams at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to `PQntuples at RHPG_9.6'
> ld: /usr/lib64/libgdal.so: undefined reference to
> `PQresultErrorMessage at RHPG_9.6'
>
> Thanks for any help.
>
> Regards,
>
> Matthys
>
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the gdal-dev
mailing list