I can compile old wine from download page, but not from git?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
James_Huk
Level 2
Level 2
Posts: 45
Joined: Tue Feb 23, 2010 4:59 pm

I can compile old wine from download page, but not from git?

Post by James_Huk »

Hello again.

The problem is - when I download wine - let say 0.9.53 from here:

http://ibiblio.org/pub/linux/system/emu ... 53.tar.bz2

I can compile it on Debian Lenny without problems, however - when I use git like this:

git clone git://source.winehq.org/git/wine.git wine-git
cd wine-git
git-reset wine-0.9.53
git checkout -f
./configure && make depend && make

I get:

In file included from comm16.c:66:
win.h:37: error: field ‘obj’ has incomplete type
comm16.c: In function ‘EnableCommNotification16’:
comm16.c:1092: warning: implicit declaration of function ‘WIN_Handle32’
comm16.c:1092: warning: assignment makes pointer from integer without a cast
make[2]: *** [comm16.o] Błąd 1
make[2]: Opuszczenie katalogu `/home/james/wine-git/dlls/user32'
make[1]: *** [user32] Błąd 2
make[1]: Opuszczenie katalogu `/home/james/wine-git/dlls'
make: *** [dlls] Błąd 2

What am I missing? I thought that source from both git and download page is the same...
I wanted to do reverse regression test but with this error it is simply impossible. How can I fix this?

Thanks in advance.
fcmartins
Level 4
Level 4
Posts: 114
Joined: Sat Nov 01, 2008 5:48 pm

Post by fcmartins »

Well, I've done slightly different with
> git reset
> git checkout wine-0.9.53

and got different errors:

ccache gcc -c -I. -I. -I../../include -I../../include -I/usr/include/freetype2 -D__WINESRC__ -D_GDI32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -o freetype.o freetype.c
freetype.c:166: error: ‘FT_MulFix’ undeclared here (not in a function)
freetype.c:166: warning: type defaults to ‘int’ in declaration of ‘pFT_MulFix’
freetype.c: In function ‘WineEngGetOutlineTextMetrics’:
freetype.c:4277: error: called object ‘pFT_MulFix’ is not a function
freetype.c:4278: error: called object ‘pFT_MulFix’ is not a function


I guess these are due to unspotted mismatches of expected header files.
James McKenzie

I can compile old wine from download page, but not from git?

Post by James McKenzie »

James_Huk wrote:
Hello again.

The problem is - when I download wine - let say 0.9.53 from here:

http://ibiblio.org/pub/linux/system/emu ... 53.tar.bz2

I can compile it on Debian Lenny without problems, however - when I use git like this:

git clone git://source.winehq.org/git/wine.git wine-git
cd wine-git
git-reset wine-0.9.53
git-reset --hard wine-0.9.53

Does this make a difference?

Also, I tend to create more than one branch.

git branch stable
git checkout stable
git reset --hard wine-0.9.53

That way the master can be updated later.

James McKenzie
James_Huk
Level 2
Level 2
Posts: 45
Joined: Tue Feb 23, 2010 4:59 pm

Post by James_Huk »

Yes, it would seem this helped - I will test this more thoroughly
fcmartins
Level 4
Level 4
Posts: 114
Joined: Sat Nov 01, 2008 5:48 pm

Post by fcmartins »

For the record, the problem I got above is actually a reported bug (closed)

http://bugs.winehq.org/show_bug.cgi?id=17024
James_Huk
Level 2
Level 2
Posts: 45
Joined: Tue Feb 23, 2010 4:59 pm

Post by James_Huk »

Well I can say that:

git reset --hard wine-xyz

definitely works - although I had some other problems when trying to compile older wine version, after first compiling newer one - I was able to compile wine-0.9.18 (with some back-patching of course), but wine-0.9.17 and below gave some runtime errors (they were compiling fine) like WINE-1.0-something not defined

However I think this was because I used ccache (which gave me some other problem before - it would seam that it is not very well suited for revers regression testing), or because I didn't use:

git clean -f -d(I didn't use this command because it cleared my patches from wine-git dir)

Anyway - after disabling ccache and issuing above command and patching I was able to compile wine-0.9.15 on Debian Lenny ;]

If anyone is interested - I can provide exact patches that must be applied to the old source in order to compile it on newer systems.
Frédéric Delanoy

I can compile old wine from download page, but not from git

Post by Frédéric Delanoy »

On Fri, Jun 25, 2010 at 11:53, James_Huk <[email protected]> wrote:
Well I can say that:

git reset --hard wine-xyz

definitely works - although I had some other problems when trying to
compile older wine version, after first compiling newer one - I was able to
compile wine-0.9.18 (with some back-patching of course), but wine-0.9.17 and
below gave some runtime errors (they were compiling fine) like
WINE-1.0-something not defined

However I think this was because I used ccache (which gave me some other
problem before - it would seam that it is not very well suited for revers
regression testing), or because I didn't use:

git clean -f -d(I didn't use this command because it cleared my patches
from wine-git dir)

Anyway - after disabling ccache and issuing above command and patching I
was able to compile wine-0.9.15 on Debian Lenny ;]

If anyone is interested - I can provide exact patches that must be applied
to the old source in order to compile it on newer systems.
That "git reset --hard" is not needed IMO.

What you can do is
- "git checkout -b your_name wine-xxx" (where wine-xxx is the tag name, "git
tag" lists them all)
- apply any patch
- ./configure; make clean; make depend; make

Frédéric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
Locked