From: ludo@gnu.org (Ludovic Courtès)
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add abbaye
Date: Fri, 02 May 2014 09:05:37 +0200 [thread overview]
Message-ID: <87lhukbqym.fsf@gnu.org> (raw)
In-Reply-To: <CAJ=RwfYatugezaDSu9-e1xpKXAeoov9U4UM6L8_sUTKMbWa28w@mail.gmail.com> (David Thompson's message of "Thu, 1 May 2014 12:38:09 -0400")
"Thompson, David" <dthompson2@worcester.edu> skribis:
> On Thu, May 1, 2014 at 12:27 PM, Ludovic Courtès <ludo@gnu.org> wrote:
>> I noticed that ‘abbaye’ segfaults for me, immediately after opening its
>> first window (splash screen?).
>>
>
> That crash happens with the old version of the sdl-image package
> because it can't use libpng to open images. Did something go wrong
> where the fixed sdl-image package isn't being used?
Looking at the strace output, it does seem to relate to libpng:
--8<---------------cut here---------------start------------->8---
open("/gnu/store/hf5kklv837xbfcv6gc7gpsj36l69j3sj-glibc-2.19/lib/libpng15.so.15", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/6z7k9ms4sf367c3phl7djhb740ly3dqi-gcc-4.8.2/lib/libpng15.so.15", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/hf5kklv837xbfcv6gc7gpsj36l69j3sj-glibc-2.19/lib/libpng15.so.15", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
close(6) = 0
munmap(0x7f09053e2000, 4096) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
--8<---------------cut here---------------end--------------->8---
And indeed, ‘abbaye’ is not explicitly linked against libpng, so it
can’t find it.
If I do:
--8<---------------cut here---------------start------------->8---
LD_LIBRARY_PATH=/gnu/store/naxqxdf7f6lfpy4h481h8j8hs2r44v09-libpng-1.5.17/lib /gnu/store/9gfzrsj71ph5pk2hxn7mmpsfflz0jpc7-abbaye-1.13/bin/abbaye
--8<---------------cut here---------------end--------------->8---
Then it works like a charm.
I suppose we need to add -lpng on the link command line?
BTW, the splash screen says “freeware”; would be great if we could
change that to “free software”.
(Seeing this game makes me feel younger. ;-))
Thanks,
Ludo’.
next prev parent reply other threads:[~2014-05-02 7:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 0:43 [PATCH] gnu: Add abbaye David Thompson
2014-05-01 10:54 ` Ludovic Courtès
2014-05-01 11:45 ` David Thompson
2014-05-01 16:27 ` Ludovic Courtès
2014-05-01 16:38 ` Thompson, David
2014-05-02 7:05 ` Ludovic Courtès [this message]
2014-05-02 12:55 ` Thompson, David
2014-05-02 13:02 ` Andreas Enge
2014-05-02 15:47 ` Ludovic Courtès
2014-05-02 13:59 ` Andreas Enge
2014-05-02 14:03 ` Thompson, David
2014-05-02 15:44 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lhukbqym.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=dthompson2@worcester.edu \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.