As the wolf said, silicone (aquarium safe) or look out for reef cement at an LFS that stocks marines, more expensive but looks like rock when cured, IMO better for a rock based tank.
[EDIT: can also be used immediatly, no need to wait that 72 hours, it can even be used underwater]
Jon