From owner-freebsd-ports Mon Aug 12 8:30:18 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4235537B405 for ; Mon, 12 Aug 2002 08:30:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9A7943E4A for ; Mon, 12 Aug 2002 08:30:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7CFU9JU047559 for ; Mon, 12 Aug 2002 08:30:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7CFU9c9047558; Mon, 12 Aug 2002 08:30:09 -0700 (PDT) Date: Mon, 12 Aug 2002 08:30:09 -0700 (PDT) Message-Id: <200208121530.g7CFU9c9047558@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Marco Molteni Subject: Re: ports/41469: [MAINTAINER UPDATE] astro/gpsdrive Reply-To: Marco Molteni Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/41469; it has been noted by GNATS. From: Marco Molteni To: Christian Weisgerber Cc: freebsd-gnats-submit@freebsd.org Subject: Re: ports/41469: [MAINTAINER UPDATE] astro/gpsdrive Date: Mon, 12 Aug 2002 17:23:42 +0200 On Mon, 12 Aug 2002 16:17:13 +0200, Christian Weisgerber wrote: > > ok, could you check the following patch? > > Yes, this builds. Good. I am including at the end of the email a patch against the current astro/gpsdrive directory. Could you commit that? I assume I don't need to bump the PORTREVISION. > You may also want to investigate these: > gpsdrive.c:5917: warning: cast to pointer from integer of different > size gpsdrive.c:6722: warning: cast to pointer from integer of > different size settings.c:261: warning: cast to pointer from integer > of different size I assume you get these from compiling on the alpha, is this correct? First one: 5914 gint 5915 setup2_cb (GtkWidget *widget, guint datum) 5916 { 5917 gtk_widget_destroy (GTK_WIDGET (datum)); Second one: 6700 gint 6701 addwaypoint (GtkWidget *widget, guint datum) ... 6722 gtk_widget_destroy (GTK_WIDGET (datum)); This is GTK/GDK stuff, I really don't know what to do with it. Any suggestions? Besides the warnings, does the program run on the alpha? marco diff -u -rN gpsdrive/files/patch-src-battery.c gpsdrive-1.26r4/files/patch-src-battery.c --- gpsdrive/files/patch-src-battery.c Thu Jan 1 01:00:00 1970 +++ gpsdrive-1.26r4/files/patch-src-battery.c Mon Aug 12 17:12:00 2002 @@ -0,0 +1,43 @@ +--- src/battery.c.orig Mon Aug 12 14:07:55 2002 ++++ src/battery.c Mon Aug 12 14:16:49 2002 +@@ -70,10 +70,11 @@ + #include + #include + +-#ifdef __FreeBSD__ ++/* APM is i386-specific. */ ++#if defined(__FreeBSD__) && defined(__i386__) + #include + #include +-#endif /* __FreeBSD__ */ ++#endif /* __FreeBSD__ && __i386__ */ + + #include "../config.h" + #include "battery.h" +@@ -237,7 +238,7 @@ + #endif /* Linux */ + + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) && defined(__i386__) + /* + * Return TRUE on success, FALSE on error. + */ +@@ -311,7 +312,7 @@ + close (fd); + return TRUE; + } +-#endif /* __FreeBSD__ */ ++#endif /* __FreeBSD__ && __i386__ */ + + + /* +@@ -326,7 +327,7 @@ + } + #if defined(__linux__) + return battery_get_values_linux (&batlevel, &batloading); +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) && defined(__i386__) + return battery_get_values_fbsd (&batlevel, &batloading); + #else + /* add support for your favourite OS here */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message