[MacPorts] #48780: cmake @3.3.1_0 requires newer cUrl version and crash
#48780: cmake @3.3.1_0 requires newer cUrl version and crash -------------------------+-------------------------------- Reporter: alexandre@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: cmake -------------------------+-------------------------------- cmake 3.3.1requires libcurl that isn't available in macports (at least at this moment) # cmake . dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib Referenced from: /opt/local/bin/cmake Reason: Incompatible library version: cmake requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0 make: *** [cmake_check_build_system] Trace/BPT trap: 5 Reverting to cmake 3.3.1 works fine. cmake @3.3.1_0 (active) -- Ticket URL: <https://trac.macports.org/ticket/48780> MacPorts <https://www.macports.org/> Ports system for OS X
#48780: cmake @3.3.1_0 requires newer cUrl version and crash --------------------------+-------------------------------- Reporter: alexandre@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | --------------------------+-------------------------------- Comment (by alexandre@…): Sorry I've made a typo in my bug report, the version that works fine is 3.3.0, Reverting to cmake 3.3.0 works fine. cmake @3.3.0_0 (active) Replying to [ticket:48780 alexandre@…]:
cmake 3.3.1requires libcurl that isn't available in macports (at least at this moment)
# cmake .
dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib Referenced from: /opt/local/bin/cmake Reason: Incompatible library version: cmake requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0 make: *** [cmake_check_build_system] Trace/BPT trap: 5
Reverting to cmake 3.3.1 works fine. cmake @3.3.1_0 (active)
-- Ticket URL: <https://trac.macports.org/ticket/48780#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48780: cmake @3.3.1_0 requires newer cUrl version and crash --------------------------+-------------------------------- Reporter: alexandre@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | --------------------------+-------------------------------- Comment (by macports@…): I cannot reproduce this here... I have curl @7.44.0 and the version of libcurl.4.dylib is 9.0.0 : {{{ otool -l /opt/local/lib/libcurl.4.dylib Load command 3 cmd LC_ID_DYLIB cmdsize 56 name /opt/local/lib/libcurl.4.dylib (offset 24) time stamp 1 Wed Dec 31 19:00:01 1969 current version 9.0.0 compatibility version 9.0.0 }}} The prebuilt binary packages distributed by MacPorts are of the same version: {{{ wget http://packages.macports.org/curl/curl-7.44.0_0+ssl.darwin_14.x86_64.tbz2 tar xvjf curl-7.44.0_0+ssl.darwin_14.x86_64.tbz2 otool -l opt/local/lib/libcurl.4.dylib Load command 3 cmd LC_ID_DYLIB cmdsize 56 name /opt/local/lib/libcurl.4.dylib (offset 24) time stamp 1 Wed Dec 31 19:00:01 1969 current version 9.0.0 compatibility version 9.0.0 }}} I have no problems with cmake @3.3.1 either. I suggest that you verify whether your port "curl" is up-to-date: {{{ port sync port upgrade --force curl }}} If the problem persists, please tell us which version of the curl port is installed with: {{{ port installed curl }}} -- Ticket URL: <https://trac.macports.org/ticket/48780#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48780: cmake @3.3.1_0 requires newer cUrl version and crash --------------------------+-------------------------------- Reporter: alexandre@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: cmake | --------------------------+-------------------------------- Comment (by alexandre@…): Thanks for the quick reply, [[BR]] [[BR]] I do have latest curl from ports,[[BR]] /opt/local/lib/libcurl.4.dylib [[BR]] which is indeed 9.0.0 (verified by otool)[[BR]] [[BR]] That was very confusing but I've figured out what happened here:[[BR]] some other software has set up:[[BR]] export DYLD_LIBRARY_PATH=/some/other/path[[BR]] pointing to a directory with libcurl 7.42 (8.0.0)[[BR]] so when I was running cmake it was actually loading libcurl from that directory, however, the most confusing thing is that the error message was stating it was trying to load libcurl from /opt/local/lib/libcurl.4.dylib [[BR]] {{{ dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib Referenced from: /opt/local/bin/curl Reason: Incompatible library version: curl requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0 }}} Sorry for have filed this ticket anyway, Regards -- Ticket URL: <https://trac.macports.org/ticket/48780#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48780: cmake @3.3.1_0 requires newer cUrl version and crash --------------------------+-------------------------------- Reporter: alexandre@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: cmake | --------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Old description:
cmake 3.3.1requires libcurl that isn't available in macports (at least at this moment)
# cmake .
dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib Referenced from: /opt/local/bin/cmake Reason: Incompatible library version: cmake requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0 make: *** [cmake_check_build_system] Trace/BPT trap: 5
Reverting to cmake 3.3.1 works fine. cmake @3.3.1_0 (active)
New description: cmake 3.3.1 requires libcurl that isn't available in macports (at least at this moment) {{{ # cmake . dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib Referenced from: /opt/local/bin/cmake Reason: Incompatible library version: cmake requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0 make: *** [cmake_check_build_system] Trace/BPT trap: 5 }}} Reverting to cmake 3.3.1 works fine. {{{ cmake @3.3.1_0 (active) }}} -- Comment: Yup, that's what happens when you set `DYLD_LIBRARY_PATH`, which is why you should probably not set `DYLD_LIBRARY_PATH`. Has duplicate #48779. P.S: Please use WikiFormatting when writing in Trac in the future, and preview before submitting. -- Ticket URL: <https://trac.macports.org/ticket/48780#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts