Skip to content

Arch Linux compilation fails with sdl3_mixer-git #55

@WoolieWool

Description

@WoolieWool

Using the sdl3_mixer-git package from the AUR (r2074.f9566f4-1), attempting to build QrustyQuake with cdaudio yields the following errors:

cdaudio.c:67:10: error: ‘MIX_INIT_OGG’ undeclared here (not in a function) 67 | {MIX_INIT_OGG, "OGG", 1, (const char *[]){".ogg"}, true}, | ^~~~~~~~~~~~ cdaudio.c:68:10: error: ‘MIX_INIT_OPUS’ undeclared here (not in a function) 68 | {MIX_INIT_OPUS, "OPUS", 2, (const char *[]){".ogg", ".opus"}, true}, | ^~~~~~~~~~~~~ cdaudio.c:69:10: error: ‘MIX_INIT_MP3’ undeclared here (not in a function) 69 | {MIX_INIT_MP3, "MP3", 1, (const char *[]){".mp3"}, true}, | ^~~~~~~~~~~~ cdaudio.c:70:10: error: ‘MIX_INIT_FLAC’ undeclared here (not in a function) 70 | {MIX_INIT_FLAC, "FLAC", 1, (const char *[]){".flac"}, false}, | ^~~~~~~~~~~~~ cdaudio.c:71:10: error: ‘MIX_INIT_MID’ undeclared here (not in a function) 71 | {MIX_INIT_MID, "MID", 2, (const char *[]){".mid", ".midi"}, false}, | ^~~~~~~~~~~~ cdaudio.c:72:10: error: ‘MIX_INIT_MOD’ undeclared here (not in a function) 72 | {MIX_INIT_MOD, "MOD", 1, (const char *[]){".mod"}, false}, | ^~~~~~~~~~~~ cdaudio.c:73:10: error: ‘MIX_INIT_WAVPACK’ undeclared here (not in a function) 73 | {MIX_INIT_WAVPACK, "WAVPACK", 2, (const char *[]){".wav", ".wv"}, false} | ^~~~~~~~~~~~~~~~ cdaudio.c:76:8: error: unknown type name ‘Mix_Music’ 76 | static Mix_Music *current_music = NULL; | ^~~~~~~~~ cdaudio.c: In function ‘BGM_Play’: cdaudio.c:86:9: error: unknown type name ‘Mix_Music’ 86 | Mix_Music *music = NULL; | ^~~~~~~~~ cdaudio.c:123:17: error: implicit declaration of function ‘Mix_LoadMUS_IO’ [-Wimplicit-function-declaration] 123 | music = Mix_LoadMUS_IO(io, true); | ^~~~~~~~~~~~~~ cdaudio.c:123:15: error: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 123 | music = Mix_LoadMUS_IO(io, true); | ^ cdaudio.c:134:14: error: implicit declaration of function ‘Mix_PlayMusic’; did you mean ‘MIX_PlayAudio’? [-Wimplicit-function-declaration] 134 | if (!Mix_PlayMusic(current_music, looping ? -1 : 0)) | ^~~~~~~~~~~~~ | MIX_PlayAudio cdaudio.c: In function ‘CDAudio_Play’: cdaudio.c:159:9: error: unknown type name ‘Mix_Music’ 159 | Mix_Music *music = NULL; | ^~~~~~~~~ cdaudio.c:190:15: error: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 190 | music = Mix_LoadMUS_IO(io, true); | ^ cdaudio.c: In function ‘CDAudio_Stop’: cdaudio.c:210:9: error: implicit declaration of function ‘Mix_HaltMusic’ [-Wimplicit-function-declaration] 210 | Mix_HaltMusic(); | ^~~~~~~~~~~~~ gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g d_polyse.c -o d_polyse.o cdaudio.c: In function ‘CDAudio_Pause’: cdaudio.c:219:9: error: implicit declaration of function ‘Mix_PauseMusic’ [-Wimplicit-function-declaration] 219 | Mix_PauseMusic(); | ^~~~~~~~~~~~~~ cdaudio.c: In function ‘CDAudio_Resume’: cdaudio.c:224:9: error: implicit declaration of function ‘Mix_ResumeMusic’ [-Wimplicit-function-declaration] 224 | Mix_ResumeMusic(); | ^~~~~~~~~~~~~~~ gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g d_scan.c -o d_scan.o cdaudio.c: In function ‘CDAudio_Update’: cdaudio.c:235:17: error: implicit declaration of function ‘Mix_VolumeMusic’ [-Wimplicit-function-declaration] 235 | Mix_VolumeMusic(bgmvolume.value * MIX_MAX_VOLUME); | ^~~~~~~~~~~~~~~ gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g d_sky.c -o d_sky.o gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g d_sprite.c -o d_sprite.o gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g d_surf.c -o d_surf.o cdaudio.c:235:51: error: ‘MIX_MAX_VOLUME’ undeclared (first use in this function) 235 | Mix_VolumeMusic(bgmvolume.value * MIX_MAX_VOLUME); | ^~~~~~~~~~~~~~ cdaudio.c:235:51: note: each undeclared identifier is reported only once for each function it appears in gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g d_fog.c -o d_fog.o cdaudio.c: In function ‘CDAudio_Init’: cdaudio.c:244:17: error: unknown type name ‘MIX_InitFlags’; did you mean ‘SDL_InitFlags’? 244 | MIX_InitFlags flags = Mix_Init(music_formats[i].flag); | ^~~~~~~~~~~~~ | SDL_InitFlags gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g d_common.c -o d_common.o cdaudio.c:244:39: error: implicit declaration of function ‘Mix_Init’; did you mean ‘MIX_Init’? [-Wimplicit-function-declaration] 244 | MIX_InitFlags flags = Mix_Init(music_formats[i].flag); | ^~~~~~~~ | MIX_Init gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g host.c -o host.o gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g host_cmd.c -o host_cmd.o cdaudio.c:254:14: error: implicit declaration of function ‘Mix_OpenAudio’ [-Wimplicit-function-declaration] 254 | if (!Mix_OpenAudio(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, NULL)) | ^~~~~~~~~~~~~ cdaudio.c: In function ‘CDAudio_Shutdown’: cdaudio.c:272:9: error: implicit declaration of function ‘Mix_Quit’; did you mean ‘MIX_Quit’? [-Wimplicit-function-declaration] 272 | Mix_Quit(); | ^~~~~~~~ | MIX_Quit gcc -c -Wall -Wextra -D_DEFAULT_SOURCE -DAVAIL_SDL3MIXER -O3 -flto -g in_sdl.c -o in_sdl.o make: *** [Makefile:60: cdaudio.o] Error 1 make: *** Waiting for unfinished jobs....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions