symbol lookup error: undefined symbol: Mix_FadeInChannel

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
User avatar
alberic89
Translator
Posts: 23
Joined: October 12th, 2021, 2:08 pm

symbol lookup error: undefined symbol: Mix_FadeInChannel

Post by alberic89 »

Hello,
I compiled the game yesterday and this is what appears in my terminal when I try to launch it :

Code: Select all

wesnoth: symbol lookup error: wesnoth: undefined symbol: Mix_FadeInChannel
I have test with 1.17.9 and 1.16.6, same message.
I use a Raspberry Pi on Raspberry Pi OS, and my system is up-to-date.
For download the .deb package : https://sourceforge.net/projects/battle ... b/download
or https://sourceforge.net/projects/battle ... b/download
wesnothd is working after install libbost-coroutine, but he said me

Code: Select all

20221025 09:30:59 error server: could not make fifo at '/var/run/wesnothd/socket' (No such file or directory)
The script I have used :
Spoiler:
And an extract of the log (I have removed the download, extract and install log) : https://c.gmx.fr/@1091385412309489919/K ... CUdiaKX41g
« Hacker vaillant, rien d’impossible ! »
gnombat
Posts: 706
Joined: June 10th, 2010, 8:49 pm

Re: symbol lookup error: undefined symbol: Mix_FadeInChannel

Post by gnombat »

What version of SDL_mixer (sometimes called SDL2_mixer) do you have installed on your system? Do you perhaps have two different versions installed (maybe one compiled, one from an operating system package)? It looks like Wesnoth was compiled with version 2.6.2 but it might be using an older version (probably 2.0.4?) at runtime.
User avatar
alberic89
Translator
Posts: 23
Joined: October 12th, 2021, 2:08 pm

Re: symbol lookup error: undefined symbol: Mix_FadeInChannel

Post by alberic89 »

Yes, I use the libsd2-mixer 2.0.4+dfsg1-3 on my main OS.
The game work on my compilation OS.
I have update to sid my compilation OS, it is for this?
« Hacker vaillant, rien d’impossible ! »
gnombat
Posts: 706
Joined: June 10th, 2010, 8:49 pm

Re: symbol lookup error: undefined symbol: Mix_FadeInChannel

Post by gnombat »

The documentation for the function Mix_FadeInChannel says:

Code: Select all

 * Note that before SDL_mixer 2.6.0, this function was a macro that called
 * Mix_FadeInChannelTimed() with a fourth parameter ("ticks") of -1. This
 * function still does the same thing, but promotes it to a proper API
 * function. Older binaries linked against a newer SDL_mixer will still call
 * Mix_FadeInChannelTimed directly, as they are using the macro, which was
 * available since the dawn of time.
So in version 2.0.4 the function Mix_FadeInChannel does not actually exist because it was a macro and not a function. If you compile with version 2.6.x it's going to try to use the function version, but then if you run it with a version 2.0.4 shared library the function will not be there.
User avatar
alberic89
Translator
Posts: 23
Joined: October 12th, 2021, 2:08 pm

Re: symbol lookup error: undefined symbol: Mix_FadeInChannel

Post by alberic89 »

Thanks you, I will try to recompile with 2.0.4 libsdl2.
« Hacker vaillant, rien d’impossible ! »
User avatar
alberic89
Translator
Posts: 23
Joined: October 12th, 2021, 2:08 pm

Re: symbol lookup error: undefined symbol: Mix_FadeInChannel

Post by alberic89 »

It's work now.
« Hacker vaillant, rien d’impossible ! »
Post Reply