Step 1: Steady camera, long exposure, no flash
I used a Canon PowerShot A70 to take all the pumpkin pictures. It has some manual settings modes were you can adjust the exposure time and F-stops. I actually used the "Tv" setting which allows me to set the exposure time and the camera automatically adjusts the F-stop.
If your camera doesn't have any manual modes, turn the flash off and see if it can compensate enough. The answer is it probably isn't enough. If you're really into taking pictures of pumpkins, like me, make sure your next camera has a manual exposure mode (my other criteria was a water proof case...).