From owner-freebsd-amd64@FreeBSD.ORG Thu Feb 19 08:41:18 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF3B916A4CE for ; Thu, 19 Feb 2004 08:41:18 -0800 (PST) Received: from pandora.cs.kun.nl (pandora.cs.kun.nl [131.174.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7858A43D2D for ; Thu, 19 Feb 2004 08:41:18 -0800 (PST) (envelope-from adridg@cs.kun.nl) Received: from odin.cs.kun.nl [131.174.33.33] (helo=localhost) by pandora.cs.kun.nl (8.12.10/3.62) with ESMTP id i1JGfHfB013828 for ; Thu, 19 Feb 2004 17:41:17 +0100 (MET) From: Adriaan de Groot To: freebsd-amd64@freebsd.org Date: Thu, 19 Feb 2004 17:41:15 +0100 User-Agent: KMail/1.6.51 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-Id: <200402191741.16824.adridg@cs.kun.nl> Subject: XFig running? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 16:41:19 -0000 I just tried to compile xfig from ports, and while it builds fine, it then= =20 segfaults on startup inside libXpm.so. It goes like this: (gdb) bt #0 0x00000002008b4dae in PutPixel32 (ximage=3D0x7e8100, x=3D63, y=3D63, pixel=3D6369863) at create.c:1826 #1 0x00000002008b60e8 in ParseAndPutPixels (data=3D0x7fffffffd980, width= =3D64, height=3D64, ncolors=3D253, cpp=3D2, colorTable=3D0x7e1000, hashtable=3D0x7fffffffd860, image=3D0x7e8100, image_pixels=3D0x7e6000, shapeimage=3D0x0, shape_pixels=3D0x7e6800) at create.c:2391 #2 0x00000002008b58a1 in xpmParseDataAndCreate (display=3D0x74b000, data=3D0x7fffffffd980, image_return=3D0x7fffffffde98, shapeimage_return=3D0x7fffffffde90, image=3D0x7fffffffde10, info=3D0x7fffffffddd0, attributes=3D0x723660) at create.c:2158 #3 0x00000002008bd4cd in XpmCreateImageFromData (display=3D0x74b000, data=3D0x663180, image_return=3D0x7fffffffde98, shapeimage_return=3D0x7fffffffde90, attributes=3D0x723660) at CrIFrDat.= c:63 #4 0x00000002008bc66f in XpmCreatePixmapFromData (display=3D0x74b000, d=3D33554910, data=3D0x663180, pixmap_return=3D0x71e230, shapemask_return=3D0x7fffffffdee8, attributes=3D0x723660) at CrPFrDat.c= :57 #5 0x000000000045b605 in set_xpm_icon () at main.c:1787 #6 0x00000000004592a7 in main (argc=3D1, argv=3D0x7fffffffe7c0) at main.c:= 1089 Weirdly, adding a printf() in PutPixel32 in libXpm just makes it work - tho= ugh=20 slowly. I've mucked about a little, changing the code in subtle ways, but i= t=20 just keeps bailing. I get the vague feeling the compiler is falling over=20 trying to discombobulate the casts in that function. Anyway, does anyone have a working xfig?=20 =2D-=20 pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot Would you like a freem?