[OpenAFS] File systems on Linux, again.
Derrick Brashear
shadow@gmail.com
Mon, 3 Dec 2007 14:32:13 -0500
------=_Part_1826_7532243.1196710333229
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Keep it on the list.
Anyway, this is really the RHEL3 srpm? The hugemem error should have been
fixed in that specfile.
and,
error: /usr/src/redhat/SPECS/openafs.spec:346: parseExpressionBoolean
returns -1
what's on line 346?
On Dec 3, 2007 2:21 PM, Jerry Normandin <Jerry.Normandin@dafca.com> wrote:
> OK.. I am running
>
>
>
>
>
> This is the first error I get:
>
> Processing files: openafs-kernel-hugemem-1.4.5-2.4.21_47.EL_1
>
> error: File not found by glob: /var/tmp/openafs-1.4.5-root
> /lib/modules/2.4.21-47.ELhugemem/kernel/fs/openafs/openafs.*
>
>
>
>
>
> RPM build errors:
>
> File not found by glob: /var/tmp/openafs-1.4.5-root
> /lib/modules/2.4.21-47.ELhugemem/kernel/fs/openafs/openafs.*
>
> [root@eng03 SOURCES]#
>
>
>
> I managed to fix this manually by editing the spec file. The reason why
> there is an error is because there kernel direcory does not exit..
>
> the direcory fs/openafs is directly under : /var/tmp/openafs-1.4.5-root
> /lib/modules/2.4.21-47.ELhugemem
>
>
>
> The Second error ..
>
>
>
> I modified line 112, I now have:
>
> 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_userspace 1" \
>
> --target=$arch \
>
> $specdir/openafs.spec || exit 1
>
> done
>
> fi
>
>
>
> openafs-buildall.sh I get :
>
> [root@eng03 SOURCES]# ./openafs-buildall.sh
>
> Building OpenAFS for rhel3
>
> rpmbuild -ba --define osvers rhel3 /usr/src/redhat/SPECS/openafs.spec
>
> Building for /usr/src/linux-2.4.21-47.EL, 2.4.21-47.EL, i686
>
> Building target platforms: i686
>
> Building for target i686
>
> error: parse error in expression
>
> error: /usr/src/redhat/SPECS/openafs.spec:346: parseExpressionBoolean
> returns -1
>
> Checking for unpackaged file(s): /usr/lib/rpm/check-files
> /var/tmp/openafs-1.4.5-root
>
> error: Installed (but unpackaged) file(s) found:
>
> /lib/modules/2.4.21-47.EL/fs/openafs/openafs.o
>
> /lib/modules/2.4.21-47.ELhugemem/fs/openafs/openafs.o
>
> /lib/modules/2.4.21-47.ELsmp/fs/openafs/openafs.o
>
>
>
>
>
> RPM build errors:
>
> parse error in expression
>
> /usr/src/redhat/SPECS/openafs.spec:346: parseExpressionBoolean returns
> -1
>
> Installed (but unpackaged) file(s) found:
>
> /lib/modules/2.4.21-47.EL/fs/openafs/openafs.o
>
> /lib/modules/2.4.21-47.ELhugemem/fs/openafs/openafs.o
>
> /lib/modules/2.4.21-47.ELsmp/fs/openafs/openafs.o
>
> [root@eng03 SOURCES]# vi openafs-buildall.sh
>
> [root@eng03 SOURCES]# ls
>
>
>
> *From:* openafs-info-admin@openafs.org [mailto:
> openafs-info-admin@openafs.org] *On Behalf Of *Derrick Brashear
> *Sent:* Monday, December 03, 2007 1:54 PM
> *To:* openafs-info@openafs.org
> *Subject:* Re: [OpenAFS] File systems on Linux, again.
>
>
>
>
>
> On Dec 3, 2007 1:52 PM, Jerry Normandin <Jerry.Normandin@dafca.com> wrote:
>
> Has anyone tried to build the openafs userspace code on Redhat ver 3?
>
> the rpm build scripts fail.
>
> This is sort of news, in the sense that the RPMs on the web site were
> built by me on RHEL3.
>
> Get the RHEL3 srpm from the web site and
> rpm -ivh
> then cd /usr/src/redhat/SOURCES/
> ./openafs-buildall.sh
>
> Report any errors.
>
>
>
------=_Part_1826_7532243.1196710333229
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Keep it on the list.<br><br>Anyway, this is really the RHEL3 srpm? The hugemem error should have been fixed in that specfile.<br><br>and, <br><span style="font-size: 11pt; color: rgb(31, 73, 125);">error: /usr/src/redhat/SPECS/openafs.spec:346:
parseExpressionBoolean returns -1<br><br>what's on line 346?<br></span><br><div class="gmail_quote">On Dec 3, 2007 2:21 PM, Jerry Normandin <<a href="mailto:Jerry.Normandin@dafca.com">Jerry.Normandin@dafca.com</a>
> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">OK.. I am running</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">This is the first error I get:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Processing files: openafs-kernel-hugemem-1.4.5-2.4.21_47.EL_1</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">error: File not found by glob:
/var/tmp/openafs-1.4.5-root/lib/modules/2.4.21-47.ELhugemem/kernel/fs/openafs/openafs.*</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">RPM build errors:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> File not found by glob:
/var/tmp/openafs-1.4.5-root/lib/modules/2.4.21-47.ELhugemem/kernel/fs/openafs/openafs.*</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">[root@eng03 SOURCES]#</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I managed to fix this manually by editing the spec file.
The reason why there is an error is because there kernel direcory does not
exit..</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">the direcory fs/openafs is directly under :
/var/tmp/openafs-1.4.5-root/lib/modules/2.4.21-47.ELhugemem</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">The Second error .. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I modified line 112, I now have:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> for arch in $archlist ; do</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> echo "Building for $kerndir,
$kvers, $arch"</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> rpmbuild -bb
$buildopts \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> --define
"fedorakmod 0" \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> --define
"osvers $osvers" \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> --define
"kernvers $kvers" \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> --define
"ksrcdir $kerndir" \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> --define
"build_modules 1" \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> --define
"build_userspace 1" \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">
--target=$arch \</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">
$specdir/openafs.spec || exit 1</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> done</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> fi</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">openafs-buildall.sh I get :</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">[root@eng03 SOURCES]# ./openafs-buildall.sh</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Building OpenAFS for rhel3</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">rpmbuild -ba --define osvers rhel3
/usr/src/redhat/SPECS/openafs.spec</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Building for /usr/src/linux-2.4.21-47.EL, 2.4.21-47.EL, i686</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Building target platforms: i686</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Building for target i686</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">error: parse error in expression</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">error: /usr/src/redhat/SPECS/openafs.spec:346:
parseExpressionBoolean returns -1</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/openafs-1.4.5-root</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">error: Installed (but unpackaged) file(s) found:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> /lib/modules/2.4.21-47.EL/fs/openafs/openafs.o</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">
/lib/modules/2.4.21-47.ELhugemem/fs/openafs/openafs.o</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> /lib/modules/2.4.21-47.ELsmp/fs/openafs/openafs.o</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">RPM build errors:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> parse error in expression</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> /usr/src/redhat/SPECS/openafs.spec:346:
parseExpressionBoolean returns -1</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> Installed (but unpackaged) file(s) found:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> /lib/modules/2.4.21-47.EL/fs/openafs/openafs.o</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">
/lib/modules/2.4.21-47.ELhugemem/fs/openafs/openafs.o</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> /lib/modules/2.4.21-47.ELsmp/fs/openafs/openafs.o</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">[root@eng03 SOURCES]# vi openafs-buildall.sh</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">[root@eng03 SOURCES]# ls</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:openafs-info-admin@openafs.org" target="_blank">openafs-info-admin@openafs.org</a> [mailto:<a href="mailto:openafs-info-admin@openafs.org" target="_blank">openafs-info-admin@openafs.org</a>] <b>On
Behalf Of </b>Derrick Brashear<br>
<b>Sent:</b> Monday, December 03, 2007 1:54 PM<br>
<b>To:</b> <a href="mailto:openafs-info@openafs.org" target="_blank">openafs-info@openafs.org</a><br>
<b>Subject:</b> Re: [OpenAFS] File systems on Linux, again.</span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p style="margin-bottom: 12pt;"> </p>
<div>
<p>On Dec 3, 2007 1:52 PM, Jerry Normandin <<a href="mailto:Jerry.Normandin@dafca.com" target="_blank">Jerry.Normandin@dafca.com</a>>
wrote:</p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Has anyone tried to build the
openafs userspace code on Redhat ver 3?</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">the rpm build scripts fail.</span></p>
</div>
</div>
<div>
<p style="margin-bottom: 12pt;">This is sort of news, in the
sense that the RPMs on the web site were built by me on RHEL3. <br>
<br>
Get the RHEL3 srpm from the web site and <br>
rpm -ivh <br>
then cd /usr/src/redhat/SOURCES/<br>
./openafs-buildall.sh<br>
<br>
Report any errors.</p>
</div>
</div>
<p> </p>
</div></div></div>
</div>
</blockquote></div><br>
------=_Part_1826_7532243.1196710333229--