Law firms that have planted roots in Boston over the past several years and expanded mostly through lateral hiring are struggling to expand their ranks in a fiercely competitive field of national and international firms.

Hiring lateral partners is taxing, say managing partners, with some facing empty offices and others reporting courtships of prospective hires lasting up to two years. Recruiters say signing bonuses are a sign of more firms tussling for scarce talent.