there are two expressions :
* être dans la même galère (see Su.Ki's answer) ;
* être en galère (see arnaud's comment of Ririe's answer).
What's interesting is that those expressions made a way to a verb : "galérer"
I can say :
Je galère avec mes étudiants, ils n'écoutent rien → I'm having a hard time with my students, they don't seem to listen to anything I say…