Menu

#477 LIST_FOREACH_SAFE not defined in elfcopy/symbols.c

RELEASE_1_0
closed
Kai Wang
None
2015-01-05
2015-01-04
No

Compilation (on Debian jessie) of symbols.c inside elfcopy/ fails with the following message:

symbols.c: In function ‘free_symtab’:
symbols.c:673:4: error: implicit declaration of function ‘LIST_FOREACH_SAFE’ [-Werror=implicit-function-declaration]
LIST_FOREACH_SAFE(sh, &st_buf->l.hash[i], sh_next,
^
symbols.c:673:46: error: ‘sh_next’ undeclared (first use in this function)
LIST_FOREACH_SAFE(sh, &st_buf->l.hash[i], sh_next,
^
symbols.c:673:46: note: each undeclared identifier is reported only once for each function it appears in
symbols.c:674:15: error: expected ‘;’ before ‘{’ token
shtmp) {
^
cc1: all warnings being treated as errors

Attached patch fixed it for me.

1 Attachments

Discussion

  • Kai Wang

    Kai Wang - 2015-01-05
    • status: new --> closed
    • assigned_to: Kai Wang
    • Milestone: 2.0 --> RELEASE_1_0
     
  • Kai Wang

    Kai Wang - 2015-01-05

    Should be fixed by [r3139]. Thanks!

     

    Related

    Commit: [r3139]


Log in to post a comment.

MongoDB Logo MongoDB