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 03-14-2006, 03:34 PM   #1
pandersson61
Member
 
Registered: Jan 2004
Distribution: Ubuntu 9.10, 10.04
Posts: 40

Rep: Reputation: 15
Gdk shared memory problem


Hi,

I have just installed linux from scratch (lfs). And i am experiencing some problems with gtk+2. Whenever i launch an application i get:

Gdk-WARNING **: shmget failed: error 38 (Function not implemented)

I have tried googling around an as far as i could find this has to do with some shared memory kernel option not being set. Does anyone know how to resolve this?

A quick "grep SHM .config" gave me this:

CONFIG_SHMEM=y
# CONFIG_TINY_SHMEM is not set

Any ideas are most welcome!

Thanks

/Peter
 
Old 03-16-2006, 01:56 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hi,
in /etc/fstab you got
Code:
shm            /dev/shm     tmpfs  defaults        0     0
and a directory /dev/shm ? (might be created by udev)
i'm not sure what this will tell us but you can look at shared segments with the command
ipcs -m

i guess another issue could be size
i think shm is limited by default to half of physical memory
can be set to less in various ways like defaults,size=<>M i thnk
allocation certaily would fail if all is used up.
 
Old 03-17-2006, 03:31 AM   #3
pandersson61
Member
 
Registered: Jan 2004
Distribution: Ubuntu 9.10, 10.04
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for replying!

I have just noticed that shared memory support wasn't compiled into the kernel after all. After i enabled it the error messages went away.

/Peter
 
  


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
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 10:57 AM
Problem with shared memory in C under Linux d1s4st3r Programming 4 06-29-2005 04:34 AM
shared memory/semaphore problem V_Ganesh Programming 1 03-31-2005 11:58 PM
c + shared memory dilberim82 Programming 3 03-07-2005 08:49 PM
shared memory socket9001 Programming 4 02-06-2004 03:08 PM

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

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