Opened 10 years ago

Closed 17 months ago

Last modified 17 months ago

#41199 closed defect (fixed)

gconf @2.32.4_3 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: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: gconf

Description

During the build process on Mac OS X 10.6.8 this happens:

/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/llvm-gcc-4.2 -arch x86_64  -pipe -Os -arch x86_64 -Wall  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o gconf-sanity-check-2 gconf-sanity-check.o libgconf-2.la  -lintl  -L/opt/local/lib -lgmodule-2.0 -lORBit-2 -lgthread-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lgio-2.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype -lxml2  
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[3]: *** [GConf-2.0.gir] Error 1

Attachments (1)

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

Download all attachments as: .zip

Change History (10)

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

Attachment: main.log added

main.log

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

Keywords: module flat namespace removed

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Same as several other tickets. I suspect you have your python installed with the ucs4 variant.

comment:3 in reply to:  2 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign@…:

Same as several other tickets. I suspect you have your python installed with the ucs4 variant.

That's right! I'll try to install the "plain" version of Python…

comment:4 in reply to:  2 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign@…:

Same as several other tickets. I suspect you have your python installed with the ucs4 variant.

Gconf builds indeed with the "plain" Python package! So this one is solved.

comment:5 in reply to:  2 Changed 10 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign@…:

Same as several other tickets. I suspect you have your python installed with the ucs4 variant.

I am just upgrading gconf to version 2.32.4_3 on Mac OS X 10.5.8 – port is reporting:

DEBUG: Changing to port directory: /opt/local/var/macports/sources/lil.fr.rsync.macports.org/release/tarballs/ports/gnome/gobject-introspection
DEBUG: OS darwin/9.8.0 (Mac OS X 10.5) arch powerpc
DEBUG: python27 is installed with the following variants: 
DEBUG:   required: ucs4, forbidden: 
DEBUG:   rejected, because required variant ucs4 is missing
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/lil.fr.rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: No need to upgrade! gobject-introspection 1.38.0_1 >= gobject-introspection 1.38.0_1
DEBUG: epoch: in tree: 0 installed: 0

Doesn't this mean that python27 is not sufficient to build gconf here and I need to install python27 +ucs4?

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

You have selected the python_ucs4 variant of gobject-introspection, which requires the ucs4 variant of python27. But the ucs4 variant of python27 causes the problems described in this and other tickets. So I recommend you do not use the ucs4 variant of python27 not the python_ucs4 variant of gobject-introspection.

comment:7 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

This problem is related to Python 2 and its kind of handling characters beyond US-ASCII, I think. It can be closed now.

comment:8 Changed 17 months ago by kencu (Ken)

Resolution: fixed
Status: newclosed

comment:9 Changed 17 months ago by kencu (Ken)

as requested

Note: See TracTickets for help on using tickets.