[MacPorts] #71861: py27-game needs C11
MacPorts
noreply at macports.org
Fri Jan 17 11:05:27 UTC 2025
#71861: py27-game needs C11
--------------------------+-----------------------
Reporter: barracuda156 | Owner: jmroot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: py27-game
--------------------------+-----------------------
First of all, build fails to find some components:
{{{
---> Configuring py27-game
Warning: ccache_dir /opt/local/var/macports/build/.ccache could not be
initialized; disabling ccache: couldn't execute "ccache": no such file or
directory
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
game/py27-game/work/pygame-2.0.3" &&
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
setup.py --prefix=/opt/local -config -sdl1
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using Darwin configuration...
Hunting dependencies...
SDL : found 1.2.16
Framework SDL not found
FONT : found
Framework SDL_ttf not found
IMAGE : found
Framework SDL_image not found
MIXER : found
Framework SDL_mixer not found
PNG : found
JPEG : found
PORTMIDI: not found
PORTTIME: not found
FREETYPE: found 26.2.20
If you get compiler errors during install, double-check
the compiler flags in the "Setup" file.
}}}
Then, it seems to require C11:
{{{
:info:build In file included from /opt/local/include/SDL/SDL_main.h:26,
:info:build from /opt/local/include/SDL/SDL.h:30,
:info:build from src_c/freetype/../_pygame.h:42,
:info:build from src_c/freetype/ft_wrap.h:25,
:info:build from src_c/_freetype.c:26:
:info:build /opt/local/include/SDL/SDL_stdinc.h:121: error: redefinition
of typedef ‘Uint8’
:info:build src_c/include/pgcompat.h:86: error: previous declaration of
‘Uint8’ was here
:info:build /opt/local/include/SDL/SDL_stdinc.h:125: error: redefinition
of typedef ‘Uint32’
:info:build src_c/include/pgcompat.h:85: error: previous declaration of
‘Uint32’ was here
:info:build src_c/_freetype.c: In function ‘_ftfont_setrender_flag’:
:info:build src_c/_freetype.c:1242: warning: reading through null pointer
(argument 3)
:info:build src_c/_freetype.c:1242: warning: format ‘%s’ expects type
‘char *’, but argument 3 has type ‘void *’
:info:build ---
:info:build For help with compilation see:
:info:build https://www.pygame.org/wiki/MacCompile
:info:build To contribute to pygame development see:
:info:build https://www.pygame.org/contribute.html
:info:build ---
:info:build error: command '/usr/bin/gcc-4.2' failed with exit status 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71861>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list