[OpenAFS] Success! Here's what anyone building openafs 1.4.5 for redhat enterprise WS 3.0 should know
Jerry Normandin
Jerry.Normandin@dafca.com
Mon, 3 Dec 2007 13:22:01 -0800
This is a multi-part message in MIME format.
------_=_NextPart_001_01C835F2.7B30C5DA
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Success! Here's what anyone building openafs 1.4.5 for redhat
enterprise WS 3.0 should know
=20
=20
First... fix your openafs.spec file. The problem is obvious. Hint:
fs is located under kernel.. be sure the spec file reflects it.
=20
Second.. If you are doing a complete build edit your
openafs-buildall.sh file. If you are a newbie.. it's in
/usr/src/redhat/SOURCES
=20
Change:
for arch in $archlist ; do
echo "Building for $kerndir, $kvers, $arch"
rpmbuild -bb $buildopts \
--define "fedorakmod 0" \
--define "osvers $osvers" \
--define "kernvers $kvers" \
--define "ksrcdir $kerndir" \
--define "build_modules 1" \
--target=3D$arch \
$specdir/openafs.spec || exit 1
done
fi
=20
To:
for arch in $archlist ; do
echo "Building for $kerndir, $kvers, $arch"
rpmbuild -bb $buildopts \
--define "fedorakmod 0" \
--define "osvers $osvers" \
--define "kernvers $kvers" \
--define "ksrcdir $kerndir" \
--define "build_modules 1" \
--define "build_authlibs 1" \
--define "build_userspace 1" \
--target=3D$arch \
$specdir/openafs.spec || exit 1
done
fi
=20
Also be sure you have all the needed tools installed such as automake,
etc.
=20
run ./openafs-buildall.sh and in a few minutes you should have all the
required rpm files for your server:
[root@eng03 i686]# ls /usr/src/redhat/RPMS/i686
openafs-1.4.5-rhel3.1.i686.rpm
openafs-authlibs-1.4.5-rhel3.1.i686.rpm
openafs-authlibs-devel-1.4.5-rhel3.1.i686.rpm
openafs-client-1.4.5-rhel3.1.i686.rpm
openafs-compat-1.4.5-rhel3.1.i686.rpm
openafs-devel-1.4.5-rhel3.1.i686.rpm
openafs-docs-1.4.5-rhel3.1.i686.rpm
openafs-kernel-1.4.5-2.4.21_47.EL_1.i686.rpm
openafs-kernel-hugemem-1.4.5-2.4.21_47.EL_1.i686.rpm
openafs-kernel-smp-1.4.5-2.4.21_47.EL_1.i686.rpm
openafs-kernel-source-1.4.5-rhel3.1.i686.rpm
openafs-kpasswd-1.4.5-rhel3.1.i686.rpm
openafs-krb5-1.4.5-rhel3.1.i686.rpm
openafs-server-1.4.5-rhel3.1.i686.rpm
=20
In the words of Stewy --- "Victory is Mine!"
=20
=20
From: openafs-info-admin@openafs.org
[mailto:openafs-info-admin@openafs.org] On Behalf Of Derrick Brashear
Sent: Monday, December 03, 2007 2:55 PM
To: OpenAFS-Info
Subject: Re: [OpenAFS] File systems on Linux, again.
=20
=20
On Dec 3, 2007 2:50 PM, Jerry Normandin <Jerry.Normandin@dafca.com>
wrote:
ah.. sorry about that I intended to post to the group. I thought I hit
reply-all.
=20
Here's where I got the SRPM:
=20
http://www.openafs.org/dl/openafs/1.4.5/rhel3/SRPMS/openafs-1.4.5-rhel3.
1.src.rpm=20
=20
openafs-buildall.sh fails.
=20
Derrick,
=20
Do you still have a copy of the srpm that you built openafs 1.4.5 on
redhat enterprise 3 with?
=20
i uploaded it. the srpm, like the rpms, came from me. you never
answered what was on the line in the spec file it complained about.=20
=20
------_=_NextPart_001_01C835F2.7B30C5DA
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Success! Here's what anyone building openafs 1.4.5 =
for
redhat enterprise WS 3.0 should know<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>First… fix your openafs.spec =
file. The
problem is obvious. Hint: fs is located under kernel.. =
be sure
the spec file reflects it.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Second.. If you are doing a complete build edit your =
openafs-buildall.sh
file. If you are a newbie.. it's in =
/usr/src/redhat/SOURCES<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Change:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>for arch in $archlist ; do<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> echo "Building for =
$kerndir,
$kvers, $arch"<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> rpmbuild -bb
$buildopts \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"fedorakmod 0" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"osvers $osvers" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"kernvers $kvers" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"ksrcdir $kerndir" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"build_modules 1" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>
--target=3D$arch \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>
$specdir/openafs.spec || exit 1<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> done<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> fi<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>To:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>for arch in $archlist ; do<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> echo "Building for =
$kerndir,
$kvers, $arch"<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> rpmbuild -bb
$buildopts \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"fedorakmod 0" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"osvers $osvers" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"kernvers $kvers" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"ksrcdir $kerndir" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"build_modules 1" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"build_authlibs 1" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--define
"build_userspace 1" \<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> =
--target=3D$arch
\<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>
$specdir/openafs.spec || exit 1<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> done<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> fi<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Also be sure you have all the needed tools installed such =
as
automake, etc.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>run ./openafs-buildall.sh and in a few minutes you =
should
have all the required rpm files for your server:<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>[root@eng03 i686]# ls =
/usr/src/redhat/RPMS/i686<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-authlibs-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span><=
/p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-authlibs-devel-1.4.5-rhel3.1.i686.rpm<o:p></o:p></=
span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-client-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></p=
>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-compat-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></p=
>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-devel-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></p>=
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-docs-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-kernel-1.4.5-2.4.21_47.EL_1.i686.rpm<o:p></o:p></s=
pan></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-kernel-hugemem-1.4.5-2.4.21_47.EL_1.i686.rpm<o:p><=
/o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-kernel-smp-1.4.5-2.4.21_47.EL_1.i686.rpm<o:p></o:p=
></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-kernel-source-1.4.5-rhel3.1.i686.rpm<o:p></o:p></s=
pan></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-kpasswd-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></=
p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-krb5-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>openafs-server-1.4.5-rhel3.1.i686.rpm<o:p></o:p></span></p=
>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In the words of Stewy --- "Victory is =
Mine!"<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0in 0in 0in'>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
openafs-info-admin@openafs.org [mailto:openafs-info-admin@openafs.org] =
<b>On
Behalf Of </b>Derrick Brashear<br>
<b>Sent:</b> Monday, December 03, 2007 2:55 PM<br>
<b>To:</b> OpenAFS-Info<br>
<b>Subject:</b> Re: [OpenAFS] File systems on Linux, =
again.<o:p></o:p></span></p>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><o:p> </o:p></p>
<div>
<p class=3DMsoNormal>On Dec 3, 2007 2:50 PM, Jerry Normandin <<a
href=3D"mailto:Jerry.Normandin@dafca.com">Jerry.Normandin@dafca.com</a>&g=
t;
wrote:<o:p></o:p></p>
<div>
<div>
<p><span style=3D'font-size:11.0pt;color:#1F497D'>ah.. sorry about that =
I
intended to post to the group. I thought I hit =
reply-all.</span><o:p></o:p></p>
<p><span =
style=3D'font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style=3D'font-size:11.0pt;color:#1F497D'>Here's where I got the =
SRPM:</span><o:p></o:p></p>
<p><span =
style=3D'font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style=3D'font-size:11.0pt;color:#1F497D'><a
href=3D"http://www.openafs.org/dl/openafs/1.4.5/rhel3/SRPMS/openafs-1.4.5=
-rhel3.1.src.rpm"
target=3D"_blank">http://www.openafs.org/dl/openafs/1.4.5/rhel3/SRPMS/ope=
nafs-1.4.5-rhel3.1.src.rpm
</a></span><o:p></o:p></p>
<p><span =
style=3D'font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style=3D'font-size:11.0pt;color:#1F497D'>openafs-buildall.sh =
fails.</span><o:p></o:p></p>
<p><span =
style=3D'font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span =
style=3D'font-size:11.0pt;color:#1F497D'>Derrick,</span><o:p></o:p></p>
<p><span =
style=3D'font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style=3D'font-size:11.0pt;color:#1F497D'>Do you still have a =
copy of the
srpm that you built openafs 1.4.5 on redhat enterprise 3 =
with?</span><o:p></o:p></p>
<p><span =
style=3D'font-size:11.0pt;color:#1F497D'> </span> <o:p></o:p></=
p>
</div>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'>i uploaded it. =
the srpm,
like the rpms, came from me. you never answered what was on the line in =
the
spec file it complained about. <o:p></o:p></p>
</div>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
</body>
</html>
------_=_NextPart_001_01C835F2.7B30C5DA--