tags + patch
thanks
* Sebastian Andrzej Siewior | 2009-02-07 12:03:22 [+0100]:
>This looks like a bison error. It FTBS with bison 1:2.4.1.dfsg-1 (sid)
>but works with 1:2.3.dfsg-5 (lenny).
According to Gentoo bug http://bugs.gentoo.org/show_bug.cgi?id=246262
libIDL uses an invalid construct and the old version accepted this and
the new does not. Here is the Gentoo fix from portage, the original
Author is Sascha Cunz <[email protected]>.
Sebastian
diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN
libIDL-0.8.11.orig/parser.y libIDL-0.8.11/parser.y
--- libIDL-0.8.11.orig/parser.y 2007-01-01 18:41:34.000000000 -0500
+++ libIDL-0.8.11/parser.y 2008-11-13 15:31:13.000000000 -0500
@@ -607,7 +607,7 @@ struct_type: z_props TOK_STRUCT
{ $<str>$ = "struct"; }
z_new_scope_catch '{' {
g_hash_table_insert (__IDL_structunion_ht, $4, $4);
- $$ = IDL_type_struct_new ($4, NULL);
+ $<tree>$ = IDL_type_struct_new ($4, NULL);
} member_list
'}' pop_scope {
g_hash_table_remove (__IDL_structunion_ht, $4);
@@ -624,7 +624,7 @@ union_type: z_props TOK_UNION
switch_type_spec
')' '{' {
g_hash_table_insert (__IDL_structunion_ht, $4, $4);
- $$ = IDL_type_union_new ($4, $7, NULL);
+ $<tree>$ = IDL_type_union_new ($4, $7, NULL);
} switch_body
'}' pop_scope {
g_hash_table_remove (__IDL_structunion_ht, $4);