Created attachment 242629 [details] patch: Use lseek64 for GNU libc only This is FreeBSD 14 running mostly python3.9, py-game 2.4.0: Tried to run some simple game https://github.com/lukasz1985/SREM and it failed to start: > python3.9 main.py Traceback (most recent call last): File "/big/sw/SREM/main.py", line 1, in <module> import pygame File "/usr/local/lib/python3.9/site-packages/pygame/__init__.py", line 96, in <module> from pygame.rwobject import encode_string, encode_file_path ImportError: /usr/local/lib/python3.9/site-packages/pygame/rwobject.cpython-39.so: Undefined symbol "lseek64" The patch attached should fix this. Reported upstream: https://github.com/pygame/pygame/pull/3898
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0879a7992c570c3ea44522cca11c1d192680902e commit 0879a7992c570c3ea44522cca11c1d192680902e Author: Marcin Cieślak <saper@saper.info> AuthorDate: 2023-06-05 17:50:00 +0000 Commit: Wen Heping <wen@FreeBSD.org> CommitDate: 2023-06-06 07:49:50 +0000 devel/py-game: Fix run error: Undefined symbol lseek64 PR: 271857 Reported by: saper@saper.info devel/py-game/Makefile | 1 + 1 file changed, 1 insertion(+)
Thank you for taking care of this so quickly!