LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gdk shared memory problem (https://www.linuxquestions.org/questions/linux-software-2/gdk-shared-memory-problem-424802/)

pandersson61 03-14-2006 02:34 PM

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

foo_bar_foo 03-16-2006 12:56 AM

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.

pandersson61 03-17-2006 02:31 AM

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


All times are GMT -5. The time now is 04:26 AM.