#17953 closed defect (invalid)
bzip2 (and others) not installing under 10.5.6
Reported by: | rdpoor@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | raimue (Rainer Müller), blb@… | |
Port: | bzip2 |
Description
This may be a cockpit error due to a newcomer, but bzip2 (and evidently several other modules) won't install. A few things to note:
- There is no /usr/local on this machine.
- My real goal is to install ImageMagick, for which bzip2 is a dependency.
- This is a fresh install of port 1.7.
Summary is here. Full debug log in attached log.
bash-3.2$ sudo port version Version: 1.700 bash-3.2$ sudo port clean --all ImageMagick ---> Cleaning ImageMagick bash-3.2$ sudo port -d install ImageMagick ---> Fetching bzip2 DEBUG: Executing org.macports.fetch (bzip2) ---> bzip2-1.0.5.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://distfiles.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://www.bzip.org/1.0.5/ ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://arn.se.distfiles.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://trd.no.distfiles.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/distfiles/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/ ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/downloads/bzip2 Error: Target org.macports.fetch returned: fetch failed Warning: the following items did not execute (for bzip2): org.macports.activate org.macports.fetch org.macports.extract org.macports.checksum org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install Error: The following dependencies failed to build: bzip2 expat fontconfig freetype zlib libiconv gperf jpeg libpng libxml2 pkgconfig tiff Error: Status 1 encountered during processing.
Attachments (1)
Change History (17)
Changed 16 years ago by rdpoor@…
Attachment: | ports_log.txt added |
---|
comment:1 Changed 16 years ago by rdpoor@…
This may be a duplicate of ticket:12941. I will make sure I have the latest dev tools and report back.
comment:2 follow-up: 3 Changed 16 years ago by raimue (Rainer Müller)
Cc: | raimue@… added |
---|
This is an internal error with libcurl which is used for fetching. "curl error 2" means it has problems initializing the curl library, but I have no idea why this could happen.
Please see ProblemHotlist for workarounds.
comment:3 follow-up: 4 Changed 16 years ago by rdpoor@…
@raimue: Thanks for the suggestion. I looked at ProblemHotlist, and although the bug referred to there was supposedly fixed in port 1.700, I tried it anyway. No joy. Looking for other things to try!!
bash-3.2$ sudo env MASTER_SITE_LOCAL=http://distfiles.macports.org/bzip2 port -v fetch bzip2 ---> Fetching bzip2 ---> bzip2-1.0.5.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://distfiles.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://distfiles.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://trd.no.distfiles.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://www.bzip.org/1.0.5/ ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://arn.se.distfiles.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/distfiles/bzip2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/ ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/downloads/bzip2 Error: Target org.macports.fetch returned: fetch failed Warning: the following items did not execute (for bzip2): org.macports.fetch Error: Status 1 encountered during processing.
comment:4 Changed 16 years ago by raimue (Rainer Müller)
I didn't mean that part of ProblemHotlist. I meant that you should download manually to ${prefix}/var/macports/distfiles/<portname>/
as described there in the first paragraph.
comment:5 Changed 16 years ago by blb@…
Cc: | blb@… added |
---|
Interesting though that, instead of failing to initialize, it tried to do downloads that time. Do you need to use a proxy of any sort?
comment:6 Changed 16 years ago by rdpoor@…
I don't know if this sheds any light on the matter, but here's the same step with -d turned on:
bash-3.2# port clean -d --all bzip2 ---> Cleaning bzip2 bash-3.2# env MASTER_SITE_LOCAL=http://distfiles.macports.org/bzip2 port -d fetch bzip2 DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/bzip2 DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/bzip2 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant powerpc is not provided by port bzip2. DEBUG: Requested variant macosx is not provided by port bzip2. DEBUG: Executing variant darwin provides darwin DEBUG: Executing org.macports.main (bzip2) ---> Fetching bzip2 DEBUG: Executing org.macports.fetch (bzip2) ---> bzip2-1.0.5.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/bzip2 DEBUG: Pinging distfiles.macports.org... DEBUG: Pinging www.bzip.org... DEBUG: Pinging trd.no.distfiles.macports.org... DEBUG: Pinging arn.se.distfiles.macports.org... DEBUG: distfiles.macports.org ping time is 14.721 DEBUG: www.bzip.org ping time is 161.446 DEBUG: trd.no.distfiles.macports.org ping time is 196.110 DEBUG: arn.se.distfiles.macports.org ping time is 172.051 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://distfiles.macports.org/bzip2 DEBUG: Fetching failed:: curl error 2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://distfiles.macports.org/bzip2 DEBUG: Fetching failed:: curl error 2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://www.bzip.org/1.0.5/ DEBUG: Fetching failed:: curl error 2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://arn.se.distfiles.macports.org/bzip2 DEBUG: Fetching failed:: curl error 2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://trd.no.distfiles.macports.org/bzip2 DEBUG: Fetching failed:: curl error 2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/distfiles/bzip2 DEBUG: Fetching failed:: curl error 2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/ DEBUG: Fetching failed:: curl error 2 ---> Attempting to fetch bzip2-1.0.5.tar.gz from http://svn.macports.org/repository/macports/downloads/bzip2 DEBUG: Fetching failed:: curl error 2 Error: Target org.macports.fetch returned: fetch failed Warning: the following items did not execute (for bzip2): org.macports.fetch Error: Status 1 encountered during processing.
And FWIW, the current version of curl:
bash-3.2# curl -V curl 7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3 Protocols: tftp ftp telnet dict ldap http file https ftps Features: GSS-Negotiate IPv6 Largefile NTLM SSL libz
comment:7 follow-up: 8 Changed 16 years ago by rdpoor@…
And, for whatever else it's worth, a manual call to curl worked without error:
bash-3.2# curl -v http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz > bzip2-1.0.5.tar.gz * About to connect() to www.bzip.org port 80 (#0) * Trying 82.138.248.201... connected * Connected to www.bzip.org (82.138.248.201) port 80 (#0) > GET /1.0.5/bzip2-1.0.5.tar.gz HTTP/1.1 > User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3 > Host: www.bzip.org > Accept: */* > < HTTP/1.1 200 OK < Date: Sun, 11 Jan 2009 23:40:24 GMT < Server: Apache/2.2.8 (FreeBSD) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 SVN/1.4.6 PHP/5.2.5 with Suhosin-Patch < Last-Modified: Mon, 17 Mar 2008 23:25:35 GMT < ETag: "ba623-cd6ba-448aa563819c0" < Accept-Ranges: bytes < Content-Length: 841402 < Content-Type: application/x-gzip < { [data not shown] % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 821k 100 821k 0 0 148k 0 0:00:05 0:00:05 --:--:-- 174k* Connection #0 to host www.bzip.org left intact * Closing connection #0
It's a workaround, though it's a pity that it's required for all the other ImageMagick dependencies (expat fontconfig freetype zlib libiconv gperf jpeg libpng libxml2 pkgconfig tiff) -- that's supposed to be port's job, nu?
comment:8 follow-up: 9 Changed 16 years ago by blb@…
Ah, okay, so it is still failing during init.
Replying to rdpoor@…:
It's a workaround, though it's a pity that it's required for all the other ImageMagick dependencies (expat fontconfig freetype zlib libiconv gperf jpeg libpng libxml2 pkgconfig tiff) -- that's supposed to be port's job, nu?
Yes, that is port's job, though in this case it's difficult to see what is causing the failure. Can you run the following and report what it says?
otool -L /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib
comment:9 follow-up: 10 Changed 16 years ago by rdpoor@…
Replying to blb@…:
Ah, okay, so it is still failing during init.
(snip) Can you run the following and report what it says?
otool -L /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib
It would be my pleasure:
bash-3.2# otool -L /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: Pextlib.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libcurl.2.dylib (compatibility version 3.0.0, current version 3.2.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.5)
comment:10 Changed 16 years ago by blb@…
Replying to rdpoor@…:
/usr/lib/libcurl.2.dylib (compatibility version 3.0.0, current version 3.2.0)
That is odd, libcurl.2.dylib on 10.4 and 10.5 are just symlinks to libcurl.4.dylib, which is much newer than the version you have here. Do you know what happened to this file? Do you also have a /usr/lib/libcurl.4.dylib:
ls -l /usr/lib/libcurl*
comment:11 Changed 16 years ago by rdpoor@…
Thus:
bash-3.2# ls -l /usr/lib/libcurl* lrwxr-xr-x 1 root wheel 15 Dec 22 19:42 /usr/lib/libcurl.2.dylib -> libcurl.4.dylib lrwxr-xr-x 1 root wheel 15 Dec 22 19:42 /usr/lib/libcurl.3.dylib -> libcurl.4.dylib lrwxr-xr-x 1 root wheel 15 Dec 22 19:42 /usr/lib/libcurl.4.0.0.dylib -> libcurl.4.dylib -rwxr-xr-x 1 root wheel 912640 Sep 23 2007 /usr/lib/libcurl.4.dylib lrwxr-xr-x 1 root wheel 15 Dec 22 19:42 /usr/lib/libcurl.dylib -> libcurl.4.dylib
comment:12 Changed 16 years ago by rdpoor@…
By the way, on my other machine (PowerBook G4, also running 10.5.6), the /usr/lib/libcurl* listing looks identical, but otool on Tcl gives very different results. To the best of my knowledge, macports works just fine on the PowerBook:
[poorbook15-3:/usr/lib] r% otool -L /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: Pextlib.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libcurl.4.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.11)
comment:13 Changed 16 years ago by blb@…
You didn't happen to use the DMG for 10.3 to install MacPorts did you? That one has an older libcurl (the same version that yours thinks it links to) than 10.5. If so, try installing from the MacPorts 1.7 for 10.5 DMG and see if things work then.
If that is the case, note that future versions will complain if you try to install on the wrong OS version (ticket #13141).
comment:14 Changed 16 years ago by rdpoor@…
Heh. There's the smoking gun:
bash-3.2$ ls -l ~/Downloads/Mac* -rw-r--r--@ 1 rpoor staff 780269 Jan 10 12:30 /Users/rpoor/Downloads/MacPorts-1.7.0-10.3-Panther.dmg
That was the version I downloaded yesterday and have been since struggling with.
So I have duly installed MacPorts 1.7 for 10.5 and now it is happily building ImageMagick without any obvious problems. I would consider this case closed (modulo ticket 13141).
Many, many thanks for taking the time to figure out this rookie error.
- rdp
comment:15 Changed 16 years ago by blb@…
Resolution: | → invalid |
---|---|
Status: | new → closed |
Glad to hear it's working now.
log file for ticket 17954