https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124616
--- Comment #4 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #3)
> It seems odd that one would need to separately request
> the building of the library with --enable-libcobol.
Trying to rebuild libgcobol with redirecting terminal
output to a file reveals,
libtool: compile: /home/kargl/gcc/obj/./gcc/xg++ -B/home/kargl/gcc/obj/./gcc/
-nostdinc++ -nostdinc++
-I/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libstdc++-v3/include/x86_64-unknown-freebsd16.0
-I/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libstdc++-v3/include
-I/home/kargl/gcc/gcc/libstdc++-v3/libsupc++
-I/home/kargl/gcc/gcc/libstdc++-v3/include/backward
-I/home/kargl/gcc/gcc/libstdc++-v3/testsuite/util
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libstdc++-v3/src
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libstdc++-v3/src/.libs
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/libstdc++-v3/libsupc++/.libs
-B/home/kargl/work/x/x86_64-unknown-freebsd16.0/bin/
-B/home/kargl/work/x/x86_64-unknown-freebsd16.0/lib/ -isystem
/home/kargl/work/x/x86_64-unknown-freebsd16.0/include -isystem
/home/kargl/work/x/x86_64-unknown-freebsd16.0/sys-include -fchecking=1
-DHAVE_CONFIG_H -I. -I../../../gcc/libgcobol -I. -I posix/shim
-I../../../gcc/libgcobol/../libquadmath -I /usr/include/libxml2 -W -Wall
-Wwrite-strings -DIN_TARGET_LIBS -fstrict-aliasing -Wstrict-aliasing
-Wstrict-aliasing=3 -O -g -MT posix/shim/open.lo -MD -MP -MF
posix/shim/.deps/open.Tpo -c ../../../gcc/libgcobol/posix/shim/open.cc -fPIC
-DPIC -o posix/shim/.libs/open.o
../../../gcc/libgcobol/posix/shim/open.cc: In function 'int posix_open(const
char*, int, int)':
../../../gcc/libgcobol/posix/shim/open.cc:33:29: error: 'O_LARGEFILE' was 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::
seems linuxism are being used in the runtime library.