cvCalibrateCamera2() crashes in OpenCV 3.x

it’s not. rather an “artefact” from package maagers

to keep legacy code running (at your own risk).
again, you must not use it to develop anything new,
and if it breaks, you’re on your own