LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2015, 06:54 PM   #1
$shellCrypt
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Question cannot find -lsndfile / libsndfile in 32-bit linux platform


I am on a x86_64 platform in Ubuntu 14. However, I would like to build for a 32-bit linux platform. I run into the following issue when I try to build using make:

Code:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../libsndfile.so when searching for -lsndfile
/usr/bin/ld: skipping incompatible /usr/local/lib/libsndfile.so when searching for -lsndfile
/usr/bin/ld: skipping incompatible /usr/local/lib/libsndfile.a when searching for -lsndfile
/usr/bin/ld: skipping incompatible /usr/lib/libsndfile.so when searching for -lsndfile
/usr/bin/ld: cannot find -lsndfile
It seems like I am getting this error because I don't have the 32-bit libraries. I could not find anywhere online where I could directly procure the 32-bit version of the library. I tried to follow the steps here:
http://www.linuxfromscratch.org/blfs...ibsndfile.html

but instead specifying the build for the configure command:
Code:
./configure --build=i686-pc-linux-gnu --disable-static && make
But that didn't help either.

Has anyone encountered this issue before? Any pointers on what I could try? Would I have to create a subdirectory like /usr/lib32/ and move libraries around, perhaps?

I would be grateful for any tips you could provide me. Thanks!
 
Old 01-16-2015, 04:32 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Try building with

Code:
./configure --target=i686-pc-linux-gnu
 
1 members found this post helpful.
Old 01-16-2015, 09:16 AM   #3
$shellCrypt
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for a quick reply veerain. I tried both the target and host flags with ./configure for i686 and i386 with no luck. I had some luck after providing CFLAGS like -m32 with the make command - It would put the libraries in the right folder but error out because more 32-bit libraries (like libflac) were unavailable.

I had a feeling this would end up as a repetitive process, so ended up installing 32-bit Ubuntu. I was then able to successfully install the sndfile package in the right location. It would have been simpler if I was able to search and find 32-bit packages like these from Ubuntu repository. I wonder if that is possible...
 
  


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
Can't find 32 bit libs to run 32 bit prog on 64 bit CentOS homer_3 Linux - Distributions 2 09-30-2013 09:45 PM
how to find linux OS is a 32 bit or 64 bit sagar666 Linux - Server 6 03-05-2013 10:04 PM
how to find linux server platform nuttynibbles Linux - Newbie 2 05-23-2010 09:13 AM
Installing 64-bit RHEL on a 32-bit platform...Issues? hegge Red Hat 5 04-13-2010 11:13 AM
How do I find whether any linux kernel supports 32-bit or 64-bit architecture? dev_d Linux - Newbie 3 02-24-2010 03:52 PM


All times are GMT -5. The time now is 07:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration