Bug 1928036 - python-mapnik fails to build with Python 3.10: psql: symbol lookup error: psql: undefined symbol: PQgssEncInUse, version RHPG_10
Summary: python-mapnik fails to build with Python 3.10: psql: symbol lookup error: psq...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: postgresql
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Patrik Novotný
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-02-12 08:11 UTC by Tomáš Hrnčiar
Modified: 2021-02-12 12:55 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-12 12:55:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-02-12 08:11:56 UTC
python-mapnik fails to build with Python 3.10.0a5.

+ __TRAP_ACTIONS='pgtests_cleanup '
+ __pgtests_start
+ pg_ctl -D /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir -l /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir/start.log start -o '-k /tmp -p 47276' -w
waiting for server to start.... done
server started
+ __TRAP_ACTIONS='pgtests_stop pgtests_cleanup '
+ __pgtests_create_admins_db
+ createdb -h /tmp mockbuild --owner mockbuild -p 47276
+ __pgtests_passwd mockbuild mockbuild
+ psql -d postgres --set=user=mockbuild --set=pass=mockbuild -tA
psql: symbol lookup error: psql: undefined symbol: PQgssEncInUse, version RHPG_10
+ __trap_cb
+ IFS=' '
+ for __func in $__TRAP_ACTIONS
+ pgtests_stop
+ pg_ctl stop -D /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir -w
waiting for server to shut down.... done
server stopped
+ __clean_trap_action pgtests_stop
+ __new_actions=
+ for __action in $__TRAP_ACTIONS
+ test pgtests_stop = pgtests_stop
+ :
+ for __action in $__TRAP_ACTIONS
+ test pgtests_cleanup = pgtests_stop
+ __new_actions='pgtests_cleanup '
+ __TRAP_ACTIONS='pgtests_cleanup '
+ for __func in $__TRAP_ACTIONS
+ pgtests_cleanup
+ :
+ rm -r /builddir/build/BUILD/python-mapnik-7da019cf9eb12af8f8aa88b7d75789dfcd1e901b/datadir
+ __clean_trap_action pgtests_cleanup
+ __new_actions=
+ for __action in $__TRAP_ACTIONS
+ test pgtests_cleanup = pgtests_cleanup
+ :
+ __TRAP_ACTIONS=
error: Bad exit status from /var/tmp/rpm-tmp.gmSXhd (%check)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01958510-python-mapnik/

For all our attempts to build python-mapnik with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-mapnik/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Tom Hughes 2021-02-12 08:21:01 UTC
This appears to be because you're using a broken version of psql and nothing to do with this package.

Comment 2 Miro Hrončok 2021-02-12 08:25:39 UTC
I wonder where is the problem thou. What does broken version of psql mean? We use psql from rawhide, rebuilt for Python 3.10.

Honza, could you please help here?

Comment 3 Tom Hughes 2021-02-12 09:06:07 UTC
Well it looks like it is linked against the wrong version of libpq or something - maybe it just needs a rebuild, or maybe it was a transient issue.

There's a whole thread on devel about playing around with how libpq is built I think?

Comment 4 Miro Hrončok 2021-02-12 12:55:30 UTC
Another rebuild of postgresql indeed helped. Sorry for the noise.


Note You need to log in before you can comment on or make changes to this bug.