Subject: pkg/32987: devel/glib2 fails to build (includes fix)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <martijnb@atlas.ipv6.stack.nl>
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
>Originator: martijnb@atlas.ipv6.stack.nl
>Release: NetBSD 3.99.16
>Organization:
>Environment:
System: NetBSD atlas.ipv6.stack.nl 3.99.16 NetBSD 3.99.16 (ATLAS) #3: Sat Mar 4 08:06:34 CET 2006 martijnb@atlas.ipv6.stack.nl:/usr/obj/sys/arch/amd64/compile/ATLAS amd64
Architecture: x86_64
Machine: amd64
>Description:
devel/glib2 fails to build on amd64 due to scope issues. See
toolchain/32954 for details.
>How-To-Repeat:
try to build devel/glib2 on a -current amd64 machine.
>Fix:
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.
$NetBSD$
--- 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 ();
>Unformatted: