compiling wine on ubuntu 9.10 64bit from the repo sources

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
cyphaw
Level 2
Level 2
Posts: 12
Joined: Wed Mar 31, 2010 3:19 am

compiling wine on ubuntu 9.10 64bit from the repo sources

Post by cyphaw »

Hello everybody,

I've got a problem with wine and I couldn't find how to solve it (there are solution on similar problems on Internet but none worked for me): I need to install it but I must patch it before.

Since I'm on ubuntu, I downloaded the sources from the ubuntu repo (v 1.1.31), I patched it (in fact I modified a line in the file dlls/dinput/mouse.c based on this: http://bugs2.winehq.org/attachment.cgi?id=11303) and tried to compile it.

I installed everything needed, and have no warning while running ./configure

So then I tried

Code: Select all

dpkg-buildpackage -rfakeroot -uc -b
but I had an error like this one http://forum.winehq.org/viewtopic.php?p=40735

Following the thread I removed the --enable-maintainer-mode from configure.ac, but now I have this error:

Code: Select all

/home/laurent/wine-sources/wine1.2-1.1.31/dlls/winemp3.acm/mpegl3.c:401: undefined reference to `mpg123_feedseek'
collect2: ld returned 1 exit status
winegcc: x86_64-linux-gnu-gcc failed
make[3]: *** [winemp3.acm.so] Error 2
make[3]: Leaving directory `/home/laurent/wine-sources/wine1.2-1.1.31/dlls/winemp3.acm'
make[2]: *** [winemp3.acm] Error 2
make[2]: Leaving directory `/home/laurent/wine-sources/wine1.2-1.1.31/dlls'
make[1]: *** [dlls] Error 2
make[1]: Leaving directory `/home/laurent/wine-sources/wine1.2-1.1.31'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
and I can't figure out how to solve it. Since the sources are from the repository, it should compile, isn't it?

So, if you have the slightest idea, feel free to share it.

cyphaw
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: compiling wine on ubuntu 9.10 64bit from the repo source

Post by dimesio »

cyphaw wrote: Since I'm on ubuntu, I downloaded the sources from the ubuntu repo (v 1.1.31),
Why are you trying to compile such an old version?

Code: Select all

/home/laurent/wine-sources/wine1.2-1.1.31/dlls/winemp3.acm/mpegl3.c:401: undefined reference to `mpg123_feedseek'
Probably this bug: http://bugs.winehq.org/show_bug.cgi?id=20042
Sven
Level 3
Level 3
Posts: 77
Joined: Wed Sep 09, 2009 7:37 am

Post by Sven »

Try to run configure with --without-mpg123. Karmic doesn't ship with the right mpg123.
cyphaw
Level 2
Level 2
Posts: 12
Joined: Wed Mar 31, 2010 3:19 am

Post by cyphaw »

@dimesio: Because I had a lot more problems with sources from the 1.1.39 (http://sourceforge.net/projects/wine/files/) and thought that since the sources from 1.1.31 were from the ubuntu repository, I would have less problems.

If you know how to correctly compile a newer version on karmic 64bit, I'll gladly hear you and try to do it.

@Sven: Your solution doesn't work, I still get the same error. I applied the first patch from the bug report dimesio mentioned and it's currently compiling.
I'll report on the success/failure in some minutes.
cyphaw
Level 2
Level 2
Posts: 12
Joined: Wed Mar 31, 2010 3:19 am

Post by cyphaw »

I can't edit my previous posts?

Well it works with patch but I have another problem. I don't know if you can help me there, but I'll ask:

So I installed Mirror's Edge with wine 1.1.31. When the game launch, I have sound during the EA advertising sequence, but absolutely no sound after that.

Any idea? There is no possible settings for audio in winecfg.

Thanks for the help.

cyphaw
Locked