Fun people with whom to do fun stuff, rather than... unfun people with whom to do at most unfun things?

Shared interests, shared humor, shared values, shared familiarity, shared history, and shared respect are good correlatives to that, but ultimately it just comes down to the first part.