Opened 4 years ago

Last modified 3 years ago

#60776 assigned defect

itstool @2.0.6: configure: error: Python module libxml2 is needed to run this package

Reported by: programmingkidx Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: tiger Cc: programmingkidx, ryandesign (Ryan Carsten Schmidt)
Port: itstool

Description

itstool fails at configure step.

Operating system: Mac OS 10.4.11 (intel)

This is found in the log:

checking for python module libxml2... not found
configure: error: Python module libxml2 is needed to run this package

Attachments (1)

main.log (44.7 KB) - added by programmingkidx 4 years ago.

Download all attachments as: .zip

Change History (10)

Changed 4 years ago by programmingkidx

Attachment: main.log added

comment:1 Changed 4 years ago by kencu (Ken)

you might save yourself a very large amount of trouble if you used the link to the archives site I gave you:

$ port -v installed itstool
The following ports are currently installed:
  itstool @2.0.6_0+python27 (active) platform='darwin 8' archs='noarch' date='2020-03-24T15:46:25-0700'

comment:2 Changed 4 years ago by kencu (Ken)

Cc: dbevans removed
Keywords: tiger added
Owner: set to dbevans
Status: newassigned

comment:3 Changed 4 years ago by programmingkidx

Cc: programmingkidx added

comment:4 in reply to:  1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to kencu:

you might save yourself a very large amount of trouble if you used the link to the archives site I gave you:

That doesn't help us fix the build problem. You've apparently fixed it on your system, so why not contribute the fix so everyone can benefit?

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

Let me see if I can put a fix together that might be acceptable in the main macports repo.

Last edited 4 years ago by kencu (Ken) (previous) (diff)

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

Keywords: tir added; tiger removed
Summary: itstool fails at configure on Mac OS 10.4 (intel)itstool @2.0.6: configure: error: Python module libxml2 is needed to run this package

We're seeing this same error on 10.11/10.12/10.13/10.14 on Travis (e.g. https://paste.macports.org/1987e9f20156).

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 4 years ago by blair (Blair Zajac)

I've seen this failure if libxml2 is linked against an older icu and icu is upgraded to a binary incompatible release, which would require libxml2 to be recompiled.

comment:8 in reply to:  7 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added
Keywords: tiger added; tir removed

Replying to blair:

I've seen this failure if libxml2 is linked against an older icu and icu is upgraded to a binary incompatible release, which would require libxml2 to be recompiled.

That's not it in this case. I built libxml2 on 10.4 Intel yesterday and I experience this problem with itstool today.

All it's doing to test for the presence of py39-libxml2 is to run import libxml2, which fails if I run it manually:

$ python3.9
Python 3.9.6 (default, Jul  7 2021, 16:50:38)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/libxml2.py", line 1, in <module>
    import libxml2mod
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/libxml2mod.cpython-39-darwin.so, 2): Symbol not found: ___divmoddi4
  Referenced from: /opt/local/lib/libicui18n.67.dylib
  Expected in: /usr/lib/libgcc_s.1.dylib

>>>

This is #63164.

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

In 7939db59831e0079ec97a25ce1f6cd02372c5813/macports-ports (master):

libgcc7: revbump to pick up cctools lipo fix

the version of lipo in cctools-949 generated a few incorrectly-laid-out
FAT libraries due to an alignment error related to log2 casting.

This lipo issue was fixed, and now we rebuild libgcc7 to generate
the new, correctly-made FAT libraries.

see: #63164
see: #60776

Note: See TracTickets for help on using tickets.