Error compiling Wine 0.9.53 - Please Help

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ackanao
Level 1
Level 1
Posts: 5
Joined: Mon Jun 15, 2009 12:06 pm

Error compiling Wine 0.9.53 - Please Help

Post by ackanao »

Greetings,

I have much trouble compiling Wine 0.9.53 and I just don't know what to do. My system is Ubuntu Intrepid Ibex (32-bit) and I have build essential and build-dep wine installed. Also I've used install-wine-deps.sh from official Wine Wiki just to be sure that all needed dependencies are installed.

First I've tried by downloading source code but whenever I try to compile it I get this error:

Code: Select all

gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith  -g -O2  -o signal_i386.o signal_i386.c
signal_i386.c: In function ‘merge_vm86_pending_flags’:
signal_i386.c:502: error: ‘VIF_MASK’ undeclared (first use in this function)
signal_i386.c:502: error: (Each undeclared identifier is reported only once
signal_i386.c:502: error: for each function it appears in.)
signal_i386.c:513: error: ‘VIP_MASK’ undeclared (first use in this function)
signal_i386.c: In function ‘raise_vm86_sti_exception’:
signal_i386.c:1086: error: ‘VIP_MASK’ undeclared (first use in this function)
signal_i386.c: In function ‘__wine_enter_vm86’:
signal_i386.c:1486: error: ‘VIF_MASK’ undeclared (first use in this function)
signal_i386.c:1487: error: ‘VIP_MASK’ undeclared (first use in this function)
make[2]: *** [signal_i386.o] Error 1
make[2]: Leaving directory `/home/myself/Desktop/wine-0.9.53/dlls/ntdll'
make[1]: *** [ntdll] Error 2
make[1]: Leaving directory `/home/myself/Desktop/wine-0.9.53/dlls'
make: *** [dlls] Error 2
I don't get this error when I'm compiling 1.x versions of Wine - I've tried with 1.01 and 1.1.23 just to be sure; But whenever I try to compile 0.9.x versions I'm stuck with this error (I've tried 0.9.52 and 0.9.54 also).

Today I've tried to compile from git and same error appears - Can someone help me please?

PC. sorry for my bad English
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Error compiling Wine 0.9.53 - Please Help

Post by vitamin »

ackanao wrote:signal_i386.c: In function ‘merge_vm86_pending_flags’:
signal_i386.c:502: error: ‘VIF_MASK’ undeclared (first use in this function)
Looks like you missing kernel headers.
ackanao
Level 1
Level 1
Posts: 5
Joined: Mon Jun 15, 2009 12:06 pm

Re: Error compiling Wine 0.9.53 - Please Help

Post by ackanao »

Hi vitamin and thank you for your response.

I don't know what to think - kernel headers are installed by default when you install Ubuntu (if I'm not mistaken); Just to be sure I've ran sudo apt-get install linux-headers-$(uname -r) and it prompts me that they are installed:

linux-headers-2.6.27-14-generic is already the newest version.

After reading your post I choose to install some linux-headers packages from repos but that didn't solve the problem...

Today I've tried to compile Wine 0.9.53 on Hardy (in VirtualBox) and it compiles succesfully. Something's not right here and it looks like it has something with kernel headers that are shipped with Intrepid like you suggested. I'll try to compile Wine 0.9.53 later this day on Jaunty but I expect to see same error.

Could you tell me if this could be related to this issue and what should I do if it is:
http://www.mail-archive.com/pld-cvs-com ... 56762.html

Alternatively, do you have any other idea I should try out? Thanks in advance.

ackanao
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Error compiling Wine 0.9.53 - Please Help

Post by austin987 »

On Tue, Jun 16, 2009 at 11:40 AM, ackanao<[email protected]> wrote:
Hi vitamin and thank you for your response.

I don't know what to think - kernel headers are installed by default when you install Ubuntu (if I'm not mistaken); Just to be sure I've ran sudo apt-get install linux-headers-$(uname -r) and it prompts me that they are installed:

linux-headers-2.6.27-14-generic is already the newest version.

After reading your post I choose to install some linux-headers packages from repos but that didn't solve the problem...

Today I've tried to compile Wine 0.9.53 on Hardy (in VirtualBox) and it compiles succesfully. Something's not right here and it looks like it has something with kernel headers that are shipped with Intrepid like you suggested. I'll try to compile Wine 0.9.53 later this day on Jaunty but I expect to see same error.

Could you tell me if this could be related to this issue and what should I do if it is:
http://www.mail-archive.com/pld-cvs-com ... 56762.html

Alternatively, do you have any other idea I should try out? Thanks in advance.
The problem is compiling old code like that often breaks on newer
systems. You could use a reverse regression test to find the patch
that fixes it and compile the old code...
http://wiki.winehq.org/ReverseRegressionTesting

--
-Austin
ackanao
Level 1
Level 1
Posts: 5
Joined: Mon Jun 15, 2009 12:06 pm

Re: Error compiling Wine 0.9.53 - Please Help

Post by ackanao »

The problem is compiling old code like that often breaks on newer
systems. You could use a reverse regression test to find the patch
that fixes it and compile the old code...
http://wiki.winehq.org/ReverseRegressionTesting

--
-Austin
You're right I've already tried "the easier way" by substituting those functions
("merge_vm86_pending_flags", "raise_vm86_sti_exception", "__wine_enter_vm86") with "good ones" from Wine 1.01 but without success; I've tried to change them manually but I'm no programmer so I failed again :(

The reason I choose that path is because this is the first time I'm using Git and there are some things I still don't understand; Now I will try "the right way" - Thanks all of you for your help!

(I guess I'll be back quickly - I suspect I'll get into trouble with Reverse Regression Testing)
James Huk

Error compiling Wine 0.9.53 - Please Help

Post by James Huk »

2009/6/16 ackanao <[email protected]>
The problem is compiling old code like that often breaks on newer
systems. You could use a reverse regression test to find the patch
that fixes it and compile the old code...
http://wiki.winehq.org/ReverseRegressionTesting

--
-Austin
You're right I've already tried "the easier way" by substituting those
functions
("merge_vm86_pending_flags", "raise_vm86_sti_exception",
"__wine_enter_vm86") with "good ones" from Wine 1.01 but without success;
I've tried to change them manually but I'm no programmer so I failed again
:(

The reason I choose that path is because this is the first time I'm using
Git and there are some things I still don't understand; Now I will try "the
right way" - Thanks all of you for your help!

(I guess I'll be back quickly - I suspect I'll get into trouble with
Reverse Regression Testing)





You know... you could just try packages from older Ubuntu or Debian – it
should work just fine – I 'm using many wine version, from many different
distros – mostly Ubuntu, and I can safely say – they work great, no
recompilation required – tested with Debian 5.0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
ackanao
Level 1
Level 1
Posts: 5
Joined: Mon Jun 15, 2009 12:06 pm

Re: Error compiling Wine 0.9.53 - Please Help

Post by ackanao »

Greetings good people and thank you for your help - I managed to compile Wine 0.9.53 successfully!

I just added this two lines at the begining of signal_i386.c file:

#define VIF_MASK 0x00080000
#define VIP_MASK 0x00100000

It takes long time to do Reverse Regression Testing maybe because I'm still not that familiar with Git (I'll do it anyway because I want to learn how to do it).

But now I have another problem and I hope you'll help me with this:

I set "/home/myself/winebuilds/wine-0.9.53" for install folder and use "checkinstall" to create deb package but after the installation Wine won't run no matter what I do ?!

If I run winecfg or winever from /home/myself/winebuilds/wine-0.9.53/bin it says command not found and when I choose to install Wine from repos it overwrites my version of Wine.

All I want is to have "stable" version of Wine installed in its default location and versions of Wine compiled by me installed in a different location - How can I achieve that and what am I doing wrong here?

Thanks in advance...
James Huk

Error compiling Wine 0.9.53 - Please Help

Post by James Huk »

2009/6/18 ackanao <[email protected]>
Greetings good people and thank you for your help - I managed to compile
Wine 0.9.53 successfully!

I just added this two lines at the begining of signal_i386.c file:

#define VIF_MASK 0x00080000
#define VIP_MASK 0x00100000

It takes long time to do Reverse Regression Testing maybe because I'm still
not that familiar with Git (I'll do it anyway because I want to learn how to
do it).

But now I have another problem and I hope you'll help me with this:

I set "/home/myself/winebuilds/wine-0.9.53" for install folder and use
"checkinstall" to create deb package but after the installation Wine won't
run no matter what I do ?!

If I run winecfg or winever from /home/myself/winebuilds/wine-0.9.53/bin it
says command not found and when I choose to install Wine from repos it
overwrites my version of Wine.

All I want is to have "stable" version of Wine installed in its default
location and versions of Wine compiled by me installed in a different
location - How can I achieve that and what am I doing wrong here?

Thanks in advance...





Try „/home/myself/winebuilds/wine-0.9.53/bin/wine winecfg”??
OR
„/home/myself/winebuilds/wine-0.9.53/local/bin/wine winecfg”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
ackanao
Level 1
Level 1
Posts: 5
Joined: Mon Jun 15, 2009 12:06 pm

Re: Error compiling Wine 0.9.53 - Please Help

Post by ackanao »

Hi James Huk,

That doesn't work - still get "command not found"; Maybe I made a mistake by choosing that destination folder - Maybe it's better idea to use:

./configure --prefix=/opt/wine

or

./configure --prefix=/usr/local/wine

as described in "Advanced Wine Installation"

I'll try that later today - thanks anyway though...
James Huk

Error compiling Wine 0.9.53 - Please Help

Post by James Huk »

2009/6/18 ackanao <[email protected]>
Hi James Huk,

That doesn't work - still get "command not found"; Maybe I made a mistake
by choosing that destination folder - Maybe it's better idea to use:

./configure --prefix=/opt/wine

or

./configure --prefix=/usr/local/wine

as described in "Advanced Wine Installation"

I'll try that later today - thanks anyway though...





Hmm weird... I suggest you simply check where binary is... simply open .deb
package in some archive manager, then open data.tar.gz (inside .deb package)
and check where it is being unpacked or even better – extract wine from
data.tar.gz yourself (I do that myself) and then run from extraction
location.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
Locked