Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0010771Dwarf FortressTechnical -- Generalpublic2018-05-26 13:012018-05-27 11:55
Linux i386Debianbuster (testing)
0010771: libgraphics.so has no dependency on libz.so.1 in the 32 bit build
When trying to start the 32 bit version of Dwarf Fortress I get an error window saying “Not found: data/art/curses_640x300.png” on the screen and the message “libpng error: bad parameters to zlib” is printed on stderr. When I dismiss the error Dwarf Fortress does not start. The 64 bit version doesn't seem to have this problem.

The cause of this problem seems to be that the 32 bit version of libgraphics.so is missing the dependency on libz.so.1. This can be confirmed by comparing the readelf output of as follows:

$ readelf --dynamic amd64/libs/libgraphics.so | grep libz
 0x0000000000000001 (NEEDED) Shared library: [libz.so.1]

$ readelf --dynamic i386/libs/libgraphics.so | grep libz
<no output>

This can be worked around by setting LD_PRELOAD=/lib/i386-linux-gnu/libz.so.1 before starting Dwarf Fortress.
Try to start Dwarf Fortress on a 32 bit Linux system without setting LD_PRELOAD.
This issue seems to be related to 0002688. Maybe the fix described there wasn't applied to the i386 version?

This bug was originally reported in the Debian bug tracker. The original report can be found here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898175 [^]
No tags attached.
duplicate of 0002688acknowledged Toady One Not found: data/art/curses_640x300.png (32-bit Linux DF) 
Issue History
2018-05-26 13:01kritzefitzNew Issue
2018-05-26 18:18risusinfNote Added: 0038383
2018-05-26 20:58risusinfNote Edited: 0038383bug_revision_view_page.php?bugnote_id=0038383#r15613
2018-05-27 11:55lethosorNote Added: 0038385
2018-05-27 11:55lethosorRelationship addedduplicate of 0002688
2018-05-27 11:55lethosorStatusnew => resolved
2018-05-27 11:55lethosorResolutionopen => duplicate
2018-05-27 11:55lethosorAssigned To => lethosor

2018-05-26 18:18   
(edited on: 2018-05-26 20:58)
I could run 32bit df 44.09 on ubuntu 16.04 normally, but after i upgraded to 18.04 the same issue came up with 44.10. I didn't try to run 44.09 after upgrade though, will check that up.

Edit: 44.09 won't run usually either.

2018-05-27 11:55   
Yeah, this is 0002688. Let's keep discussion to there.