LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-04-2010, 09:05 AM   #16
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110

He shouldn't have needed to edit the script at all. Here is the relevant part for the CFLAGS from the script:
Code:
elif [ "$ARCH" = "x86_64" ]; then        
  SLKCFLAGS="-O2 -fPIC"                  
  LIBDIRSUFFIX="64"                      
fi
And here is the configure part:
Code:
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --disable-static \
  --build=$ARCH-slackware-linux
All the stuff is already in there. It's something set in his environment that's messing it up. His /usr/lib64/libgobject-2.0.so.0.1800.4 looks fine, but it's saying file in wrong format. I'll bet that somehow some 32bit and 64bit stuff got mixed up.

edit: @ollebanan: When you tried to rebuild it with ARCH=x86_64 ./ORBit2.SlackBuild, did you delete your edited slackbuild script and use a redownloaded one?

Last edited by manwichmakesameal; 02-04-2010 at 09:10 AM.
 
Old 02-04-2010, 09:26 AM   #17
ollebanan
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by manwichmakesameal View Post
He shouldn't have needed to edit the script at all. Here is the relevant part for the CFLAGS from the script:
Code:
elif [ "$ARCH" = "x86_64" ]; then        
  SLKCFLAGS="-O2 -fPIC"                  
  LIBDIRSUFFIX="64"                      
fi
And here is the configure part:
Code:
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --disable-static \
  --build=$ARCH-slackware-linux
All the stuff is already in there. It's something set in his environment that's messing it up. His /usr/lib64/libgobject-2.0.so.0.1800.4 looks fine, but it's saying file in wrong format. I'll bet that somehow some 32bit and 64bit stuff got mixed up.

edit: @ollebanan: When you tried to rebuild it with ARCH=x86_64 ./ORBit2.SlackBuild, did you delete your edited slackbuild script and use a redownloaded one?
Used an unmodified script.
 
Old 03-07-2010, 09:33 AM   #18
ambitious
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
same error with pango cross-compilation

Hi all,
i got the same error when i crossed-compile the Pango libraries for arm


this is the error i got when i cross-compile the pango for arm
[CODE]/usr/local/lib/libgobject-2.0.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [main] Error 1
make[4]: Leaving directory `/opt/FrinedlyArm/mini2440/Sources/pango-1.26.2/pango/opentype'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/FrinedlyArm/mini2440/Sources/pango-1.26.2/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/FrinedlyArm/mini2440/Sources/pango-1.26.2/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/FrinedlyArm/mini2440/Sources/pango-1.26.2'
make: *** [all] Error 2
mohamed@mohamed-desktop:/opt/FrinedlyArm/mini2440/Sources/pango-1.26.2$[CODE]

my configuration was as follow
./configure --host=arm-linux

thanks for any help
m.Hamed
 
  


Reply



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:39 AM.

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