http://bugs.winehq.org/show_bug.cgi?id=10184
--- Comment #28 from Julian M. mayer.julian@googlemail.com 2008-02-22 15:44:53 --- there is more to it, but the linker problem has workarounds and the X11 issue even existed on 10.4 where no linker problem was present.
anyhow even with the X11.app package version 2.1.4 i can't get it to work:
acPro:wine-0.9.56 julian$ DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib WINEDEBUG=+wgl ./wine ../Lesson02/Lesson2.exe trace:wgl:X11DRV_WineGL_InitOpenglInfo GL version : 2.0 ATI-1.5.24. trace:wgl:X11DRV_WineGL_InitOpenglInfo GL renderer : ATI Radeon X1900 OpenGL Engine. trace:wgl:X11DRV_WineGL_InitOpenglInfo GLX version : 1.2. trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX version : 1.2. trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX vendor: : SGI. trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX version : 1.2. trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX vendor: : SGI. trace:wgl:X11DRV_WineGL_InitOpenglInfo Direct rendering enabled: True ^Cfixme:ntdll:RtlNtStatusToDosErrorNoTeb no mapping for c000013a err:wgl:process_attach X11DRV or GDI32 not loaded. Cannot create default context. err:module:LdrInitializeThunk "opengl32.dll" failed to initialize, aborting err:module:LdrInitializeThunk Main exe initialization for L"Z:\Users\julian\Desktop\Lesson02\Lesson2.exe" failed, status c0000142
MacPro:wine-0.9.56 julian$ DYLD_FALLBACK_LIBRARY_PATH=/usr/X11/lib WINEDEBUG=+relay ./wine ../Lesson02/Lesson2.exe trace:relay:load_list L"RelayExclude" = L"ntdll.RtlEnterCriticalSection;ntdll.RtlLeaveCriticalSection;kernel32.94;kernel32.95;kernel32.96;kernel32.97;kernel32.98" trace:relay:load_list L"RelayFromExclude" = L"winex11.drv;user32;gdi32;advapi32;kernel32" 0024:Call KERNEL32.__wine_kernel_init() ret=7bc3c4e7 0024:Call PE DLL (proc=0x60792330,module=0x60760000 L"advapi32.dll",reason=WINE_PREATTACH,res=0x0) 0024:Ret PE DLL (proc=0x60792330,module=0x60760000 L"advapi32.dll",reason=WINE_PREATTACH,res=0x0) retval=1 0024:Call PE DLL (proc=0x61ccb630,module=0x61c60000 L"gdi32.dll",reason=WINE_PREATTACH,res=0x0) 0024:Ret PE DLL (proc=0x61ccb630,module=0x61c60000 L"gdi32.dll",reason=WINE_PREATTACH,res=0x0) retval=1 0024:Call PE DLL (proc=0x61b8be10,module=0x61ad0000 L"user32.dll",reason=WINE_PREATTACH,res=0x0) 0024:Ret PE DLL (proc=0x61b8be10,module=0x61ad0000 L"user32.dll",reason=WINE_PREATTACH,res=0x0) retval=1 0024:Call PE DLL (proc=0x6035c250,module=0x60310000 L"opengl32.dll",reason=WINE_PREATTACH,res=0x0) 0024:Ret PE DLL (proc=0x6035c250,module=0x60310000 L"opengl32.dll",reason=WINE_PREATTACH,res=0x0) retval=1 0024:Call PE DLL (proc=0x7bc6d7a0,module=0x7bc10000 L"ntdll.dll",reason=PROCESS_ATTACH,res=0x1) 0024:Ret PE DLL (proc=0x7bc6d7a0,module=0x7bc10000 L"ntdll.dll",reason=PROCESS_ATTACH,res=0x1) retval=1 0024:Call PE DLL (proc=0x7b895c60,module=0x7b810000 L"KERNEL32.dll",reason=PROCESS_ATTACH,res=0x1) 0024:Ret PE DLL (proc=0x7b895c60,module=0x7b810000 L"KERNEL32.dll",reason=PROCESS_ATTACH,res=0x1) retval=1 0024:Call PE DLL (proc=0x60792330,module=0x60760000 L"advapi32.dll",reason=PROCESS_ATTACH,res=0x1) 0024:Ret PE DLL (proc=0x60792330,module=0x60760000 L"advapi32.dll",reason=PROCESS_ATTACH,res=0x1) retval=1 0024:Call PE DLL (proc=0x61ccb630,module=0x61c60000 L"gdi32.dll",reason=PROCESS_ATTACH,res=0x1) 0024:Ret PE DLL (proc=0x61ccb630,module=0x61c60000 L"gdi32.dll",reason=PROCESS_ATTACH,res=0x1) retval=1 0024:Call PE DLL (proc=0x61b8be10,module=0x61ad0000 L"user32.dll",reason=PROCESS_ATTACH,res=0x1) 0024:Call PE DLL (proc=0x61e88c80,module=0x61e20000 L"winex11.drv",reason=PROCESS_ATTACH,res=0x0) ^C0024:exception in PE entry point (proc=0x61e88c80,module=0x61e20000,reason=PROCESS_ATTACH,res=0x0) 0024:Ret PE DLL (proc=0x61e88c80,module=0x61e20000 L"winex11.drv",reason=PROCESS_ATTACH,res=0x0) retval=1 fixme:ntdll:RtlNtStatusToDosErrorNoTeb no mapping for c000013a 0024:Ret PE DLL (proc=0x61b8be10,module=0x61ad0000 L"user32.dll",reason=PROCESS_ATTACH,res=0x1) retval=1 0024:Call PE DLL (proc=0x6035c250,module=0x60310000 L"opengl32.dll",reason=PROCESS_ATTACH,res=0x1) 0024:Call KERNEL32.DisableThreadLibraryCalls(60310000) ret=6035ac0e 0024:Ret KERNEL32.DisableThreadLibraryCalls() retval=00000001 ret=6035ac0e 0024:Call user32.GetDesktopWindow() ret=6035ac24 0024:Call PE DLL (proc=0x61e88c80,module=0x61e20000 L"winex11.drv",reason=PROCESS_ATTACH,res=0x0) 0024:exception in PE entry point (proc=0x61e88c80,module=0x61e20000,reason=PROCESS_ATTACH,res=0x0) 0024:Ret PE DLL (proc=0x61e88c80,module=0x61e20000 L"winex11.drv",reason=PROCESS_ATTACH,res=0x0) retval=1 0024:Ret user32.GetDesktopWindow() retval=00010020 ret=6035ac24 0024:Call KERNEL32.GetModuleHandleA(6036d54e "winex11.drv") ret=6035ac32 0024:Ret KERNEL32.GetModuleHandleA() retval=00000000 ret=6035ac32 0024:Call KERNEL32.GetModuleHandleA(6036d55a "gdi32.dll") ret=6035ac45 0024:Ret KERNEL32.GetModuleHandleA() retval=61c60000 ret=6035ac45 err:wgl:process_attach X11DRV or GDI32 not loaded. Cannot create default context. 0024:Ret PE DLL (proc=0x6035c250,module=0x60310000 L"opengl32.dll",reason=PROCESS_ATTACH,res=0x1) retval=0 err:module:LdrInitializeThunk "opengl32.dll" failed to initialize, aborting err:module:LdrInitializeThunk Main exe initialization for L"Z:\Users\julian\Desktop\Lesson02\Lesson2.exe" failed, status c0000142