LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-10-2008, 02:11 PM   #1
Jhvdb
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
Shared library libfrint.so loading error


I have cross compiled libfprint and his dependencies for the ARM9 architecture. I've chosen for libfprint because it supports a lot of finterprint reader devices. It's not developed for embedded systems, but i have plenty of space on my embedded board board (512 mb), so the extra space for the dependencies (glib, imagemagick) is not a problem.
Well when i want to test my software on the embedded arm board an error appears:
"libfprint.so.0: cannot map zero-fill pages: cannot allocate memory"
The library can't be loaded... I have only 32 mb of RAM memory.

When execute the following command : free -m
i'll see that there is 21 mb of memory availeble, but there is no swap partition or swap file.

Anybody knows a solution for this problem ? Could creating a swap file a solution for this problem ?
(The (light weight) distribution i have installed is debian)
 
Old 09-10-2008, 02:26 PM   #2
nowshining
Member
 
Registered: Dec 2007
Distribution: Ibex
Posts: 93

Rep: Reputation: 15
if u can try running sudo ldconfig or ldconfig in root and trying again.
 
Old 09-10-2008, 02:40 PM   #3
Jhvdb
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nowshining View Post
if u can try running sudo ldconfig or ldconfig in root and trying again.
I haven't access to the embedded board (tomorrow again), but could you explain what this option exact does and what you think the problem is ?

Thx

Last edited by Jhvdb; 09-10-2008 at 02:42 PM.
 
Old 09-10-2008, 03:48 PM   #4
nowshining
Member
 
Registered: Dec 2007
Distribution: Ibex
Posts: 93

Rep: Reputation: 15
It basically goes thru all the libs and re-sets them (ie:.la files, etc..of where/what libs to use for what, etc..)... one may have to do this either if they go thru dpkg or such as apt-get, etc.. auto does this or incase one thinks the libs may be out of order, etc.. u can search the net for more info. on this.
 
Old 09-10-2008, 05:05 PM   #5
Jhvdb
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nowshining View Post
It basically goes thru all the libs and re-sets them (ie:.la files, etc..of where/what libs to use for what, etc..)... one may have to do this either if they go thru dpkg or such as apt-get, etc.. auto does this or incase one thinks the libs may be out of order, etc.. u can search the net for more info. on this.
Thank you. I'll try it.
But could it also be a memory problem and is a swap file a good solution then ?
 
Old 09-10-2008, 07:21 PM   #6
leomarcos
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1
Posts: 2

Rep: Reputation: 0
Hi,

I'm experiencing the same problem with libfprint, but on a 486 embedded system:
"libfprint.so.0: cannot map zero-fill pages: cannot allocate memory".
If you get some more hints about this problem, please share it with us.

Thank you,

Leo
 
Old 09-11-2008, 04:53 AM   #7
Jhvdb
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by leomarcos View Post
Hi,

I'm experiencing the same problem with libfprint, but on a 486 embedded system:
"libfprint.so.0: cannot map zero-fill pages: cannot allocate memory".
If you get some more hints about this problem, please share it with us.

Thank you,

Leo
I fixed it, by creating a swap file. The error was gone.
So it was a memory problem.

Last edited by Jhvdb; 09-11-2008 at 04:54 AM.
 
Old 09-12-2008, 06:26 PM   #8
leomarcos
LQ Newbie
 
Registered: Sep 2008
Distribution: Slackware 12.1
Posts: 2

Rep: Reputation: 0
I've also seen on the net advices to enable a swap file or partition in this case, but my system seems not to be prepared for it. I've seen (on my desktop machine) that a simple program like that 'verify_live' from libfprint takes a lot of memory while running, about 50MB and I also have only 32 MB of RAM.
I am now investigating the libfprint code and see if I can find a way to 'soak' this library (optimize it). I think it will be the only hope for me.

Thanks.
 
Old 09-13-2008, 11:32 AM   #9
Jhvdb
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by leomarcos View Post
I've also seen on the net advices to enable a swap file or partition in this case, but my system seems not to be prepared for it. I've seen (on my desktop machine) that a simple program like that 'verify_live' from libfprint takes a lot of memory while running, about 50MB and I also have only 32 MB of RAM.
I am now investigating the libfprint code and see if I can find a way to 'soak' this library (optimize it). I think it will be the only hope for me.

Thanks.
Your system is not prepared for it ? You can always create a swap file. It's not very fast but if you have to wait twice the normal time it's still just a second/two seconds.

But it is very recommend to clean the code or search an embedded board with more memory.
 
  


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
Error while loading shared library : libpng12.so.0 dhanilshah Linux - Software 5 08-18-2011 08:38 AM
error while loading shared library lucky6969b Programming 2 02-08-2006 01:41 AM
error while loading shared library bonniehandi Linux - Newbie 2 11-19-2005 12:43 AM
MAndrake 10 library problem : error while loading shared libraries falojah Linux - Software 13 09-22-2005 07:18 AM
kmodule: error while loading shared library libc.so.6 gruell Fedora - Installation 2 08-04-2005 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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