LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   I keep getting this error: "File in wrong format" (http://www.linuxquestions.org/questions/slackware-14/i-keep-getting-this-error-file-in-wrong-format-4175439373/)

reguser23 11-29-2012 06:29 PM

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?

hotchili 11-29-2012 10:17 PM

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

reguser23 11-30-2012 10:25 AM

Wow, thanks a lot buddy that worked well!!!

SntaxError 02-15-2014 07:49 AM

Quote:

Originally Posted by hotchili (Post 4839944)
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.

ethoms 04-15-2014 12:36 AM

Yep, helped me too, thanks a bunch hotchili


All times are GMT -5. The time now is 04:47 PM.