Trying to compile wine under 64 bit SL6

Questions about Wine on Linux
Locked
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Trying to compile wine under 64 bit SL6

Post by ToddAndMargo2 »

Scientific Linux 6.5 64 bit

# ./configure --disable-win64
gives me

checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

Using the following reference: http://wiki.winehq.org/WineOn64bit

# yum install --setopt=protected_multilib=false alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 pulseaudio-libs-devel.i686 cmake portaudio-devel.i686 openal-soft-devel.i686 audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixODBC-devel.i686 sane-backends-devel.i686 fontforge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libGL-devel.i686 mesa-libGLU-devel.i686 libXxf86dga-devel.i686 libXxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel ImageMagick-devel.i686 openal-soft-devel.i686 libX11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc

And I am still getting the error. What did I miss?

Many thanks,
-T
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to compile wine under 64 bit SL6

Post by dimesio »

Looks like you're missing 32 bit gcc.
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Trying to compile wine under 64 bit SL6

Post by ToddAndMargo2 »

dimesio wrote:Looks like you're missing 32 bit gcc.
"gcc -m32" is suppose to fix that, but doesn't. And there are no 32 bit specific "gcc" RPMs.
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to compile wine under 64 bit SL6

Post by dimesio »

Check the config.log to see exactly what ./configure is looking for and where it's looking.
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Trying to compile wine under 64 bit SL6

Post by ToddAndMargo2 »

dimesio wrote:Check the config.log to see exactly what ./configure is looking for and where it's looking.
I didn't realize config.log was there. Thank you!

Code: Select all

configure:4743: checking whether gcc -m32 works
configure:4757: gcc -m32 -o conftest -g -O2   conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
what is crt1.o ?

Code: Select all

$ yum --enablerepo=* whatprovides */crt1.0
Loaded plugins: priorities, refresh-packagekit, security
3934 packages excluded due to repository priority protections
...
No Matches found
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to compile wine under 64 bit SL6

Post by dimesio »

what is crt1.o ?
It's part of glibc. If you're sure you have 32 bit glibc installed (double check), search your system for the file. You may need to make a symlink for ./configure to find it.
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Trying to compile wine under 64 bit SL6

Post by ToddAndMargo2 »

dimesio wrote:
what is crt1.o ?
It's part of glibc. If you're sure you have 32 bit glibc installed (double check), search your system for the file. You may need to make a symlink for ./configure to find it.
Hmmmm. Got one in "/usr/lib64/crt1.o"

$ rpm -qa \*glibc\*
glibc-2.12-1.149.el6.i686
glibc-common-2.12-1.149.el6.x86_64
glibc-headers-2.12-1.149.el6.x86_64
glibc-2.12-1.149.el6.x86_64
glibc-devel-2.12-1.149.el6.x86_64

# find / -iname \*crt1.o\*
/usr/lib64/crt1.o
/usr/lib64/Scrt1.o
/usr/lib64/gcrt1.o
/usr/lib64/Mcrt1.o
/opt/AutoScan/usr/lib/crt1.o
/opt/AutoScan/usr/lib/Scrt1.o
/opt/AutoScan/usr/lib/gcrt1.o
/opt/AutoScan/usr/lib/Mcrt1.o
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to compile wine under 64 bit SL6

Post by dimesio »

$ rpm -qa \*glibc\*
glibc-2.12-1.149.el6.i686
glibc-common-2.12-1.149.el6.x86_64
glibc-headers-2.12-1.149.el6.x86_64
glibc-2.12-1.149.el6.x86_64
glibc-devel-2.12-1.149.el6.x86_64
Looks like you are missing a 32 bit glibc development package.
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Trying to compile wine under 64 bit SL6

Post by ToddAndMargo2 »

dimesio wrote:
$ rpm -qa \*glibc\*
glibc-2.12-1.149.el6.i686
glibc-common-2.12-1.149.el6.x86_64
glibc-headers-2.12-1.149.el6.x86_64
glibc-2.12-1.149.el6.x86_64
glibc-devel-2.12-1.149.el6.x86_64
Looks like you are missing a 32 bit glibc development package.
That did the trick. Thank you!

Got another one to figure out:

Code: Select all

configure:10488: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 32-bit development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
A search on "Xfree86" of pbone.net only turns up "xorg-x11-server-source".
And Yum struck out:

Code: Select all

#yum --enablerepo=* whatprovides */Xfree86
...
No Matches found
Do you have any idea what "Xlib/Xfree86" is?

Many thanks,
-T
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to compile wine under 64 bit SL6

Post by dimesio »

Search for libX11. You need the development packages (32 and 64 bit).
ToddAndMargo2
Level 3
Level 3
Posts: 98
Joined: Thu Aug 21, 2014 6:40 pm

Re: Trying to compile wine under 64 bit SL6

Post by ToddAndMargo2 »

dimesio wrote:Search for libX11. You need the development packages (32 and 64 bit).
That worked. Thank you!

I got a "configure" through, but had a bunch more non-critical errors.

Code: Select all

#  yum --enablerepo=* install libXrender-devel.i686  mingw32-libxml2 libxslt-devel.i686 gnutls-devel.i686 libjpeg-devel.i686 libpng-devel.i686
Fixed them up (I found them this time!). Still got some errors, but I don't care at this point. At least it "configured".

Code: Select all

configure: WARNING: libxrender 32-bit development files not found, XRender won't be supported.
configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.
configure: WARNING: libxml2 32-bit development files not found (or too old), XML won't be supported.
configure: WARNING: libxslt 32-bit development files not found, xslt won't be supported.
configure: WARNING: libjpeg 32-bit development files not found, JPEG won't be supported.
configure: WARNING: libpng 32-bit development files not found, PNG won't be supported.
configure: WARNING: No sound system was found. Windows applications will be silent.
configure: Finished.  Do 'make' to compile Wine.
Locked