mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] OpenAL: applications and test programs crash
Date: Sat, 27 Nov 2010 20:06:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.1.6 Thunderbird/3.1.6


OpenAL builds fine, but applications using it crash. This even happens
with the openal-info.exe binary that is automatically built, and with
the test-openal.exe binary.
I just tried test-openal.exe using wine and got this:

err:ntdll:RtlpWaitForCriticalSection section 0x434048 "?" wait timed out
in thread 0009, blocked by 0000, retrying (60 sec)
Thanks for confirming that this is not just a problem on my system.

I found the problem. OpenAL has initialization and deinitialization
functions alc_init() and alc_deinit(), defined in Alc/ALc.c. On Windows,
these are called via automatic execution of DllMain by default. In our
case, we have to use the gcc constructor/destructor attributes instead,
like non-Windows platforms do.

The attached patch makes this change by augmenting the
openal-1-fixes.patch file.

Both openal-info.exe and test-openal.exe now work for me.

Martin


There was a similar situation with libgpg_error 1.9. In that case a patch from upstream fixed initialization.

Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]