He that would have eggs must endure the cackling of hens. meaning

HOME PROVERBS

endure

He that would have eggs must endure the cackling of hens.

it means that:
In order to enjoy one thing, you might have to endure the annoying or unpleasant things that accompany it.