Package: bonobo Severity: normal Tags: patch When building 'bonobo' on amd64 with gcc-4.0, I get the following error:
Making all in tests make[3]: Entering directory `/bonobo-1.0.22/tests' gcc -DHAVE_CONFIG_H -I. -I. -I.. -DGNOMELOCALEDIR=\""/usr/share/locale"\" -I. -I.. -I. -I../bonobo -I/usr/include -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/freetype2 -I/usr/include/gnome-xml -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall -Wunused -c test-any.c In file included from ../bonobo/bonobo-property-bag-client.h:16, from ../bonobo/bonobo-control-frame.h:19, from ../bonobo/bonobo-view-frame.h:15, from ../bonobo/bonobo-client-site.h:31, from ../bonobo.h:30, from test-any.c:8: ../bonobo/bonobo-property-bag.h:122: warning: type qualifiers ignored on function return type test-any.c:19: error: static declaration of 'TC_CORBA_sequence_CORBA_octet_struct' follows non-static declaration ../bonobo/Bonobo.h:423: error: previous declaration of 'TC_CORBA_sequence_CORBA_octet_struct' was here make[3]: *** [test-any.o] Error 1 make[3]: Leaving directory `/bonobo-1.0.22/tests' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/bonobo-1.0.22' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/bonobo-1.0.22' make: *** [build-stamp] Error 2 With the attached patch 'bonobo' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/bonobo-1.0.22/tests/test-any.c ./tests/test-any.c --- ../tmp-orig/bonobo-1.0.22/tests/test-any.c 2002-01-28 10:54:07.000000000 +0000 +++ ./tests/test-any.c 2005-02-21 11:07:13.783286122 +0000 @@ -16,7 +16,7 @@ }; static const struct CORBA_TypeCode_struct -TC_CORBA_sequence_CORBA_octet_struct = { +TC_CORBA_sequence_CORBA_octet_struct_local = { {{(ORBit_RootObject_Interface *) & ORBit_TypeCode_epv, TRUE, -1}, ORBIT_PSEUDO_TYPECODE}, @@ -69,7 +69,7 @@ TC_long, TC_string, (CORBA_TypeCode) & TC_org_fish_packers_Fishy_struct, - (CORBA_TypeCode) & TC_CORBA_sequence_CORBA_octet_struct + (CORBA_TypeCode) & TC_CORBA_sequence_CORBA_octet_struct_local }; static const CORBA_any @@ -199,7 +199,7 @@ TC_longlong, TC_ulonglong, (CORBA_TypeCode) & TC_org_fish_packers_Fishy_struct, - (CORBA_TypeCode) & TC_CORBA_sequence_CORBA_octet_struct, + (CORBA_TypeCode) & TC_CORBA_sequence_CORBA_octet_struct_local, (CORBA_TypeCode) &TC_England_Unions_Struct_struct }; for (i = 0; i < sizeof (tcs)/sizeof(CORBA_TypeCode); i++) { -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]