I had a power failure once while installing the following packages.
$this->bbcode_second_pass_code('', 'pacman -Sy cups cups-pdf gutenprint pycups avahi python2')
I had to delete the db.lck file to use pacman again. Also, pacman wouldn't install gutenprint because some files had already been put in place the last time and it wouldn't overwrite them (conflicting files/file exists error). I had to --force it to overwrite the files.
It was probably since then that I started getting certain error messages from pacman after it completes installing downloaded packages. It seems to download and install stuff just fine, the stuff seems to work alright. But, these messages are appended at the end almost every time.
$this->bbcode_second_pass_code('', 'ldconfig: /usr/lib/libpolkit-agent-1.so is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /usr/lib/libpolkit-agent-1.so.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /usr/lib/libpolkit-gobject-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: file /usr/lib/libmozjs185.so.1.0.0 is truncated
ldconfig: file /usr/lib/libmozjs185.so.1.0 is truncated
ldconfig: /usr/lib/libpolkit-gobject-1.so.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: file /usr/lib/libmozjs185.so is truncated
ldconfig: /usr/lib/libpolkit-agent-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /usr/lib/libpolkit-gobject-1.so is not an ELF file - it has the wrong magic bytes at the start.
')