From owner-freebsd-ports@FreeBSD.ORG Sat Aug 7 19:32:36 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49F66106566C for ; Sat, 7 Aug 2010 19:32:36 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-12.arcor-online.net (mail-in-12.arcor-online.net [151.189.21.52]) by mx1.freebsd.org (Postfix) with ESMTP id EF9DC8FC12 for ; Sat, 7 Aug 2010 19:32:35 +0000 (UTC) Received: from mail-in-14-z2.arcor-online.net (mail-in-14-z2.arcor-online.net [151.189.8.31]) by mx.arcor.de (Postfix) with ESMTP id F175D26345 for ; Sat, 7 Aug 2010 21:32:33 +0200 (CEST) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-14-z2.arcor-online.net (Postfix) with ESMTP id D8AAA1BB555 for ; Sat, 7 Aug 2010 21:32:33 +0200 (CEST) Received: from lorvorc.mips.inka.de (dslb-088-067-113-056.pools.arcor-ip.net [88.67.113.56]) by mail-in-06.arcor-online.net (Postfix) with ESMTPS id 6AA8410BF39 for ; Sat, 7 Aug 2010 21:32:33 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 6AA8410BF39 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.4/8.14.3) with ESMTP id o77JWW6n056608 for ; Sat, 7 Aug 2010 21:32:32 +0200 (CEST) (envelope-from mailnull@lorvorc.mips.inka.de) Received: (from mailnull@localhost) by lorvorc.mips.inka.de (8.14.4/8.14.4/Submit) id o77JWW0C056607 for freebsd-ports@freebsd.org; Sat, 7 Aug 2010 21:32:32 +0200 (CEST) (envelope-from mailnull) From: naddy@mips.inka.de (Christian Weisgerber) Date: Sat, 7 Aug 2010 19:32:32 +0000 (UTC) Message-ID: References: Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org Subject: Re: games/connect4 segfaults. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2010 19:32:36 -0000 David DEMELIER wrote: > I just wanted to try games/connect4 but it segfaults here on FreeBSD > 8.1-RELEASE and amd64. > > It's a long backtrace so I think you should try it by yourself. Actually it's a short backtrace, but who needs it? Whenever you see these warnings... c4.c:840: warning: cast from pointer to integer of different size c4.c:840: warning: cast to pointer from integer of different size c4.c:843: warning: cast from pointer to integer of different size c4.c:843: warning: cast to pointer from integer of different size ... chances are, the code doesn't work on 64-bit platforms, and the compiler points you straight to the places that need to be fixed. -- Christian "naddy" Weisgerber naddy@mips.inka.de