SDL: Couldn't create semaphore

Whenever I run ANY SDL executing binary, including the demo binaries
I get the error
SDL: Couldn’t create semaphore. This confuses me, as I don’t know what
a semaphore
is.

Can anyone help me out with this? It started happening since
I reinstalled Linux, and now
the game I was writing has come to a standstill. :confused:

Whenever I run ANY SDL executing binary, including the demo binaries
I get the error
SDL: Couldn’t create semaphore. This confuses me, as I don’t know what
a semaphore
is.

Can anyone help me out with this? It started happening since
I reinstalled Linux, and now
the game I was writing has come to a standstill. :confused:

Do you have IPC enabled in the kernel? What kernel version are you
running? If you build SDL yourself, and break in SDL_CreateMutex(),
what is the value of errno after the mutex creation function fails?

See ya,
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Greetings,

drake wrote:

Whenever I run ANY SDL executing binary, including the demo binaries
I get the error
SDL: Couldn’t create semaphore. This confuses me, as I don’t know what
a semaphore is.

Can anyone help me out with this? It started happening since
I reinstalled Linux, and now
the game I was writing has come to a standstill. :confused:

Semaphores are a kind of mutex used in multithreaded applications, and
libraries ;), (usually “real-time” ones), and IPC. Did you download SDL
in binary form? It sounds to me like your reinstalled system is missing
the pthreads library which SDL is linked against. If you downloaded a
binary version of SDL you will definitely get threads related errors if
pthreads are not installed. Recheck your installation to make sure
pthreads is installed. In short try:

$ ls -l /lib/libpthread* /usr/lib/libpthread*

Regards,

Vee Schade
vschade at mindless.com