how do i mate moving parts both to a frame (rail) and eachother (mechanical)?

I have succesfully built the parts and made the assembly but it keep giving off warnings.

The reason for these warnings i believe is the fact i made a triangle of mates as such:

Frame -  Pinion
     \          /

      Rack

The position and freedom of movement are easily created using mates to the frame but the mechanical mate creates a triangle.
Does this usualy generate warnings and is there a way around?
The assembly is more complicated then just a pinion, rack and frame, but this seemed the easiest way to describe it.

Any help is welcome as i am not that familiar with solidworks.

SolidworksAssemblies