Installation on Mac OS X fails with libsamplerate checksum error

I've searched and not found reference to my specific error, but if there is one I'll apologize in advance.

Here goes:

I have successfully installed kdenlive 0.7.8 from source on both my home AMD 64 dual core pc, and my Dell D820 Latitude laptop, both running openSUSE 11.3 and it is great. Everything works. Unfortunately, I cannot get a fully successful installation on my Mac 15" laptop with Intel processor, OS is 10.5.8 fully up to date.

My first attempt(s) were with the MacPorts package. This installed kdenlive, but with problems such as no themes except the default, then after rendering for DVD I could not make movie menu nor create an iso DVD after going back and skipping the make movie menu.

So, I uninstalled MacPorts and went the route of installing MacPorts from SVN. After hours of compilation, it finally ended with the following:

:msg:main ---> Dependencies to be installed: mlt libsamplerate sox
:debug:main Starting logging for libsamplerate
:error:checksum The following dependencies were not installed: mlt libsamplerate sox
:error:checksum Status 1 encountered during processing.

Neither sox nor mlt would install because of the checksum error with libsamplerate. Doing sudo port -v install libsamplerate produces the following:

version:1
:msg:main ---> Computing dependencies for libsamplerate:info:main .:debug:main Searching for dependency: pkgconfig
:debug:main Found Dependency: receipt exists for pkgconfig
:debug:main Searching for dependency: fftw-3
:debug:main Found Dependency: receipt exists for fftw-3
:debug:main Searching for dependency: libsndfile
:debug:main Found Dependency: receipt exists for libsndfile
:msg:main
:debug:main Executing org.macports.main (libsamplerate)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: -2
:debug:main euid changed to: -2
:debug:main Skipping completed org.macports.fetch (libsamplerate)
:debug:main Privilege de-escalation not attempted as not running as root.
:notice:main ---> Verifying checksum(s) for libsamplerate
:debug:checksum checksum phase started at Sat Oct 16 16:43:30 EDT 2010
:debug:checksum Executing org.macports.checksum (libsamplerate)
:info:checksum ---> Checksumming libsamplerate-0.1.7.tar.gz
:error:checksum Checksum (md5) mismatch for libsamplerate-0.1.7.tar.gz
:info:checksum Portfile checksum: libsamplerate-0.1.7.tar.gz md5 ad093e60ec44f0a60de8e29983ddbc0f
:info:checksum Distfile checksum: libsamplerate-0.1.7.tar.gz md5 6731a81cb0c622c483b28c0d7f90867d
:error:checksum Checksum (sha1) mismatch for libsamplerate-0.1.7.tar.gz
:info:checksum Portfile checksum: libsamplerate-0.1.7.tar.gz sha1 98a52392eb97f9ba724ca024b3af29a8a0cc0206
:info:checksum Distfile checksum: libsamplerate-0.1.7.tar.gz sha1 f3f803ec5feae5a3fdb0fa3937277669e854386e
:error:checksum Checksum (rmd160) mismatch for libsamplerate-0.1.7.tar.gz
:info:checksum Portfile checksum: libsamplerate-0.1.7.tar.gz rmd160 697a355393d21ad66ea4313b928f2c3322f67a39
:info:checksum Distfile checksum: libsamplerate-0.1.7.tar.gz rmd160 a00f12571098fd6c50a8b9f8867cdcc3f36c1f60
:info:checksum The correct checksum line may be:
:info:checksum checksums md5 6731a81cb0c622c483b28c0d7f90867d \
sha1 f3f803ec5feae5a3fdb0fa3937277669e854386e \
rmd160 a00f12571098fd6c50a8b9f8867cdcc3f36c1f60
:error:checksum Target org.macports.checksum returned: Unable to verify file checksums
:debug:checksum Backtrace: Unable to verify file checksums
while executing
"$procedure $targetname"
:info:checksum Warning: the following items did not execute (for libsamplerate): org.macports.activate org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:checksum Log for libsamplerate is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libsamplerate/main.log

I have even downloaded and installed the libsamplerate tarball, but I am not sure how to get it properly recognized to complete the mlt and sox installations.

Any ideas?

Thanks,
Mark

Here's an update to the above post. Since nothing I tried worked, I uninstalled all of MacPorts, cleaned up the directories, and then reinstalled MacPorts this time from source. Same thing. Cannot install mlt or kdenlive because of the checksum failure with libsamplerate. This one corrupt checksum prevents sox from installing as well. It is my opinion that until it is fixed within MacPorts, kdenlive cannot be installed on a Mac OS X. I am sure that the same scenario will occur if I use the dmg package to install MacPorts, but if necessary I don't mind trying. I just think that, for now, I'll wait for news about the libsamplerate checksum.

Thanks,
Mark

Try doing
sudo port clean mlt
sudo port install mlt (in debug mode)
and see if you're still getting issues.
When you uninstalled Macports did you cd .. (change directory) to the highest file directory level (Macintosh HD) and type in "sudo rm -rf /opt"? If you do that command in the home directory without changing directories it won't actually uninstall macports at all.
Also if you've done all of this and are still having issues it wouldn't hurt to file this problem in Trac with Macports since your bug issue will be able to benefit other Macport users.

Thanks, hobsilla. Regarding your suggestions, I did not know to clean the mlt port, so I tried that and it still gave the same issues. I also did not see the instructions on the page I used to uninstall Macports about cd'ing to the highest directory level. I performed this:

sudo port -f uninstall installed

followed by:

sudo rm -rf \
/opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1.0 \
/Library/Tcl/macports1.0 \
~/.macports

When I checked directories it looked as if all of that had been removed. At any rate, I will go at it one more time and post back with results.

Thanks again.

This time I used the dmg package for Macports. The actual ending was the same for all three attempts at installing kdenlive. Same end result. Here's the follow up:

The following dependencies failed to build when trying to install mlt: libsamplerate, sox, file, libao, libid3tag, libmad, wavpack. The last five will install individually but mlt and sox fail due to the checksum error with libsamplerate. The output of the error log for libsamplerate is as follows:

version:1
:debug:main Executing org.macports.main (libsamplerate)
:debug:main Skipping completed org.macports.fetch (libsamplerate)
:msg:main ---> Verifying checksum(s) for libsamplerate
:debug:checksum checksum phase started at Mon Oct 18 02:04:29 EDT 2010
:debug:checksum Executing org.macports.checksum (libsamplerate)
:info:checksum ---> Checksumming libsamplerate-0.1.7.tar.gz
:error:checksum Checksum (md5) mismatch for libsamplerate-0.1.7.tar.gz
:info:checksum Portfile checksum: libsamplerate-0.1.7.tar.gz md5 ad093e60ec44f0a60de8e29983ddbc0f
:info:checksum Distfile checksum: libsamplerate-0.1.7.tar.gz md5 6731a81cb0c622c483b28c0d7f90867d
:error:checksum Checksum (sha1) mismatch for libsamplerate-0.1.7.tar.gz
:info:checksum Portfile checksum: libsamplerate-0.1.7.tar.gz sha1 98a52392eb97f9ba724ca024b3af29a8a0cc0206
:info:checksum Distfile checksum: libsamplerate-0.1.7.tar.gz sha1 f3f803ec5feae5a3fdb0fa3937277669e854386e
:error:checksum Checksum (rmd160) mismatch for libsamplerate-0.1.7.tar.gz
:info:checksum Portfile checksum: libsamplerate-0.1.7.tar.gz rmd160 697a355393d21ad66ea4313b928f2c3322f67a39
:info:checksum Distfile checksum: libsamplerate-0.1.7.tar.gz rmd160 a00f12571098fd6c50a8b9f8867cdcc3f36c1f60
:info:checksum The correct checksum line may be:
:info:checksum checksums md5 6731a81cb0c622c483b28c0d7f90867d \
sha1 f3f803ec5feae5a3fdb0fa3937277669e854386e \
rmd160 a00f12571098fd6c50a8b9f8867cdcc3f36c1f60
:error:checksum Target org.macports.checksum returned: Unable to verify file checksums
:debug:checksum Backtrace: Unable to verify file checksums
while executing
"$procedure $targetname"
:info:checksum Warning: the following items did not execute (for libsamplerate): org.macports.activate org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:checksum Log for libsamplerate is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libsamplerate/main.log

So it looks like time to file a bug report in Trac with MacPorts.

I don't need any more 6+ hour compilation processes. The checksum needs to be fixed.

Thanks again for your suggestions, hobsilla.

Another step for those interested. I downloaded the diff from Trac and applied it. It partially failed with this:

Hunk #1 succeeded at 4 with fuzz 2
Hunk #2 failed at 14
1 out of 2 hunks FAILED -- saving rejects to Portfile.rej

It would change the version # from 1.7 to 1.6 but not the checksums.

Going to file a bug report.

Before attempting to install kdenlive did you do "sudo port selfupdate"? It seems like just about everyday one of the various dependents of kdenlive gets updated and it seems like it would always break the installation process for me if I didn't selfupdate before I attempted to install kdenlive.
Also once you finally get your installation fully working with little to no issues, I highly recommend you don't update any of kdenlive's dependencies until the next release (0.7.9_0).

Yes, I did the "sudo port selfupdate". I have filed a ticket on this at Trac with Macports. Haven't seen a reply as of this moment. Also emailed the maintainer with a debug report.

Problem. I have to start a new thread because I've managed to break my system and can no longer install kdenlive. I get a Permission denied error. I"ll repost if I can get back to this state.