Glade compile error, could not read symbols: File in wrong format
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Glade compile error, could not read symbols: File in wrong format
I'm currently trying to compile glade on slackware 64 current, with multilib enabled. When trying to compile, I get:
Code:
In file included from /usr/include/python2.6/Python.h:8:0,
from glade-python.c:27:
/usr/include/python2.6/pyconfig.h:1031:0: warning: "_POSIX_C_SOURCE" redefined
/usr/include/features.h:213:0: note: this is the location of the previous definition
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -o libgladepython.la -rpath /usr/local/lib/glade3/modules -module -avoid-version libgladepython_la-glade-python.lo ../../gladeui/libgladeui-1.la -L/usr/lib -lpython2.6 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2
gcc -shared .libs/libgladepython_la-glade-python.o -Wl,--rpath -Wl,/home/rick/pkgs/glade3/glade3-3.6.7/gladeui/.libs ../../gladeui/.libs/libgladeui-1.so -L/usr/lib -lpython2.6 /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libcairo.so /usr/lib/libpng14.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so /usr/lib/libfontconfig.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -pthread -Wl,-soname -Wl,libgladepython.so -o .libs/libgladepython.so
/usr/lib/libgtk-x11-2.0.so: could not read symbols: File in wrong format
The first thing I notice is that its looking in /usr/lib/ instead of /usr/lib64. Up until that point, it seemed to have been using just /usr/lib64, and thus I assume this is the problem. Can't figure out how to fix this, any ideas?
With or without slackbuild, I get the same result.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,075
Rep:
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
Code:
sudo mv /usr/lib /usr/lib.BAK
compile your code and then do
Code:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.