Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217971 - sci-visualization/grace-5.1.21-r1 fails to build with glibc-2.7-r2
Summary: sci-visualization/grace-5.1.21-r1 fails to build with glibc-2.7-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 15:45 UTC by Helmut Jarausch
Modified: 2008-04-16 18:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2008-04-16 15:45:25 UTC
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 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-16 16:26:54 UTC
Please provide your `emerge --info` too.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2008-04-16 18:33:59 UTC
Should be fixed in cvs. Re-open if not.
Thanks.