1.7.0 beta & rc1: libcurl errors

Jay Levitt lists-macports at shopwatch.org
Mon Dec 8 12:25:19 PST 2008


I know this isn't a great bug report, because I already overwrote the fail 
case; sorry about that.

I upgraded from a DMG-installed 1.6.0 to a built-from-source 1.7.0 beta 1. 
I then updated a bunch of ports, but I don't think libcurl was one of them. 
  (Is there a log?  I don't think there is.)

Today, I tried using git, and got:

dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
   Referenced from: /opt/local/bin/git
   Reason: Incompatible library version: git requires version 6.0.0 or 
later, but libcurl.4.dylib provides version 5.0.0

I tried to rebuild the port, but the port command had the same problem:

sudo port clean git
couldn't load file "/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib": 
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): Library 
not loaded: /opt/local/lib/libcurl.4.dylib
   Referenced from: /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib
   Reason: Incompatible library version: Pextlib.dylib requires version 
6.0.0 or later, but libcurl.4.dylib provides version 5.0.0
     while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
     ("package ifneeded" script)
     invoked from within
"package require Pextlib 1.0"
     (file "/opt/local/bin/port" line 40)

I tried upgrading to 1.7.0rc1, but IT had the same problem:

$ svn switch http://svn.macports.org/repository/macports/tags/release_1_7_0-rc1
$ ./configure;make;sudo make install
[...]
/usr/bin/tclsh src/dep_map_clean.tcl /Library/Tcl
can't find package Pextlib 1.0
     while executing
"package require Pextlib 1.0"
     (file "/opt/local/share/macports/Tcl/registry1.0/receipt_flat.tcl" line 37)
     invoked from within
"source /opt/local/share/macports/Tcl/registry1.0/receipt_flat.tcl"
     ("package ifneeded" script)
     invoked from within
"package require receipt_flat 1.0"
     (file "/opt/local/share/macports/Tcl/registry1.0/registry.tcl" line 35)
     invoked from within
"source /opt/local/share/macports/Tcl/registry1.0/registry.tcl"
     ("package ifneeded" script)
     invoked from within
"package require registry 1.0"
     (file "src/dep_map_clean.tcl" line 10)
make: *** [install] Error 1

Finally, I did "make clean;make;sudo make install" which succeeded.  I was 
then able to get things working:

$ sudo port clean git-core
Portfile changed since last build; discarding previous state.
--->  Cleaning git-core
$ sudo port sync
$ sudo port install git-core
Error: Requested variants do not match original selection.
Please perform 'port clean curl' or specify the force option.
Error: The following dependencies failed to build: curl
Error: Status 1 encountered during processing.
$ sudo port clean curl
--->  Cleaning curl
$ sudo port install curl
--->  Activating curl @7.19.2_0
$ git version
git version 1.6.0.4
$

So, since I can't reproduce this anymore... consider this an FYI that 
something might be broken for people upgrading from 1.6.0.  Or it might not. 
  Probably one of the two.

Jay



More information about the macports-users mailing list