Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Oct 2006 12:33:00 +0200 (CEST)
From:      Antoine Brodin <antoine.brodin@laposte.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/104648: [Maintainer] fix graphics/libggi build with gcc 4.1
Message-ID:  <200610211033.k9LAX0lJ011487@barton.dreadbsd.org>
Resent-Message-ID: <200610211040.k9LAeIeD055088@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         104648
>Category:       ports
>Synopsis:       [Maintainer] fix graphics/libggi build with gcc 4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 21 10:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Antoine Brodin
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD barton.dreadbsd.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Oct 14 19:36:14 CEST 2006 antoine@barton.dreadbsd.org:/usr/obj/usr/src/sys/BARTON i386


>Description:
graphics/libggi doesn't build with gcc 4.1:
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006100419/libggi-2.2.1,1.log

This upstream patch should fix the build.
>How-To-Repeat:
>Fix:


--- libggi.diff begins here ---
Index: files/patch-display-vgl-visual.c
===================================================================
RCS file: files/patch-display-vgl-visual.c
diff -N files/patch-display-vgl-visual.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-display-vgl-visual.c	21 Oct 2006 10:23:14 -0000
@@ -0,0 +1,24 @@
+--- display/vgl/visual.c	2005/07/30 11:38:52	1.9
++++ display/vgl/visual.c	2006/10/04 17:42:04	1.9.2.1
+@@ -1,4 +1,4 @@
+-/* $Id: visual.c,v 1.9 2005/07/30 11:38:52 cegger Exp $
++/* $Id: visual.c,v 1.9.2.1 2006/10/04 17:42:04 cegger Exp $
+ ******************************************************************************
+ 
+    FreeBSD vgl(3) target: initialization
+@@ -210,13 +210,12 @@
+ 		error = GGI_ENOMEM;
+ 		goto error;
+ 	}
+-	VGL_PRIV(vis) = malloc(sizeof(struct vgl_priv));
+-	if (VGL_PRIV(vis) == NULL) {
++	LIBGGI_PRIVATE(vis) = priv = malloc(sizeof(struct vgl_priv));
++	if (priv == NULL) {
+ 		do_cleanup(vis);
+ 		error = GGI_ENOMEM;
+ 		goto error;
+ 	}
+-	priv = VGL_PRIV(vis);
+ 	memset(priv, 0, sizeof(*priv));
+ 
+ 	memset(priv->vgl_palred, 0, sizeof(priv->vgl_palred));
--- libggi.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610211033.k9LAX0lJ011487>