[Openal-devel] OpenAL compilation under Linux Ubuntu desctop/server 32/64-bit

Dmitry Kostjuchenko dmitrykos at inbox.lv
Tue Jul 1 04:05:29 PDT 2008


Hi!

Sorry for double posting, my first experience with mailing lists :)

While porting my library from Windows to Linux platform and using
Ubuntu distribution compilation fails with error that
PTHREAD_MUTEX_RECURSIVE is not existing. To combat this issue I
propose to include following lines in 'config.ac':

# To combat an issue with PTHREAD_MUTEX_RECURSIVE not included on
some platforms we shall
# explicitly define _GNU_SOURCE.
AC_DEFINE([_GNU_SOURCE], [1], [Define to 1 to explicitly include
PTHREAD_MUTEX_RECURSIVE on some gcc versions.])

As a result all compiles out from the box without error. Or are there
any settings that I missed to triger and not to do these steps?

Best regards,
Dmitry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal-devel/attachments/20080701/f7b0b252/attachment.html


More information about the Openal-devel mailing list