LibGSF on Windows



Hello Gnumeric and LibGSF hackers and users!

As a part of preparing the next major version of AbiWord on Windows (2.5.x development series, 2.6 stable release), I will need to produce a Windows build of wv 1.2, which depends on a recent libgsf. I have downloaded libgsf 1.14.1 sources and have attempted to build them. I have run into a few snags and would like any help if someone has prior experience with libgsf on the MinGW/MSYS platform.

- The zlib dependency. configure checks for -lz, but the file installed with a proper zlib 1.2.3 install is libzdll.a. Copying this to libz.a is hacky, but appears to at least allow the build to advance further. (The build stops at a linking step if you rename rather than copy.)
- A build error occurs with the following last few lines of console output:

  1.
     /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2 -Wall
     -Wmissing-prototypes
  2.
     -DG_DISABLE_DEPRECATED -Wno-system-headers -Wfloat-equal
     -Wpointer-arith -Wbad-f
  3.
     unction-cast -Wwrite-strings -Wsign-compare -Waggregate-return
     -Wstrict-prototyp
  4.
     es -Wmissing-prototypes -Wmissing-declarations -Wformat
     -Wnested-externs -Winlin
  5.
     e -Wdeclaration-after-statement -Wundef -W -Wmissing-noreturn
     -Wmissing-format-a
  6.
     ttribute -D_BSD_SOURCE  -no-undefined  -o libgsf-win32-1.la -rpath
     /mingw/lib -v
  7.
     ersion-info 114:1:0 -no-undefined -export-symbols lib.def
     gsf-input-win32.lo gsf
  8.
     -output-win32.lo -Lc:/MinGW/lib -lgobject-2.0 -lglib-2.0 -lintl
     -liconv -lxml2 -
  9.
     lzdll   ../gsf/libgsf-1.la
 10.
     libtool: link: warning: library `c:/MinGW/lib/libiconv.la' was moved.
 11.
12.
     *** Warning: This system can not link to static lib archive
     ../gsf/libgsf-1.la.
 13.
     *** I have the capability to make that library automatically link
     in when
 14.
     *** you link to this library.  But I can only do this if you have a
 15.
     *** shared version of the library, which you do not appear to have.
 16.
     libtool: link: warning: `c:/MinGW/lib/libiconv.la' seems to be moved
 17.
     if test "x`/bin/sed 1q lib.def`" = xEXPORTS; then cp lib.def
     .libs/libgsf-win32-1-114.dll.def; else echo EXPORTS >
     .libs/libgsf-win32-1-114.dll.def; cat lib.def >>
     .libs/libgsf-win32-1-114.dll.def; fi
 18.
gcc -shared .libs/libgsf-win32-1-114.dll.def .libs/gsf-input-win32.o .libs/gsf-output-win32.o -Lc:/MinGW/lib
     -lgobject-2.0 -lglib-2.0 -lintl c:/MinGW/lib/libiconv.dll.a -lxml2
     -lzdll  -o .libs/libgsf-win32-1-114.dll
     -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
     .libs/libgsf-win32-1.dll.a
 19.
     Creating library file: .libs/libgsf-win32-1.dll.a
 20.
     .libs/gsf-input-win32.o(.text+0xc1): In function `hresult_to_gerror':
 21.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:82:
     undefined reference to `gsf_input_error_id'
 22.
     .libs/gsf-input-win32.o(.text+0x117): In function
     `gsf_input_istream_finalize':
 23.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:160:
     undefined reference to `gsf_input_get_type'
 24.
     .libs/gsf-input-win32.o(.text+0x16b): In function
     `gsf_input_istream_class_init':
 25.
26.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:264:
     undefined reference to `gsf_input_get_type'
 27.
     .libs/gsf-input-win32.o(.text+0x1b2): In function
     `gsf_input_istream_get_type':
 28.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:272:
     undefined reference to `gsf_input_get_type'
 29.
     .libs/gsf-input-win32.o(.text+0x455): In function
     `gsf_input_istream_new':
 30.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:134:
     undefined reference to `gsf_input_get_type'
 31.
     .libs/gsf-input-win32.o(.text+0x477):c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:134:
     undefined reference to `gsf_input_set_size'
 32.
     .libs/gsf-input-win32.o(.text+0x4ac):c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:138:
     undefined reference to `gsf_input_get_type'
 33.
     .libs/gsf-input-win32.o(.text+0x4c4):c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:138:
     undefined reference to `gsf_input_set_name'
 34.
     .libs/gsf-input-win32.o(.text+0x4d1):c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:142:
     undefined reference to `gsf_input_get_type'
 35.
     .libs/gsf-input-win32.o(.text+0x4f0):c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-input-win32.c:113:
     undefined reference to `gsf_input_error_id'
 36.
     .libs/gsf-output-win32.o(.text+0x3d): In function
     `gsf_output_istream_set_error':
 37.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-output-win32.c:58:
     undefined reference to `gsf_output_set_error'
 38.
     .libs/gsf-output-win32.o(.text+0x6b): In function
     `gsf_output_istream_class_init':
 39.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-output-win32.c:186:
     undefined reference to `gsf_output_get_type'
 40.
     .libs/gsf-output-win32.o(.text+0xb2): In function
     `gsf_output_istream_get_type':
 41.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-output-win32.c:194:
     undefined reference to `gsf_output_get_type'
 42.
     .libs/gsf-output-win32.o(.text+0x32b): In function
     `gsf_output_istream_finalize':
 43.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-output-win32.c:109:
     undefined reference to `gsf_output_get_type'
 44.
     .libs/gsf-output-win32.o(.text+0x344):c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-output-win32.c:111:
     undefined reference to `gsf_output_get_type'
 45.
     .libs/gsf-output-win32.o(.text+0x3a7): In function
     `gsf_output_istream_new':
 46.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-output-win32.c:85:
     undefined reference to `gsf_output_get_type'
 47.
     .libs/gsf-output-win32.o(.text+0x1d1): In function
     `gsf_output_istream_seek':
 48.
     c:/src/libgsf/libgsf-1.14.1/gsf-win32/gsf-output-win32.c:151:
     undefined reference to `gsf_output_set_error'
 49.
     collect2: ld returned 1 exit status
 50.
     make[2]: *** [libgsf-win32-1.la] Error 1
 51.
     make[2]: Leaving directory `/c/src/libgsf/libgsf-1.14.1/gsf-win32'
 52.
     make[1]: *** [all-recursive] Error 1
 53.
     make[1]: Leaving directory `/c/src/libgsf/libgsf-1.14.1'
 54.
     make: *** [all] Error 2

My configure line is

PKG_CONFIG_PATH=/mingw/lib/pkgconfig/ ./configure --prefix=/mingw



Thank you for any help you are able to provide!

Ryan

--
Ryan Pavlik
AbiWord Win32 Platform Maintainer
www.abisource.com

"Optimism is the father that leads to achievement." - Helen Keller




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