Bug 217971 - sci-visualization/grace-5.1.21-r1 fails to build with glibc-2.7-r2
Bug#: 217971 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: jarausch@igpm.rwth-aachen.de
Component: Applications
URL: 
Summary: sci-visualization/grace-5.1.21-r1 fails to build with glibc-2.7-r2
Keywords:  
Status Whiteboard: 
Opened: 2008-04-16 15:45 0000
Description:   Opened: 2008-04-16 15:45 0000
compilation of grace fails with
gcc -O2 -march=i686 -pipe -I.. -I.       -c -o pars.o pars.c
pars.yacc:5421: error: 'log2' 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="gcc -std=c99" \
in src_compile()  in the ebuild fixes this error.
But unfortunately other errors occur lateron.
Probably  confgure has to be fixed.

Sorry I can't help on that one.



Reproducible: Always

------- Comment #1 From Jeroen Roovers 2008-04-16 16:26:54 0000 -------
Please provide your `emerge --info` too.

------- Comment #2 From Sébastien Fabbro 2008-04-16 18:33:59 0000 -------
Should be fixed in cvs. Re-open if not.
Thanks.