Build on Fedora core 3 on AMD64

Marcus Meissner marcus at
Sat Feb 26 01:16:27 CST 2005

On Sat, Feb 26, 2005 at 02:47:25PM +1300, Adrian Harvey wrote:
> I am having trouble getting wine (latest CVS) to build on my AMD64 box
> runngin Fedora core3, and I was hoping some autoconf wizard might be
> able to help.  To begin at the beginning, the issue that occurs during
> build is:
> gcc -m32 -c -I. -I. -I../../include -I../../include -I/usr/X11R6/include
> -D__WINESRC__   -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-
> boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -g -O2 -o
> ddraw.dll.dbg.o ddraw.dll.dbg.c
> .../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./ddraw.spec
> convert.o dclipper/main.o ddraw/hal.o ddraw/main.o ddraw/thunks.o
> ddraw/user.o dpalette/hal.o dpalette/main.o dsurface/dib.o
> dsurface/fakezbuffer.o dsurface/gamma.o dsurface/hal.o dsurface/main.o
> dsurface/thunks.o dsurface/user.o dsurface/wndproc.o helper.o main.o
> regsvr.o struct_convert.o  ddraw.dll.dbg.o version.res  -o
> -L../../dlls  -lole32 -luser32 -lgdi32 -ladvapi32 -lkernel32 -
> L../../libs/wine -lwine -ldxguid -luuid  -L/usr/X11R6/lib64  -lXext -
> lX11   -L../../libs/port -lwine_port 
> /usr/bin/ld: skipping incompatible /usr/X11R6/lib64/ when
> searching for -lXext
> /usr/bin/ld: skipping incompatible /usr/X11R6/lib64/libXext.a when
> searching for -lXext
> /usr/bin/ld: cannot find -lXext
> collect2: ld returned 1 exit status
> winegcc: gcc failed.
> make[2]: *** [] Error 2
> make[2]: Leaving directory `/home/adrian/wine/dlls/ddraw'
> make[1]: *** [ddraw] Error 2
> make[1]: Leaving directory `/home/adrian/wine/dlls'
> make: *** [dlls] Error 2
> So it seems that ld is finding the 64-bit version and failing to link
> it.  It seems that the reason for this is that configure uses
> xmkmf/imake to locate the X11 library directory and that this is always
> returning the .../lib64 version.  I have split out the Imakefile that
> configure generates, and tried various methods to prevent it seeing the
> system as 64 bit and handing out the lib64 directory instead of the lib
> one, but to no avail.

Use the --x-libraries=/usr/X11R6/lib configure option (or wherever fedora
keeps the 32bit libs).

And make sure that you have the 32bit libraries and devel headers installed.

Ciao, Marcus

More information about the wine-devel mailing list