I found out that after you install Xcode 2.1 you can't get Apple's gcc version 5018 to work. Blah.
So if you want to use shared libraries and 64-bit code on MacOS X 10.4.1, it seems that the only thing that currently works is the FSF gcc-4.0.0.
Brad