This happened to me just this past week.
If you are having problem installing packages with the macports port command, double check that you have the latest version of Xcode installed (version 2.4.1 at this point in time). A number of packages install with much less hassle when you are up to date.
Just speaking from experience.