You need to make sure that you are providing all the inputs which gmapping is expecting before it will start operating. See it's ROS API on the wiki
You can also use a tool like rxgraph to make sure that it's all hooked up correctly. Note that the turtlebot launchs do some remapping.