rospack export is supposed to output compiler flags for a certain ROS component, similar to pkgconfig, like this: # rospack export --lang=cpp --attrib=lflags roscpp -L/opt/ros/fuerte/lib -lroscpp -lrostime -lrosconsole -lroscpp_serialization -lxmlrpcpp This is how it works e.g. on fedora. The rospack installed via the Gentoo ebuild however just outputs an empty string.
fuerte is very old; with recent ros versions, catkin is supposed to handle this see the old manifest.xml spec: http://docs.ros.org/independent/api/rospkg/html/manifest_xml.html#export vs the new one: http://wiki.ros.org/Manifest and: http://www.ros.org/reps/rep-0127.html#modification-to-previous-specifications stating: 'The cpp tag has been dropped, it is handled by catkin.'