You are not logged in.

#1 2009-10-27 17:53:20

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 374

wine doesn't compile with abs

Hi all,

today I tried to compile wine from source using the abs PKGBUILD. This fails in the late compiling process during making cdrom.o. I did not change anything. I just did 'makepkg' as a normal user in my private abs tree. This should not happen!  Can anybody verify that?

I did this because I wanted to test a patch which should solve a problem in wine that I am experiencing. But I couldn't even compile the 'normal' source which I tried as a test before applying the patch... sad
http://bugs.winehq.org/show_bug.cgi?id=17269

Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#2 2009-10-28 01:02:50

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: wine doesn't compile with abs

Probably some makedepends which aren't properly listed. This is the makedepends array for wine-wc

makedepends=('cups' 'sane' 'flex' 'bison' 'libgphoto2' 
             'libxinerama' 'giflib' 'ncurses' 'libxcomposite' \
             'libxpm' 'libxmu' 'libxxf86vm' 'patch')

Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2009-10-28 03:20:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: wine doesn't compile with abs

post the error message.

Offline

#4 2009-10-28 09:40:00

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 374

Re: wine doesn't compile with abs

Snowman wrote:

post the error message.

It compiles (for a loong time...) until this messages appear:

cdrom.c: In function »GetInquiryData«:
cdrom.c:2682: Error: »INQUIRY« not declarated (first use in this function)
cdrom.c:2682: Error: (each descriptor not declarated will be executed only once
cdrom.c:2682: Error: for each function in which it appears.)
make[2]: *** [cdrom.o] Error 1
make[2]: Leaving directory `/home/harvey/abs/wine/src/wine-1.1.32/dlls/ntdll'
make[1]: *** [ntdll] Error 2
make[1]: Leaving directory `/home/harvey/abs/wine/src/wine-1.1.32/dlls'
make: *** [dlls] Error 2
==> ERROR: Build failed.

I translated the error message from german so it may not be 100% correct.

@ngoonee
The makedepends are met as far as I can tell. BTW, for extra/wine there are even more dependencies than you mentioned. A PKGBUILD from the main repos should work without any changes as it is the same the developers are using for building the repo package.

And yes, I synchronized abs and reinstalled base-devel just to be sure everything is ok. The build machine is 32bit Arch. The testing repo is enabled and I did a pacman -Syu before compiling.

Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#5 2009-10-29 04:23:31

kyle12
Member
Registered: 2009-10-29
Posts: 5

Re: wine doesn't compile with abs

Just tried building it myself from git (To be able to run Xfire, I wish the Arch Linux official repositories were updated more frequently.)

Wine-Git wrote:

gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wwrite-strings -Wtype-limits -Wpointer-arith  -march=i686 -mtune=generic -O2 -pipe  -o cdrom.o cdrom.c
cdrom.c: In function 'GetInquiryData':
cdrom.c:2682: error: 'INQUIRY' undeclared (first use in this function)
cdrom.c:2682: error: (Each undeclared identifier is reported only once
cdrom.c:2682: error: for each function it appears in.)
make[2]: *** [cdrom.o] Error 1
make[2]: Leaving directory `/home/josh/Downloads/wine-git/src/wine-build/dlls/ntdll'
make[1]: *** [ntdll] Error 2
make[1]: Leaving directory `/home/josh/Downloads/wine-git/src/wine-build/dlls'
make: *** [dlls] Error 2
==> ERROR: Build Failed.
    Aborting...

EDIT: Manually trying to compile it causes the same issue, however I'm basically performing the same commands.

Last edited by kyle12 (2009-10-29 06:08:08)

Offline

#6 2009-10-29 08:23:28

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 374

Re: wine doesn't compile with abs

I tried to build from git myself before I tried to compile the abs version. This did give exactly the same error. Something is wrong here. Maybe the maintainer could shine a light on this?


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#7 2009-10-29 08:31:07

kyle12
Member
Registered: 2009-10-29
Posts: 5

Re: wine doesn't compile with abs

Harey wrote:

Maybe the maintainer could shine a light on this?

I think it's an actual issue with Wine and nothing to do with Arch, but than again I'm a noob tongue

Last edited by kyle12 (2009-10-29 08:31:29)

Offline

#8 2009-10-29 09:33:48

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 374

Re: wine doesn't compile with abs


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#9 2009-10-29 17:15:48

falkman
Member
Registered: 2009-01-01
Posts: 7

Re: wine doesn't compile with abs

It allows you to build, I'm not sure how safe exactly it is... but

Throw

#define INQUIRY 0x12

somewhere in the header of dlls/ntdll/cdrom.c

I'll let you guys know if I run into any problems.

Nabbed it from: http://forum.winehq.org/viewtopic.php?p … 3f5d#28186

Last edited by falkman (2009-10-29 17:16:32)

Offline

#10 2009-10-29 19:43:00

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 374

Re: wine doesn't compile with abs

falkman, thank you for your help. I was able to compile wine-git and as far as I can tell wine is working big_smile

Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

Board footer

Powered by FluxBB