X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C7FA14.A5E1369D@onstor-exch02.onstor.net>; Tue, 18 Sep 2007 08:54:59 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C7FA14.A5E1369D"
Content-class: urn:content-classes:message
Subject: RE: Compilation failure in dev branch
Date: Tue, 18 Sep 2007 08:54:59 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E018AE7B8@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Compilation failure in dev branch
Thread-Index: Acf58pRjURPa/g/TRPCplTQIjktUIgAEcn7VAAFiNOAAANhwHwAAgd8gAAEGpus=
References: <200709181243.l8IChr9Q018800@localhost.localdomain> <BB375AF679D4A34E9CA8DFA650E2B04E018AE7B6@onstor-exch02.onstor.net> <BB375AF679D4A34E9CA8DFA650E2B04E05963670@onstor-exch02.onstor.net> <BB375AF679D4A34E9CA8DFA650E2B04E018AE7B7@onstor-exch02.onstor.net> <BB375AF679D4A34E9CA8DFA650E2B04E059636C8@onstor-exch02.onstor.net>
From: "Jeff Miller" <jeff.miller@onstor.com>
To: "Jeyaram Sankar Gurusamy (HCL)" <IMCEAEX-_O=ONSTOR_OU=FIRST+20ADMINISTRATIVE+20GROUP_CN=RECIPIENTS_CN=JEYARAM+2EGURUSAMY@onstor.com>,
	"Charissa Willard" <charissa.willard@onstor.com>
Cc: "dl-Software" <dl-software@onstor.com>,
	"Sudharsan Srinivasan-TLS,Chennai" <Sudharsans@hcl.in>,
	"Kumar Vakacharla (HCL)" <kumarv@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7FA14.A5E1369D
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

If '#define _GNU_SOURCE' is added before including stdio.h then it =
compiles OK.  The problem seems to be that asprintf and vasprintf are =
GNU extensions and are not enabled by default in our default Linux =
build.  It is easy enough to enable them but we need to decide if that =
is what we want - not just for this but in general.  I would tend to =
think we don't want non-portable code without a very good reason.  A few =
notes below.

So, what do we want to do?
Jeff



asprintf and vasprintf are GNU extensions, not in C or POSIX.
To use them:
       #define _GNU_SOURCE
       #include <stdio.h>


asprintf declared if __USE_GNU defined.

/usr/mipsel-linux-gnu/include/stdio.h includes:
/usr/mipsel-linux-gnu/include/features.h:
in features.h:
#ifdef  _GNU_SOURCE
# define __USE_GNU      1
#endif


-----Original Message-----
From: Jeyaram Sankar Gurusamy (HCL)
Sent: Tue 9/18/2007 9:18 AM
To: Jeff Miller; Charissa Willard
Cc: dl-Software; Sudharsan Srinivasan-TLS,Chennai; Kumar Vakacharla =
(HCL)
Subject: RE: Compilation failure in dev branch
=20
Jeff/Charissa,

This was due to our change and the guys failed to compile in Linux once =
again :-(.  We can undo this change and handle the issue from here.  =
Please let me know if you are fine with this.

Thanks and regards,
G. Jeyaram Sankar=20
HCL Technologies Ltd, 50-53 Greams Road, Chennai - 600006
Phone: +91-44-28293298 x 2413
Fax: +91-44-28294969
Cell: +91 99401 30044
=20
-----Original Message-----
From: Jeff Miller=20
Sent: Tuesday, September 18, 2007 9:39 PM
To: Charissa Willard
Cc: dl-Software
Subject: RE: Compilation failure in dev branch

Charissa,
After a sync this morning I see the failure below.  I don't think it is =
a problem with the code itself but rather a problem with the build =
system or how it is used.

/usr/mipsel-linux-gnu/include/stdio.h (which declares asprintf) seems to =
be included ok (by cluster-contrl-cache.h).  There are ifdefs in stdio =
that could cause skipping of the asprintf declaration.

I'll look a little more.
Jeff


/usr/bin/mipsel-linux-gnu-gcc-4.1 -fPIC -fms-extensions =
-Wno-pointer-sign  -DBOBCAT -Wall -Wmissing-prototypes  -Werror =
-DEXTENDED_SECURITY -DNFX_KERBEROS -DNETEEE_FRAGMENT  -G 0 =
-DCLUSTER_CONTRL -Wno-missing-prototypes  -DONSTOR_CHANGE =
-DLDAP_DEPRECATED -DOS_INCL=3D\"linux.h\"  -I./linux =
-I../../Includes/bl/SSC -I../../Includes/bl -I../../Includes/linux =
-I../../Includes -I. -I../../Build/bl/dbg -DLANGUAGE_C -DLINUX_TEST  =
-DFS_DEBUG -DLANGUAGE_C  -I../  -I./linux -I../../Includes/bl/SSC =
-I../../Includes/bl -I../../Includes/linux -I../../Includes -I. =
-I../../Build/bl/dbg -I../../Build/bl/dbg/ssc-cluster -g -DSSC =
-DSSC_mips -DNFX_MOD_SSC -c -o =
../../Build/bl/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o =
cluster-contrl-cache.c
cc1: warnings being treated as errors
cluster-contrl-cache.c: In function 'ClusterCtrl_cacheGetRecord':
cluster-contrl-cache.c:362: warning: implicit declaration of function =
'asprintf'
make[3]: *** =
[../../Build/bl/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1
make[3]: Leaving directory =
`/homes/jeffm/p4/dev/nfx-tree/code/ssc-cluster'
make[2]: *** [default] Error 1
make[2]: Leaving directory `/homes/jeffm/p4/dev/nfx-tree'
make[1]: *** [ssc] Error 2
make[1]: Leaving directory `/homes/jeffm/p4/dev/nfx-tree'
make: *** [dbg-bl] Error 2



-----Original Message-----
From: Charissa Willard
Sent: Tue 9/18/2007 8:41 AM
To: Jeff Miller
Cc: dl-Software
Subject: RE: Compilation failure in dev branch
=20
Jeff,

=20

There were 2 recent changes to the cluster-contrl-cashe.c file for =
Coverity fixes. Change 25457 was done late last night. Change 25465 was =
checked in after this error was encountered. Can you see if this latest =
check-in still causes compilation problems?

=20

-Charissa=20

=20

-----Original Message-----
From: Jeff Miller=20
Sent: Tuesday, September 18, 2007 7:58 AM
To: dl-Software
Subject: FW: Compilation failure in dev branch

=20

=20

=20

=20

-----Original Message-----

From: Build Admin [mailto:build@localhost.localdomain]

Sent: Tue 9/18/2007 5:43 AM

To: Sandrine Boulanger; Paul Hammer; Ken Renshaw; Brian DeForest; =
dl-Cougar

Subject: Compilation failure in dev branch

=20

/perforce/buildlogs/dev/Tuesday/bl-dbg-compile.log:make[2]: *** =
[../../Build/bl/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1

/perforce/buildlogs/dev/Tuesday/bl-dbg-compile.log:make[1]: *** =
[default] Error 1

/perforce/buildlogs/dev/Tuesday/bl-dbg-compile.log:make: *** [ssc] Error =
2

/perforce/buildlogs/dev/Tuesday/bl-opt-compile.log:make[2]: *** =
[../../Build/bl/opt/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1

/perforce/buildlogs/dev/Tuesday/bl-opt-compile.log:make[1]: *** =
[default] Error 1

/perforce/buildlogs/dev/Tuesday/bl-opt-compile.log:make: *** [ssc] Error =
2

/perforce/buildlogs/dev/Tuesday/cg-dbg-compile.log:make[2]: *** =
[../../Build/cg/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1

/perforce/buildlogs/dev/Tuesday/cg-dbg-compile.log:make[1]: *** =
[default] Error 1

/perforce/buildlogs/dev/Tuesday/cg-dbg-compile.log:make: *** [ssc] Error =
2

/perforce/buildlogs/dev/Tuesday/cg-opt-compile.log:make[2]: *** =
[../../Build/cg/opt/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1

/perforce/buildlogs/dev/Tuesday/cg-opt-compile.log:make[1]: *** =
[default] Error 1

/perforce/buildlogs/dev/Tuesday/cg-opt-compile.log:make: *** [ssc] Error =
2

=20

Please check compilation logs at http://liszt for today for the dev =
branch

=20




------_=_NextPart_001_01C7FA14.A5E1369D
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7652.24">
<TITLE>RE: Compilation failure in dev branch</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>If '#define _GNU_SOURCE' is added before including =
stdio.h then it compiles OK.&nbsp; The problem seems to be that asprintf =
and vasprintf are GNU extensions and are not enabled by default in our =
default Linux build.&nbsp; It is easy enough to enable them but we need =
to decide if that is what we want - not just for this but in =
general.&nbsp; I would tend to think we don't want non-portable code =
without a very good reason.&nbsp; A few notes below.<BR>
<BR>
So, what do we want to do?<BR>
Jeff<BR>
<BR>
<BR>
<BR>
asprintf and vasprintf are GNU extensions, not in C or POSIX.<BR>
To use them:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #define _GNU_SOURCE<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #include &lt;stdio.h&gt;<BR>
<BR>
<BR>
asprintf declared if __USE_GNU defined.<BR>
<BR>
/usr/mipsel-linux-gnu/include/stdio.h includes:<BR>
/usr/mipsel-linux-gnu/include/features.h:<BR>
in features.h:<BR>
#ifdef&nbsp; _GNU_SOURCE<BR>
# define __USE_GNU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<BR>
#endif<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Jeyaram Sankar Gurusamy (HCL)<BR>
Sent: Tue 9/18/2007 9:18 AM<BR>
To: Jeff Miller; Charissa Willard<BR>
Cc: dl-Software; Sudharsan Srinivasan-TLS,Chennai; Kumar Vakacharla =
(HCL)<BR>
Subject: RE: Compilation failure in dev branch<BR>
<BR>
Jeff/Charissa,<BR>
<BR>
This was due to our change and the guys failed to compile in Linux once =
again :-(.&nbsp; We can undo this change and handle the issue from =
here.&nbsp; Please let me know if you are fine with this.<BR>
<BR>
Thanks and regards,<BR>
G. Jeyaram Sankar<BR>
HCL Technologies Ltd, 50-53 Greams Road, Chennai - 600006<BR>
Phone: +91-44-28293298 x 2413<BR>
Fax: +91-44-28294969<BR>
Cell: +91 99401 30044<BR>
<BR>
-----Original Message-----<BR>
From: Jeff Miller<BR>
Sent: Tuesday, September 18, 2007 9:39 PM<BR>
To: Charissa Willard<BR>
Cc: dl-Software<BR>
Subject: RE: Compilation failure in dev branch<BR>
<BR>
Charissa,<BR>
After a sync this morning I see the failure below.&nbsp; I don't think =
it is a problem with the code itself but rather a problem with the build =
system or how it is used.<BR>
<BR>
/usr/mipsel-linux-gnu/include/stdio.h (which declares asprintf) seems to =
be included ok (by cluster-contrl-cache.h).&nbsp; There are ifdefs in =
stdio that could cause skipping of the asprintf declaration.<BR>
<BR>
I'll look a little more.<BR>
Jeff<BR>
<BR>
<BR>
/usr/bin/mipsel-linux-gnu-gcc-4.1 -fPIC -fms-extensions =
-Wno-pointer-sign&nbsp; -DBOBCAT -Wall -Wmissing-prototypes&nbsp; =
-Werror -DEXTENDED_SECURITY -DNFX_KERBEROS -DNETEEE_FRAGMENT&nbsp; -G 0 =
-DCLUSTER_CONTRL -Wno-missing-prototypes&nbsp; -DONSTOR_CHANGE =
-DLDAP_DEPRECATED -DOS_INCL=3D\&quot;linux.h\&quot;&nbsp; -I./linux =
-I../../Includes/bl/SSC -I../../Includes/bl -I../../Includes/linux =
-I../../Includes -I. -I../../Build/bl/dbg -DLANGUAGE_C =
-DLINUX_TEST&nbsp; -DFS_DEBUG -DLANGUAGE_C&nbsp; -I../&nbsp; -I./linux =
-I../../Includes/bl/SSC -I../../Includes/bl -I../../Includes/linux =
-I../../Includes -I. -I../../Build/bl/dbg =
-I../../Build/bl/dbg/ssc-cluster -g -DSSC -DSSC_mips -DNFX_MOD_SSC -c -o =
../../Build/bl/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o =
cluster-contrl-cache.c<BR>
cc1: warnings being treated as errors<BR>
cluster-contrl-cache.c: In function 'ClusterCtrl_cacheGetRecord':<BR>
cluster-contrl-cache.c:362: warning: implicit declaration of function =
'asprintf'<BR>
make[3]: *** =
[../../Build/bl/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1<BR>
make[3]: Leaving directory =
`/homes/jeffm/p4/dev/nfx-tree/code/ssc-cluster'<BR>
make[2]: *** [default] Error 1<BR>
make[2]: Leaving directory `/homes/jeffm/p4/dev/nfx-tree'<BR>
make[1]: *** [ssc] Error 2<BR>
make[1]: Leaving directory `/homes/jeffm/p4/dev/nfx-tree'<BR>
make: *** [dbg-bl] Error 2<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Charissa Willard<BR>
Sent: Tue 9/18/2007 8:41 AM<BR>
To: Jeff Miller<BR>
Cc: dl-Software<BR>
Subject: RE: Compilation failure in dev branch<BR>
<BR>
Jeff,<BR>
<BR>
<BR>
<BR>
There were 2 recent changes to the cluster-contrl-cashe.c file for =
Coverity fixes. Change 25457 was done late last night. Change 25465 was =
checked in after this error was encountered. Can you see if this latest =
check-in still causes compilation problems?<BR>
<BR>
<BR>
<BR>
-Charissa<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Jeff Miller<BR>
Sent: Tuesday, September 18, 2007 7:58 AM<BR>
To: dl-Software<BR>
Subject: FW: Compilation failure in dev branch<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
<BR>
From: Build Admin [<A =
HREF=3D"mailto:build@localhost.localdomain">mailto:build@localhost.locald=
omain</A>]<BR>
<BR>
Sent: Tue 9/18/2007 5:43 AM<BR>
<BR>
To: Sandrine Boulanger; Paul Hammer; Ken Renshaw; Brian DeForest; =
dl-Cougar<BR>
<BR>
Subject: Compilation failure in dev branch<BR>
<BR>
<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/bl-dbg-compile.log:make[2]: *** =
[../../Build/bl/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/bl-dbg-compile.log:make[1]: *** =
[default] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/bl-dbg-compile.log:make: *** [ssc] Error =
2<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/bl-opt-compile.log:make[2]: *** =
[../../Build/bl/opt/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/bl-opt-compile.log:make[1]: *** =
[default] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/bl-opt-compile.log:make: *** [ssc] Error =
2<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/cg-dbg-compile.log:make[2]: *** =
[../../Build/cg/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/cg-dbg-compile.log:make[1]: *** =
[default] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/cg-dbg-compile.log:make: *** [ssc] Error =
2<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/cg-opt-compile.log:make[2]: *** =
[../../Build/cg/opt/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o=
] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/cg-opt-compile.log:make[1]: *** =
[default] Error 1<BR>
<BR>
/perforce/buildlogs/dev/Tuesday/cg-opt-compile.log:make: *** [ssc] Error =
2<BR>
<BR>
<BR>
<BR>
Please check compilation logs at <A =
HREF=3D"http://liszt">http://liszt</A> for today for the dev branch<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C7FA14.A5E1369D--
