https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124616

--- Comment #5 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #4)

> ../../../gcc/libgcobol/posix/shim/open.cc:33:29: error: 'O_LARGEFILE' was
                         ^^^^^

This is a misnomer.  Neither 0_LARGEFILE, O_NOATIME, nor O_TMPFILE
are defined by POSIX.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html

> not declared in this scope
>    33 |     { cbl::PSX_O_LARGEFILE, O_LARGEFILE },
>       |                             ^~~~~~~~~~~
> ../../../gcc/libgcobol/posix/shim/open.cc:36:27: error: 'O_NOATIME' was not
> declared in this scope
>    36 |     { cbl::PSX_O_NOATIME, O_NOATIME },
>       |                           ^~~~~~~~~
> ../../../gcc/libgcobol/posix/shim/open.cc:40:27: error: 'O_TMPFILE' was not
> declared in this scope
>    40 |     { cbl::PSX_O_TMPFILE, O_TMPFILE },
>       |                           ^~~~~~~~~
> ../../../gcc/libgcobol/posix/shim/open.cc:41:3: error: no matching function
> for call to 'std::
> 

Deleting these allows open.cc to compile.

There is a second issue where the gcobol cannot find the
headers for xml2.  It seems whatever system the developer(s)
uses drops the headers in /usr/include/libxml2.  On FreeBSD,
these headers are located in /usr/local/include/libxml2.

Reply via email to