Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load extension into PostgreSQL 15 - undefined symbol: pg_atoi #29

Open
mithnae opened this issue Dec 9, 2022 · 6 comments
Open

Comments

@mithnae
Copy link

mithnae commented Dec 9, 2022

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=73508475d69e90f98ebd9b7e1a5933a26a49c5e9 has removed has removed pg_atoi

As a result packaged firebird_fdw cannot be loaded into PostgreSQL 15:

postgres=# create extension firebird_fdw;
ERROR:  could not load library "/usr/pgsql-15/lib/firebird_fdw.so": /usr/pgsql-15/lib/firebird_fdw.so: undefined symbol: pg_atoi

Similar problem impacted postgis → https://trac.osgeo.org/postgis/ticket/5100
The patch provided might suggest sollution

@ibarwick
Copy link
Owner

ibarwick commented Dec 9, 2022

I fixed this in commit 69708a6. As I haven't yet managed to finalized a release with PostgreSQL 15 compatibility (will do so towards the end of the month), you are presumably attempting to load a binary compiled for an older version?

@mithnae
Copy link
Author

mithnae commented Dec 9, 2022

I used Devrim's rebuild for postgresql-15 from PGDG repo. I do not know how he was able to build an older version against Postgresql-15.

I will check the source package and comment if he provided a patch himself or if the package was just not validated thoroughly before publishing.

@ibarwick
Copy link
Owner

ibarwick commented Dec 9, 2022

Oh, interesting. That sounds like it shouldn't have happened.

@ibarwick
Copy link
Owner

I raised an issue: https://redmine.postgresql.org/issues/7754

@ibarwick
Copy link
Owner

FYI firebird_fdw 1.3.0 is now released with PostgreSQL 15 support; no PGDG packages yet, but I have created RHEL7/8 packages via Copr in case of any use:

@mkgrgis
Copy link
Contributor

mkgrgis commented Jan 6, 2023

In some cases pg_strtoint64(s) can works in place of pg_atoi, see. https://github.com/petere/pguint/pull/21/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants