[CentOS] howto compile wine on centos 4 and x86_64

Wed Nov 22 20:47:22 UTC 2006
Jerry Geis <geisj at pagestation.com>

Hi all,

I am trying to compile wine on x86_64 for 32 bit world.
I found the fedora 5 wiki which states:
-------------------------


      Building Wine on Fedora Core 5 x86_64

Run the following commands as root:

cd /usr/lib
ln -s libfreetype.so.6 libfreetype.so
ln -s libXext.so.6 libXext.so
ln -s libX11.so.6 libX11.so
ln -s libGLU.so.1 libGLU.so

All the required development packages are available in the /core/ and 
/extras/ repositories.

Run configure with:

./configure --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --with-x
make depend
make


----------------

however when I do this I get errors.

make[2]: Leaving directory `/home/silentm/wine-0.9.25/libs/wine'
make[2]: Entering directory `/home/silentm/wine-0.9.25/libs/wine'
gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ 
-DWINE_UNICODE_API="" -D_REENTRANT -fPIC -Wall -pipe 
-fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings 
-Wpointer-arith  -g -O2 -D__i386__  -o casemap.o casemap.c
In file included from ../../include/windef.h:234,
                 from ../../include/wine/unicode.h:26,
                 from casemap.c:4:
../../include/winnt.h:764:1: warning: "CONTEXT_CONTROL" redefined
../../include/winnt.h:719:1: warning: this is the location of the 
previous definition
../../include/winnt.h:765:1: warning: "CONTEXT_INTEGER" redefined
../../include/winnt.h:720:1: warning: this is the location of the 
previous definition
../../include/winnt.h:766:1: warning: "CONTEXT_SEGMENTS" redefined
../../include/winnt.h:721:1: warning: this is the location of the 
previous definition
../../include/winnt.h:767:1: warning: "CONTEXT_FLOATING_POINT" redefined
../../include/winnt.h:722:1: warning: this is the location of the 
previous definition
../../include/winnt.h:768:1: warning: "CONTEXT_DEBUG_REGISTERS" redefined
../../include/winnt.h:723:1: warning: this is the location of the 
previous definitio

This seems to be due to the fact that __i386__ and __x86_64__ are both 
defined in winnt.h

I looked elsewhere and they mention having to install libc6-dev.i386.

I tried doing yum provides to try and find it but I cannot find it.

Has anyone gotten x86_64 wine to build? Can you share your steps?
Or what about this libc6-dev.i386 package?

Thanks,
Jerry