LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 05: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, 03: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, 08: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



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 08:45 PM
how to find linux OS is a 32 bit or 64 bit sagar666 Linux - Server 6 03-05-2013 09:04 PM
how to find linux server platform nuttynibbles Linux - Newbie 2 05-23-2010 08:13 AM
Installing 64-bit RHEL on a 32-bit platform...Issues? hegge Red Hat 5 04-13-2010 10: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 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 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