From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add abbaye Date: Fri, 02 May 2014 09:05:37 +0200 Message-ID: <87lhukbqym.fsf@gnu.org> References: <878uqmwcom.fsf@labrys.i-did-not-set--mail-host-address--so-tickle-me> <87d2fx3h2a.fsf@gnu.org> <87tx99hgdg.fsf@labrys.i-did-not-set--mail-host-address--so-tickle-me> <877g6531n6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wg7XT-00013z-JG for guix-devel@gnu.org; Fri, 02 May 2014 03:05:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wg7XO-0001yi-Qn for guix-devel@gnu.org; Fri, 02 May 2014 03:05:43 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:55901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wg7XO-0001ye-Ju for guix-devel@gnu.org; Fri, 02 May 2014 03:05:38 -0400 In-Reply-To: (David Thompson's message of "Thu, 1 May 2014 12:38:09 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel "Thompson, David" skribis: > On Thu, May 1, 2014 at 12:27 PM, Ludovic Court=C3=A8s wrot= e: >> I noticed that =E2=80=98abbaye=E2=80=99 segfaults for me, immediately af= ter 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.s= o.15", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) open("/gnu/store/6z7k9ms4sf367c3phl7djhb740ly3dqi-gcc-4.8.2/lib/libpng15.so= .15", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) open("/gnu/store/hf5kklv837xbfcv6gc7gpsj36l69j3sj-glibc-2.19/lib/libpng15.s= o.15", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) close(6) =3D 0 munmap(0x7f09053e2000, 4096) =3D 0 --- SIGSEGV {si_signo=3DSIGSEGV, si_code=3DSEGV_MAPERR, si_addr=3D0x8} --- --8<---------------cut here---------------end--------------->8--- And indeed, =E2=80=98abbaye=E2=80=99 is not explicitly linked against libpn= g, so it can=E2=80=99t find it. If I do: --8<---------------cut here---------------start------------->8--- LD_LIBRARY_PATH=3D/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 =E2=80=9Cfreeware=E2=80=9D; would be great if w= e could change that to =E2=80=9Cfree software=E2=80=9D. (Seeing this game makes me feel younger. ;-)) Thanks, Ludo=E2=80=99.