BOSTON — Thousands of people withstood rain, snow and wind Sunday to pay respects to Thomas M. Menino, Boston’s longest-serving mayor, who died on Thursday. The mourners included Secretary of State John Kerry, a former senator from Massachusetts; Gov. Deval Patrick; and Mr. Menino’s successor, Mayor Martin J. Walsh.

But the vast majority of those standing in line for the viewing, at Faneuil Hall, were the ordinary Bostonians whom Mr. Menino touched during his more than 20 years in office — from former City Hall staff members to a man who recalled Mr. Menino’s presenting his young son a mathematics award.

Mr. Menino received a diagnosis of cancer in February, shortly after leaving office. He announced Oct. 23 that he was suspending medical treatment and a book tour to spend time with family and friends. He was 71.

A funeral was scheduled for Monday.