I created the latest stable 4.0.2 of this library, libcec, for you.¹
I guess you have a raspberry pi 2 or 3? Then try those 4 commands, after login via ssh:
Just Raspberry pi 2 & 3:
cd /tmp/
wget http://pingumale.bplaced.net/rbp2-libcec_4.0.2-osmc.deb
sudo dpkg -i rbp2-libcec_4.0.2-osmc.deb
reboot
(*For Raspberry PI 1 replace rbp2-libcec_4.0.2-osmc.deb by rbp1-libcec_4.0.2-osmc.deb in step 2&3.)
Please report: does it fix your problem? If yes, please provide a log, so I can compare it with your broken log.
[¹Just as a notice - for developers - to reproduce: checkout current osmc from github, cd to osmc/libcec-osmc, replace commit in build.sh with 5250931, remove patch all-005, make.]