Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306841 - sci-misc/brlcad-7.16.6 emerge fails
Summary: sci-misc/brlcad-7.16.6 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-25 16:39 UTC by optiluca@gmail.com
Modified: 2011-03-07 23:05 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge_info.log,6.75 KB, text/plain)
2010-02-25 16:40 UTC, optiluca@gmail.com
Details
compiling output (emerge_output.log,10.70 KB, text/plain)
2010-02-25 16:40 UTC, optiluca@gmail.com
Details
emerge --info results (emergeinfo.log,3.65 KB, text/plain)
2010-02-25 21:15 UTC, Francisco Lloret
Details

Note You need to log in before you can comment on or make changes to this bug.
Description optiluca@gmail.com 2010-02-25 16:39:47 UTC
Emerge info & error messages attached,  package being compiled with USE="X doc examples java opengl smp -debug"



Reproducible: Always
Comment 1 optiluca@gmail.com 2010-02-25 16:40:20 UTC
Created attachment 221157 [details]
emerge --info output
Comment 2 optiluca@gmail.com 2010-02-25 16:40:50 UTC
Created attachment 221159 [details]
compiling output
Comment 3 Bob Johnson 2010-02-25 18:04:54 UTC
(In reply to comment #2)
> Created an attachment (id=221159) [details]
> compiling output
> 

I ran into the same thing. The bug is obvious. Here's the snippet from src/libged/edcodes.c:

HIDDEN void
edcodes_traverse_node(struct db_i *dbip, struct rt_comb_internal *comb __attribute__((unused)), union tree *comb_leaf, genptr_t user_ptr1, genptr_t user_ptr2, genptr_t user_ptr3)
{
    int ret;
    int *pathpos;
    struct directory *nextdp;
    struct ged *gedp;
    HIDDEN int edcodes_collect_regnames(struct ged *, struct directory *, int);

    RT_CK_DBI(dbip);
    ...

'HIDDEN' is pre-processing to static. It's a violation of the standard to have a static function declaration like 'edcodes_collect_regnames(...)' above within a function body (ie function scope). That implies that 'edcodes_collect_regnames(...)' has internal scope within the enclosing function body, which is impossible because C doesn't allow nested functions.
Either line 72 needs to move outside the enclosing function body, or the order of these functions within the source file needs to be swapped.

Looks like a bug report needs to be filed upstream.

Comment 4 Francisco Lloret 2010-02-25 21:15:09 UTC
Same problem. I attach my emerge info output.
Comment 5 Francisco Lloret 2010-02-25 21:15:47 UTC
Created attachment 221201 [details]
emerge --info results
Comment 6 Christopher Sean Morrison 2010-02-26 18:40:39 UTC
This issue is already fixed in upstream sources and will be in the upcoming 7.16.8 release (due within a week).  A workaround is to not disable debug as that will make HIDDEN be an empty string (which is how it snuck into the release in the first place).

Cheers!
Sean
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2010-02-26 21:57:46 UTC
Thanks for the report. I've just set the debug USE flag by default.
Will leave this bug open until next version bump.
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2011-03-07 23:05:34 UTC
(In reply to comment #7)
> Thanks for the report. I've just set the debug USE flag by default.
> Will leave this bug open until next version bump.

Which has been in the meantime. Resolving. :)