Hi Guys,
I'm not sure where to file a bug report or if anyone cares.
With flex-2.5.37 and .36, the code compiles to create an infinite
loop causing a core dump.
The fix is to change lib/realloc.c to be this:
#include <config.h>
#ifdef malloc
#undef malloc
#endif
#ifdef realloc
#undef realloc
#endif
#include <stdlib.h>
...
(with the middle 9 lines new and two other lines used as
reference points).
On .35, the link fails with rpl_realloc undefined. The work
around for .35 is to edit config.h to remove the #define malloc
and #define realloc.
With .37, the make check fails on 43 of 46 tests. The reason is
that 38 fail to link because they can't find rpl_realloc and the
other 5 fail because rpl_malloc and rpl_realloc were not
prototyped.
In my case, I'm running 6.1 TL07 SP03 with gcc 4.5.2.
Hope this helps someone somewhere...
Perry Smith
|