My 6.3 STABLE machine doesn't have the file either:
Code:
# uname -r
6.3-STABLE
# ldconfig -r | grep gcc
Exit 1
And ports compile fine (Including MySQL).
Some other things:
o Update your ports tree
o Run make clean in databases/mysql51-server and try building again
o Did you use any build options? If so, which?