Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010771Dwarf FortressTechnical -- Generalpublic2018-05-26 13:012018-05-27 11:55
Reporterkritzefitz 
Assigned Tolethosor 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionduplicate 
PlatformLinux i386OSDebianOS Versionbuster (testing)
Product Version0.44.10 
Target VersionFixed in Version 
Summary0010771: libgraphics.so has no dependency on libz.so.1 in the 32 bit build
DescriptionWhen 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.
Steps To ReproduceTry to start Dwarf Fortress on a 32 bit Linux system without setting LD_PRELOAD.
Additional InformationThis 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 [^]
TagsNo tags attached.
Attached Files

- Relationships
duplicate of 0002688acknowledgedToady One Not found: data/art/curses_640x300.png (32-bit Linux DF) 

-  Notes
(0038383)
risusinf (reporter)
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.

(0038385)
lethosor (manager)
2018-05-27 11:55

Yeah, this is 0002688. Let's keep discussion to there.

- Issue History
Date Modified Username Field Change
2018-05-26 13:01 kritzefitz New Issue
2018-05-26 18:18 risusinf Note Added: 0038383
2018-05-26 20:58 risusinf Note Edited: 0038383 View Revisions
2018-05-27 11:55 lethosor Note Added: 0038385
2018-05-27 11:55 lethosor Relationship added duplicate of 0002688
2018-05-27 11:55 lethosor Status new => resolved
2018-05-27 11:55 lethosor Resolution open => duplicate
2018-05-27 11:55 lethosor Assigned To => lethosor


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker