I'm running MT 2.661 on OpenBSD 3.1 with Perl 5.6.1.

When I attempt to upload an image file, I get an internal server error. In my logs I see this:

/usr/libexec/ld.so: perl: libtiff.so.35.5: No such file or directory
[Tue Jan 27 14:22:00 2004] [error] [client 212.158.205.94] Premature end of script headers: /var/www/cgi-bin/mt-264/mt.cgi

So, it looks like it's not finding the tiff library. I'm not uploading a TIFF, just a regular JPEG, but I guess you're using libtiff for more general purpose image handling stuff. I do have libtiff installed. The problem seems to be in the name of the lib it's looking for - I have just recompiled and reinstalled the current release of libtiff (3.5.7), and it ends up being named libtiff.so.3.5.
ld -r tells me:

ltiff.3.5 => /usr/local/lib/libtiff.so.3.5

so why is MT looking for libtiff.so.35.5? And where can I fix it?

The actual upload does complete successfully - I can see the uploaded file, and it's not empty, so it must be displaying the image that's the problem.

Any clues?