From owner-freebsd-gnome@FreeBSD.ORG Wed Apr 10 01:00:04 2013 Return-Path: Delivered-To: gnome@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 840ACB50 for ; Wed, 10 Apr 2013 01:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7759E998 for ; Wed, 10 Apr 2013 01:00:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3A103vo096465 for ; Wed, 10 Apr 2013 01:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3A103pL096460; Wed, 10 Apr 2013 01:00:03 GMT (envelope-from gnats) Date: Wed, 10 Apr 2013 01:00:03 GMT Message-Id: <201304100100.r3A103pL096460@freefall.freebsd.org> To: gnome@FreeBSD.org From: Golyashov Sergey Subject: Re: ports/177462: graphics/dia: dia-0.97.2,1 fails to start X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Golyashov Sergey List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2013 01:00:04 -0000 The following reply was made to PR ports/177462; it has been noted by GNATS. From: Golyashov Sergey To: bug-followup@freebsd.org Cc: Subject: Re: ports/177462: graphics/dia: dia-0.97.2,1 fails to start Date: Wed, 10 Apr 2013 11:51:01 +1100 This is a multi-part message in MIME format. --nextPart1820332.NJNNWAKDiQ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" "glib.h" not include "glib/gstdio.h". But "glib/gstdio.h" declares a function g_fopen. Without this declare g_fopen returns integer. My test compile: test.c:12:4: warning: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct __sFILE *') from 'int' [-Wint-conversion] f = g_fopen("test.txt", "rb"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. Final patch for port attached to this message. Regards. Sergey Golyashov --nextPart1820332.NJNNWAKDiQ Content-Disposition: attachment; filename="dia.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="utf-8"; name="dia.diff" --- Makefile.orig 2013-04-10 11:03:22.536612689 +1100 +++ Makefile 2013-04-10 11:03:35.365611423 +1100 @@ -60,7 +60,6 @@ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/lib/intl.c @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \ - ${WRKSRC}/objects/custom/shape_typeinfo.c \ ${WRKSRC}/tests/test-objects.c \ ${WRKSRC}/tests/test-boundingbox.c .if defined(NOPORTDOCS) --- files/patch-shape_typeinfo.c 2013-04-10 11:35:15.720611354 +1100 +++ files/patch-shape_typeinfo.c 2013-04-10 11:35:15.720719000 +1100 @@ -0,0 +1,10 @@ +--- objects/custom/shape_typeinfo.c.orig 2013-04-10 11:22:56.598611165 +1100 ++++ objects/custom/shape_typeinfo.c 2013-04-10 11:23:18.888611303 +1100 +@@ -27,6 +27,6 @@ + #include "custom_util.h" + #include + #include +-#include ++#include + #include + #include --nextPart1820332.NJNNWAKDiQ--