Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13748 closed defect (fixed)

zlib is broken

Reported by: baldvin@… Owned by: boeyms@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

Trying to install zlib failed with checksum error:

kovacs-baldvins-macbook:macports root# port install zlib
--->  Verifying checksum(s) for zlib
Error: Checksum (md5) mismatch for zlib-1.2.3.tar.bz2
Error: Checksum (sha1) mismatch for zlib-1.2.3.tar.bz2
Error: Checksum (rmd160) mismatch for zlib-1.2.3.tar.bz2
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.

Is it a problem with the package? Unfortunately many things depend on zlib, so I'm pretty much stuck here...

Change History (4)

comment:1 Changed 16 years ago by boeyms@…

Owner: changed from macports-tickets@… to boeyms@…

It checksums fine for me, so it's most likely to be a proxy problem (many unfortunately don't report the correct HTTP error code, and so MacPorts saves what it receives when it ought to be discarded). Try cleaning the zlib port's distfiles (sudo port clean --dist zlib), running a selfupdate just to be safe, and then installing with the debug flag (sudo port -d install zlib); if it fails again, the output from the last command should help us diagnose the problem.

comment:2 Changed 16 years ago by baldvin@…

Thanks, the issue has been resolved. Below I describe some curiosities about it, for anybody interested:

Interestingly enough, after sudo port clean --dist zlib things got a bit worse:

kovacs-baldvins-macbook:~ root# port -d install zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Requested variant darwin is not provided by port zlib.
DEBUG: Requested variant i386 is not provided by port zlib.
DEBUG: Requested variant macosx is not provided by port zlib.
DEBUG: Skipping completed org.macports.main (zlib)
DEBUG: Skipping completed org.macports.fetch (zlib)
--->  Verifying checksum(s) for zlib
DEBUG: Executing org.macports.checksum (zlib)
--->  Checksumming zlib-1.2.3.tar.bz2
Error: Target org.macports.checksum returned: Could not open file: /opt/local/var/macports/distfiles/zlib/zlib-1.2.3.tar.bz2
Warning: the following items did not execute (for zlib): org.macports.activate org.macports.extract org.macports.checksum org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Neither selfupdate, nor sync made a difference. However, after trying to install with +universal, then cleaning without the --dist option, the installation worked.

kovacs-baldvins-macbook:~ root# port -d install zlib +universal
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Requested variant darwin is not provided by port zlib.
DEBUG: Requested variant i386 is not provided by port zlib.
DEBUG: Requested variant macosx is not provided by port zlib.
DEBUG: Executing variant universal provides universal
DEBUG: Skipping completed org.macports.main (zlib)
DEBUG: Skipping completed org.macports.fetch (zlib)
--->  Verifying checksum(s) for zlib
DEBUG: Executing org.macports.checksum (zlib)
--->  Checksumming zlib-1.2.3.tar.bz2
Error: Target org.macports.checksum returned: Could not open file: /opt/local/var/macports/distfiles/zlib/zlib-1.2.3.tar.bz2
Warning: the following items did not execute (for zlib): org.macports.activate org.macports.extract org.macports.checksum org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
kovacs-baldvins-macbook:~ root# ls /opt/local/var/macports/distfiles/zlib
ls: /opt/local/var/macports/distfiles/zlib: No such file or directory
kovacs-baldvins-macbook:~ root# port clean --dist zlib
--->  Cleaning zlib
kovacs-baldvins-macbook:~ root# port -d install zlib           
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Requested variant darwin is not provided by port zlib.
DEBUG: Requested variant i386 is not provided by port zlib.
DEBUG: Requested variant macosx is not provided by port zlib.
Error: Requested variants do not match original selection.
Please perform 'port clean zlib' or specify the force option.
Error: Status 1 encountered during processing.
kovacs-baldvins-macbook:~ root# port clean zlib
--->  Cleaning zlib
kovacs-baldvins-macbook:~ root# port -d install zlib
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: Requested variant darwin is not provided by port zlib.
DEBUG: Requested variant i386 is not provided by port zlib.
DEBUG: Requested variant macosx is not provided by port zlib.
DEBUG: Executing org.macports.main (zlib)
--->  Fetching zlib
DEBUG: Executing org.macports.fetch (zlib)
--->  zlib-1.2.3.tar.bz2 doesn't seem to exist in /opt/local/var/macports/distfiles/zlib
--->  Attempting to fetch zlib-1.2.3.tar.bz2 from http://www.zlib.net/

DEBUG: Fetching failed:: couldn't connect to server
--->  Attempting to fetch zlib-1.2.3.tar.bz2 from http://www.gzip.org/zlib/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  415k  100  415k    0     0  59545      0  0:00:07  0:00:07 --:--:--  170k
--->  Verifying checksum(s) for zlib
DEBUG: Executing org.macports.checksum (zlib)
--->  Checksumming zlib-1.2.3.tar.bz2
DEBUG: Correct (md5) checksum for zlib-1.2.3.tar.bz2
DEBUG: Correct (sha1) checksum for zlib-1.2.3.tar.bz2
DEBUG: Correct (rmd160) checksum for zlib-1.2.3.tar.bz2

comment:3 in reply to:  2 Changed 16 years ago by boeyms@…

Resolution: fixed
Status: newclosed

Replying to baldvin@cs.elte.hu:

Thanks, the issue has been resolved.

Closing accordingly. The subsequent transient "cannot open file" problem reported in the remainder of comment:2 is curious, but I suspect it's more likely to be a bad sector on the disk or some software problem outside the control of MacPorts.

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.