[OpenAFS] OpenAFS 1.2.5 Won't Build Under Kernel 2.4.18-5

Computers in Medicine pittmed@pittmed.pitt.edu
Thu, 20 Jun 2002 22:39:55 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_00A5_01C218AB.66767A30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I recently installed kernel 2.4.18-5 from Red Hat RPMs and now OpenAFS =
1.2.5 won't build.  The procedure below worked fine for 2.4.18-4 and =
most other kernels before it.  I'm not expect at compiling programs =
under Linux (read I just make and pray), but since it's always worked =
well before we compile the kernels ourselves to be able to immediately =
update Linux kernels before packages are made.  Unfortunately, it didn't =
work this time and we would very much appreciate any hints as to why. =
Here's what we're doing.

Start with  openafs-1.2.5-src.tar.gz in /usr/src

# md5sum openafs-1.2.5-src.tar.gz
3d4ec14ed75a12347184eaeabf53da46  openafs-1.2.5-src.tar.gz

# gzip -d openafs-1.2.5-src.tar.gz
# tar -xf openafs-1.2.5-src.tar
# cd openafs-1.2.5

# ./configure --with-linux-kernel-headers=3D/usr/src/linux-2.4.18-5

[Snip]
Lots of output, ending with
creating src/config/afsconfig.h

# make

[Snip]
Lots of output, mostly looks OK, but ending with

gcc   -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -march=3Di486 =
-malign-loops=3D2 -malign-jumps=3D2 -malign-functions=3D2 -D__KERNEL__  =
-DCPU=3D586 -DKERNEL -D_KERNEL -DMODULE -DAFS_SMP -D__BOOT_KERNEL_UP=3D0 =
-D__BOOT_KERNEL_SMP=3D1   -I. -I../ -I/usr/src/openafs-1.2.5/src/config =
-c ../afs/afs_analyze.c;
In file included from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../linux/sched.h:454:15: #if with no expression
make[4]: *** [afs_analyze.o] Error 1
make[4]: Leaving directory =
`/usr/src/openafs-1.2.5/src/libafs/MODLOAD-2.4.18-5-MP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/usr/src/openafs-1.2.5/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/usr/src/openafs-1.2.5'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/openafs-1.2.5'
make: *** [all] Error 2

# ls src/libafs/MODLOAD-2.4.18-5-SP/
config@  Makefile@  Makefile.common@

Can anyone see what might be going wrong?  We'd really appreciate the =
assitance.  Thanks!






------=_NextPart_000_00A5_01C218AB.66767A30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Courier New" size=3D2>I recently installed kernel =
2.4.18-5 from=20
Red Hat RPMs and now OpenAFS 1.2.5 won't build.&nbsp; The procedure =
below worked=20
fine for 2.4.18-4 and most other kernels before it.&nbsp; I'm not expect =
at=20
compiling programs under Linux (read I just make and pray), but since =
it's=20
always worked well before we compile the kernels ourselves to be able to =

immediately update Linux kernels before packages are made.&nbsp; =
Unfortunately,=20
it didn't work this time and we would very much appreciate any hints as =
to why.=20
</FONT><FONT face=3D"Courier New" size=3D2>Here's what we're =
doing.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Start with  =
openafs-1.2.5-src.tar.gz in=20
/usr/src</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2># md5sum=20
openafs-1.2.5-src.tar.gz<BR>3d4ec14ed75a12347184eaeabf53da46&nbsp;=20
openafs-1.2.5-src.tar.gz</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><BR># gzip -d =
openafs-1.2.5-src.tar.gz<BR>#=20
tar -xf openafs-1.2.5-src.tar<BR># cd openafs-1.2.5</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2># ./configure=20
--with-linux-kernel-headers=3D/usr/src/linux-2.4.18-5</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>[Snip]</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Lots of output, ending =
with</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>creating=20
src/config/afsconfig.h</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2># make</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>[Snip]</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Lots of output, mostly looks =
OK, but ending=20
with</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>gcc&nbsp;&nbsp; -O2 =
-fomit-frame-pointer=20
-fno-strength-reduce -pipe -march=3Di486 -malign-loops=3D2 =
-malign-jumps=3D2=20
-malign-functions=3D2 -D__KERNEL__&nbsp; -DCPU=3D586 -DKERNEL -D_KERNEL =
-DMODULE=20
-DAFS_SMP -D__BOOT_KERNEL_UP=3D0 -D__BOOT_KERNEL_SMP=3D1&nbsp;&nbsp; -I. =
-I../=20
-I/usr/src/openafs-1.2.5/src/config -c ../afs/afs_analyze.c;<BR>In file =
included=20
from=20
../asm/uaccess.h:8,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
from=20
../afs/sysincludes.h:65,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
from ../afs/afs_analyze.c:19:<BR>../linux/sched.h:454:15: #if with no=20
expression<BR>make[4]: *** [afs_analyze.o] Error 1<BR>make[4]: Leaving =
directory=20
`/usr/src/openafs-1.2.5/src/libafs/MODLOAD-2.4.18-5-MP'<BR>make[3]: ***=20
[linux_compdirs] Error 2<BR>make[3]: Leaving directory=20
`/usr/src/openafs-1.2.5/src/libafs'<BR>make[2]: *** [libafs] Error =
2<BR>make[2]:=20
Leaving directory `/usr/src/openafs-1.2.5'<BR>make[1]: *** [build] Error =

2<BR>make[1]: Leaving directory `/usr/src/openafs-1.2.5'<BR>make: *** =
[all]=20
Error 2</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2># ls=20
src/libafs/MODLOAD-2.4.18-5-SP/<BR>config@&nbsp; Makefile@&nbsp;=20
Makefile.common@<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Can anyone see what might be =
going=20
wrong?&nbsp; We'd really appreciate the assitance.&nbsp; =
Thanks!</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" =
size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_00A5_01C218AB.66767A30--