LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Glade compile error, could not read symbols: File in wrong format (http://www.linuxquestions.org/questions/slackware-14/glade-compile-error-could-not-read-symbols-file-in-wrong-format-853632/)

Lethys 01-01-2011 06:06 PM

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.

hyperfluid 03-03-2011 11:03 AM

Have you tried building the slackbuild with LDFLAGS="-L/usr/lib64 -L/lib64"?

Keith Hedger 03-04-2011 03:55 AM

As glade is primarily for use in gnome I assume you have gnome installed so why not just use slapt-get ( or gslapt ) to install it?

Keith Hedger 03-04-2011 04:40 AM

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.

piratesmack 03-04-2011 04:51 AM

See: http://slackbuilds.org/faq/#multilib

I was going to update my SlackBuild to include that line, but SBo is overloaded with submissions at the moment.


All times are GMT -5. The time now is 03:15 PM.