[MacPorts] #36109: libxml2 2.8.0 breaks postgis2 2.0.1
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 ------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: libxml2 postgis2 | Port: libxml2 ------------------------------+-------------------------------- Installing libxml2 2.8.0 leads to this behaviour: {{{ cocoa=# select postgis_full_version(); ERROR: could not load library "/opt/local/lib/postgresql91/postgis-2.0.so": dlopen(/opt/local/lib/postgresql91/postgis-2.0.so, 10): Library not loaded: /opt/local/lib/libxml2.2.dylib Referenced from: /opt/local/lib/postgresql91/postgis-2.0.so Reason: Incompatible library version: postgis-2.0.so requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 }}} Reverting to 2.7.8 (and forcing a rebuild of postgis2) solves the problem. I am not wise enough to understand what is breaking here (it could be on either end). BTW, the most recent version of libxml2 is already 2.9.0. -- Ticket URL: <https://trac.macports.org/ticket/36109> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Changes (by jmr@…): * keywords: libxml2 postgis2 => * cc: jmr@… (removed) * cc: vince@…, cedric.luthi@… (added) * port: libxml2 => libxml2 postgis2 Comment: 2.8.0 provides version 11.0.0 here: {{{ % otool -L /opt/local/lib/libxml2.2.dylib /opt/local/lib/libxml2.2.dylib: /opt/local/lib/libxml2.2.dylib (compatibility version 11.0.0, current version 11.0.0) }}} -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Comment (by cmutel@…): OK, so I get the same results: {{{ emerson:~ cmutel$ otool -L /opt/local/lib/libxml2.2.dylib /opt/local/lib/libxml2.2.dylib: /opt/local/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.8.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0) emerson:~ cmutel$ sudo port -n -f deactivate libxml2 @2.7.8_0+universal ---> Deactivating libxml2 @2.7.8_0+universal Warning: Deactivate forced. Proceeding despite dependencies. ---> Cleaning libxml2 emerson:~ cmutel$ sudo port activate libxml2 @2.8.0_0+universal ---> Computing dependencies for libxml2 ---> Activating libxml2 @2.8.0_0+universal ---> Cleaning libxml2 emerson:~ cmutel$ otool -L /opt/local/lib/libxml2.2.dylib /opt/local/lib/libxml2.2.dylib: /opt/local/lib/libxml2.2.dylib (compatibility version 11.0.0, current version 11.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.7) /opt/local/lib/liblzma.5.dylib (compatibility version 6.0.0, current version 6.4.0) /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0) }}} I guess the problem is then with postgis2 (though it does seem strange...). But I do get this problem consistently, so I guess there is something real here, and not just a problem with my configuration. -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Comment (by jmr@…): Do the architectures match? {{{ port -v installed libxml2 postgis2 lipo -info /opt/local/lib/libxml2.2.dylib /opt/local/lib/postgresql91/postgis-2.0.so }}} Are any DYLD_* variables set in the environment? -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Comment (by cmutel@…): If no one else is experiencing this bug, it should probably be closed. I guess there is some other confounding configuration parameter on my side. -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Changes (by and.damore@…): * status: new => closed * resolution: => fixed Comment: In a similar situation with updated packages (libxml2 2.9 with declared compatibility 12.0.0, dyld complains about postgis-2.0.so requiring 11.0.0) rebuilding postgis2 port fixed the issue. I'm not sure what's keeping a reference to the older libxml2 version, there's no DYLD_LIBRARY_PATH set and all the other versions of libxml2.2.dylib I can find on the system are declaring compatibility 10.0.0 so dyld wasn't trying to link any of them since the error message explicitly mentions 11.0.0. Weird and I wouldn't even know how to reproduce it on purpose. I'd close as wontfix or worksforme. -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Changes (by and.damore@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Comment (by egall@…):
I'd close as wontfix or worksforme.
...so then why'd you reopen it? -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#36109: libxml2 2.8.0 breaks postgis2 2.0.1 -------------------------------+-------------------------------- Reporter: cmutel@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libxml2 postgis2 | -------------------------------+-------------------------------- Comment (by chuanjiabao1981@…): I use libxml2 2.9.0 and I have the same problem. I got the error below: "Reason: Incompatible library version: postgis-2.0.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 11.0.0". -- Ticket URL: <https://trac.macports.org/ticket/36109#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts