BBB/AM335x: isspace() results in data abort exception in strtol() in strtol.c and strtoul() in strtoul.c
edsutterjr at gmail.com
Tue Jun 23 11:00:04 UTC 2015
On 6/22/2015 9:54 AM, Ed Sutter wrote:
> isspace() seems to be pulled in just fine from
> /usr/arm-none-eabi/include, because removing <ctype.h> from strtol.c
> results in an undefined reference to isspace().
The ctype.h file usually just includes the macros that depend on
some ctype-ish array. So, you're right that the header file is
correctly pulling in the macros; but that's not the end of it.
I think the problem (aside from the fact that we need to get on
the RTEMS compiler) is that this array (apparently called or
pointed to by "__ctype_ptr__") does not exist in the build;
hence my incorrect attempt to cure the problem by declaring
__ctype_ptr___ in docmd.c
So, I suggest getting on the RTEMS compiler, removing those __ctype_ptr__
declarations at the top of docmd.c and building again. Figure out why
the ctype array is not being pulled in by a basic library and my hunch is
you'll be good-to-go with this problem.
More information about the umon-devel