SVN snapshot doesn't run, latest SVN fails to run

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Johann

SVN snapshot doesn't run, latest SVN fails to run

Post by Johann »

The SVN snapshot from the Download page doesn't compile & dies with:

/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I./../headers -I./.. -I./../files -I./../imagewin -I./../audio -I./../shapes/shapeinf -I./../data -I./../usecode -I./../objs -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -DXWIN -O2 -Wno-long-long -g -O2 -MT pngio.lo -MD -MP -MF .deps/pngio.Tpo -c -o pngio.lo pngio.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I./../headers -I./.. -I./../files -I./../imagewin -I./../audio -I./../shapes/shapeinf -I./../data -I./../usecode -I./../objs -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -DXWIN -O2 -Wno-long-long -g -O2 -MT pngio.lo -MD -MP -MF .deps/pngio.Tpo -c pngio.cc -o pngio.o
pngio.cc: In function 'int Import_png8(const char*, int, int&, int&, int&, int&, int&, unsigned char*&, unsigned char*&, int&)':
pngio.cc:152:38: error: 'memmove' was not declared in this scope
3 * pal_size - 3 * (i + 1));
^
pngio.cc: In function 'int Export_png8(const char*, int, int, int, int, int, int, unsigned char*, unsigned char*, int, bool)':
pngio.cc:222:39: error: 'memset' was not declared in this scope
memset(&trans[0], 255, sizeof(trans));
^
make[3]: *** [pngio.lo] Error 1
make[3]: Leaving directory `/home/johann/Sources/exult.snap/shapes'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/johann/Sources/exult.snap/shapes'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/johann/Sources/exult.snap'
make: *** [all] Error 2

Getting the latest source from SVN compiles but dies with:

Exult version 1.5.0svn
Built at: Aug 11 2014 12:08:56
Compile-time options: USE_TIMIDITY_MIDI, USE_FMOPL_MIDI, USE_ALSA_MIDI, HAVE_ZIP_SUPPORT
Compiler: gcc, version: 4.8.3 20140624 (Red Hat 4.8.3-1)

Platform: Linux version 3.15.7-200.fc20.x86_64
Exult path settings:
Data : /home/johann/Games/exult/share/exult
Digital music : /home/johann/Games/exult/share/exult/music

Looking for 'blackgate' at '/home/johann/Games/exult/share/exult/blackgate'... found game with identity 'FORGE'
Looking for 'forgeofvirtue' at '/home/johann/Games/exult/share/exult/forgeofvirtue'... but it wasn't there.
Looking for 'serpentisle' at '/home/johann/Games/exult/share/exult/serpentisle'... found game with identity 'SILVER SEED'
Looking for 'silverseed' at '/home/johann/Games/exult/share/exult/silverseed'... but it wasn't there.
Black Gate : not found (/)
Forge of Virtue : found
exult_bg.flx : found
Serpent Isle : not found (/)
Silver Seed : found
exult_si.flx : found
Checking rendering support
Windowed 8 bpp ok 16 bpp ok 32 bpp ok
640x480 8 bpp ok 16 bpp ok 32 bpp ok
800x600 8 bpp ok 16 bpp ok 32 bpp ok
1024x768 8 bpp ok 16 bpp ok 32 bpp ok
1280x960 8 bpp ok 16 bpp ok 32 bpp ok
1280x1024 8 bpp ok 16 bpp ok 32 bpp ok
1400x1050 8 bpp ok 16 bpp ok 32 bpp ok
1920x1080 8 bpp ok 16 bpp ok 32 bpp ok
Creating AudioMixer...
Audio opened using format: 22050 Hz 2 Channels
Timbers Precached: On play only
OGG Vorbis Digital Music: Disabled
Trying: `Timidity'
timidity.cfg: line 9: bad patch option #

Failed to initialize midi player (code: 1)
Failed!
Trying: `alsa'
ALSAMidiDriver: Can't subscribe to MIDI port (65:0)
Failed to initialize midi player (code: -1)
Failed!
Trying: `UnixSeqDevice'
UnixSeqDevice: opening device: /dev/sequencer
UnixSeqDevice: failed: No such file or directory
Failed to initialize midi player (code: -1)
Failed!
Trying: `FluidSynth'
FluidSynth requires a 'fluidsynth_soundfont' setting
Failed to initialize midi player (code: 1)
Failed!
Trying: `Forked'
Success!
Midi Output: Enabled
Starting forked player failed
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Resource id in failed request: 0x2a0000f
Serial number of failed request: 16
Current serial number in output stream: 17
Assertion 'pa_atomic_load(&(b)->_ref) > 0' failed at pulsecore/memblock.c:597, function pa_memblock_unref(). Aborting.
Aborted (core dumped)
Johann

Re: SVN snapshot doesn't run, latest SVN fails to run

Post by Johann »

Forgot to mention that I'm running on Fedora 20 (x86_64) if that matters.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: SVN snapshot doesn't run, latest SVN fails to run

Post by Dominus »

Looks like a problem with pulseaudio and forked, there has been a patch for this I think. Not sure. If you disable audio in exult.cfg does it start then?
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Johann

Re: SVN snapshot doesn't run, latest SVN fails to run

Post by Johann »

Now why didn't I think of that. Yes, it works without sound.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: SVN snapshot doesn't run, latest SVN fails to run

Post by Dominus »

Btw, thanks for reporting the faulty SVN snapshot. It's now pointing at the automated source code zipper on the SourceForge project page.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: SVN snapshot doesn't run, latest SVN fails to run

Post by Dominus »

Could you try again with latest source and audio enabled? I disabled forked Midi and made Fmopl top default. It should help but it'd be best if you could confirm this ;)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Johann

Re: SVN snapshot doesn't run, latest SVN fails to run

Post by Johann »

I just compiled the latest code and your fix with FMOpl works. U7 just wasn't right without music. Thanks.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: SVN snapshot doesn't run, latest SVN fails to run

Post by Dominus »

thanks a lot for confirming!
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked