compile error

Vincent Béron vberon at
Mon May 6 10:57:07 CDT 2002

Stefan Leichter a écrit :
> Hello,


> i'm unable to build the current cvs on an Red Hat 5.2 (Apollo) box. i
> know the system is a little bit outdated but as i did not read about the
> problem on this newsgroup. i just like to make sure that you know about
> it.

I take it for granted that you have the latest RH kernel for it?
2.0.36-3 is the latest according to

> Stefan
> make[2]: Entering directory `/camdev/projects/sle/wine/dlls/ntdll'
> LD_LIBRARY_PATH="../../library:../../unicode:$LD_LIBRARY_PATH"
> ../../tools/winebuild/winebuild -fPIC -L../../dlls  -o ntdll.spec.c
> -spec ./ntdll.spec
> gcc -c -I. -I. -I../../include -I../../include  -g -O2 -Wall -fPIC
> -D__WINE__ -D_NTSYSTEM_ -D_REENTRANT -I/usr/X11R6/include -o
> ntdll.spec.o ntdll.spec.c
> gcc -c -I. -I. -I../../include -I../../include  -g -O2 -Wall -fPIC
> -D__WINE__ -D_NTSYSTEM_ -D_REENTRANT -I/usr/X11R6/include -o cdrom.o
> cdrom.c
> cdrom.c: In function `CDROM_GetIdeInterface':
> cdrom.c:98: warning: implicit declaration of function `major'
> cdrom.c:105: `IDE6_MAJOR' undeclared (first use this function)

OK, so it seems your kernel doesn't have the appropriate IOCTLs. I think
you have 2 choices: Either upgrade the box (at least the kernel, but
likely a bunch of other things also) to something supporting those
IOCTLs (don't know which kernel version introduced those), or slash in
cdrom.c to get rid of the IOCTLs. You'll likely lose some functionality,
if it works.

After checking, you'll need at least RH 7.1 (w/ kernel 2.4.9-31). But
then, you'd be better with RH 7.2 or 7.3 (released today), or with any
other distro shipping with a 2.4 kernel.
Anybody else still using a 2.2.x kernel?

Maybe somebody more knowledgeable should actually install a 2.0.x box
(or 2.2.x) and verify if the instructions in README are still valid.
ATM, they only mention some LDT sharing issues with 2.0.x.


More information about the wine-devel mailing list