Subject: pkg/32987: devel/glib2 fails to build (includes fix)
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/04/2006 12:25:00
>Number:         32987
>Category:       pkg
>Synopsis:       devel/glib2 fails to build (includes fix)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 04 12:25:00 +0000 2006
>Release:        NetBSD 3.99.16
System: NetBSD 3.99.16 NetBSD 3.99.16 (ATLAS) #3: Sat Mar 4 08:06:34 CET 2006 amd64
Architecture: x86_64
Machine: amd64
	devel/glib2 fails to build on amd64 due to scope issues. See 
	toolchain/32954 for details. 
	try to build devel/glib2 on a -current amd64 machine.
	Compilation error is due to a mis-match between the definition (in
	glib/gutf8.c) and and the declaration (in glib/gconvert.c) of the 
	function _g_charset_get_aliases. The patch below makes the 
	definition match the declaration.


--- glib/gutf8.c.orig	2006-02-24 15:02:54.000000000 +0100
+++ glib/gutf8.c
@@ -435,7 +435,7 @@ get_alias_hash (void)
 /* As an abuse of the alias table, the following routines gets
  * the charsets that are aliases for the canonical name.
-const char **
+const char ** G_GNUC_INTERNAL
 _g_charset_get_aliases (const char *canonical_name)
   GHashTable *alias_hash = get_alias_hash ();