As mentioned in /usr/ports/UPDATING, I used
$ portmaster -r jpeg-7
to rebuild the ports that depend on graphics/jpeg, and graphics/gd failed to compile. What should I do?