Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3491 - When installing in a chroot'ed environment __USE_ISOC99 is not defined
Summary: When installing in a chroot'ed environment __USE_ISOC99 is not defined
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Bryon Roche (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-07 13:43 UTC by Lagos
Modified: 2006-02-04 06:03 UTC (History)
1 user (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 Lagos 2002-06-07 13:43:02 UTC
When installing gentoo/PPC from a chroot'ed environment from another distro (even the gentoo Linux install cd), __USE_ISOC99 is not being defined by features.h. The #if on line 158 of this header is evaluating to false. I believe this is being caused by the value of __STDC_VERSION__ which a simple test (printf("%u\n", __STDC_VERSION__) shows as only 199409 when the #if requires at least 199901.

Because of this, vsscanf() is not defined in stdio.h, breaking the ebuild of ncurses (see bug <a href="http://bugs.gentoo.org/show_bug.cgi?id=3037">3037</a>).

I hope I'm being clear; this is my first bug report.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-06-08 17:34:57 UTC
I think I know the cause of this: there is a patch that fixes it, but it's bzipped. bzip was missing as a dep and so the aptch wasn't applied in src_unpack. I've now added the bzip2 dep to ncurses (it just rearranges the emerge system order a little), please check if that helps.  Also cf. #3037. Also note that I may be wrong and this may be an unrelated problem ;-)