Requesting help to port g-wrap to cygwin

Milind Kamble mbkads at yahoo.com
Thu Feb 19 12:45:35 CST 2004


Thanks for your response Derek. Yes, I have gnome-1.4
installed in /opt/gnome. And I found that glib wasn't
being linked in when libgw-test-glib.la was being
linked -- that addition shows in the patch I have
attached

Well, I have managed to get all the issues resolved!
g-wrap compiles and make check indicates all tests
passing on the latest cygwin.
 
Here is the summary of steps I performed to get things
compiled:
1 I used the version g-wrap-1.3.4. Untarred it to a
working dir ($work_dir). cd to $work_dir
2 Apply the patch file with the command
patch -p0 < g-wrap-1.3.4-cygwin.patch (the patch file
is attached with this mail)
   The patch file modified configure.in and 
g-wrap/Makefile.am and test/Makefile.am
   (the only change in configure.in was to change
AM_PROG_LIBTOOL to AC_PROG_LIBTOOL based on reading
some web-searched documentation)
    The modifications in g-wrap/Makefile.am were to
add "-no-undefined" flag to all blah_LDFLAGS macros.
cygwin libtool does not generated dlls if this flag is
not defined.
    In addition to the above change in the
test/Makefile.am file, I had to add references to
../g-wrap/libgwrap-wct.la for some of the blah_LIBADD
macros (see the patch file).
3. Ran the following sequence of commands
in "topsrcdir"
  bash> autoupdate # to update the autoconf/automake
input files
  bash> aclocal && autoconf && autoheader && automake
  bash> configure
  bash> make
  bash> make check
  bash> make install

Would someone analyze the patch and provide me
feedback on their correctness?

Thanks
Milind



__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-------------- next part --------------
diff -Naur -x .libs -x .deps g-wrap-1.3.4-orig/configure.in g-wrap-1.3.4/configure.in
--- g-wrap-1.3.4-orig/configure.in	2002-11-07 22:40:09.000000000 -0600
+++ g-wrap-1.3.4/configure.in	2004-02-19 11:45:01.125588900 -0600
@@ -26,7 +26,9 @@
 AC_PROG_CC
 AC_PROG_INSTALL
 AC_LIBTOOL_DLOPEN
-AM_PROG_LIBTOOL
+dnl mbk AM_PROG_LIBTOOL is deprecated
+dnl AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
 AC_PATH_PROG(GUILE,guile,nope)
 
 dnl Checks for libraries.
diff -Naur -x .libs -x .deps g-wrap-1.3.4-orig/g-wrap/Makefile.am g-wrap-1.3.4/g-wrap/Makefile.am
--- g-wrap-1.3.4-orig/g-wrap/Makefile.am	2002-11-07 11:23:43.000000000 -0600
+++ g-wrap-1.3.4/g-wrap/Makefile.am	2004-02-19 11:37:53.430148500 -0600
@@ -65,13 +65,13 @@
   ${GW_WCT_INTERFACE_MAJOR_VER}:${GW_WCT_INTERFACE_REVISION}:${GW_WCT_INTERFACE_AGE}
 gwrapinclude_HEADERS += g-wrap-wct.h
 libgwrap_wct_la_SOURCES = g-wrap-wct.c
-libgwrap_wct_la_LDFLAGS = -rpath $(libdir) -version-info ${GW_LIBWCT_VINFO}
+libgwrap_wct_la_LDFLAGS = -rpath $(libdir) -no-undefined -version-info ${GW_LIBWCT_VINFO}
 libgwrap_wct_la_LIBADD = @GUILE_LIBS@
 
 ################## (g-wrap gw-wct) section
 
 nodist_libgw_wct_la_SOURCES = gw-wct.c
-libgw_wct_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic @GUILE_LIBS@
+libgw_wct_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic @GUILE_LIBS@
 libgw_wct_la_LIBADD = libgwrap-wct.la
 
 gw-wct.scm gw-wct.c gw-wct.h gw-wct.html: gw-wct-spec.scm
@@ -100,7 +100,7 @@
 ################## (g-wrap gw-standard) section
 
 nodist_libgw_standard_la_SOURCES = gw-standard.c
-libgw_standard_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic @GUILE_LIBS@
+libgw_standard_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic @GUILE_LIBS@
 libgw_standard_la_LIBADD = 
 LIBGW_STANDARD_GWGEN = $(addprefix gw-standard, .h .c .scm .html) 
 
@@ -121,7 +121,7 @@
   ${LGWRAP_GLIB_MAJOR_VER}:${LGWRAP_GLIB_REVISION}:${LGWRAP_GLIB_AGE}
 gwrapinclude_HEADERS += g-wrap-glib.h
 libgwrap_glib_la_SOURCES = g-wrap-glib.c
-libgwrap_glib_la_LDFLAGS = -rpath $(libdir) -version-info ${LGWRAP_GLIB_VINFO}
+libgwrap_glib_la_LDFLAGS = -rpath $(libdir) -no-undefined -version-info ${LGWRAP_GLIB_VINFO}
 libgwrap_glib_la_LIBADD = @GUILE_LIBS@
 
 ################## (g-wrap gw-glib) section
@@ -129,7 +129,7 @@
 if GW_HAVE_GLIB
 
 nodist_libgw_glib_la_SOURCES = gw-glib.c
-libgw_glib_la_LDFLAGS = -module -export-dynamic \
+libgw_glib_la_LDFLAGS = -module -no-undefined -export-dynamic \
   $(shell ${GW_GLIB_CONFIG} --libs glib)
 libgw_glib_la_LIBADD = @GUILE_LIBS@
 
@@ -151,7 +151,7 @@
 if GW_HAVE_GUILE_GTK
 
 nodist_libgw_gtk_la_SOURCES = gw-gtk.c
-libgw_gtk_la_LDFLAGS = -module -export-dynamic \
+libgw_gtk_la_LDFLAGS = -module -no-undefined -export-dynamic \
   $(shell ${GW_BUILD_GUILE_GTK} libs)
 libgw_gtk_la_LIBADD = 
 
diff -Naur -x .libs -x .deps g-wrap-1.3.4-orig/test/Makefile.am g-wrap-1.3.4/test/Makefile.am
--- g-wrap-1.3.4-orig/test/Makefile.am	2002-11-07 11:23:42.000000000 -0600
+++ g-wrap-1.3.4/test/Makefile.am	2004-02-19 11:47:37.641979600 -0600
@@ -64,7 +64,7 @@
 
 noinst_LTLIBRARIES += libg-wrap-test-c-code.la
 libg_wrap_test_c_code_la_SOURCES = g-wrap-test-c-code.c g-wrap-test-c-code.h
-libg_wrap_test_c_code_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic \
+libg_wrap_test_c_code_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic \
   ${GUILE_LIBS} \
   ${GW_GLIB_LIBFLAGS_ADD}
 libg_wrap_test_c_code_la_LIBADD = 
@@ -74,7 +74,7 @@
 
 noinst_LTLIBRARIES += libgw-test-standard.la
 nodist_libgw_test_standard_la_SOURCES = gw-test-standard.c
-libgw_test_standard_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic
+libgw_test_standard_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic
 libgw_test_standard_la_LIBADD = ./libg-wrap-test-c-code.la ${GUILE_LIBS}
 
 gw-test-standard.scm gw-test-standard.h gw-test-standard.c gw-test-standard.html gw-test-standard-autogen.h: gw-test-standard-spec.scm
@@ -94,7 +94,7 @@
 
 noinst_LTLIBRARIES += libgw-test-enumeration.la
 nodist_libgw_test_enumeration_la_SOURCES = gw-test-enumeration.c
-libgw_test_enumeration_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic
+libgw_test_enumeration_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic
 libgw_test_enumeration_la_LIBADD = ./libg-wrap-test-c-code.la ${GUILE_LIBS}
 
 gw-test-enumeration.scm gw-test-enumeration.h gw-test-enumeration.c gw-test-enumeration.html gw-test-enumeration-autogen.h: gw-test-enumeration-spec.scm
@@ -114,9 +114,8 @@
 
 noinst_LTLIBRARIES += libgw-test-parent.la
 nodist_libgw_test_parent_la_SOURCES = gw-test-parent.c
-libgw_test_parent_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic
-libgw_test_parent_la_LIBADD = ./libg-wrap-test-c-code.la ../g-wrap/libgw-wct.la
-
+libgw_test_parent_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic
+libgw_test_parent_la_LIBADD = ./libg-wrap-test-c-code.la ../g-wrap/libgw-wct.la ../g-wrap/libgwrap-wct.la ${GUILE_LIBS}
 #           (read-enable 'positions) \
 #
 
@@ -136,8 +135,8 @@
 
 noinst_LTLIBRARIES += libgw-test-child.la
 nodist_libgw_test_child_la_SOURCES = gw-test-child.c
-libgw_test_child_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic
-libgw_test_child_la_LIBADD = ./libg-wrap-test-c-code.la
+libgw_test_child_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic
+libgw_test_child_la_LIBADD = ./libg-wrap-test-c-code.la ../g-wrap/libgwrap-wct.la ${GUILE_LIBS}
 
 gw-test-child.scm gw-test-child.h gw-test-child.c gw-test-child.html gw-test-child-autogen.h: gw-test-child-spec.scm
 	LD_LIBRARY_PATH=${LOCALPWD}/..:${LOCALPWD}/..: \
@@ -154,9 +153,9 @@
 
 if GW_HAVE_GLIB
 nodist_libgw_test_glib_la_SOURCES = gw-test-glib.c
-libgw_test_glib_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic
+libgw_test_glib_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic
 libgw_test_glib_la_LIBADD = \
-  ../g-wrap/libgwrap-glib.la ./libg-wrap-test-c-code.la ${GUILE_LIBS}
+  ../g-wrap/libgwrap-glib.la ../g-wrap/libgwrap-wct.la ./libg-wrap-test-c-code.la ${GUILE_LIBS} ${GW_GLIB_LIBFLAGS_ADD}
 endif
 
 gw-test-glib.scm gw-test-glib.h gw-test-glib.c gw-test-glib.html gw-test-glib-autogen.h: gw-test-glib-spec.scm
@@ -176,7 +175,7 @@
 
 if GW_HAVE_GUILE_GTK
 nodist_libtest_gw_gtkobj_la_SOURCES = test-gw-gtkobj.c
-libtest_gw_gtkobj_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic
+libtest_gw_gtkobj_la_LDFLAGS = -rpath $(libdir) -module -no-undefined -export-dynamic
 libtest_gw_gtkobj_la_LIBADD = ${GW_GUILE_GTK_LIBFLAGS_ADD}
 endif
 


More information about the gnucash-user mailing list