No, Gnome isn't the problem. I have Gnome installed and I get your error if I follow your steps. I installed glib-2.4.0 (I haven't got 2.4.1 yet) in /opt/local , then I set
export PFG_CONFIG_PATH=/opt/local/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/local/lib
then I cd'd into the pango folder and did
./configure --prefix=/opt/local
configure went fine but make gave the same error as you. So I deleted the pango source, untared a clean one and did it again but this time, as well as PFG_CONFIG_PATH and LD_LIBRARY_PATH , this time I set the variable I told you about before
export LDFLAGS="-L/opt/local/lib"
That fixed it. This time pango built cleanly. If you close the terminal it forgets the varibles so you need to set them again, each itme you start work. If you're going to do the whole of Gnome, you might want to put
Code:
export PFG_CONFIG_PATH=/opt/local/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/local/lib
export LDFLAGS="-L/opt/local/lib"
in the hidden file .bashrc in your home folder. That will be read everytime you open a shell so the variables will be set automatically.