So I've been (slowly) helping out with Mail::Sendmail as part of the Phalanx Project, and the author really wants the module to stay compatible with 5.004. Needless to say, OS X doesn't ship with 5.004, nor have I used it. So, in order to make sure I don't screw up and use a feature newer than what 5.004 offers, I decided to download the source for 5.004 and install it.
Downloading the source and running
sh Configure (as the INSTALL file says to do) was easy enough. Knowing how to answer the various questions Configure asks was not. Nor was it quickly apparent that Configure used the file 'makefile' during the configuration process. (I'm don't have a lot of experience with make, so that's probably why). Unfortunately, for me, I forgot to use the HFS+ with case sensitivity, so the files 'makefile' and 'Makefile' aren't different. So it wasn't until I actually peeked about inside that I realized if I changed the default for Configure to use 'makefile.osx' as the default Makefile (line 3370 of Configure), that Configure would properly make a Makefile. However, even after I did that, the makefile in the x2p subdirectory kept saying that I needed to
make depend, even tho' I had already made it. So I had to comment out the last three lines of Makefile in x2p to keep the make'ing going.
After I finally got a working config.sh (and by working, I mean
make ran to completion), a couple of the tests didn't pass:
Failed 2 test scripts out of 164, 97.56% okay.
one is t/lib/complex.t -- Out of memory!
another is t/lib/db-recno.t -- test 25
Turns out I could get rid of the "Out of memory!" error by using the malloc that came with perl and the ignoring my the system's malloc. (I think this might have been part of the problem, but didn't fiddle with it further.) If anyone else is adventurous and wants to have 5.004_05 on their mac and is having trouble, let me know and I'll post my config.sh somewhere. update: my config.sh.