Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: 34.07 and [k]ubuntu 12.04  (Read 1993 times)

Kamamura

  • Bay Watcher
    • View Profile
34.07 and [k]ubuntu 12.04
« on: May 09, 2012, 03:43:14 am »

After upgrading from 11.10 to 12.04, Dwarf fortress 34.07 stopped working. In previous ubuntu versions, no problem, now just reports "file not found" error. The binary seems to be static-compiled, so not a library issue, but I may be lacking some environment variable. strace:

Code: [Select]
execve("./Dwarf_Fortress", ["./Dwarf_Fortress"], [/* 46 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 11), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f000eef9000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7f000eef9000, 4096)            = 0
exit_group(1)                           = ?
« Last Edit: May 09, 2012, 04:36:49 am by Kamamura »
Logged
The entire content consists of senseless murder, a pile of faceless naked women and zero regard for human life in general, all in the service of the protagonist's base impulses. It is clearly a cry for help from a neglected, self absorbed and disempowered juvenile badly in need of affectionate guidance. What a sad, sad display.

Kamamura

  • Bay Watcher
    • View Profile
Re: 34.07 and [k]ubuntu 12.04
« Reply #1 on: May 09, 2012, 04:01:14 am »

BTW it's a 64bit Kubuntu 12.04. Is it possible that the binary compatibility between the version is somehow not 100%?
Logged
The entire content consists of senseless murder, a pile of faceless naked women and zero regard for human life in general, all in the service of the protagonist's base impulses. It is clearly a cry for help from a neglected, self absorbed and disempowered juvenile badly in need of affectionate guidance. What a sad, sad display.

Kamamura

  • Bay Watcher
    • View Profile
Re: 34.07 and [k]ubuntu 12.04
« Reply #2 on: May 09, 2012, 04:35:41 am »

Code: [Select]
execve("./df", ["./df"], [/* 46 vars */]) = 0
brk(0)                                  = 0x1e2f000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2750af0000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/home/kamamura//install/df_linux/libs/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kamamura//install/df_linux/libs/tls/x86_64", 0x7fffc692df30) = -1 ENOENT (No such file or directory)
open("/home/kamamura//install/df_linux/libs/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kamamura//install/df_linux/libs/tls", 0x7fffc692df30) = -1 ENOENT (No such file or directory)
open("/home/kamamura//install/df_linux/libs/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kamamura//install/df_linux/libs/x86_64", 0x7fffc692df30) = -1 ENOENT (No such file or directory)
open("/home/kamamura//install/df_linux/libs/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kamamura//install/df_linux/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=78292, ...}) = 0
mmap(NULL, 78292, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2750adc000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1802936, ...}) = 0
mmap(NULL, 3917016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2750513000
mprotect(0x7f27506c6000, 2093056, PROT_NONE) = 0
mmap(0x7f27508c5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b2000) = 0x7f27508c5000
mmap(0x7f27508cb000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f27508cb000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2750adb000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2750ada000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2750ad9000
arch_prctl(ARCH_SET_FS, 0x7f2750ada700) = 0
mprotect(0x7f27508c5000, 16384, PROT_READ) = 0
mprotect(0x619000, 4096, PROT_READ)     = 0
mprotect(0x7f2750af2000, 4096, PROT_READ) = 0
munmap(0x7f2750adc000, 78292)           = 0
getpid()                                = 5361
rt_sigaction(SIGCHLD, {0x40f100, ~[RTMIN RT_1], SA_RESTORER, 0x7f27505494c0}, NULL, 8) = 0
geteuid()                               = 1000
brk(0)                                  = 0x1e2f000
brk(0x1e50000)                          = 0x1e50000
getppid()                               = 5360
stat("/home/kamamura/install/df_linux", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("./df", O_RDONLY)                  = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x40f100, ~[RTMIN RT_1], SA_RESTORER, 0x7f27505494c0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f27505494c0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f27505494c0}, NULL, 8) = 0
read(10, "#!/bin/sh\nDF_DIR=$(dirname \"$0\")"..., 8192) = 243
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f2750ada9d0) = 5362
close(4)                                = 0
read(3, ".\n", 128)                     = 2
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigreturn(0x11)                      = 0
close(3)                                = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 5362
chdir("/home/kamamura/install/df_linux") = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f2750ada9d0) = 5363
wait4(-1, ./df: 6: ./df: ./libs/Dwarf_Fortress: not found
[{WIFEXITED(s) && WEXITSTATUS(s) == 127}], 0, NULL) = 5363
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigreturn(0x11)                      = 5363
read(10, "", 8192)                      = 0
exit_group(127)                         = ?
kamamura@takaru:~/install/df_linux$ ls /etc/ld.so.nohwcap
ls: cannot access /etc/ld.so.nohwcap: No such file or directory
Logged
The entire content consists of senseless murder, a pile of faceless naked women and zero regard for human life in general, all in the service of the protagonist's base impulses. It is clearly a cry for help from a neglected, self absorbed and disempowered juvenile badly in need of affectionate guidance. What a sad, sad display.

Kamamura

  • Bay Watcher
    • View Profile
Re: 34.07 and [k]ubuntu 12.04
« Reply #3 on: May 09, 2012, 04:48:15 am »

No advices? Please! Help! I can't play... I think I am dying... tell... tell Urist, the ssh keys are under the door mat... nggghrrrgh
Logged
The entire content consists of senseless murder, a pile of faceless naked women and zero regard for human life in general, all in the service of the protagonist's base impulses. It is clearly a cry for help from a neglected, self absorbed and disempowered juvenile badly in need of affectionate guidance. What a sad, sad display.

calrogman

  • Bay Watcher
    • View Profile
Re: 34.07 and [k]ubuntu 12.04
« Reply #4 on: May 09, 2012, 06:29:23 am »

You're probably missing some 32-bit SDL libraries.  I'm on a 32-bit machine at the moment so I can't confirm anything, but I've fixed this sort of thing before.  Shall I give you my public key?
Logged

Kamamura

  • Bay Watcher
    • View Profile
Re: 34.07 and [k]ubuntu 12.04
« Reply #5 on: May 09, 2012, 07:21:42 am »

Thank you kindly, I have already solved the problem. The following package must be installed:

Code: [Select]
ia32-libs - ia32 shared libraries - transitional package
it installs all the 32 bit versions of the libraries, some 240+ MB. I thought the 32bit compatibility is automatic by default, but apparently, in case of 12.,04, I was wrong. They probably needed to cut as much as possible to fit the basic installation to 700MB CD.
Logged
The entire content consists of senseless murder, a pile of faceless naked women and zero regard for human life in general, all in the service of the protagonist's base impulses. It is clearly a cry for help from a neglected, self absorbed and disempowered juvenile badly in need of affectionate guidance. What a sad, sad display.