Two methods for extracting gluon fragmentation functions in π±p, [Formula: see text] and pp collisions are proposed. The only inputs are valence-quark distribution functions which we know much better than other structure functions and fragmentation functions. So better extraction of gluon fragmentation functions can be obtained.