<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>4240</bug_id>
          
          <creation_ts>2006-02-28 10:51</creation_ts>
          <short_desc>compilation error when building globus_debug.c against MPICH2/gcc</short_desc>
          <delta_ts>2006-04-18 10:58:23</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Toolkit Internals</product>
          <component>globus_common</component>
          <version>4.0.1</version>
          <rep_platform>IA64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0.2</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian R. Toonen">toonen@mcs.anl.gov</reporter>
          <assigned_to name="Mike Link">mlink@mcs.anl.gov</assigned_to>
          <cc>blau@mcs.anl.gov</cc>
    
    <cc>bresnaha@mcs.anl.gov</cc>
    
    <cc>karonis@mcs.anl.gov</cc>
    
    <cc>meder@mcs.anl.gov</cc>

      

      
          <long_desc isprivate="0">
            <who name="Brian R. Toonen">toonen@mcs.anl.gov</who>
            <bug_when>2006-02-28 10:51:41</bug_when>
            <thetext>On tg-login2.uc.teragrid.org, I encountered the following error when building
GT4.0.1-r3b against an MPICH2 1.0.3 installation created using gcc.  I also
encounter the same error when building GT4.0.1 on smash.mcs.anl.gov, so the
problem is not specific to the TeraGrid login node.

/home/toonen/p/mpich2-gcc/bin/mpicc -DHAVE_CONFIG_H -I.
-I/home/toonen/p/gt4.0.1-r3b-all-source-installer/source-trees-thr/common/so
urce/library -I.. -I.
-I/home/toonen/p/gt4.0.1-r3b-gcc-mpich2/include/mpicc64dbgpthr
-I/home/toonen/p/gt4.0.1-r3b-gcc-mpich2/include
-I/home/toonen/p/gt4.0.1-r3b-gcc-mpich2/include/mpicc64dbgpthr -g -Wall -c
globus_debug.c  -fPIC -DPIC -o .libs/globus_debug.o
globus_debug.c:19: parse error before &quot;__extension__&quot;
globus_debug.c:19: `__len&apos; undeclared here (not in a function)
globus_debug.c:19: initializer element is not constant
globus_debug.c:19: parse error before &quot;if&quot;
globus_debug.c:19: warning: type defaults to `int&apos; in declaration of `__retval&apos;
globus_debug.c:19: conflicting types for `__retval&apos;
globus_debug.c:19: previous declaration of `__retval&apos;
globus_debug.c:19: warning: data definition has no type or storage class
globus_debug.c:19: parse error before &apos;}&apos; token

Commenting out line 19, which is a declaration for the strdup() function, fixes
the problem.  The problem is that /usr/include/bits/string2.h, which is included
by /usr/include/string.h, defines strdup as a macro.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Mike Link">mlink@mcs.anl.gov</who>
            <bug_when>2006-03-17 18:20:47</bug_when>
            <thetext>Committed a fix to globus_4_0_branch and trunk.  I don&apos;t know what should be done as far as the r3 build is concerned.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>