error adding symbols: File in wrong format

I wanted to install Glade (GTK+3 User Interface Builder). However, I’ve got a multilib environment (sort of). Compiling Glade I got this error: error adding symbols: File in wrong format

This problem has a solution on this page: Glade compile error, could not read symbols: File in wrong format.

The solution from Keith Hedger being:

I have noticed that the odd .pc file or generated configure/makefiles seem to ignore the libdir variable and use /usr/lib ( the usual default ) instead of /usr/lib64, as a quick and dirty workaround you can try

sudo mv /usr/lib /usr/lib.BAK

compile your code and then do

sudo mv /usr/lib.BAK /usr/lib

You shouldn't have to do this very often its just because of some sloppy written makefiles. This works with the glad3 slackbuild by the way.

Worked for me as well.