error in regex.h
Joel Sherrill
joel at rtems.org
Mon Dec 3 15:19:29 UTC 2018
On Mon, Dec 3, 2018 at 9:10 AM Himanshu Sekhar Nayak <
himanshuwindows8.1 at gmail.com> wrote:
> Hi guys,
>
> I am just creating regcomp.c and I faced an error while compiling it.
> Here is the error https://paste.ofcode.org/jkN6L56yprGKEsyfbggf65
> regcomp.c file --> https://paste.ofcode.org/fyqYx7VuzRLtXvcUZpFgxj
>
> Any idea ? btw error seems to be in "off_t ".
>
Looks like an error in the header file per POSIX. Add an include of
<sys/types.h>
before the include of regex.h in your test and file a ticket about this.
Note the error
and that newlib needs to be fixed. And when newlib is fixed, that your test
file(s)
need the unneeded include removed.
Also add a comment on the #include <sys/types.h> line with a comment like
"/* NOT NEEDED PER POSIX -- SEE TICKET NNNN */
This should let you proceed and makes the issue trackable.
And, good job! This is the type of error that is found by these tests. :)
--joel
>
> Thanks
> Himanshu
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20181203/00da7cd8/attachment-0002.html>
More information about the devel
mailing list