Question: I have a situation where i need element id of div where action happened. 

e.g i have list of dynamically generated answers, within answers there are comments. when i click on remove comment, i need to fetch id of answer, i can fetch id of comment. more detail via code.

e.g there is a core div which is generated dynamically.

```
<div class="ans" id="ans_332">...</div>

```

e.g this a delete comment link

```
<a href="#" class="delcmt" id="cmtid_5432">delete</a>

```

here is jquery code

```
$(".ans").on({
   click: function (e) {
       var id = $(this).closest("div").attr("id");
       return false;
   }
}, '.delcmt');

```

i want to fetch element id of selected ".ans" instead of closest div which target comment item.

Answer: 
[Here is the answer](http://sites.google.com/site/iprinceps/Home/embedded-system-and-operating-systems/linux/scripts-kconfig-mconf-c-of-linux-2-6-8-rc3-seems-to-have-a-bug)
just get rid of 'static' keyword from 'static struct menu \*current\_ment' line in scripts/kconfig/mconf.c
‘current\_menu’ is declared static in mconf.c:91 but not in lkc.h:63, this may not be accepted by gcc of current version,gcc-2.95.3 is recommended according to README in 2.6.0 source,so try to downgrade your gcc version if you REALLY want to compile 2.6.0.