X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C8A73B.EF3C1D28@onstor-exch02.onstor.net>; Fri, 25 Apr 2008 18:22:03 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C8A73B.EF3C1D28"
Content-class: urn:content-classes:message
Subject: RE: sed error when doing a clean build
Date: Fri, 25 Apr 2008 18:22:03 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E056C9593@onstor-exch02.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E06B16E29@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: sed error when doing a clean build
Thread-Index: AcinMyhbL8MYZ6sxTBaodBi1Ik/gNgABynmA
From: "Larry Scheer" <larry.scheer@onstor.com>
To: "Svati Chandra" <schandra@onstor.com>
Cc: "Jobi Ariyamannil" <jobi.ariyamannil@onstor.com>,
	"Tim Gardner" <tim.gardner@onstor.com>,
	"Andy Sharp" <andy.sharp@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C8A73B.EF3C1D28
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Svati,

   The problem is with Linux host compile. The build rules for this file
uses sed -i. Compile is Red Hat Linux release 8.0 (Psyche) which is
older than nearly all of our Red-Hat boxes. The version of sed it uses
does not support the '-i' option. I tried to update sed on this system
with a newer sed rpm package that matches the other Red Hat systems we
have. Unfortunately this sed package needs a version of glibc much newer
than what is installed on compile. So looks like we are stuck unless we
force the install of sed, or copy /bin/sed from a newer system. If I do
that it still may or may not work if the rpm package was telling the
truth about the dependency.

=20

Again your options are to use another build server such as compile2,
linux-compile, or use your Linux desktop as a build system.

=20

Larry

________________________________

From: Svati Chandra=20
Sent: Friday, April 25, 2008 5:19 PM
To: Larry Scheer
Cc: Jobi Ariyamannil
Subject: sed error when doing a clean build

=20

=20

Hi Larry,

=20

I just attempted a clean build of the dev tree (dbg, for bobcat) and
obtain the fol. error.

I'm using "compile.onstor.net" as the build server.=20

=20

Was wondering if you've come across this and/or would be knowing how to
resolve it.

=20

Thanks,

Svati.

=20

=20

=20

/usr/bin/install -o schandra -g software -m 0644
agile-man/help_vsvr_stats.txt ../../Build/bc/dbg/man

/usr/bin/install -o schandra -g software -m 0644
agile-man/help_vsvr.txt ../../Build/bc/dbg/man

/usr/bin/install -o schandra -g software -m 0644
agile-man/bc/help_rcon.txt ../../Build/bc/dbg/man

sed 's+@@CONFIG-FILES@@+'"etc/hosts etc/hosts.user etc/hosts.org
etc/passwd onstor/conf/cluster.conf onstor/conf/cluster.db.DB0
onstor/conf/cluster.db.DBSYS1 etc/resolv.conf
etc/ssh/ssh_host_dsa_key.pub etc/ssh/ssh_host_dsa_key
etc/ssh/ssh_host_key.pub etc/ssh/ssh_host_key etc/ssh/ssh_host_rsa_key
etc/ssh/ssh_host_rsa_key.pub etc/localtime etc/syslog.conf etc/ntp.conf
etc/ntp/step-tickers onstor/etc/snmpd.conf onstor/conf/stand_cluster"+ \

        verify_install.in > ../../Build/bc/dbg/bin/verify_install.sh

sed -i 's+@@LINUX-CONFIG-FILES@@+'"etc/network/interfaces
etc/network/if-up.d/addroutes etc/shadow etc/gshadow etc/hostname
var/spool/cron/crontabs/root etc/mailname etc/timezone"+
../../Build/bc/dbg/bin/verify_install.sh

sed: invalid option -- i

Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

=20

  -n, --quiet, --silent

                 suppress automatic printing of pattern space

  -e script, --expression=3Dscript

                 add the script to the commands to be executed

  -f script-file, --file=3Dscript-file

                 add the contents of script-file to the commands to be
executed

      --help     display this help and exit

  -V, --version  output version information and exit

=20

If no -e, --expression, -f, or --file option is given, then the first

non-option argument is taken as the sed script to interpret.  All

remaining arguments are names of input files; if no input files are

specified, then the standard input is read.

=20

E-mail bug reports to: bug-gnu-utils@gnu.org .

Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

make[2]: *** [../../Build/bc/dbg/bin/verify_install.sh] Error 4

make[2]: Leaving directory
`/homes/schandra/p4-debug/dev/nfx-tree/code/ssc-nfxsh'

make[1]: *** [default] Error 1

make[1]: Leaving directory `/homes/schandra/p4-debug/dev/nfx-tree'

make: *** [ssc] Error 2

=20

-bash-2.05b$ uname -a

Linux compile.onstor.net 2.4.18-14smp #1 SMP Wed Sep 4 12:34:47 EDT 2002
i686 i686 i386 GNU/Linux


------_=_NextPart_001_01C8A73B.EF3C1D28
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:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
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 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @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";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Svati,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp; The problem is with =
Linux
host compile. The build rules for this file uses sed &#8211;i. Compile =
is Red
Hat Linux release 8.0 (Psyche) which is older than nearly all of our =
Red-Hat
boxes. The version of sed it uses does not support the &#8216;-i&#8217; =
option.
I tried to update sed on this system with a newer sed rpm package that =
matches
the other Red Hat systems we have. Unfortunately this sed package needs =
a version
of glibc much newer than what is installed on compile. So looks like we =
are stuck
unless we force the install of sed, or copy /bin/sed from a newer =
system. If I
do that it still may or may not work if the rpm package was telling the =
truth
about the dependency.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Again your options are to use =
another
build server such as compile2, linux-compile, or use your Linux desktop =
as a build
system.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Larry<o:p></o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Svati =
Chandra <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, April 25, =
2008 5:19
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Larry Scheer<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> <st1:PersonName =
w:st=3D"on">Jobi
 Ariyamannil</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> sed error when =
doing a
clean build</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>Hi =
Larry,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>I just attempted a clean build of =
the dev
tree (dbg, for bobcat) and obtain the fol. =
error.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>I&#8217;m using
&#8220;compile.onstor.net&#8221; as the build server. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>Was wondering if you&#8217;ve come =
across
this and/or would be knowing how to resolve =
it.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>Thanks,<o:p></o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>Svati.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>/usr/bin/install -o schandra -g software -m =
0644&nbsp;
agile-man/help_vsvr_stats.txt =
../../Build/bc/dbg/man<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>/usr/bin/install -o schandra -g software -m =
0644&nbsp;
agile-man/help_vsvr.txt =
../../Build/bc/dbg/man<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>/usr/bin/install -o schandra -g software -m =
0644&nbsp;
agile-man/bc/help_rcon.txt =
../../Build/bc/dbg/man<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>sed 's+@@CONFIG-FILES@@+'&quot;etc/hosts =
etc/hosts.user
etc/hosts.org etc/passwd onstor/conf/cluster.conf =
onstor/conf/cluster.db.DB0
onstor/conf/cluster.db.DBSYS1 etc/resolv.conf =
etc/ssh/ssh_host_dsa_key.pub
etc/ssh/ssh_host_dsa_key etc/ssh/ssh_host_key.pub etc/ssh/ssh_host_key
etc/ssh/ssh_host_rsa_key etc/ssh/ssh_host_rsa_key.pub etc/localtime
etc/syslog.conf etc/ntp.conf etc/ntp/step-tickers onstor/etc/snmpd.conf
onstor/conf/stand_cluster&quot;+ \<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
verify_install.in
&gt; =
../../Build/bc/dbg/bin/verify_install.sh<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>sed -i
's+@@LINUX-CONFIG-FILES@@+'&quot;etc/network/interfaces
etc/network/if-up.d/addroutes etc/shadow etc/gshadow etc/hostname
var/spool/cron/crontabs/root etc/mailname etc/timezone&quot;+
../../Build/bc/dbg/bin/verify_install.sh<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>sed: invalid option -- i<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Usage: sed [OPTION]... =
{script-only-if-no-other-script}
[input-file]...<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp; -n, --quiet, =
--silent<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
suppress automatic printing of pattern =
space<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp; -e script, =
--expression=3Dscript<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
add the script to the commands to be =
executed<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp; -f script-file, =
--file=3Dscript-file<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
add the contents of script-file to the commands to be =
executed<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--help&nbsp;&nbsp;&nbsp;&nbsp; display this help and =
exit<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp; -V, --version&nbsp; output version information =
and
exit<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>If no -e, --expression, -f, or --file option is =
given, then
the first<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>non-option argument is taken as the sed script to
interpret.&nbsp; All<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>remaining arguments are names of input files; if no =
input
files are<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>specified, then the standard input is =
read.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>E-mail bug reports to: bug-gnu-utils@gnu.org =
.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Be sure to include the word ``sed'' somewhere in the
``Subject:'' field.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[2]: *** =
[../../Build/bc/dbg/bin/verify_install.sh]
Error 4<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[2]: Leaving directory
`/homes/schandra/p4-debug/dev/nfx-tree/code/ssc-nfxsh'<o:p></o:p></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[1]: *** [default] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make[1]: Leaving directory
`/homes/schandra/p4-debug/dev/nfx-tree'<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make: *** [ssc] Error 2<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>-bash-2.05b$ uname -a<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Linux compile.onstor.net 2.4.18-14smp #1 SMP Wed Sep =
4
12:34:47 EDT 2002 i686 i686 i386 GNU/Linux<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C8A73B.EF3C1D28--
