Opened 12 years ago

Closed 11 years ago

#35603 closed defect (fixed)

gobject-introspection needs to be aware whether it was compiled against python +ucs4

Reported by: marco.stagno@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: singingwolfboy@…, ryandesign (Ryan Carsten Schmidt), boyer@…
Port: gobject-introspection

Description

I'm unable to build pango; on a different mac, with the same configuration, I didn't had any problem..

any help? thank you in advance..

(build log attached)

Attachments (2)

pango.log (205.1 KB) - added by marco.stagno@… 12 years ago.
python27+ucs4_contents.txt (475.8 KB) - added by marco.stagno@… 12 years ago.
output of command "port contents python27"

Download all attachments as: .zip

Change History (11)

Changed 12 years ago by marco.stagno@…

Attachment: pango.log added

comment:1 Changed 12 years ago by marco.stagno@…

Cc: marco.stagno@… added

Cc Me!

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

Cc: ryandesign@… added; marco.stagno@… removed
Keywords: build pango removed
Summary: unable to build pango 1.30.1_1pango: ImportError: dlopen(/opt/local/lib/gobject-introspection/giscanner/_giscanner.so, 2): Symbol not found: _PyUnicodeUCS2_AsUTF8String

Unfortunately I don't have a clue.

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

Apparently you have python installed with the +ucs4 variant, but gobject-introspection(?) built against python +ucs2 (because you probably downloaded it from the buildbot).

Can you try rebuilding gobject-introspection from source, cleaning pango and trying again:

port -sn upgrade --force gobject-introspection
port clean pango
port install/upgrade pango

comment:4 Changed 12 years ago by marco.stagno@…

true, I had python2.7+ucs4 active. rebuilding gobject-introspection worked and I was able to build pango again.. thank you so much :-D

comment:5 Changed 12 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Port: gobject-introspection added; pango removed
Status: newassigned
Summary: pango: ImportError: dlopen(/opt/local/lib/gobject-introspection/giscanner/_giscanner.so, 2): Symbol not found: _PyUnicodeUCS2_AsUTF8Stringgobject-introspection needs to be aware whether it was compiled against python +ucs4

So it's yet another example why having variants on ports for language interpreters is a bad idea compared to just providing sane defaults. We've had this with perl +shared/+threads for a while and are seeing pretty much the same thing with python now (although admittedly it's much less severe in this case).

Can you please generate a list of files installed by python27 +ucs4 by running port contents python27 and attach it to this ticket so I can try to add a fix to gobject-introspection?

comment:6 Changed 12 years ago by marco.stagno@…

sure, that is the result..

Changed 12 years ago by marco.stagno@…

Attachment: python27+ucs4_contents.txt added

output of command "port contents python27"

comment:7 Changed 11 years ago by jmroot (Joshua Root)

Cc: singingwolfboy@… added

comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: boyer@… added

Has duplicate #37168.

comment:9 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

Fixed in r100615.

Note: See TracTickets for help on using tickets.