Newbie can't get adom to run on Debian buster, symbol lookup error.
issueid=6282 08-11-2018 12:13 AM
Junior Member
Number of reported issues by adomson: 1
Newbie can't get adom to run on Debian buster, symbol lookup error.
./adom: symbol lookup error: /usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0: undefined symbol: SDL_NewAudioStream

Dear all,

Is there some sort of debug build or debug switches . I am on Debian buster but unable to start the game due to some symbol lookup error -

Code:
~/games/adom$ ./adom
<2018-08-10 22:24:16> INFO  : Creating background process
ADOM (version 3.0.6) - (C) 1994-2018 by Thomas Biskup
set minsize to = (800,600)

Ancient Domains Of Mystery -- Version 3.0.6 
(includes NotEye by Zeno for graphical effects) 
(C) Copyright 1994-2018 Thomas Biskup. 
All Rights Reserved. 

./adom: symbol lookup error: /usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0: undefined symbol: SDL_NewAudioStream
Here's the libsdl2-mixer package contents -

Code:
~/games/adom$ dpkg -L libsdl2-mixer-2.0-0
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0.2.0
/usr/share
/usr/share/doc
/usr/share/doc/libsdl2-mixer-2.0-0
/usr/share/doc/libsdl2-mixer-2.0-0/README.txt
/usr/share/doc/libsdl2-mixer-2.0-0/changelog.Debian.gz
/usr/share/doc/libsdl2-mixer-2.0-0/changelog.gz
/usr/share/doc/libsdl2-mixer-2.0-0/copyright
/usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0
I did a bit more digging to see it's a symlink -
Code:
~/games/adom$ ls -l /usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0
lrwxrwxrwx 1 root root 26 Nov  9  2017 /usr/lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0 -> libSDL2_mixer-2.0.so.0.2.0
Couldn't identify anything in the changelog -

Code:
2.0.2:
Sam Lantinga - Fri Oct 20 22:04:50 PDT 2017
 * Implemented 24-bit and surround sound support for FLAC audio files
Sam Lantinga - Thu Oct 12 21:32:44 PDT 2017
 * Updated external libraries flac-1.3.2, libmodplug-0.8.9.0, libogg-1.3.2 and libvorbis-1.3.5
Ryan Gordon - Thu Oct 12 21:29:59 PDT 2017
 * Updated for SDL 2.0.6 and newer
Franc[e]sco - Thu Jul 20 22:03:19 2017 +0200
 * Added support for MP3 playback using mpg123
David Ludwig - Sun Apr 10 22:35:38 2016
 * Added support for UWP / Windows 10 apps
Juha Kuikka - Fri Jan 29 12:44:01 PST 2016
 * Added Mix_OpenAudioDevice() so you can specify the audio device to open

2.0.1:
Sam Lantinga - Tue Jul  7 11:40:33 PDT 2015
 * Added support for 'smpl' format loop points in music WAV files
Sam Lantinga - Sat Aug 23 10:57:26 2014
 * Fixed floating point exception in Mix_Volume()
David Ludwig - Mon Apr 14 22:15:36 2014
 * Added support for building for Windows RT and Windows Phone
Isaac Burns - Sun Sep 15 21:50:27 PDT 2013
 * Added support for loading MP3 files as sound chunks

2.0.0:
Sam Lantinga - Sun Jun  9 14:45:30 PDT 2013
 * Made libmodplug the default MOD player as it is now in the public domain
Sam Lantinga - Sat Jun  1 19:11:08 PDT 2013
 * Updated for SDL 2.0 release
 * SDL_LoadMUS_RW() now takes an argument telling whether or not the data source should be freed when done.
Issue Details
Issue Number 6282
Project ADOM (Ancient Domains Of Mystery)
Category Linux
Status Unconfirmed
Priority Unknown
Affected Version ADOM 3.0.6
Fixed Version (none)
Milestone (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




08-12-2018 04:41 PM
jt jt is offline
Administrator
Could you please post the output of:

Code:
ldd adom
This lists all the dependencies and shows missing ones (in case there are any).

08-13-2018 07:56 AM
jt jt is offline
Administrator
The dependencies look fine. SDL_NewAudioStream seems to be a new function in SDL 2.0.7 (see https://wiki.libsdl.org/Tutorials/AudioStream) and ADOM doesn't even use it.

So to me this looks like a problem in the SDL2 installation. Debian Buster is still beta, right? Maybe you could try asking on a Debian forum.

10-11-2018 02:04 PM
Junior Member
same problem, using debian buster. Do not know how to solve this, some hints on that?

04-30-2020 05:49 PM
Junior Member
Has anyone solved this, or at least found a workaround, short of switching to a different OS or running ADOM in a VM?

05-01-2020 06:17 PM
Junior Member
Quote Originally Posted by Nobody III
Has anyone solved this, or at least found a workaround, short of switching to a different OS or running ADOM in a VM?
You didn't give/share any information what you did, what you tried, which version etc. Anyways I tried using the latest which is available on indiedb and got stuck again.

Code:
/games/adom_noteye_linux_debian_64_3.3.3/adom$ ./adom
<2020-05-01 17:02:16> INFO  : Creating background process
./adom: symbol lookup error: /lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0: undefined symbol: SDL_RWseek
libsdl2-image is 2.0.5+dfsg1-2

Code:
$ apt-cache policy libsdl2-image-2.0-0
libsdl2-image-2.0-0:
  Installed: 2.0.5+dfsg1-2
  Candidate: 2.0.5+dfsg1-2
  Version table:
 *** 2.0.5+dfsg1-2 900
        900 http://deb.debian.org/debian testing/main amd64 Packages
        100 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

Amd the upstream changelog of it says -

Code:
2.0.5:
Sam Lantinga - Wed Jun 19 07:30:51 PDT 2019
 * Updated external libraries libpng-1.6.32, libwebp-1.0.2
Sam Lantinga - Tue Jun 11 00:17:01 PDT 2019
 * Fixed a number of security issues:
   TALOS-2019-0820
   TALOS-2019-0821
   TALOS-2019-0841
   TALOS-2019-0842
   TALOS-2019-0843
   TALOS-2019-0844
Sathyanarayanan Gunasekaran, Brian Palmer, Charlie Birks, Amadeus - Mon Jun 10 16:48:20 PDT 2019

I also tried this -


Code:
/games/adom_noteye_linux_debian_64_3.3.3/adom$ ldd adom 
	linux-vdso.so.1 (0x00007fffab9dd000)
	libnoteye.so => ./lib/libnoteye.so (0x00007f9cc3c95000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9cc3c33000)
	libcurl.so.4 => ./lib/libcurl.so.4 (0x00007f9cc39b3000)
	libSDL2-2.0.so.0 => ./lib/libSDL2-2.0.so.0 (0x00007f9cc3697000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9cc34ca000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9cc3385000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9cc3369000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9cc31a6000)
	libSDL2_image-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0 (0x00007f9cc3183000)
	libluajit-5.1.so.2 => /lib/x86_64-linux-gnu/libluajit-5.1.so.2 (0x00007f9cc2f09000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f9cc2f04000)
	libSDL2_mixer-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0 (0x00007f9cc2edf000)
	libSDL2_net-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_net-2.0.so.0 (0x00007f9cc2ed6000)
	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f9cc2e4f000)
	libGLU.so.1 => /lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f9cc2ddf000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9cc2dc2000)
	libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f9cc2d9c000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f9cc2d6f000)
	libSDL2_ttf-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_ttf-2.0.so.0 (0x00007f9cc2d64000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9cc4daa000)
	libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007f9cc2d3b000)
	libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f9cc2d1a000)
	librtmp.so.1 => /lib/x86_64-linux-gnu/librtmp.so.1 (0x00007f9cc2cfb000)
	libssh2.so.1 => /lib/x86_64-linux-gnu/libssh2.so.1 (0x00007f9cc2ccd000)
	libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x00007f9cc2cba000)
	libssl.so.1.0.2 => /lib/x86_64-linux-gnu/libssl.so.1.0.2 (0x00007f9cc2c4d000)
	libcrypto.so.1.0.2 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.2 (0x00007f9cc29e8000)
	libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f9cc299b000)
	libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f9cc28bc000)
	libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f9cc288c000)
	libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f9cc2886000)
	liblber-2.4.so.2 => /lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f9cc2873000)
	libldap_r-2.4.so.2 => /lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f9cc281e000)
	libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f9cc2725000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9cc2720000)
	libpulse-simple.so.0 => /lib/x86_64-linux-gnu/libpulse-simple.so.0 (0x00007f9cc2719000)
	libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f9cc26c5000)
	libsndio.so.6.1 => /lib/x86_64-linux-gnu/libsndio.so.6.1 (0x00007f9cc24b3000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9cc2371000)
	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9cc215f000)
	libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f9cc2152000)
	libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f9cc214d000)
	libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f9cc1f3d000)
	libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f9cc1d30000)
	libXss.so.1 => /lib/x86_64-linux-gnu/libXss.so.1 (0x00007f9cc1d2b000)
	libXxf86vm.so.1 => /lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f9cc1b25000)
	libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f9cc1b20000)
	libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f9cc1b0f000)
	libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f9cc1b06000)
	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f9cc1ac1000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9cc1ab6000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f9cc1a7d000)
	libjpeg.so.62 => /lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007f9cc1814000)
	libtiff.so.5 => /lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f9cc1792000)
	libwebp.so.6 => /lib/x86_64-linux-gnu/libwebp.so.6 (0x00007f9cc1725000)
	libmodplug.so.1 => /lib/x86_64-linux-gnu/libmodplug.so.1 (0x00007f9cc139b000)
	libfluidsynth.so.2 => /lib/x86_64-linux-gnu/libfluidsynth.so.2 (0x00007f9cc12c5000)
	libvorbisfile.so.3 => /lib/x86_64-linux-gnu/libvorbisfile.so.3 (0x00007f9cc12ba000)
	libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f9cc127b000)
	libmpg123.so.0 => /lib/x86_64-linux-gnu/libmpg123.so.0 (0x00007f9cc121b000)
	libopusfile.so.0 => /lib/libopusfile.so.0 (0x00007f9cc120b000)
	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f9cc1153000)
	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f9cc111f000)
	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f9cc1060000)
	libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f9cc0ede000)
	libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f9cc0d02000)
	libhogweed.so.5 => /lib/x86_64-linux-gnu/libhogweed.so.5 (0x00007f9cc0cc9000)
	libnettle.so.7 => /lib/x86_64-linux-gnu/libnettle.so.7 (0x00007f9cc0c8e000)
	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f9cc0c0b000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f9cc0aee000)
	libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f9cc0adf000)
	libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f9cc0ad6000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f9cc0abe000)
	libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f9cc0aa2000)
	libpulsecommon-13.0.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.0.so (0x00007f9cc0a1e000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f9cc09cb000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f9cc09af000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9cc0985000)
	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f9cc077b000)
	libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f9cc0773000)
	libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007f9cc0767000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f9cc06bb000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f9cc0692000)
	libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f9cc0484000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9cc035d000)
	libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f9cc0357000)
	libjack.so.0 => /lib/x86_64-linux-gnu/libjack.so.0 (0x00007f9cc030d000)
	libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f9cc0290000)
	libreadline.so.8 => /lib/x86_64-linux-gnu/libreadline.so.8 (0x00007f9cc023d000)
	libinstpatch-1.0.so.2 => /lib/x86_64-linux-gnu/libinstpatch-1.0.so.2 (0x00007f9cc017c000)
	libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f9cc011d000)
	libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f9cc00ef000)
	libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007f9cbfee6000)
	libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0 (0x00007f9cbfe89000)
	libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f9cbfd59000)
	libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f9cbfd43000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f9cbfd20000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f9cbfc72000)
	libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f9cbfc64000)
	libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f9cbfc5c000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9cbfa58000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9cbf852000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9cbf7de000)
	libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f9cbf731000)
	libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f9cbf702000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f9cbf6e0000)
	libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f9cbf6c6000)
It is possible that the admin may make a new release, maybe next month or so which fixes this issue. I am on Debian bullseye now though. It is possible that the new release which was released last year fixed all issues with buster, I don't know. Maybe you can try and have your own investigation and tell/share till where it leads you.

I also read this, just bringing it to everybody's notice. https://www.ancientdomainsofmystery....ificantly.html

+ Reply