Wine 1.7.5.5 Compilation Errors Help Please

Questions about Wine on Linux
Locked
devlin016
Newbie
Newbie
Posts: 1
Joined: Thu May 11, 2017 3:29 am

Wine 1.7.5.5 Compilation Errors Help Please

Post by devlin016 »

Im trying to patch and compile 1.7.55 for star wars battlefront 2. everything seems to go fine till it gets to here.

Code: Select all

make[1]: Entering directory `/home/ubuntu/Downloads/wine1.7.55 patch/dlls/ntdll'
gcc -c -o sync.o sync.c -I. -I../../include -D__WINESRC__ -D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
  -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \
  -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
In file included from sync.c:70:0:
sync.c: In function ‘NtReleaseSemaphore’:
sync.c:506:72: error: dereferencing pointer to incomplete type
                         handle, count, previous, ntdll_object_dump(&sem->obj));
                                                                        ^
../../include/wine/debug.h:91:49: note: in definition of macro ‘__WINE_DBG_LOG’
     wine_dbg_log( __dbcl, __dbch, __FUNCTION__, args); } } while(0)
                                                 ^
../../include/wine/debug.h:344:36: note: in expansion of macro ‘__WINE_DPRINTF’
 #define WINE_TRACE_(ch)            __WINE_DPRINTF(_TRACE,&__wine_dbch_##ch)
                                    ^
../../include/wine/debug.h:388:36: note: in expansion of macro ‘WINE_TRACE_’
 #define TRACE_(ch)                 WINE_TRACE_(ch)
                                    ^
sync.c:505:9: note: in expansion of macro ‘TRACE_’
         TRACE_(ntdllsync)("handle = %p, count = %u, previous = %p) sem = %s\n",
         ^
In file included from sync.c:27:0:
sync.c:508:19: error: dereferencing pointer to incomplete type
         assert(sem->p);
                   ^
sync.c:509:19: error: dereferencing pointer to incomplete type
         assert(sem->obj.type_id == NTDLL_OBJ_TYPE_SEMAPHORE);
                   ^
sync.c:512:34: error: dereferencing pointer to incomplete type
         ntdll_object_release(&sem->obj);
                                  ^
make[1]: *** [sync.o] Error 1
make[1]: Leaving directory `/home/ubuntu/Downloads/wine1.7.55 patch/dlls/ntdll'
make: *** [dlls/ntdll] Error 2

Compilation failed, aborting install.
ubuntu@ubuntu-VirtualBox:~/Downloads/wine1.7.55 patch$ 
Locked