Skip to content

Instantly share code, notes, and snippets.

@avnik
Created July 4, 2020 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avnik/17114287e40a936a184183fd31d3bda2 to your computer and use it in GitHub Desktop.
Save avnik/17114287e40a936a184183fd31d3bda2 to your computer and use it in GitHub Desktop.
gcc -m64 -c -o xact_dll.o /build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c -I. \
-I/build/wine-5.12/dlls/xactengine3_0 -I/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7 \
-I../../include -I/build/wine-5.12/include -D__WINESRC__ -DXACT3_VER=0x0300 -D_REENTRANT -fPIC \
-fasynchronous-unwind-tables -Wall -pipe -fcf-protection=none -fno-stack-protector \
-fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
-Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
-Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 \
-gstrict-dwarf -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:84:5: error: unknown type name 'IXACT34Cue'
84 | IXACT34Cue IXACT34Cue_iface;
| ^~~~~~~~~~
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c: In function 'wrap_readfile':
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:132:34: warning: passing argument 5 of 'wrap->engine->pReadFile' from incompatible pointer type [-Wincompatible-pointer-types]
132 | lpNumberOfBytesRead, lpOverlapped);
| ^~~~~~~~~~~~
| |
| FACTOverlapped * {aka struct FACTOverlapped *}
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:132:34: note: expected 'LPOVERLAPPED' {aka 'struct _OVERLAPPED *'} but argument is of type 'FACTOverlapped *' {aka 'struct FACTOverlapped *'}
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c: In function 'wrap_getoverlappedresult':
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:142:59: warning: passing argument 2 of 'wrap->engine->pGetOverlappedResult' from incompatible pointer type [-Wincompatible-pointer-types]
142 | return wrap->engine->pGetOverlappedResult(wrap->file, lpOverlapped,
| ^~~~~~~~~~~~
| |
| FACTOverlapped * {aka struct FACTOverlapped *}
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:142:59: note: expected 'LPOVERLAPPED' {aka 'struct _OVERLAPPED *'} but argument is of type 'FACTOverlapped *' {aka 'struct FACTOverlapped *'}
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c: At top level:
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:293:50: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
293 | static inline XACT3CueImpl *impl_from_IXACT34Cue(IXACT34Cue *iface)
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:298:43: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
298 | static HRESULT WINAPI IXACT34CueImpl_Play(IXACT34Cue *iface)
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:307:43: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
307 | static HRESULT WINAPI IXACT34CueImpl_Stop(IXACT34Cue *iface, DWORD dwFlags)
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:316:47: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
316 | static HRESULT WINAPI IXACT34CueImpl_GetState(IXACT34Cue *iface, DWORD *pdwState)
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:325:46: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
325 | static HRESULT WINAPI IXACT34CueImpl_Destroy(IXACT34Cue *iface)
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:336:60: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
336 | static HRESULT WINAPI IXACT34CueImpl_SetMatrixCoefficients(IXACT34Cue *iface,
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:349:65: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
349 | static XACTVARIABLEINDEX WINAPI IXACT34CueImpl_GetVariableIndex(IXACT34Cue *iface,
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:359:50: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
359 | static HRESULT WINAPI IXACT34CueImpl_SetVariable(IXACT34Cue *iface,
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:369:50: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
369 | static HRESULT WINAPI IXACT34CueImpl_GetVariable(IXACT34Cue *iface,
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:379:44: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
379 | static HRESULT WINAPI IXACT34CueImpl_Pause(IXACT34Cue *iface, BOOL fPause)
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:388:52: error: unknown type name 'IXACT34Cue'; did you mean 'IXACT3Cue'?
388 | static HRESULT WINAPI IXACT34CueImpl_GetProperties(IXACT34Cue *iface,
| ^~~~~~~~~~
| IXACT3Cue
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:405:14: error: unknown type name 'IXACT34CueVtbl'
405 | static const IXACT34CueVtbl XACT34Cue_Vtbl =
| ^~~~~~~~~~~~~~
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:407:5: error: 'IXACT34CueImpl_Play' undeclared here (not in a function); did you mean 'IXACT3CueImpl_Play'?
407 | IXACT34CueImpl_Play,
| ^~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_Play
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:408:5: error: 'IXACT34CueImpl_Stop' undeclared here (not in a function); did you mean 'IXACT3CueImpl_Stop'?
408 | IXACT34CueImpl_Stop,
| ^~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_Stop
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:408:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:408:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:409:5: error: 'IXACT34CueImpl_GetState' undeclared here (not in a function); did you mean 'IXACT3CueImpl_GetState'?
409 | IXACT34CueImpl_GetState,
| ^~~~~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_GetState
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:409:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:409:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:410:5: error: 'IXACT34CueImpl_Destroy' undeclared here (not in a function); did you mean 'IXACT3CueImpl_Destroy'?
410 | IXACT34CueImpl_Destroy,
| ^~~~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_Destroy
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:410:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:410:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:411:5: error: 'IXACT34CueImpl_SetMatrixCoefficients' undeclared here (not in a function); did you mean 'IXACT3CueImpl_SetMatrixCoefficients'?
411 | IXACT34CueImpl_SetMatrixCoefficients,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_SetMatrixCoefficients
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:411:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:411:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:412:5: error: 'IXACT34CueImpl_GetVariableIndex' undeclared here (not in a function); did you mean 'IXACT3CueImpl_GetVariableIndex'?
412 | IXACT34CueImpl_GetVariableIndex,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_GetVariableIndex
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:412:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:412:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:413:5: error: 'IXACT34CueImpl_SetVariable' undeclared here (not in a function); did you mean 'IXACT3CueImpl_SetVariable'?
413 | IXACT34CueImpl_SetVariable,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_SetVariable
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:413:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:413:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:414:5: error: 'IXACT34CueImpl_GetVariable' undeclared here (not in a function); did you mean 'IXACT3CueImpl_GetVariable'?
414 | IXACT34CueImpl_GetVariable,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_GetVariable
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:414:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:414:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:415:5: error: 'IXACT34CueImpl_Pause' undeclared here (not in a function); did you mean 'IXACT3CueImpl_Pause'?
415 | IXACT34CueImpl_Pause,
| ^~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_Pause
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:415:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:415:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:416:5: error: 'IXACT34CueImpl_GetProperties' undeclared here (not in a function); did you mean 'IXACT3CueImpl_GetProperties'?
416 | IXACT34CueImpl_GetProperties
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| IXACT3CueImpl_GetProperties
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:416:5: warning: excess elements in scalar initializer
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:416:5: note: (near initialization for 'XACT34Cue_Vtbl')
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c: In function 'IXACT3SoundBankImpl_Prepare':
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:590:26: error: request for member 'lpVtbl' in something not a structure or union
590 | cue->IXACT34Cue_iface.lpVtbl = &XACT34Cue_Vtbl;
| ^
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c: In function 'IXACT3SoundBankImpl_Play':
/build/wine-5.12/dlls/xactengine3_0/../xaudio2_7/xact_dll.c:638:30: error: request for member 'lpVtbl' in something not a structure or union
638 | cue->IXACT34Cue_iface.lpVtbl = &XACT34Cue_Vtbl;
| ^
make[1]: *** [Makefile:188: xact_dll.o] Error 1
make[1]: Leaving directory '/build/wine64/dlls/xactengine3_0'
make: *** [Makefile:9226: dlls/xactengine3_0] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment