Bug 271857 - devel/py-game: rwobject.cpython-39.so: Undefined symbol "lseek64"
Summary: devel/py-game: rwobject.cpython-39.so: Undefined symbol "lseek64"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-06 01:50 UTC by Marcin Cieślak
Modified: 2023-06-06 13:28 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (wen)


Attachments
patch: Use lseek64 for GNU libc only (348 bytes, text/plain)
2023-06-06 01:50 UTC, Marcin Cieślak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Cieślak 2023-06-06 01:50:30 UTC
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
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-06-06 07:51:56 UTC
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(+)
Comment 2 Marcin Cieślak 2023-06-06 13:28:44 UTC
Thank you for taking care of this so quickly!