Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009893Dwarf FortressTechnical -- Generalpublic2016-07-07 09:452017-11-01 09:54
ReporterKhym Chanur 
Assigned Tolethosor 
PlatformAMD x86_64OSLinuxOS VersionFedora 24
Product Version0.43.05 
Target VersionFixed in Version 
Summary0009893: Linux: libs/ causing linking problem
DescriptionTrying to run the newly 64 bit DF under Linux (Fedora 24), I get the following errors:

./libs/Dwarf_Fortress: /home/matt/temp/df_linux/libs/ version `CXXABI_1.3.8' not found (required by /lib64/
./libs/Dwarf_Fortress: /home/matt/temp/df_linux/libs/ version `CXXABI_1.3.9' not found (required by /lib64/

Additional InformationSimply removing from the libs directory fixes the problem, as the Dwarf_Fortress executable will link just fine against the system's standard library
TagsNo tags attached.
Attached Files

- Relationships
has duplicate 0011635resolvedlethosor DF can't be launched at all 
has duplicate 0011681resolvedlethosor libs/ causing linking problem 
has duplicate 0011895resolvedlethosor missing CXXABI_1.3.9 
related to 0009894resolvedlethosor Linux 64 bit: libs/ no longer needed 

-  Notes
ShimmerFairy (reporter)
2016-07-07 13:08

At first glance, I'd guess a problem involving the ABI changes in gcc 5.0, or maybe the changes in 6.0 (e.g. defaulting to gnu++14 instead of gnu++98), depending on what version your system libraries are compiled on and what DF's libstdc++ is for.
lethosor (manager)
2016-07-07 16:23

Toady's using GCC 4.8 on Linux. It looks like /lib64/ requires a libstdc++ from GCC 4.9 or 5.1, going by [^]

Removing the libstdc++ will break compatibility completely for people whose systems don't distribute GCC 4.8, so I don't know if there's much that can be done here.
Khym Chanur (reporter)
2016-07-07 21:29

Maybe the df script could check what version of libstdc++ is installed, and depending upon the version set or not set the environmental variable LD_LIBRARY_PATH to "."; of course, that would require removing the "Library rpath = [$ORIGIN]" trick from the executable.

For the record, my install is using version 6.1.1-3 of GCC and libstdc++, and the path of the system libstdc++ library is /lib64/
ShimmerFairy (reporter)
2016-07-07 21:46
edited on: 2016-07-07 21:48

The weird thing is that I removed the provided libstdc++ as well, and I've been able to run it fine without problems. my points to, which is provided by gentoo's media-libs/glu-9.0.0-r1. My currently active gcc is gcc-5.4.0, which was probably what I used to compile that.

Edit: I believe I also ran this without deleting the provided libstdc++ at first as well. (I definitely ran the 64-bit testing version without ever deleting the library.)

Khym Chanur (reporter)
2016-07-08 08:32

Oops, wait, Dwarf_Fortress still needs the library which is in the same directory. So, to amend my suggestion, and could be moved to the new directory libs/c_libs, and if the df script decides they're needed it would set LD_LIBRARY_PATH to "./c_libs".
Khym Chanur (reporter)
2016-07-12 18:05

Here's the start of a fix for the problem: [^]

It will detect when the system libstdc++ can be linked or not. If it can't be, then it links against the bundled version which is put into libs/c_lib. It needs to be updated with all the versions of libstdc++ which can be linked against.

- Issue History
Date Modified Username Field Change
2016-07-07 09:45 Khym Chanur New Issue
2016-07-07 13:08 ShimmerFairy Note Added: 0035570
2016-07-07 16:23 lethosor Note Added: 0035571
2016-07-07 16:23 lethosor Assigned To => lethosor
2016-07-07 16:23 lethosor Status new => acknowledged
2016-07-07 16:25 lethosor Relationship added related to 0009894
2016-07-07 21:29 Khym Chanur Note Added: 0035576
2016-07-07 21:46 ShimmerFairy Note Added: 0035577
2016-07-07 21:48 ShimmerFairy Note Edited: 0035577 View Revisions
2016-07-08 08:32 Khym Chanur Note Added: 0035579
2016-07-12 18:05 Khym Chanur Note Added: 0035613
2020-10-12 15:39 lethosor Relationship added has duplicate 0011635
2021-01-31 21:47 lethosor Relationship added has duplicate 0011681
2022-07-29 19:54 lethosor Relationship added has duplicate 0011895

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker