Comment 23 for bug 499592

Revision history for this message
Bernhard Reiter (ockham-razor) wrote :

I now also get the static *.a library -- see my updated description. Shared object creation fails with:
libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries

Any ideas what's going wrong here? The full "make" result is:

$ make
make all-recursive
make[1]: Entering directory `/home/Bernie/workspace/poppler-python'
Making all in demo
make[2]: Entering directory `/home/Bernie/workspace/poppler-python/demo'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Bernie/workspace/poppler-python/demo'
make[2]: Entering directory `/home/Bernie/workspace/poppler-python'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Ic:\PROGRA~1\Python26/include/python2.6 -I/c/Programme/Python26/include -mms-bitfields -Ic:/Programme/Python26/include/pygtk-2.0 -Ic:/GTK/include/glib-2.0 -Ic:/GTK/lib/glib-2.0/include -Ic:/GTK/include/atk-1.0 -Ic:/GTK/include/gtk-2.0 -Ic:/GTK/lib/gtk-2.0/include -Ic:/GTK/include/pango-1.0 -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -Ic:/Programme/poppler/include/poppler/glib -Ic:/Programme/poppler/include/poppler -Ic:/Programme/Python26/include/pycairo -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -I/c/Programme/Python26/include/pycairo -I/c/Programme/Python26/share/pygtk/2.0/defs -Wall -std=c9x -fno-strict-aliasing -MT poppler_la-popplermodule.lo -MD -MP -MF .deps/poppler_la-popplermodule.Tpo -c -o poppler_la-popplermodule.lo `test -f 'popplermodule.c' || echo './'`popplermodule.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. "-Ic:PROGRA~1Python26/include/python2.6" -I/c/Programme/Python26/include -mms-bitfields -Ic:/Programme/Python26/include/pygtk-2.0 -Ic:/GTK/include/glib-2.0 -Ic:/GTK/lib/glib-2.0/include -Ic:/GTK/include/atk-1.0 -Ic:/GTK/include/gtk-2.0 -Ic:/GTK/lib/gtk-2.0/include -Ic:/GTK/include/pango-1.0 -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -Ic:/Programme/poppler/include/poppler/glib -Ic:/Programme/poppler/include/poppler -Ic:/Programme/Python26/include/pycairo -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -I/c/Programme/Python26/include/pycairo -I/c/Programme/Python26/share/pygtk/2.0/defs -Wall -std=c9x -fno-strict-aliasing -MT poppler_la-popplermodule.lo -MD -MP -MF .deps/poppler_la-popplermodule.Tpo -c popplermodule.c -DDLL_EXPORT -DPIC -o .libs/poppler_la-popplermodule.o
mv -f .deps/poppler_la-popplermodule.Tpo .deps/poppler_la-popplermodule.Plo
(cd .\
        && /c/PROGRA~1/Python26//python c:/Programme/Python26/Lib/site-packages/gtk-2.0/codegen/codegen.py \
                --override poppler.override \
                --register c:/Programme/Python26/share/pygtk/2.0/defs/gdk-types.defs \
                --register c:/Programme/Python26/share/pygtk/2.0/defs/pango-types.defs \
                --register c:/Programme/Python26/share/pygtk/2.0/defs/gtk-types.defs \
                --prefix py_poppler poppler.defs) > gen-poppler.c \
                && cp gen-poppler.c poppler.c \
                && rm -f gen-poppler.c
Could not write method PopplerAnnotMarkup.get_date: No ArgType for GDate*
Could not write method PopplerAttachment.save_to_callback: No ArgType for PopplerAttachmentSaveFunc
Warning: generating old-style constructor for:poppler_font_info_new
Could not write function date_parse: No ArgType for time_t*
Could not write function error_quark: No ArgType for GQuark
Warning: Constructor for PopplerFontInfo needs to be updated to new API
         See http://live.gnome.org/PyGTK_2fWhatsNew28#update-constructors
***INFO*** The coverage of global functions is 66.67% (4/6)
***INFO*** The coverage of methods is 98.06% (101/103)
***INFO*** There are no declared virtual proxies.
***INFO*** There are no declared virtual accessors.
***INFO*** There are no declared interface proxies.
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Ic:\PROGRA~1\Python26/include/python2.6 -I/c/Programme/Python26/include -mms-bitfields -Ic:/Programme/Python26/include/pygtk-2.0 -Ic:/GTK/include/glib-2.0 -Ic:/GTK/lib/glib-2.0/include -Ic:/GTK/include/atk-1.0 -Ic:/GTK/include/gtk-2.0 -Ic:/GTK/lib/gtk-2.0/include -Ic:/GTK/include/pango-1.0 -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -Ic:/Programme/poppler/include/poppler/glib -Ic:/Programme/poppler/include/poppler -Ic:/Programme/Python26/include/pycairo -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -I/c/Programme/Python26/include/pycairo -I/c/Programme/Python26/share/pygtk/2.0/defs -Wall -std=c9x -fno-strict-aliasing -MT poppler_la-poppler.lo -MD -MP -MF .deps/poppler_la-poppler.Tpo -c -o poppler_la-poppler.lo `test -f 'poppler.c' || echo './'`poppler.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. "-Ic:PROGRA~1Python26/include/python2.6" -I/c/Programme/Python26/include -mms-bitfields -Ic:/Programme/Python26/include/pygtk-2.0 -Ic:/GTK/include/glib-2.0 -Ic:/GTK/lib/glib-2.0/include -Ic:/GTK/include/atk-1.0 -Ic:/GTK/include/gtk-2.0 -Ic:/GTK/lib/gtk-2.0/include -Ic:/GTK/include/pango-1.0 -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -Ic:/Programme/poppler/include/poppler/glib -Ic:/Programme/poppler/include/poppler -Ic:/Programme/Python26/include/pycairo -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -I/c/Programme/Python26/include/pycairo -I/c/Programme/Python26/share/pygtk/2.0/defs -Wall -std=c9x -fno-strict-aliasing -MT poppler_la-poppler.lo -MD -MP -MF .deps/poppler_la-poppler.Tpo -c poppler.c -DDLL_EXPORT -DPIC -o .libs/poppler_la-poppler.o
poppler.c: In function '_wrap_poppler_page_render':
poppler.c:3287: warning: implicit declaration of function 'poppler_page_render'
poppler.c: In function '_wrap_poppler_page_render_for_printing':
poppler.c:3302: warning: implicit declaration of function 'poppler_page_render_for_printing'
poppler.override: In function '_wrap_poppler_page_get_thumbnail':
poppler.override:576: warning: implicit declaration of function 'poppler_page_get_thumbnail'
poppler.override:576: warning: assignment makes pointer from integer without a cast
poppler.c: In function '_wrap_poppler_page_render_selection':
poppler.c:3366: warning: implicit declaration of function 'poppler_page_render_selection'
poppler.override: In function '_wrap_poppler_page_get_image':
poppler.override:601: warning: implicit declaration of function 'poppler_page_get_image'
poppler.override:601: warning: assignment makes pointer from integer without a cast
mv -f .deps/poppler_la-poppler.Tpo .deps/poppler_la-poppler.Plo
/bin/sh ./libtool --tag=CC --mode=link gcc -mms-bitfields -Ic:/Programme/Python26/include/pygtk-2.0 -Ic:/GTK/include/glib-2.0 -Ic:/GTK/lib/glib-2.0/include -Ic:/GTK/include/atk-1.0 -Ic:/GTK/include/gtk-2.0 -Ic:/GTK/lib/gtk-2.0/include -Ic:/GTK/include/pango-1.0 -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -Ic:/Programme/poppler/include/poppler/glib -Ic:/Programme/poppler/include/poppler -Ic:/Programme/Python26/include/pycairo -Ic:/GTK/include/cairo -Ic:/GTK/include/freetype2 -Ic:/GTK/include -Ic:/GTK/include/libpng14 -I/c/Programme/Python26/include/pycairo -I/c/Programme/Python26/share/pygtk/2.0/defs -Wall -std=c9x -fno-strict-aliasing -module -avoid-version -export-symbols-regex initpoppler -L/c/Programme/Python26/lib -o poppler.la -rpath C:\Users\Bernie\workspace program_transform_name = s,x,x,/lib/python2.6/site-packages poppler_la-popplermodule.lo poppler_la-poppler.lo -Lc:/GTK/lib -Lc:/Programme/poppler/lib -latk-1.0 -lpoppler-glib -lgdk-win32-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries
libtool: link: ar cru .libs/poppler.a .libs/poppler_la-popplermodule.o .libs/poppler_la-poppler.o
libtool: link: ranlib .libs/poppler.a
libtool: link: ( cd ".libs" && rm -f "poppler.la" && cp -p "../poppler.la" "poppler.la" )
make[2]: Leaving directory `/home/Bernie/workspace/poppler-python'
make[1]: Leaving directory `/home/Bernie/workspace/poppler-python'