warzone2100 version 3.4.0 to 4.2.1 CMake build problem

Russell Coker russell at coker.com.au
Sat Nov 13 04:57:01 GMT 2021


I've got a build problem with warzone2100 that affects all versions from 3.4.0 
to 4.2.1.  I tried various versions in the hope that I could find out where 
the error started, but it turns out that it started when CMake started being 
used.

/usr/bin/ld: src/CMakeFiles/warzone2100.dir/data.cpp.o: in function 
`dataAudioCfgLoad(char const*, void**)':
./debian/build/../../src/data.cpp:605: undefined reference to 
`ParseResourceFile(PHYSFS_File*)'

Above is what seems to be the root cause of the problem, which appears to be 
due to lib/gamelib/audp_parser.ypp not being compiled due to CMake stuff I 
don't understand.

I've attached the debian.tar.xz file for 4.2.1 for anyone who would like to 
have a go at it.  I could also provide a debian.tar.xz file for 3.4.0 if 
someone wants to try that (same problem but less disk space and compile time).

4.2.1 takes 4.5 minutes of elapsed time and 17.5 minutes of CPU time to 
compile on my workstation (which is moderately fast but a system that is 3* 
faster is affordable).  3.4.0 takes 3 minutes of elapsed time and 9.5 minutes 
of CPU time.

Any suggestions would be appreciated.  I can provide an account on a VM with 
all the dependencies etc installed if that's more convenient (but the VM has a 
single core and will take 9 minutes or 17 minutes to compile).

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/


More information about the Pkg-games-devel mailing list