LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-29-2012, 06:29 PM   #1
reguser23
LQ Newbie
 
Registered: Nov 2012
Location: College Station
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
I keep getting this error: "File in wrong format"


Hi newbie Slackware user here so please excuse my stupidity and ignorance.

When I try to install celt, libquicktime, or transcode I keep getting this "File in wrong format" error. I think it has to do with the 32-bit and 64-bit libraries. I am using Slackware14 64-bit and I installed alien Bob's multilib package.

Code:
/bin/sh ../libtool --tag=CC   --mode=link x86_64-slackware-linux-gcc -std=gnu99  -O2 -fPIC -fvisibility=hidden -W -Wstrict-prototypes -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wno-parentheses -Wno-unused-parameter -Wno-sign-compare   -o celtenc celtenc.o wav_io.o skeleton.o ../libcelt/libcelt0.la -L/usr/lib -logg -lm 
libtool: link: x86_64-slackware-linux-gcc -std=gnu99 -O2 -fPIC -fvisibility=hidden -W -Wstrict-prototypes -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wno-parentheses -Wno-unused-parameter -Wno-sign-compare -o .libs/celtenc celtenc.o wav_io.o skeleton.o  ../libcelt/.libs/libcelt0.so -L/usr/lib /usr/lib/libogg.so -lm -Wl,-rpath -Wl,/usr/lib64
/usr/lib/libogg.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [celtenc] Error 1
make[2]: Leaving directory `/tmp/SBo/celt-0.11.3/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/celt-0.11.3'
make: *** [all] Error 2
Does anyone know how I can fix this problem?
 
Old 11-29-2012, 10:17 PM   #2
hotchili
Member
 
Registered: Sep 2009
Location: Germany
Distribution: slackware64-current
Posts: 69

Rep: Reputation: 17
Yes it is trying to use the 32bit libogg in /usr/lib and fails, some programs
have this problem. Instead it has to use the one from /usr/lib64 ...

Passing LDFLAGS="-L/usr/lib64" to the SlackBuild often helps, this one compiled fine here:
Code:
LDFLAGS="-L/usr/lib64" ./celt.SlackBuild
Without I got the same error ...

Edit: If you use sbopkg and all 3 have that problem you can use a queuefile,
like this: http://www.linuxquestions.org/questi...5/#post3671809

Last edited by hotchili; 11-29-2012 at 10:20 PM.
 
7 members found this post helpful.
Old 11-30-2012, 10:25 AM   #3
reguser23
LQ Newbie
 
Registered: Nov 2012
Location: College Station
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
Wow, thanks a lot buddy that worked well!!!
 
Old 02-15-2014, 07:49 AM   #4
SntaxError
LQ Newbie
 
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by hotchili View Post
Yes it is trying to use the 32bit libogg in /usr/lib and fails, some programs
have this problem. Instead it has to use the one from /usr/lib64 ...

Passing LDFLAGS="-L/usr/lib64" to the SlackBuild often helps, this one compiled fine here:
Code:
LDFLAGS="-L/usr/lib64" ./celt.SlackBuild
Without I got the same error ...

Edit: If you use sbopkg and all 3 have that problem you can use a queuefile,
like this
Great info! Thanks again from another user.
 
Old 04-15-2014, 12:36 AM   #5
ethoms
Member
 
Registered: Nov 2011
Posts: 34

Rep: Reputation: Disabled
Yep, helped me too, thanks a bunch hotchili
 
  


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
"bad tty" & "file descriptor error" while building RPM on F13 gosssamer Linux - Software 7 12-28-2010 05:02 PM
What is the error "invalid module format" and "insert kernel module"? shayori Linux - Newbie 8 02-25-2010 03:48 AM
[SOLVED] Exaile crashes with "glib.GError: Couldn't recognise the image file format for file" cantab Arch 2 10-30-2009 06:35 PM
gdb "not in executable format: File format not recognized" tcma Programming 9 07-18-2007 06:02 AM
KDE 3.2 Print Problem "File Format is not directly supported" forgox Debian 0 09-22-2004 09:07 PM


All times are GMT -5. The time now is 09:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration