LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2010, 03:18 PM   #1
ollebanan
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 1
"/usr/lib64/libgobject-2.0.so: could not read symbols" when trying to install ORBit2


Hi all,

I am trying to install ORBit2 - however - it fails with this error messages. Im using Slackware 13 x86_64 with multilib.

Code:
/usr/lib64/libgobject-2.0.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [test-linc] Fel 1
make[3]: Leaving directory `/tmp/SBo/ORBit2-2.14.17/linc2/test'
make[2]: *** [all-recursive] Fel 1
make[2]: Leaving directory `/tmp/SBo/ORBit2-2.14.17/linc2'
make[1]: *** [all-recursive] Fel 1
make[1]: Leaving directory `/tmp/SBo/ORBit2-2.14.17'
make: *** [all] Fel 2
I downloaded the package via www.slackbuild.org, changed the ARCH parameter to x86_64, even added the line:

Code:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
However same result, if anyone have any suggestions to what might be causing this i would be thankful.

Thanks in advance,

Olle
 
Old 02-02-2010, 04:05 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
You shouldn't have had to change anything in the SlackBuild script. The only thing you should have had to do is
Code:
you@yourmachine: ARCH=x86_64 ./appname.SlackBuild
edit: I just ran through building ORBit2 from SBo and it worked fine.

Last edited by manwichmakesameal; 02-02-2010 at 04:24 PM.
 
Old 02-03-2010, 01:00 PM   #3
ollebanan
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by manwichmakesameal View Post
You shouldn't have had to change anything in the SlackBuild script. The only thing you should have had to do is
Code:
you@yourmachine: ARCH=x86_64 ./appname.SlackBuild
edit: I just ran through building ORBit2 from SBo and it worked fine.
Still the same result.
 
Old 02-03-2010, 02:48 PM   #4
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Can you post your /tmp/SBo/ORBit2-2.14.17config.log?
 
Old 02-03-2010, 03:31 PM   #5
ollebanan
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by manwichmakesameal View Post
Can you post your /tmp/SBo/ORBit2-2.14.17config.log?
http://people.dsv.su.se/~pehr-lau/config.log
 
Old 02-03-2010, 03:50 PM   #6
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Code:
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:6981: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ORBit2"
| #define PACKAGE_TARNAME "ORBit2"
| #define PACKAGE_VERSION "2.14.17"
| #define PACKAGE_STRING "ORBit2 2.14.17"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:7014: result: gcc -E
configure:7043: gcc -E  conftest.c
configure:7050: $? = 0
configure:7081: gcc -E  conftest.c
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
configure:7088: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ORBit2"
| #define PACKAGE_TARNAME "ORBit2"
| #define PACKAGE_VERSION "2.14.17"
| #define PACKAGE_STRING "ORBit2 2.14.17"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=ORBit2"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
It looks like configure isn't finding one of the headers in the source tarball. Have you tried redownloading the source and unpacking it? There are a lot of errors in that log pertaining to that header file.
 
Old 02-03-2010, 04:42 PM   #7
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
Can you show us the output of "file /usr/lib64/libgobject-2.0.so.0.1800.4"?
 
Old 02-03-2010, 05:01 PM   #8
ollebanan
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by XGizzmo View Post
Can you show us the output of "file /usr/lib64/libgobject-2.0.so.0.1800.4"?
Code:
/usr/lib64/libgobject-2.0.so.0.1800.4: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
Also tried re downloading it, still the same.
 
Old 02-03-2010, 06:43 PM   #9
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
I'm seeing many differences between your config.log and mine. Most are something like:
-configure:14352: gcc -o conftest -O2 -fPIC conftest.c >&5
+configure:14352: gcc -o conftest -O2 -fPIC -L/usr/lib64 conftest.c >&5

so it looks like your "LDFLAGS=-L/usr/lib64" is being ignored.

But whether I define LDFLAGS or not, the build still doesn't fail.
Sorry, not much help.
 
Old 02-03-2010, 06:47 PM   #10
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Yeah, I did notice in the config.log some entries like this:
Code:
ORBIT_NAME_LIBS='-pthread -Wl,--export-dynamic -L/usr/lib -lgobject-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lglib-2.0  '
Is your build trying to use your 32 bit stuff for some reason?
 
Old 02-04-2010, 06:18 AM   #11
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
Quote:
Originally Posted by wadsworth View Post
so it looks like your "LDFLAGS=-L/usr/lib64" is being ignored.
Yes it is:
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=

ollebanan Your configure line should look just like this after you added the LDFLAGS part.

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
 
Old 02-04-2010, 07:18 AM   #12
ollebanan
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by XGizzmo View Post
Yes it is:
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=

ollebanan Your configure line should look just like this after you added the LDFLAGS part.

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
I tried that already, still the same result.

I renamed the /usr/lib directory as a temporary fix - which allowed the problem to be solved - but it's a ugly fix and nothing permanent, i will however keep digging into this.

EDIT: Thanks for the help so far, i really appreciate it!

Last edited by ollebanan; 02-04-2010 at 07:22 AM.
 
Old 02-04-2010, 07:44 AM   #13
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Do you have anything set in your environment? Do
Code:
echo $CFLAGS
 
Old 02-04-2010, 08:03 AM   #14
ollebanan
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by manwichmakesameal View Post
Do you have anything set in your environment? Do
Code:
echo $CFLAGS
Nope that was empty.
 
Old 02-04-2010, 08:44 AM   #15
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
Quote:
Originally Posted by ollebanan View Post
I downloaded the package via www.slackbuild.org, changed the ARCH parameter to x86_64, even added the line:

Code:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
However same result, if anyone have any suggestions to what might be causing this i would be thankful.

Thanks in advance,

Olle
Hi,

all that changes You made are good, but did You also have defined $LIBDIRSUFFIX variable before You call it in LDFLAGS?

Just add those lines into the script just after working directories definitions:

Code:
if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  SLKLDFLAGS=""                          
  LIBDIRSUFFIX=""                        
elif [ "$ARCH" = "s390" ]; then          
  SLKCFLAGS="-O2"                        
  SLKLDFLAGS=""                          
  LIBDIRSUFFIX=""                        
elif [ "$ARCH" = "x86_64" ]; then        
  SLKCFLAGS="-O2 -fPIC"                  
  SLKLDFLAGS="-L/usr/lib64"              
  LIBDIRSUFFIX="64"                      
fi
and have fun

PS: oh, I forgot something - add new ./configure option:
--libdir=/usr/lib${LIBDIRSUFFIX}


Last edited by Martinezio; 02-04-2010 at 08:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script using "/usr/bin/cat error" produces "cannot open" in cron Dcrusoe Programming 6 07-22-2009 03:30 PM
Archiving static libraries: "could not read symbols" Manidas Linux - Newbie 1 06-05-2009 02:47 PM
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 06:33 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration