<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>217971</bug_id>
          
          <creation_ts>2008-04-16 15:45 0000</creation_ts>
          <short_desc>sci-visualization/grace-5.1.21-r1 fails to build with glibc-2.7-r2</short_desc>
          <delta_ts>2008-04-16 18:33:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jarausch@igpm.rwth-aachen.de</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          <cc>graphics@gentoo.org</cc>
    
    <cc>jer@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jarausch@igpm.rwth-aachen.de</who>
            <bug_when>2008-04-16 15:45:25 0000</bug_when>
            <thetext>compilation of grace fails with
gcc -O2 -march=i686 -pipe -I.. -I.       -c -o pars.o pars.c
pars.yacc:5421: error: &apos;log2&apos; undeclared here (not in a function)

With glibc-2.7-r2
/usr/include/bits/mathcalls.h
contains the lines

#ifdef __USE_ISOC99
__BEGIN_NAMESPACE_C99
/* Compute base-2 exponential of X.  */
__MATHCALL (exp2,, (_Mdouble_ __x));

/* Compute base-2 logarithm of X.  */
__MATHCALL (log2,, (_Mdouble_ __x));
__END_NAMESPACE_C99
#endif


but  config.h  contains
#define HAVE_LOG2 1

Adding the line
		--with-cc=&quot;gcc -std=c99&quot; \
in src_compile()  in the ebuild fixes this error.
But unfortunately other errors occur lateron.
Probably  confgure has to be fixed.

Sorry I can&apos;t help on that one.



Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-04-16 16:26:54 0000</bug_when>
            <thetext>Please provide your `emerge --info` too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2008-04-16 18:33:59 0000</bug_when>
            <thetext>Should be fixed in cvs. Re-open if not.
Thanks.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>