Re: Bonobo compile error



I had the same problem.  I upgraded myself from autoconf 2.13 to 2.50
and the storage-modules link problem got fixed.

Now I get a bunch of other link errors caused by the linke order of
bonobox and bonobo.  Looks like the combination of libtool 1.3.5 and
autoconf 2.50 requires these to be in the right dependency order or
something.

The attatched patch fixes all such cases I found in bonobo.  I can
commit this if its ok with you.

. . .

/bin/sh ../libtool --mode=link gcc  -gdwarf-2 -O -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations   -o moniker-test 
moniker-test.o ../bonobo/libbonobo.la		../bonobo/libbonobox.la	
-rdynamic -L/gnome/lib -L/usr/X11R6/lib -loaf -lORBitCosNaming -lORBit
-lIIOP -lORBitutil -lnsl -lgnomeprint -lgnomeui -lart_lgpl -lgdk_imlib
-lSM -lICE -lgnome -lgnomesupport -lesd -laudiofile -ldb1 -lgdk_pixbuf
-lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm -lxml -lz 
gcc -gdwarf-2 -O -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -o moniker-test moniker-test.o
../bonobo/.libs/libbonobo.a ../bonobo/.libs/libbonobox.a -rdynamic
-L/gnome/lib -L/usr/X11R6/lib -loaf -lORBitCosNaming -lORBit -lIIOP
-lORBitutil -lnsl -lgnomeprint -lgnomeui -lart_lgpl -lgdk_imlib -lSM
-lICE -lgnome -lgnomesupport -lesd -laudiofile -ldb1 -lgdk_pixbuf -lgtk
-lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm -lxml -lz
../bonobo/.libs/libbonobox.a(bonobo-control-frame.o): In function
`bonobo_control_frame_set_propbag':
/gnome-source/bonobo/bonobo/bonobo-control-frame.c:807: undefined
reference to `bonobo_property_bag_get_type'
../bonobo/.libs/libbonobox.a(bonobo-control.o): In function
`bonobo_control_set_properties':
/gnome-source/bonobo/bonobo/bonobo-control.c:793: undefined reference to
`bonobo_property_bag_get_type'
../bonobo/.libs/libbonobox.a(bonobo-control.o): In function
`bonobo_control_set_property':
/gnome-source/bonobo/bonobo/bonobo-control.c:994: undefined reference to
`bonobo_property_bag_client_setv'
../bonobo/.libs/libbonobox.a(bonobo-control.o): In function
`bonobo_control_get_property':
/gnome-source/bonobo/bonobo/bonobo-control.c:1021: undefined reference
to `bonobo_property_bag_client_getv'
../bonobo/.libs/libbonobox.a(bonobo-widget.o): In function
`bonobo_widget_set_property':
/gnome-source/bonobo/bonobo/bonobo-widget.c:637: undefined reference to
`bonobo_property_bag_client_setv'
../bonobo/.libs/libbonobox.a(bonobo-widget.o): In function
`bonobo_widget_get_property':
/gnome-source/bonobo/bonobo/bonobo-widget.c:698: undefined reference to
`bonobo_property_bag_client_getv'
../bonobo/.libs/libbonobox.a(bonobo-ui-toolbar-control-item.o): In
function `set_control_property_bag_value':
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:47:
undefined reference to `bonobo_property_bag_client_get_property'
../bonobo/.libs/libbonobox.a(bonobo-ui-toolbar-control-item.o): In
function `set_control_property_bag_gboolean':
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:71:
undefined reference to `bonobo_arg_new'
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:71:
undefined reference to `bonobo_arg_type_is_equal'
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:71:
undefined reference to `bonobo_arg_release'
../bonobo/.libs/libbonobox.a(bonobo-ui-toolbar-control-item.o): In
function `set_control_property_bag_gint':
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:72:
undefined reference to `bonobo_arg_new'
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:72:
undefined reference to `bonobo_arg_type_is_equal'
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:72:
undefined reference to `bonobo_arg_release'
../bonobo/.libs/libbonobox.a(bonobo-ui-toolbar-control-item.o): In
function `set_control_property_bag_string':
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:73:
undefined reference to `bonobo_arg_new'
/gnome-source/bonobo/bonobo/bonobo-ui-toolbar-control-item.c:73:
undefined reference to `bonobo_arg_release'
collect2: ld returned 1 exit status
gmake: *** [moniker-test] Error 1


-re

Michael Meeks wrote:
> 
> Hi Josh,
> 
> On Tue, 26 Jun 2001, josh lucas wrote:
> > I just checked out bonobo via eazel-hacking and got the below error:
> >
> > /usr/bin/ld: cannot find -lefs
> > collect2: ld returned 1 exit status
> > make[2]: *** [libstorage_efs.la] Error 1
> > make[1]: *** [all-recursive] Error 1
> >
> >
> > Could this be something in the setup?
> 
>         It's most likely that you need a new autoconf.
> 
>         Regards,
> 
>                 Michael.
>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/bonobo/ChangeLog,v
retrieving revision 1.1079
diff -u -u -r1.1079 ChangeLog
--- ChangeLog	2001/06/27 11:41:24	1.1079
+++ ChangeLog	2001/06/27 12:13:34
@@ -1,3 +1,20 @@
+2001-06-27  Ramiro Estrugo  <ramiro eazel com>
+
+	* components/application-x-gnomine/Makefile.am:
+	* components/audio-ulaw/Makefile.am:
+	* components/selector/Makefile.am:
+	* components/text-plain/Makefile.am:
+	* gshell/Makefile.am:
+	* monikers/Makefile.am:
+	* samples/compound-doc/Makefile.am:
+	* samples/compound-doc/bonobo-hello/Makefile.am:
+	* samples/compound-doc/container/Makefile.am:
+	* samples/controls/Makefile.am:
+	* tests/Makefile.am:
+	Make sure the link order of libbonobox and libbonobo is in order
+	of dependency.  Apparently libtool 1.3.5 plus autoconf 2.50
+	requires this.
+	
 2001-06-27  Michael Meeks  <michael ximian com>
 
 	* Version 1.0.6
Index: components/application-x-gnomine/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/components/application-x-gnomine/Makefile.am,v
retrieving revision 1.25
diff -u -u -r1.25 Makefile.am
--- components/application-x-gnomine/Makefile.am	2001/01/08 23:09:30	1.25
+++ components/application-x-gnomine/Makefile.am	2001/06/27 12:13:34
@@ -29,8 +29,8 @@
 	bonobo-application-x-mines.c
 
 bonobo_application_x_mines_LDADD =		\
-	$(top_builddir)/bonobo/libbonobo.la	\
 	$(top_builddir)/bonobo/libbonobox.la	\
+	$(top_builddir)/bonobo/libbonobo.la	\
 	$(BONOBOX_TEST_LIBS)
 
 #Games_DATA = gnomine.desktop
Index: components/audio-ulaw/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/components/audio-ulaw/Makefile.am,v
retrieving revision 1.16
diff -u -u -r1.16 Makefile.am
--- components/audio-ulaw/Makefile.am	2001/01/08 23:09:31	1.16
+++ components/audio-ulaw/Makefile.am	2001/06/27 12:13:34
@@ -18,8 +18,8 @@
 	$(BONOBOX_TEST_CFLAGS)
 
 bonobo_audio_ulaw_LDADD = 			\
-	$(top_builddir)/bonobo/libbonobo.la	\
 	$(top_builddir)/bonobo/libbonobox.la	\
+	$(top_builddir)/bonobo/libbonobo.la	\
 	$(BONOBOX_TEST_LIBS)			\
 	$(INTLLIBS)
 
Index: components/selector/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/components/selector/Makefile.am,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile.am
--- components/selector/Makefile.am	2001/01/08 23:09:32	1.2
+++ components/selector/Makefile.am	2001/06/27 12:13:34
@@ -11,8 +11,8 @@
 	$(BONOBOX_TEST_CFLAGS)
 
 bonobo_selector_LDADD = 			\
-	$(top_builddir)/bonobo/libbonobo.la	\
 	$(top_builddir)/bonobo/libbonobox.la	\
+	$(top_builddir)/bonobo/libbonobo.la	\
 	$(BONOBOX_TEST_LIBS)			\
 	$(INTLLIBS)
 
Index: components/text-plain/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/components/text-plain/Makefile.am,v
retrieving revision 1.16
diff -u -u -r1.16 Makefile.am
--- components/text-plain/Makefile.am	2001/01/08 23:09:33	1.16
+++ components/text-plain/Makefile.am	2001/06/27 12:13:34
@@ -11,8 +11,8 @@
 	$(BONOBOX_TEST_CFLAGS)
 
 bonobo_text_plain_LDADD = 			\
-	$(top_builddir)/bonobo/libbonobo.la	\
 	$(top_builddir)/bonobo/libbonobox.la	\
+	$(top_builddir)/bonobo/libbonobo.la	\
 	$(BONOBOX_TEST_LIBS)			\
 	$(INTLLIBS)
 
Index: gshell/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/gshell/Makefile.am,v
retrieving revision 1.20
diff -u -u -r1.20 Makefile.am
--- gshell/Makefile.am	2000/10/30 18:27:48	1.20
+++ gshell/Makefile.am	2001/06/27 12:13:34
@@ -24,8 +24,8 @@
 ui_DATA	= gshell-ui.xml
 
 gshell_LDADD = 					\
-	$(top_builddir)/bonobo/libbonobo.la	\
 	$(top_builddir)/bonobo/libbonobox.la	\
+	$(top_builddir)/bonobo/libbonobo.la	\
 	$(BONOBOX_TEST_LIBS)			\
         $(INTLLIBS)
 
Index: monikers/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/monikers/Makefile.am,v
retrieving revision 1.37
diff -u -u -r1.37 Makefile.am
--- monikers/Makefile.am	2001/05/05 22:57:34	1.37
+++ monikers/Makefile.am	2001/06/27 12:13:34
@@ -37,8 +37,8 @@
 #noinst_PROGRAMS = moniker-control-test moniker-test
 
 moniker_ldadd = 				\
-	$(top_builddir)/bonobo/libbonobo.la	\
 	$(top_builddir)/bonobo/libbonobox.la	\
+	$(top_builddir)/bonobo/libbonobo.la	\
 	$(BONOBOX_TEST_LIBS)
 
 libmoniker_std_la_SOURCES =			\
Index: samples/compound-doc/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/samples/compound-doc/Makefile.am,v
retrieving revision 1.20
diff -u -u -r1.20 Makefile.am
--- samples/compound-doc/Makefile.am	2001/01/08 23:09:36	1.20
+++ samples/compound-doc/Makefile.am	2001/06/27 12:13:34
@@ -16,9 +16,9 @@
 	paint-component-simple.c
 
 bonobo_sample_paint_LDADD =				\
-	$(top_builddir)/bonobo/libbonobo.la		\
-	$(top_builddir)/bonobo/libbonobox.la		\
 	$(top_builddir)/bonobo/libbonobo-print.la	\
+	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la		\
 	$(BONOBOX_TEST_LIBS)				\
 	$(INTLLIBS)
 
@@ -26,8 +26,8 @@
 	sample-canvas-item.c
 
 bonobo_sample_canvas_item_LDADD = 			\
-	$(top_builddir)/bonobo/libbonobo.la	\
 	$(top_builddir)/bonobo/libbonobox.la	\
+	$(top_builddir)/bonobo/libbonobo.la	\
 	$(BONOBOX_TEST_LIBS)			\
 	$(INTLLIBS)
 
Index: samples/compound-doc/bonobo-hello/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/samples/compound-doc/bonobo-hello/Makefile.am,v
retrieving revision 1.8
diff -u -u -r1.8 Makefile.am
--- samples/compound-doc/bonobo-hello/Makefile.am	2000/12/14 19:54:32	1.8
+++ samples/compound-doc/bonobo-hello/Makefile.am	2001/06/27 12:13:34
@@ -21,9 +21,9 @@
 	hello-object-print.c
 
 bonobo_sample_hello_LDADD =				\
-	$(top_builddir)/bonobo/libbonobo.la		\
-	$(top_builddir)/bonobo/libbonobox.la		\
 	$(top_builddir)/bonobo/libbonobo-print.la	\
+	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la		\
 	$(BONOBOX_TEST_LIBS)				\
 	$(INTLLIBS)
 
Index: samples/compound-doc/container/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/samples/compound-doc/container/Makefile.am,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile.am
--- samples/compound-doc/container/Makefile.am	2000/09/08 19:27:36	1.9
+++ samples/compound-doc/container/Makefile.am	2001/06/27 12:13:34
@@ -26,8 +26,8 @@
 	embeddable-io.h
 
 sample_container_LDADD =				\
-	$(top_builddir)/bonobo/libbonobo.la		\
 	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la		\
 	$(top_builddir)/bonobo/libbonobo-print.la	\
 	$(BONOBOX_TEST_LIBS)				\
 	$(INTLLIBS)
Index: samples/controls/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/samples/controls/Makefile.am,v
retrieving revision 1.15
diff -u -u -r1.15 Makefile.am
--- samples/controls/Makefile.am	2001/01/08 23:09:36	1.15
+++ samples/controls/Makefile.am	2001/06/27 12:13:34
@@ -15,8 +15,8 @@
 	sample-control-factory.c
 
 bonobo_sample_controls_LDADD =				\
-	$(top_builddir)/bonobo/libbonobo.la		\
 	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la		\
 	$(BONOBOX_TEST_LIBS)				\
 	$(INTLLIBS)
 
@@ -24,8 +24,8 @@
 	sample-control-container.c
 
 sample_control_container_LDADD =			\
-	$(top_builddir)/bonobo/libbonobo.la		\
 	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la		\
 	$(BONOBOX_TEST_LIBS)				\
 	$(INTLLIBS)
 
Index: tests/Makefile.am
===================================================================
RCS file: /cvs/gnome/bonobo/tests/Makefile.am,v
retrieving revision 1.21
diff -u -u -r1.21 Makefile.am
--- tests/Makefile.am	2001/04/23 21:23:06	1.21
+++ tests/Makefile.am	2001/06/27 12:13:34
@@ -51,13 +51,15 @@
 test_ui_SOURCES = test-ui.c
 test_ui_LDADD =						\
 	$(bonobo_libs)					\
+	$(top_builddir)/bonobo/libbonobo-print.la	\
 	$(top_builddir)/bonobo/libbonobox.la		\
-	$(top_builddir)/bonobo/libbonobo-print.la
+	$(top_builddir)/bonobo/libbonobo.la
 
 test_focus_SOURCES = test-focus.c
 test_focus_LDADD =					\
 	$(bonobo_libs)					\
-	$(top_builddir)/bonobo/libbonobox.la
+	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la
 
 test_toolbar_SOURCES = test-toolbar.c
 test_toolbar_LDADD =					\
@@ -86,7 +88,8 @@
 
 selector_test_LDADD =					\
 	$(bonobo_libs)					\
-	$(top_builddir)/bonobo/libbonobox.la
+	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la
 
 test_event_source_SOURCES = test-event-source.c
 
@@ -97,12 +100,14 @@
 test_sensitivity_SOURCES = test-sensitivity.c
 test_sensitivity_LDADD =				\
 	$(bonobo_libs)					\
-	$(top_builddir)/bonobo/libbonobox.la
+	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la
 
 test_reparent_SOURCES = test-reparent.c
-test_reparent_LDADD =				\
+test_reparent_LDADD =					\
 	$(bonobo_libs)					\
-	$(top_builddir)/bonobo/libbonobox.la
+	$(top_builddir)/bonobo/libbonobox.la		\
+	$(top_builddir)/bonobo/libbonobo.la
 
 test_xobject_SOURCES = \
 	test-xobject.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]