I have same problem. Linux debian 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux Wine 1.3.27 Code: make[1]: Entering directory `/usr/src/wine-1.3.27/libs/wine' gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DWINE_UNICODE_API="" -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -g -O2 -o ldt.o ldt.c ldt.c: In function ?modify_ldt?: ldt.c:73:21: error: ?SYS_modify_ldt? undeclared (first use in this function) ldt.c:73:21: note: each undeclared identifier is reported only once for each function it appears in ldt.c:74:1: warning: control reaches end of non-void function [-Wreturn-type]