This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Yet a new version (was Re: ERROR: In procedure dynamic-link:)


I think I found what's wrong. It is not the package as a whole.

I used the exapmles to check whether the rpm builds were OK. I thought
that if the examples compiled OK then the package would be OK. I
suspected that it might be a SMP problem, and it might be. But not when
it comes to compile the package, only when it comes to compile the
examples. I think that the pagkage was built OK every time. It was just
the examples that were failing

I think it is last few lines in Makefile.am that is failing

foo-glue.c: foo.defs
        build-guile-gtk glue $< >tmp && mv tmp $@

main.c: foo.defs
        build-guile-gtk main $< >tmp && mv tmp $@

With this above in Makefile.am a build would fail 9 times of 10 or so.

I dont really understand how this works but I think the tmp-something is
deleted before the final file is ready written and that it is here it
might be an SMP problem. I am building on a dual CPU box.



Whith this  in Automake.am it works. I have tried several builds.

foo-glue.c: foo.defs
        build-guile-gtk glue $< >$@

main.c: foo.defs
        build-guile-gtk main $< >$@


Here is the last src.rpm
ftp://geek.mine.nu/pub/SRPMS/guile-gtk-20011121-8.src.rpm

The latest patch comes as an attach

G'nite
Bo

diff -Nur guile-gtk-20011121-virgin/Makefile.am guile-gtk-20011121/Makefile.am
--- guile-gtk-20011121-virgin/Makefile.am	Tue Nov 13 00:06:08 2001
+++ guile-gtk-20011121/Makefile.am	Sat Dec 29 03:45:51 2001
@@ -1,26 +1,20 @@
 # -*- Makefile -*-
 
-autoconf_macros = gnome-guile-checks.m4
-acinclude.m4: $(autoconf_macros)
-	cd $(srcdir); \
-	cat $(autoconf_macros) > acim.tmp; \
-	mv acim.tmp acinclude.m4
-
-#bin_PROGRAMS    = $(GUILE_GTK_VERSION)
+bin_PROGRAMS    = $(GUILE_GTK_VERSION)
 bin_SCRIPTS     = build-guile-gtk
 lib_LTLIBRARIES = $(LIBGUILEGTK_VERSION) $(LIBGUILEDLOPENHELPER)
 
-#EXTRA_PROGRAMS = guile-gtk-1.2 guile-gtk-1.3
+EXTRA_PROGRAMS = guile-gtk-1.2 guile-gtk-1.3
 EXTRA_LTLIBRARIES = libguilegtk-1.2.la libguilegtk-1.3.la \
                     libguiledlopenhelper.la
 
-#guile_gtk_1_2_SOURCES = main.c
-#guile_gtk_1_2_LDFLAGS = -export-dynamic
-#guile_gtk_1_2_LDADD = libguilegtk-1.2.la $(GUILE_LIBS) $(GTK_LIBS)
-
-#guile_gtk_1_3_SOURCES = main.c
-#guile_gtk_1_3_LDFLAGS = -export-dynamic
-#guile_gtk_1_3_LDADD = libguilegtk-1.3.la $(GUILE_LIBS) $(GTK_LIBS)
+guile_gtk_1_2_SOURCES = main.c
+guile_gtk_1_2_LDFLAGS = -export-dynamic
+guile_gtk_1_2_LDADD = libguilegtk-1.2.la $(GUILE_LIBS) $(GTK_LIBS)
+
+guile_gtk_1_3_SOURCES = main.c
+guile_gtk_1_3_LDFLAGS = -export-dynamic
+guile_gtk_1_3_LDADD = libguilegtk-1.3.la $(GUILE_LIBS) $(GTK_LIBS)
 
 INCLUDES = $(GTK_CFLAGS) -I$(includedir) $(GUILE_INCS)
 
@@ -68,9 +62,9 @@
 
 include_HEADERS = guile-gtk.h
 
-#install-exec-local:
-#	mkdir -p $(bindir)
-#	cd $(bindir) && rm -f guile-gtk && $(LN_S) $(GUILE_GTK_VERSION) guile-gtk
+install-exec-local:
+	mkdir -p $(bindir)
+	cd $(bindir) && rm -f guile-gtk && $(LN_S) $(GUILE_GTK_VERSION) guile-gtk
 
 gtkmoduledir = $(datadir)/guile/gtk
 vgtkmoduledir = $(datadir)/guile/gtk-$(GTK_VERSION)
@@ -109,8 +103,8 @@
 gdk-glue.c: $(gdkdefs) build-guile-gtk
 	$(BUILD) -I $(srcdir) glue $(gdkdefs) >tmpd && mv tmpd $@
 
-#main.c:  $(gtkdefs) $(gdkdefs) build-guile-gtk
-#	$(BUILD) -I $(srcdir) main $(gtkdefs) $(gdkdefs) >tmpm && mv tmpm $@
+main.c:  $(gtkdefs) $(gdkdefs) build-guile-gtk
+	$(BUILD) -I $(srcdir) main $(gtkdefs) $(gdkdefs) >tmpm && mv tmpm $@
 
 Makefile: $(BUILT_SOURCES)
 
diff -Nur guile-gtk-20011121-virgin/examples/Makefile.am guile-gtk-20011121/examples/Makefile.am
--- guile-gtk-20011121-virgin/examples/Makefile.am	Sun Apr 16 22:19:46 2000
+++ guile-gtk-20011121/examples/Makefile.am	Sat Dec 29 03:49:11 2001
@@ -16,10 +16,10 @@
 BUILT_SOURCES = foo-glue.c main.c
 
 foo-glue.c: foo.defs
-	build-guile-gtk glue $< >tmp && mv tmp $@
+	build-guile-gtk glue $< >$@
 
 main.c: foo.defs
-	build-guile-gtk main $< >tmp && mv tmp $@
+	build-guile-gtk main $< >$@
 
 scmgtkdir=$(datadir)/guile/gtk
 scmgtk_DATA = foo.scm
diff -Nur guile-gtk-20011121-virgin/examples/configure.in guile-gtk-20011121/examples/configure.in
--- guile-gtk-20011121-virgin/examples/configure.in	Sat Dec  2 13:10:27 2000
+++ guile-gtk-20011121/examples/configure.in	Sat Dec 29 03:45:51 2001
@@ -5,14 +5,6 @@
 AC_PROG_CC
 AM_PROG_LIBTOOL
 
-GNOME_COMMON_INIT
-GNOME_PLATFORM_GNOME_2(no)
-
-if test $platform_gnome_2 = yes ; then
-  GNOME_PKGCONFIG_CHECK_MODULES(GTK, gtk+-2.0:1.3.1)
-else
-  GNOME_PKGCONFIG_CHECK_MODULES(GTK, gtk+:1.2.6)
-fi
 AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]