devkitPro / pacman-packages

https://devkitpro.org
131 stars 104 forks source link

Linker error in libSDL #316

Closed mardy closed 11 months ago

mardy commented 11 months ago

When building a program with the latest libSDL (wii-sdl-1.2.15-11-any) I get this link error:

/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/12.1.0/../../../../powerpc-eabi/bin/ld: /opt/devkitpro/portlibs/wii/lib/libSDL.a(SDL_ogcAudio.o): in function `OGC_AudioStart':
SDL_ogcAudio.c:(.text.OGC_AudioStart+0x44): undefined reference to `AESND_AllocateVoiceWithArg'
collect2: error: ld returned 1 exit status

This was not happening with 1.2.15-8, which I had installed before. Note also that I'm not using any audio functions in my program.

oreo639 commented 11 months ago

What version of libogc do you have installed? AESND_AllocateVoiceWithArg() was added in libogc 2.4.0 and trying to compile an SDL application with the latest release of libogc works for me.

WinterMute commented 11 months ago

We don't support old versions of tools & libraries, sorry. Use (dkp-)pacman to reinstall the wii-dev group & report whatever problems need fixing with the versions we do support.

mardy commented 11 months ago

OK! I installed the latest version and it all works. I just thought that you could add the required dependency version to the pacman package, so that dependencies would get automatically updated when needed (like deb and rpm do). :-)