Comment 1 for bug 374039

alca (alcaweb) wrote :

My friend Manuel posted me a fix: i tried with ns v.2.29 and he tried with version 2.31 and this fic resolved the problem.
Here is the description:

- open the file called tkBind.c in folder ns-allinone-x.xx/tk8.4.xx/generic where instead of 'x'es insert your installed version of ns and tk (note thath ns-allinone-x.xx folder is where you installed ns, if different change it).
- go at line 586 of this file and add the following 3 line at line 589:

   #ifdef GenericEvent
   /* GenericEvent */ 0,
   #endif

after this, you will be ablle to read in tkBind.c file lines like the following:

   /* ColormapNotify */ COLORMAP,
   /* ClientMessage */ 0,
   /* MappingNotify */ 0,
   #ifdef GenericEvent
   /* GenericEvent */ 0,
   #endif
   /* VirtualEvent */ VIRTUAL,
   /* Activate */ ACTIVATE,
   /* Deactivate */ ACTIVATE,
   /* MouseWheel */ KEY
};

after these steps run in terminal ./install to rebuild all ns.