Help with PATCHING wine please

Ha s anyone had any success patching wine and getting it to compile,

I have patched it and made sure all the 32-bit dependencies suggested by openSuse were installed and it won’t compile …

there must be someone who plays cutting age games who has come across this and solved it,

here is my ./configure error

linux-cf5e:/home/ack/wine-git # ./configure
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)… yes
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for cpp… cpp
checking whether gcc -m32 works… no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

Thanks in advance

(been trying for a month)

Hi
The easiest way is to grab a src rpm and see how it’s built… or
run ./configure with the --help option to see what it should be.

Something like;


../configure --with-x --verbose --enable-win64


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 5 days 23:43, 4 users, load average: 0.72, 0.54, 0.32
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

From the output I’d say you need the package ‘gcc-32bit’ to be installed. There probably will be more like this. Mind, the 32bit is part of the package name, it contains 32bit libs, compiled for x86_64 systems.
Since wine is a 32 bit application, it will need a lot of those.

:’(ok so here we go again

from your suggestions and new info from WineOn64bit - The Official Wine Wiki

I have made some progress but still no install … here is what I did, and thanks for your help all!!!

  • zypper install gcc gcc+ make flex bison ncurses-devel-32bit giflib-devel-32bit liblcms-devel-32bit libxslt-devel-32bit Mesa-devel-32bit libpng-devel-32bit libxml2-devel-32bit freeglut-devel-32bit zlib-devel-32bit glibc-devel-32bit fontconfig-devel-32bit xorg-x11-devel-32bit xorg-x11-libXext-32bit xorg-x11-libXp-32bit xorg-x11-libXt-32bit capi4linux-32bit xorg-x11-libICE-32bit xorg-x11-libXext-devel-32bit sane-32bit cups-libs-32bit libjpeg-devel-32bit unixODBC-devel-32bit freetype2-devel-32bit openssl-devel-32bit openldap2-devel-32bit freetype2-devel-32bit hal-32bit hal-devel audiofile-devel git-core git-gui gitk libgnutls-extra-devel libgnutls-extra26 libjack-devel libsamplerate-devel update-desktop-files libgnutls-devel libgphoto2-devel libgsm-devel libmpg123-devel libcom_err-devel-32bit xorg-x11-libICE-devel-32bit xorg-x11-libX11-devel-32bit

cd /usr/lib
sudo ln -s libasound.so.2.0.0 libasound.so sudo ln -s libfreetype.so.6 libfreetype.so
sudo ln -s libgphoto2.so.2.3.0 libgphoto2.so
sudo ln -s libcups.so.2 libcups.so
sudo ln -s libssl.so.0.9.8 libssl.so
sudo ln -s libcrypto.so.0.9.8 libcrypto.so
sudo ln -s libhal.so.1.0.0 libhal.so
sudo ln -s libgphoto2_port.so.0.8.0 libgphoto2_port.so
sudo ln -s libgnutls.so.26 libgnutls.so
cd /lib
sudo ln -s libdbus-1.so.3.4.0 libdbus-1.so
sudo ln -s libkeyutils.so.1 /usr/lib/libkeyutils.so

Run configure with:
./configure --prefix=/usr –x-libraries=/usr/X11R6/lib

resulted in
configure: libGLU 32-bit development files not found, GLU won’t be supported.

configure: libsane 32-bit development files not found, scanners won’t be supported.

configure: libgphoto2 32-bit development files not found, digital cameras won’t be supported.

configure: libcapi20 32-bit development files not found, ISDN won’t be supported.

configure: libgsm 32-bit development files not found, gsm 06.10 codec won’t be supported.

configure: libmpg123 32-bit development files not found (or too old), mp3 codec won’t be supported.

configure: libopenal 32-bit development files not found (or too old), OpenAL won’t be supported.

configure: Finished. Do ‘make depend && make’ to compile Wine.

OPTIMISM only a few errors

‘make depend && make’ resulted in

cards.rc:156: Oops, segment violation
make[2]: *** [cards.res] Aborted
make[2]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls/cards' make[1]: *** [cards] Error 2 make[1]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls’
make: *** [dlls] Error 2

$ su -
# make install

make install

resulted in
make: *** No rule to make target `install’. Stop.

ARGHHHHHHHHHHHHHHHHHHH!!!:’(:’(

Hi
Have a look at the rpm spec file on the options…
http://pastebin.com/m4dfaf2e8


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 1 day 2:14, 2 users, load average: 0.23, 0.14, 0.09
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

wow that link opens up another can of worms,
when i see a script page how do i run it??
someone has sure done a lot of work to make it!

now I am down to this after
#./configure --with-x --verbose --prefix=/usr --x-libraries=/usr/X11R6/lib

configure: libGLU 32-bit development files not found, GLU won’t be supported.
configure: libsane 32-bit development files not found, scanners won’t be supported.
configure: libgphoto2 32-bit development files not found, digital cameras won’t be supported.
configure: libgsm 32-bit development files not found, gsm 06.10 codec won’t be supported.
configure: libmpg123 32-bit development files not found (or too old), mp3 codec won’t be supported.
configure: libopenal 32-bit development files not found (or too old), OpenAL won’t be supported.
configure: Finished. Do ‘make depend && make’ to compile Wine.

and the make depend && make ran for 13 minutes and increased the folder size to 310 MB, both which seemed very optimistic, but resulted in these errors

winegcc: gcc failed
make[2]: *** [opengl32.dll.so] Error 2
make[2]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls/opengl32' make[1]: *** [opengl32] Error 2 make[1]: Leaving directory /home/ack/System/Ubuntu_Apps/Wine/wine-1.1.33/dlls’
make: *** [dlls] Error 2

arghhhhhhhhhh

Hi
It’s a rpm spec file, download the src rpm to get the source and
patches, install via;


sudo rpm -Uhv <name_of_src_rpm>
cd /usr/src/packages/SPECS

Here you will find the file the other items are
in /usr/src/packages/SOURCES

You can then make changes to the spec file and build an installable rpm;


rpmbuild -ba <name>.spec

At the end of building it will say the built rpms are
in /usr/src/packages/RPMS/arch}


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 1 day 10:14, 2 users, load average: 0.20, 0.34, 0.19
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18