Opened 11 years ago

Closed 5 years ago

#41200 closed defect (fixed)

poppler 0.24.3_0 does not build because of missing symbol _PyUnicodeUCS2_AsUTF8String in/opt/local/lib/gobject-introspection/giscanner/_giscanner.so

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: poppler

Description

This is the error on Mac OS X 10.6.8:

/opt/local/bin/g-ir-scanner  --add-include-path=. --warn-all --namespace=Poppler --nsversion=0.18 --libtool="/bin/sh ../libtool"  --include=GObject-2.0 --include=Gio-2.0 --include=cairo-1.0 --pkg-export=poppler-glib  --library=libpoppler-glib.la --c-include poppler.h --cflags-begin -DG_LOG_DOMAIN=\"Poppler\" -I.. -I../poppler -D_REENTRANT -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include  -I/opt/local/include/freetype2 -I/opt/local/include  -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -I.. --cflags-end  poppler-enums.c poppler-enums.h poppler-action.cc poppler-date.cc poppler-document.cc poppler-page.cc poppler-attachment.cc poppler-form-field.cc poppler-annot.cc poppler-layer.cc poppler-media.cc poppler-movie.cc poppler-cached-file-loader.cc poppler-cached-file-loader.h poppler-input-stream.cc poppler.cc poppler-action.h poppler-date.h poppler-document.h poppler-page.h poppler-attachment.h poppler-form-field.h poppler-annot.h poppler-layer.h poppler-media.h poppler-movie.h poppler.h poppler-features.h libpoppler-glib.la --output Poppler-0.18.gir
Traceback (most recent call last):
  File "/opt/local/bin/g-ir-scanner", line 44, in <module>
    from giscanner.scannermain import scanner_main
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 34, in <module>
    from giscanner.dumper import compile_introspection_binary
  File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 28, in <module>
    from .gdumpparser import IntrospectionBinary
  File "/opt/local/lib/gobject-introspection/giscanner/gdumpparser.py", line 31, in <module>
    from .transformer import TransformerException
  File "/opt/local/lib/gobject-introspection/giscanner/transformer.py", line 27, in <module>
    from .girparser import GIRParser
  File "/opt/local/lib/gobject-introspection/giscanner/girparser.py", line 26, in <module>
    from .girwriter import COMPATIBLE_GIR_VERSION
  File "/opt/local/lib/gobject-introspection/giscanner/girwriter.py", line 25, in <module>
    from .xmlwriter import XMLWriter
  File "/opt/local/lib/gobject-introspection/giscanner/xmlwriter.py", line 94, in <module>
    from giscanner._giscanner import collect_attributes
ImportError: dlopen(/opt/local/lib/gobject-introspection/giscanner/_giscanner.so, 2): Symbol not found: _PyUnicodeUCS2_AsUTF8String
  Referenced from: /opt/local/lib/gobject-introspection/giscanner/_giscanner.so
  Expected in: flat namespace
 in /opt/local/lib/gobject-introspection/giscanner/_giscanner.so
make[4]: *** [Poppler-0.18.gir] Error 1
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.24.3/glib'

It certainly is related to #41199

Attachments (1)

main.log (372.8 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Cc: devans@… openmaintainer@… removed
Keywords: module flat namespace introspection removed
Owner: changed from macports-tickets@… to devans@…

It is not useful to Cc openmaintainer.

comment:2 Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

The package builds with a "plain" Python installed, i.e., the non-ucs4 variant.

Case solved!

comment:3 Changed 5 years ago by kencu (Ken)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.