Menu

Trouble installing on OpenBSD

2020-08-21
2022-10-18
1 2 > >> (Page 1 of 2)
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-21

    Hi all,

    I have the OpenBSD package for v2.1 running fine, but thought I would take a run at installing V3. I got configure to run without errors by doing:

    does sh ./configure --without-db "CPPFLAGS=-I/usr/local/include" "LDFLAGS=-L/usr/local/lib -R/usr/local/include"`
    

    This is my configure output:

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether CFLAGS can be modified... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
    checking how to run the C preprocessor... gcc -std=gnu99 -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... x86_64-unknown-openbsd6.7
    checking host system type... x86_64-unknown-openbsd6.7
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 393216
    checking how to convert x86_64-unknown-openbsd6.7 file names to x86_64-unknown-openbsd6.7 format... func_convert_file_noop
    checking how to convert x86_64-unknown-openbsd6.7 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... openbsd6.7 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... no
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for egrep... (cached) /usr/bin/grep -E
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... no
    checking for byacc... no
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking malloc.h usability... no
    checking malloc.h presence... no
    checking for malloc.h... no
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for dlfcn.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for sig_atomic_t... yes
    checking for inline keyword... __inline
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memmove... yes
    checking for memset... yes
    checking for setlocale... yes
    checking for fcntl... yes
    checking for strerror... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for gettimeofday... yes
    checking for localeconv... yes
    checking for readlink... yes
    checking for getexecname... no
    checking for canonicalize_file_name... no
    checking for realpath... yes
    checking for strcoll... yes
    checking for strxfrm... yes
    checking for setenv... yes
    checking for raise... yes
    checking for timezone variable access... yes
    checking for designated initializers... yes
    checking for __GNUC__... yes
    checking for __INTEL_COMPILER... no
    checking for __clang__... no
    checking for __xlc__... no
    checking for __WATCOMC__... no
    checking whether to build with code coverage support... no
    configure: Checks for GMP ...
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking for __gmpz_init in -lgmp... yes
    checking matching GMP version... yes (6.2)
    checking for __gmp_get_memory_functions in -lgmp... yes
    checking for nanosleep... yes
    checking for clock_gettime and CLOCK_REALTIME... yes
    checking for isfinite ... yes
    checking prototype for finite in <math.h>... yes
    checking for fdatasync... yes
    checking for sigaction... yes
    checking whether NLS is requested... yes
    checking for msgfmt... no
    checking for gmsgfmt... :
    checking for xgettext... no
    checking for msgmerge... no
    checking for CFPreferencesCopyAppValue... (cached) no
    checking for CFLocaleCopyCurrent... (cached) no
    checking for GNU gettext in libc... no
    checking for iconv... yes
    checking for working iconv... yes
    checking how to link with libiconv... /usr/local/lib/libiconv.so.7.0
    checking for GNU gettext in libintl... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... external libintl
    checking how to link with libintl... /usr/local/lib/libintl.so.7.0 /usr/local/lib/libiconv.so.7.0 -Wl,-rpath,/usr/local/lib
    checking for nl_langinfo and CODESET... yes
    configure: Checks for curses ...
    checking for initscr in -lncursesw... yes
    checking ncursesw/ncurses.h usability... no
    checking ncursesw/ncurses.h presence... no
    checking for ncursesw/ncurses.h... no
    checking ncursesw/curses.h usability... no
    checking ncursesw/curses.h presence... no
    checking for ncursesw/curses.h... no
    checking for initscr in -lncurses... yes
    checking ncurses.h usability... yes
    checking ncurses.h presence... yes
    checking for ncurses.h... yes
    checking for ncurses _nc_freeall function... yes
    checking for ncurses use_legacy_coding function... yes
    checking for curses color_set function... yes
    checking for curses define_key function... yes
    checking for _WIN32... no
    checking for dlopen in -lc... yes
    checking for dladdr in -lc... yes
    checking for support of computed gotos... yes
    checking if size of long int = size of long long... yes
    checking if long is 32 bits... no
    checking if pointer is longer than 32 bits... yes
    checking for aligned attribute... yes
    checking for gcc pointer sign option... yes
    checking for ld bind now option... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating bin/cob-config
    config.status: creating Makefile
    config.status: creating libcob/Makefile
    config.status: creating lib/Makefile
    config.status: creating cobc/Makefile
    config.status: creating bin/Makefile
    config.status: creating po/Makefile.in
    config.status: creating doc/Makefile
    config.status: creating config/Makefile
    config.status: creating copy/Makefile
    config.status: creating tests/atlocal
    config.status: creating tests/Makefile
    config.status: creating tests/cobol85/Makefile
    config.status: creating extras/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing tests/atconfig commands
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    config.status: creating po/POTFILES
    config.status: creating po/Makefile
    config.status: executing chmod commands
    configure: GnuCOBOL Configuration:
    configure:  CC                gcc -std=gnu99
    configure:  CFLAGS            -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -I$/usr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE
    configure:  LDFLAGS           -L/usr/local/lib -R/usr/local/include -Wl,-z,relro,-z,now,-O1
    configure:  COBC_LIBS          -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    configure:  COB_CC            gcc -std=gnu99
    configure:  COB_CFLAGS        -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -I$/usr/local/include -pipe -pipe
    configure:  COB_LDFLAGS       -L/usr/local/lib -R/usr/local/include
    configure:  COB_LIBS          -L/usr/local/lib -R/usr/local/include -L${exec_prefix}/lib -lcob -lm -lgmp -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib -lncurses
    configure:  COB_CONFIG_DIR    ${datarootdir}/gnucobol/config
    configure:  COB_COPY_DIR      ${datarootdir}/gnucobol/copy
    configure:  COB_LIBRARY_PATH  ${exec_prefix}/lib/gnucobol
    configure:  COB_OBJECT_EXT    o
    configure:  COB_MODULE_EXT    so
    configure:  COB_EXE_EXT
    configure:  COB_SHARED_OPT    -shared
    configure:  COB_PIC_FLAGS     -fPIC -DPIC
    configure:  COB_EXPORT_DYN    -Wl,-E
    configure:  COB_STRIP_CMD     strip --strip-unneeded
    configure:  Dynamic loading:                             System
    configure:  Use gettext for international messages:      yes
    configure:  Use fcntl for file locking:                  yes
    configure:  Use ncurses/pdcurses/curses for screen I/O:  ncurses
    configure:  ISAM I/O (no handler configured):            NO
    

    I tried to run make by doing:

    doas make
    

    And this is my make output:

    Creating defaults.h...
    make  all-recursive
    Making all in lib
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT dummymac.o -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.o dummymac.c
    mv -f .deps/dummymac.Tpo .deps/dummymac.Po
    rm -f libsupport.a
    ar cru libsupport.a dummymac.o
    ranlib libsupport.a
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo common.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c  -fPIC -DPIC -o .libs/common.o
    common.c:1465: warning: C99 inline functions are not supported; using GNU89
    common.c:1465: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
    common.c:1474: warning: C99 inline functions are not supported; using GNU89
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo move.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo numeric.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo strings.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo fileio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo call.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo intrinsic.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo termio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c  -fPIC -DPIC -o .libs/termio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo screenio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo reportio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c  -fPIC -DPIC -o .libs/reportio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo cobgetopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE   -version-info 4:0:0 -no-undefined -L/usr/local/lib -R/usr/local/include -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo -lm -lgmp -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib -lncurses
    libtool: link: rm -fr  .libs/libcob.a .libs/libcob.la .libs/libcob.lai .libs/libcob.so.4.0
    libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC -o .libs/libcob.so.4.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o   -L/usr/local/lib -lm -lgmp -lintl -liconv -lncurses  -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1
    libtool: link: ar cru .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in cobc
    make  all-am
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobc.o -MD -MP -MF .deps/cobc.Tpo -c -o cobc.o cobc.c
    mv -f .deps/cobc.Tpo .deps/cobc.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT ppparse.o -MD -MP -MF .deps/ppparse.Tpo -c -o ppparse.o ppparse.c
    mv -f .deps/ppparse.Tpo .deps/ppparse.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT pplex.o -MD -MP -MF .deps/pplex.Tpo -c -o pplex.o pplex.c
    mv -f .deps/pplex.Tpo .deps/pplex.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT parser.o -MD -MP -MF .deps/parser.Tpo -c -o parser.o parser.c
    mv -f .deps/parser.Tpo .deps/parser.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT scanner.o -MD -MP -MF .deps/scanner.Tpo -c -o scanner.o scanner.c
    mv -f .deps/scanner.Tpo .deps/scanner.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.c
    mv -f .deps/config.Tpo .deps/config.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reserved.o -MD -MP -MF .deps/reserved.Tpo -c -o reserved.o reserved.c
    mv -f .deps/reserved.Tpo .deps/reserved.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
    mv -f .deps/error.Tpo .deps/error.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT tree.o -MD -MP -MF .deps/tree.Tpo -c -o tree.o tree.c
    mv -f .deps/tree.Tpo .deps/tree.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT field.o -MD -MP -MF .deps/field.Tpo -c -o field.o field.c
    mv -f .deps/field.Tpo .deps/field.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT typeck.o -MD -MP -MF .deps/typeck.Tpo -c -o typeck.o typeck.c
    mv -f .deps/typeck.Tpo .deps/typeck.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT codegen.o -MD -MP -MF .deps/codegen.Tpo -c -o codegen.o codegen.c
    mv -f .deps/codegen.Tpo .deps/codegen.Po
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT codeoptim.o -MD -MP -MF .deps/codeoptim.Tpo -c -o codeoptim.o codeoptim.c
    mv -f .deps/codeoptim.Tpo .deps/codeoptim.Po
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE   -L/usr/local/lib -R/usr/local/include -Wl,-z,relro,-z,now,-O1 -o cobc cobc.o ppparse.o pplex.o  parser.o scanner.o config.o  reserved.o error.o tree.o  field.o typeck.o codegen.o  codeoptim.o -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib ../libcob/libcob.la ../lib/libsupport.a
    libtool: link: gcc -std=gnu99 -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -Iusr/local/include -pipe -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobc cobc.o ppparse.o pplex.o parser.o scanner.o config.o reserved.o error.o tree.o field.o typeck.o codegen.o codeoptim.o  -L/usr/local/lib -L../libcob/.libs -lcob -lm -lgmp -lintl -liconv -lncurses ../lib/libsupport.a -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/include
    make: don't know how to make | (prerequisite of: cobc.1)
    Stop in cobc
    *** Error 2 in cobc (Makefile:451 'all')
    *** Error 1 in . (Makefile:573 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnc (Makefile:459 'all')
    

    Not sure what to do next.
    Any pointers appreciated.

    Gerald.

     

    Last edit: Simon Sobisch 2020-08-21
    • Simon Sobisch

      Simon Sobisch - 2020-08-21

      You're running into an issue with GnuCOBOL and bsd make. This was fixed for 3.1rc, so I suggest you use this one instead (or, if you really need the old 3.0 patch the makefiles by removing all order-only preerequisites | something. But really - get 3.1rc1 :-)

       
  • Simon Sobisch

    Simon Sobisch - 2020-08-21

    Side note: it looks like you want to configure with -R/usr/local/lib, not -R/usr/local/include.

     
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-21

    Thanks for cleaning up my email Simon. I should have done better and studied the editor a bit.

    I downloaded the July 1, 2020 version of gnucobol-3.1-rc1.tar.gz and started fresh. I thought I had that one already, but maybe it's been more than a few weeks since my last download.

    I am using an OpenBSD snapshot, which I update weekly.

    6.7-current (RAMDISK_CD) #31: Tue Aug 18 09:15:45 MDT 2020
        deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
    real mem = 8436838400 (8045MB)
    avail mem = 8177123328 (7798MB)
    ...
    

    The Configure works with less trouble. It even finds db4.

    export LOCALBASE=/usr/local
    export LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -R/usr/local/lib"
    export CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
    export CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/db4"
    doas sh ./configure
    

    And the result

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for make... make
    checking whether make supports order-only prerequisites... no
    checking whether CFLAGS can be modified... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
    checking how to run the C preprocessor... gcc -std=gnu99 -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... x86_64-unknown-openbsd6.7
    checking host system type... x86_64-unknown-openbsd6.7
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 393216
    checking how to convert x86_64-unknown-openbsd6.7 file names to x86_64-unknown-openbsd6.7 format... func_convert_file_noop
    checking how to convert x86_64-unknown-openbsd6.7 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... openbsd6.7 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... no
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for egrep... (cached) /usr/bin/grep -E
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... no
    checking for byacc... no
    checking how to disable yacc compatibility warnings... not supported
    checking for diff arguments... not supported
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking malloc.h usability... no
    checking malloc.h presence... no
    checking for malloc.h... no
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for dlfcn.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for sig_atomic_t... yes
    checking for inline keyword... __inline
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memmove... yes
    checking for memset... yes
    checking for setlocale... yes
    checking for fcntl... yes
    checking for strerror... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for gettimeofday... yes
    checking for localeconv... yes
    checking for getexecname... no
    checking for canonicalize_file_name... no
    checking for popen... yes
    checking for raise... yes
    checking for readlink... yes
    checking for realpath... yes
    checking for setenv... yes
    checking for strcoll... yes
    checking for flockfile... yes
    checking for timezone variable access... yes
    checking for designated initializers... yes
    checking for __GNUC__... yes
    checking for __INTEL_COMPILER... no
    checking for __clang__... no
    checking for __xlc__... no
    checking for __WATCOMC__... no
    checking whether to build with code coverage support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    configure: Checks for GMP/MPIR ...
    checking for gmp... yes
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking for gmp.h... (cached) yes
    checking if linking against libgmp with "-L/usr/local/lib -lgmp" works... yes
    checking matching GMP version... yes (6.2)
    checking for __gmp_get_memory_functions in -lgmp... yes
    checking for libxml-2.0... yes
    checking libxml/xmlversion.h usability... yes
    checking libxml/xmlversion.h presence... yes
    checking for libxml/xmlversion.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... yes
    checking libxml/uri.h usability... yes
    checking libxml/uri.h presence... yes
    checking for libxml/uri.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking libxml/xmlwriter.h usability... yes
    checking libxml/xmlwriter.h presence... yes
    checking for libxml/xmlwriter.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking if linking against libxml2 with "-L/usr/local/lib -lxml2" works... yes
    configure: Checks for local cJSON ...
    checking for ./libcob/cJSON.c... no
    checking for ./libcob/cJSON.c... (cached) no
    configure: using local cJSON: no
    checking for libcjson... no
    checking cJSON.h usability... no
    checking cJSON.h presence... no
    checking for cJSON.h... no
    checking cjson/cJSON.h usability... no
    checking cjson/cJSON.h presence... no
    checking for cjson/cJSON.h... no
    configure: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    checking for clock_gettime and CLOCK_REALTIME... yes
    checking for isfinite... yes
    checking for fdatasync... yes
    checking for sigaction... yes
    checking for fmemopen... yes
    checking whether fdatasync is declared... yes
    configure: Checks for curses ...
    checking for initscr in -lncursesw... yes
    checking ncursesw/ncurses.h usability... no
    checking ncursesw/ncurses.h presence... no
    checking for ncursesw/ncurses.h... no
    checking ncursesw/curses.h usability... no
    checking ncursesw/curses.h presence... no
    checking for ncursesw/curses.h... no
    checking for initscr in -lncurses... yes
    checking ncurses.h usability... yes
    checking ncurses.h presence... yes
    checking for ncurses.h... yes
    checking for ncurses _nc_freeall function... yes
    checking for ncurses use_legacy_coding function... yes
    checking for curses color_set function... yes
    checking for curses define_key function... yes
    checking for curses mouseinterval function... yes
    checking for curses has_mouse function... no
    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: db.h reports version "-Berkeley DB 4.6.21: (September 27, 2007)-"
    checking for Berkeley DB db.h version >= 4.1... yes (4.6)
    checking for Berkeley DB library with version 4.6... yes
    configure: BDB library version 4.6 found as -ldb
    checking for _WIN32... no
    checking for dlopen in -lc... yes
    checking for dladdr in -lc... yes
    checking for support of computed gotos... yes
    checking if size of long int = size of long long... yes
    checking if long is 32 bits... no
    checking if pointer is longer than 32 bits... yes
    checking for aligned attribute... yes
    checking whether NLS is requested... yes
    checking for msgfmt... no
    checking for gmsgfmt... :
    checking for xgettext... no
    checking for msgmerge... no
    checking for CFPreferencesCopyAppValue... (cached) no
    checking for CFLocaleCopyPreferredLanguages... no
    checking for GNU gettext in libc... no
    checking for iconv... yes
    checking for working iconv... yes
    checking how to link with libiconv... /usr/local/lib/libiconv.so.7.0
    checking for GNU gettext in libintl... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... external libintl
    checking how to link with libintl... /usr/local/lib/libintl.so.7.0 /usr/local/lib/libiconv.so.7.0 -Wl,-rpath,/usr/local/lib
    checking for nl_langinfo and CODESET... yes
    checking for gcc pointer sign option... yes
    checking for ld bind now option... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libcob/Makefile
    config.status: creating lib/Makefile
    config.status: creating cobc/Makefile
    config.status: creating bin/Makefile
    config.status: creating po/Makefile.in
    config.status: creating doc/Makefile
    config.status: creating config/Makefile
    config.status: creating copy/Makefile
    config.status: creating tests/Makefile
    config.status: creating tests/cobol85/Makefile
    config.status: creating extras/Makefile
    config.status: creating bin/cob-config
    config.status: creating pre-inst-env
    config.status: creating tests/atlocal
    config.status: creating tests/run_prog_manual.sh
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing tests/atconfig commands
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    config.status: creating po/POTFILES
    config.status: creating po/Makefile
    config.status: executing chmod commands
    configure: GnuCOBOL Configuration:
    configure:  CC                gcc -std=gnu99
    configure:  CFLAGS             -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE
    configure:  LDFLAGS            -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1
    configure:  PROGRAMS_LIBS         -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    configure:  COB_CC            gcc -std=gnu99
    configure:  COB_CFLAGS        -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe
    configure:  COB_LDFLAGS        -L/usr/local/lib -R/usr/local/lib
    configure:  COB_LIBS          -L${exec_prefix}/lib -lcob -lm
    configure:  COB_CONFIG_DIR    ${datarootdir}/gnucobol/config
    configure:  COB_COPY_DIR      ${datarootdir}/gnucobol/copy
    configure:  COB_LIBRARY_PATH  ${exec_prefix}/lib/gnucobol
    configure:  COB_OBJECT_EXT    o
    configure:  COB_MODULE_EXT    so
    configure:  COB_EXE_EXT
    configure:  COB_SHARED_OPT    -shared
    configure:  COB_PIC_FLAGS     -fPIC -DPIC
    configure:  COB_EXPORT_DYN    -Wl,-E
    configure:  COB_STRIP_CMD     strip --strip-unneeded
    configure:  Dynamic loading:                             System
    configure:  Use gettext for international messages:      yes
    configure:  Use fcntl for file locking:                  yes
    configure:  Use math multiple precision library:         gmp
    configure:  Use curses library for screen I/O:           ncurses
    configure:  Use Berkeley DB for ISAM I/O:                yes
    configure:  Use libxml2 for XML I/O:                     yes
    configure:  Use cJSON for JSON I/O:                      no
    

    I just ran dmesg and noticed a string of these messages which show up on console whenever I run configure. One per configure attempt, I think. I wonder if this happens when configure is testing for environments, but just guessing.

    [conftest]19392/389510 pc=6e0548033a inside 70c9662000-70c9670000: bogus syscall
    [conftest]1681/329169 pc=b624971133a inside b6507aaf000-b6507abd000: bogus syscall
    [conftest]82667/423949 pc=826e9c1433a inside 8297d885000-8297d893000: bogus syscall
    [conftest]41893/225544 pc=1ce5f39c33a inside 1d13274c000-1d13275a000: bogus syscall
    [conftest]80644/115851 pc=c378326f33a inside c3a241a5000-c3a241b3000: bogus syscall
    [conftest]99640/404071 pc=3fa1fcd133a inside 3fc3599c000-3fc359aa000: bogus syscall
    [conftest]76902/519 pc=eb3a64c33a inside edcf0de000-edcf0ec000: bogus syscall
    [conftest]72040/203561 pc=a5601c9933a inside a58ca861000-a58ca86f000: bogus syscall
    [conftest]56457/376695 pc=e682f2fc33a inside e6af4df5000-e6af4e03000: bogus syscall
    [conftest]2871/165227 pc=d457c32832a inside d479b3b1000-d479b3bf000: bogus syscall
    [conftest]69386/183521 pc=2791b16435a inside 27bc6f0c000-27bc6f1a000: bogus syscall
    [conftest]95606/521571 pc=1d26931a36a inside 1d49ff33000-1d49ff41000: bogus syscall
    [conftest]1596/22437 pc=18bd48ab35a inside 18e85478000-18e85486000: bogus syscall
    [conftest]44730/172621 pc=9c94388036a inside 9cb80920000-9cb8092e000: bogus syscall
    [conftest]12679/68136 pc=4f06647d35a inside 4f284428000-4f284436000: bogus syscall
    [conftest]12483/523292 pc=ca6f1b2c36a inside ca985e7f000-ca985e8d000: bogus syscall
    [conftest]40934/164197 pc=c2d744f136a inside c301c2d5000-c301c2e3000: bogus syscall
    [conftest]67486/306927 pc=b1253bd036a inside b15305b9000-b15305c7000: bogus syscall
    [conftest]47178/504262 pc=87230cd136a inside 8747bb3d000-8747bb4b000: bogus syscall
    [conftest]65113/154703 pc=b73974eb36a inside b765ad8b000-b765ad99000: bogus syscall
    [conftest]97757/503706 pc=964b89b36a inside 98ff6ef000-98ff6fd000: bogus syscall
    [conftest]94044/235424 pc=ce7522be36a inside cea0728a000-cea07298000: bogus syscall
    [conftest]28853/44058 pc=9d28a07632a inside 9d48b1e8000-9d48b1f6000: bogus syscall
    [conftest]55094/275976 pc=1663de4333a inside 168a65e6000-168a65f4000: bogus syscall
    [conftest]30059/45792 pc=48de621833a inside 48fede09000-48fede17000: bogus syscall
    [conftest]26463/11743 pc=6a1f993136a inside 6a4f21ba000-6a4f21c8000: bogus syscall
    [conftest]58491/307951 pc=239f522136a inside 23c8ee41000-23c8ee4f000: bogus syscall
    [conftest]29060/88858 pc=8dd5d12636a inside 8dfbb733000-8dfbb741000: bogus syscall
    [conftest]68588/333475 pc=1482352936a inside 14a93b33000-14a93b41000: bogus syscall
    [conftest]35355/415350 pc=64eb877a36a inside 651916b0000-651916be000: bogus syscall
    

    The make is still having a problem, but a different problem feels like progress.

    doas make
    
    make  all-recursive
    Making all in .
    Making all in lib
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include  -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT dummymac.o -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.o dummymac.c
    mv -f .deps/dummymac.Tpo .deps/dummymac.Po
    rm -f libsupport.a
    ar cru libsupport.a dummymac.o
    ranlib libsupport.a
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo common.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c  -fPIC -DPIC -o .libs/common.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo move.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo numeric.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo strings.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo fileio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo call.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo intrinsic.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo termio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c  -fPIC -DPIC -o .libs/termio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo screenio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo reportio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c  -fPIC -DPIC -o .libs/reportio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo cobgetopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c -o mlio.lo mlio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c mlio.c  -fPIC -DPIC -o .libs/mlio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c mlio.c -o mlio.o >/dev/null 2>&1
    mv -f .deps/mlio.Tpo .deps/mlio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE   -version-info 4:0:0 -no-undefined -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo mlio.lo   -lm -L/usr/local/lib -lgmp -L/usr/local/lib -lxml2 -lncurses -ldb -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC -o .libs/libcob.so.4.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o .libs/mlio.o   -L/usr/local/lib -lgmp -lxml2 -lpthread -lz -llzma -lm -lncurses -ldb -lintl -liconv  -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -pthread   -pthread
    libtool: link: ar cru .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o mlio.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in bin
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..  -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include  -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobcrun.o -MD -MP -MF .deps/cobcrun.Tpo -c -o cobcrun.o cobcrun.c
    mv -f .deps/cobcrun.Tpo .deps/cobcrun.Po
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE  -Wl,-E -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1 -o cobcrun cobcrun.o -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib ../lib/libsupport.a  ../libcob/libcob.la
    libtool: link: gcc -std=gnu99 -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -Wl,-E -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobcrun cobcrun.o  -L/usr/local/lib ../lib/libsupport.a -L../libcob/.libs -lcob -lgmp -lxml2 -lz -llzma -lpthread -lm -lncurses -ldb -lintl -liconv -pthread -Wl,-rpath,/usr/local/lib
    ld: error: undefined symbol: print_info_detailed
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(process_command_line)
    
    ld: error: undefined symbol: cob_common_init
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    collect2: ld returned 1 exit status
    *** Error 1 in bin (Makefile:565 'cobcrun')
    *** Error 1 in . (Makefile:652 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnucobol-3.1-rc1 (Makefile:535 'all')
    
     
  • Simon Sobisch

    Simon Sobisch - 2020-08-21

    I just ran dmesg and noticed a string of these messages which show up on console whenever I run configure. One per configure attempt, I think. I wonder if this happens when configure is testing for environments, but just guessing.

    I'd guess the same.

    a different problem feels like progress

    It is! And it is one I've not encounted yet, I consider this a bonus!
    Looks interesting.

    the cobcrunbinary cannot be created because some functions are missing while others aren't... Let me guess: you have an older version of libcob installed on this system correct? The two issued functions are "newer" than the others.

    I think this is related to your LDFLAGS (if this is an issue we could not workaround - and I think we can - then it should be checked in configure).

    What happens if you do:

    export LOCALBASE=/usr/local
    doas sh ./configure \
        LDFLAGS=-L${LOCALBASE}/lib -R${LOCALBASE}/lib" \
        CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4"
    

    (I guess the same, just less identical include directories included)

    and what happens with

    export LOCALBASE=/usr/local
    doas sh ./configure CPPFLAGS="-I${LOCALBASE}/include/db4"
    

    I'm positive that we'll have you setup sooner than later.

     
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-21

    Oops, I should have mentioned the previously installed, and working, gnucobol-2.2p1 package from the OpenBSD website that is still lurking on this machine. I can remove it, if that will help.

    export LOCALBASE=/usr/local
     doas sh ./configure LDFLAGS="-L${LOCALBASE}/lib -R${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4"
    

    Produces the following:

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for make... make
    checking whether make supports order-only prerequisites... no
    checking whether CFLAGS can be modified... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
    checking how to run the C preprocessor... gcc -std=gnu99 -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... x86_64-unknown-openbsd6.7
    checking host system type... x86_64-unknown-openbsd6.7
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 393216
    checking how to convert x86_64-unknown-openbsd6.7 file names to x86_64-unknown-openbsd6.7 format... func_convert_file_noop
    checking how to convert x86_64-unknown-openbsd6.7 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... openbsd6.7 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... no
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for egrep... (cached) /usr/bin/grep -E
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... no
    checking for byacc... no
    checking how to disable yacc compatibility warnings... not supported
    checking for diff arguments... not supported
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking malloc.h usability... no
    checking malloc.h presence... no
    checking for malloc.h... no
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for dlfcn.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for sig_atomic_t... yes
    checking for inline keyword... __inline
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memmove... yes
    checking for memset... yes
    checking for setlocale... yes
    checking for fcntl... yes
    checking for strerror... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for gettimeofday... yes
    checking for localeconv... yes
    checking for getexecname... no
    checking for canonicalize_file_name... no
    checking for popen... yes
    checking for raise... yes
    checking for readlink... yes
    checking for realpath... yes
    checking for setenv... yes
    checking for strcoll... yes
    checking for flockfile... yes
    checking for timezone variable access... yes
    checking for designated initializers... yes
    checking for __GNUC__... yes
    checking for __INTEL_COMPILER... no
    checking for __clang__... no
    checking for __xlc__... no
    checking for __WATCOMC__... no
    checking whether to build with code coverage support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    configure: Checks for GMP/MPIR ...
    checking for gmp... yes
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking for gmp.h... (cached) yes
    checking if linking against libgmp with "-L/usr/local/lib -lgmp" works... yes
    checking matching GMP version... yes (6.2)
    checking for __gmp_get_memory_functions in -lgmp... yes
    checking for libxml-2.0... yes
    checking libxml/xmlversion.h usability... yes
    checking libxml/xmlversion.h presence... yes
    checking for libxml/xmlversion.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... yes
    checking libxml/uri.h usability... yes
    checking libxml/uri.h presence... yes
    checking for libxml/uri.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking libxml/xmlwriter.h usability... yes
    checking libxml/xmlwriter.h presence... yes
    checking for libxml/xmlwriter.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking if linking against libxml2 with "-L/usr/local/lib -lxml2" works... yes
    configure: Checks for local cJSON ...
    checking for ./libcob/cJSON.c... no
    checking for ./libcob/cJSON.c... (cached) no
    configure: using local cJSON: no
    checking for libcjson... no
    checking cJSON.h usability... no
    checking cJSON.h presence... no
    checking for cJSON.h... no
    checking cjson/cJSON.h usability... no
    checking cjson/cJSON.h presence... no
    checking for cjson/cJSON.h... no
    configure: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    checking for clock_gettime and CLOCK_REALTIME... yes
    checking for isfinite... yes
    checking for fdatasync... yes
    checking for sigaction... yes
    checking for fmemopen... yes
    checking whether fdatasync is declared... yes
    configure: Checks for curses ...
    checking for initscr in -lncursesw... yes
    checking ncursesw/ncurses.h usability... no
    checking ncursesw/ncurses.h presence... no
    checking for ncursesw/ncurses.h... no
    checking ncursesw/curses.h usability... no
    checking ncursesw/curses.h presence... no
    checking for ncursesw/curses.h... no
    checking for initscr in -lncurses... yes
    checking ncurses.h usability... yes
    checking ncurses.h presence... yes
    checking for ncurses.h... yes
    checking for ncurses _nc_freeall function... yes
    checking for ncurses use_legacy_coding function... yes
    checking for curses color_set function... yes
    checking for curses define_key function... yes
    checking for curses mouseinterval function... yes
    checking for curses has_mouse function... no
    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: db.h reports version "-Berkeley DB 4.6.21: (September 27, 2007)-"
    checking for Berkeley DB db.h version >= 4.1... yes (4.6)
    checking for Berkeley DB library with version 4.6... yes
    configure: BDB library version 4.6 found as -ldb
    checking for _WIN32... no
    checking for dlopen in -lc... yes
    checking for dladdr in -lc... yes
    checking for support of computed gotos... yes
    checking if size of long int = size of long long... yes
    checking if long is 32 bits... no
    checking if pointer is longer than 32 bits... yes
    checking for aligned attribute... yes
    checking whether NLS is requested... yes
    checking for msgfmt... no
    checking for gmsgfmt... :
    checking for xgettext... no
    checking for msgmerge... no
    checking for CFPreferencesCopyAppValue... (cached) no
    checking for CFLocaleCopyPreferredLanguages... no
    checking for GNU gettext in libc... no
    checking for iconv... yes
    checking for working iconv... yes
    checking how to link with libiconv... /usr/local/lib/libiconv.so.7.0
    checking for GNU gettext in libintl... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... external libintl
    checking how to link with libintl... /usr/local/lib/libintl.so.7.0 /usr/local/lib/libiconv.so.7.0 -Wl,-rpath,/usr/local/lib
    checking for nl_langinfo and CODESET... yes
    checking for gcc pointer sign option... yes
    checking for ld bind now option... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libcob/Makefile
    config.status: creating lib/Makefile
    config.status: creating cobc/Makefile
    config.status: creating bin/Makefile
    config.status: creating po/Makefile.in
    config.status: creating doc/Makefile
    config.status: creating config/Makefile
    config.status: creating copy/Makefile
    config.status: creating tests/Makefile
    config.status: creating tests/cobol85/Makefile
    config.status: creating extras/Makefile
    config.status: creating bin/cob-config
    config.status: creating pre-inst-env
    config.status: creating tests/atlocal
    config.status: creating tests/run_prog_manual.sh
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing tests/atconfig commands
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    config.status: creating po/POTFILES
    config.status: creating po/Makefile
    config.status: executing chmod commands
    configure: GnuCOBOL Configuration:
    configure:  CC                gcc -std=gnu99
    configure:  CFLAGS             -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE
    configure:  LDFLAGS           -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1
    configure:  PROGRAMS_LIBS         -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    configure:  COB_CC            gcc -std=gnu99
    configure:  COB_CFLAGS        -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe
    configure:  COB_LDFLAGS       -L/usr/local/lib -R/usr/local/lib
    configure:  COB_LIBS          -L${exec_prefix}/lib -lcob -lm
    configure:  COB_CONFIG_DIR    ${datarootdir}/gnucobol/config
    configure:  COB_COPY_DIR      ${datarootdir}/gnucobol/copy
    configure:  COB_LIBRARY_PATH  ${exec_prefix}/lib/gnucobol
    configure:  COB_OBJECT_EXT    o
    configure:  COB_MODULE_EXT    so
    configure:  COB_EXE_EXT
    configure:  COB_SHARED_OPT    -shared
    configure:  COB_PIC_FLAGS     -fPIC -DPIC
    configure:  COB_EXPORT_DYN    -Wl,-E
    configure:  COB_STRIP_CMD     strip --strip-unneeded
    configure:  Dynamic loading:                             System
    configure:  Use gettext for international messages:      yes
    configure:  Use fcntl for file locking:                  yes
    configure:  Use math multiple precision library:         gmp
    configure:  Use curses library for screen I/O:           ncurses
    configure:  Use Berkeley DB for ISAM I/O:                yes
    configure:  Use libxml2 for XML I/O:                     yes
    configure:  Use cJSON for JSON I/O:                      no
    

    and

    daylight$ doas sh ./configure CPPFLAGS="-I${LOCALBASE}/include/db4"
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for make... make
    checking whether make supports order-only prerequisites... no
    checking whether CFLAGS can be modified... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
    checking how to run the C preprocessor... gcc -std=gnu99 -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... x86_64-unknown-openbsd6.7
    checking host system type... x86_64-unknown-openbsd6.7
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 393216
    checking how to convert x86_64-unknown-openbsd6.7 file names to x86_64-unknown-openbsd6.7 format... func_convert_file_noop
    checking how to convert x86_64-unknown-openbsd6.7 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... openbsd6.7 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... no
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for egrep... (cached) /usr/bin/grep -E
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... no
    checking for byacc... no
    checking how to disable yacc compatibility warnings... not supported
    checking for diff arguments... not supported
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking malloc.h usability... no
    checking malloc.h presence... no
    checking for malloc.h... no
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for dlfcn.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for sig_atomic_t... yes
    checking for inline keyword... __inline
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memmove... yes
    checking for memset... yes
    checking for setlocale... yes
    checking for fcntl... yes
    checking for strerror... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for gettimeofday... yes
    checking for localeconv... yes
    checking for getexecname... no
    checking for canonicalize_file_name... no
    checking for popen... yes
    checking for raise... yes
    checking for readlink... yes
    checking for realpath... yes
    checking for setenv... yes
    checking for strcoll... yes
    checking for flockfile... yes
    checking for timezone variable access... yes
    checking for designated initializers... yes
    checking for __GNUC__... yes
    checking for __INTEL_COMPILER... no
    checking for __clang__... no
    checking for __xlc__... no
    checking for __WATCOMC__... no
    checking whether to build with code coverage support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    configure: Checks for GMP/MPIR ...
    checking for gmp... yes
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking for gmp.h... (cached) yes
    checking if linking against libgmp with "-L/usr/local/lib -lgmp" works... yes
    checking matching GMP version... yes (6.2)
    checking for __gmp_get_memory_functions in -lgmp... yes
    checking for libxml-2.0... yes
    checking libxml/xmlversion.h usability... yes
    checking libxml/xmlversion.h presence... yes
    checking for libxml/xmlversion.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... yes
    checking libxml/uri.h usability... yes
    checking libxml/uri.h presence... yes
    checking for libxml/uri.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking libxml/xmlwriter.h usability... yes
    checking libxml/xmlwriter.h presence... yes
    checking for libxml/xmlwriter.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking if linking against libxml2 with "-L/usr/local/lib -lxml2" works... yes
    configure: Checks for local cJSON ...
    checking for ./libcob/cJSON.c... no
    checking for ./libcob/cJSON.c... (cached) no
    configure: using local cJSON: no
    checking for libcjson... no
    checking cJSON.h usability... no
    checking cJSON.h presence... no
    checking for cJSON.h... no
    checking cjson/cJSON.h usability... no
    checking cjson/cJSON.h presence... no
    checking for cjson/cJSON.h... no
    configure: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    checking for clock_gettime and CLOCK_REALTIME... yes
    checking for isfinite... yes
    checking for fdatasync... yes
    checking for sigaction... yes
    checking for fmemopen... yes
    checking whether fdatasync is declared... yes
    configure: Checks for curses ...
    checking for initscr in -lncursesw... yes
    checking ncursesw/ncurses.h usability... no
    checking ncursesw/ncurses.h presence... no
    checking for ncursesw/ncurses.h... no
    checking ncursesw/curses.h usability... no
    checking ncursesw/curses.h presence... no
    checking for ncursesw/curses.h... no
    checking for initscr in -lncurses... yes
    checking ncurses.h usability... yes
    checking ncurses.h presence... yes
    checking for ncurses.h... yes
    checking for ncurses _nc_freeall function... yes
    checking for ncurses use_legacy_coding function... yes
    checking for curses color_set function... yes
    checking for curses define_key function... yes
    checking for curses mouseinterval function... yes
    checking for curses has_mouse function... no
    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: db.h reports version "-Berkeley DB 4.6.21: (September 27, 2007)-"
    checking for Berkeley DB db.h version >= 4.1... yes (4.6)
    checking for Berkeley DB library with version 4.6... yes
    configure: BDB library version 4.6 found as -ldb
    checking for _WIN32... no
    checking for dlopen in -lc... yes
    checking for dladdr in -lc... yes
    checking for support of computed gotos... yes
    checking if size of long int = size of long long... yes
    checking if long is 32 bits... no
    checking if pointer is longer than 32 bits... yes
    checking for aligned attribute... yes
    checking whether NLS is requested... yes
    checking for msgfmt... no
    checking for gmsgfmt... :
    checking for xgettext... no
    checking for msgmerge... no
    checking for CFPreferencesCopyAppValue... (cached) no
    checking for CFLocaleCopyPreferredLanguages... no
    checking for GNU gettext in libc... no
    checking for iconv... yes
    checking for working iconv... yes
    checking how to link with libiconv... /usr/local/lib/libiconv.so.7.0
    checking for GNU gettext in libintl... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... external libintl
    checking how to link with libintl... /usr/local/lib/libintl.so.7.0 /usr/local/lib/libiconv.so.7.0 -Wl,-rpath,/usr/local/lib
    checking for nl_langinfo and CODESET... yes
    checking for gcc pointer sign option... yes
    checking for ld bind now option... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libcob/Makefile
    config.status: creating lib/Makefile
    config.status: creating cobc/Makefile
    config.status: creating bin/Makefile
    config.status: creating po/Makefile.in
    config.status: creating doc/Makefile
    config.status: creating config/Makefile
    config.status: creating copy/Makefile
    config.status: creating tests/Makefile
    config.status: creating tests/cobol85/Makefile
    config.status: creating extras/Makefile
    config.status: creating bin/cob-config
    config.status: creating pre-inst-env
    config.status: creating tests/atlocal
    config.status: creating tests/run_prog_manual.sh
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing tests/atconfig commands
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    config.status: creating po/POTFILES
    config.status: creating po/Makefile
    config.status: executing chmod commands
    configure: GnuCOBOL Configuration:
    configure:  CC                gcc -std=gnu99
    configure:  CFLAGS             -I/usr/local/include -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE
    configure:  LDFLAGS            -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1
    configure:  PROGRAMS_LIBS         -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    configure:  COB_CC            gcc -std=gnu99
    configure:  COB_CFLAGS        -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include -pipe
    configure:  COB_LDFLAGS        -L/usr/local/lib -R/usr/local/lib
    configure:  COB_LIBS          -L${exec_prefix}/lib -lcob -lm
    configure:  COB_CONFIG_DIR    ${datarootdir}/gnucobol/config
    configure:  COB_COPY_DIR      ${datarootdir}/gnucobol/copy
    configure:  COB_LIBRARY_PATH  ${exec_prefix}/lib/gnucobol
    configure:  COB_OBJECT_EXT    o
    configure:  COB_MODULE_EXT    so
    configure:  COB_EXE_EXT
    configure:  COB_SHARED_OPT    -shared
    configure:  COB_PIC_FLAGS     -fPIC -DPIC
    configure:  COB_EXPORT_DYN    -Wl,-E
    configure:  COB_STRIP_CMD     strip --strip-unneeded
    configure:  Dynamic loading:                             System
    configure:  Use gettext for international messages:      yes
    configure:  Use fcntl for file locking:                  yes
    configure:  Use math multiple precision library:         gmp
    configure:  Use curses library for screen I/O:           ncurses
    configure:  Use Berkeley DB for ISAM I/O:                yes
    configure:  Use libxml2 for XML I/O:                     yes
    configure:  Use cJSON for JSON I/O:                      no
    
     

    Last edit: Simon Sobisch 2020-08-21
    • Simon Sobisch

      Simon Sobisch - 2020-08-21

      Oops, I should have mentioned the previously installed, and working, gnucobol-2.2p1 package from the OpenBSD website that is still lurking on this machine. I can remove it, if that will help.

      Don't mind. It actually is considered a bug if you can't build GC correctly on a machine that has a separate install (it may need a bit more setup and care, but other than that, no issue).

      ... even if it would help for this installation (but not necessarily for GC in the bigger picture).

      Sorry, I should have made that clear: as you've previously exported some variables you need to start a clean terminal (or re-login if you don't have the option to leace the terminal), then try again.
      Please do so, edit the changes into your post (or create a new one and delete the old) and drop a note. we can then investigate further.

       
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-21

    Don't mind. It actually is considered a bug if you can't build GC correctly on a machine that has a separate install (it may need a bit more setup and care, but other than that, no issue).

    ... even if it would help for this installation (but not necessarily for GC in the bigger picture).

    If it helps you and improves the project, I can give you all the time you need. This is not a production cobol envronment. I am just playing with some old code. (nostalgia).

    In the enviroment I have the following default path created by OpenBSD install:

    PATH=/home/puffy/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
    

    On a new terminal instance

    daylight$ export LOCALBASE=/usr/local
    daylight$  doas sh ./configure LDFLAGS="-L${LOCALBASE}/lib -R${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4"
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for make... make
    checking whether make supports order-only prerequisites... no
    checking whether CFLAGS can be modified... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
    checking how to run the C preprocessor... gcc -std=gnu99 -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... x86_64-unknown-openbsd6.7
    checking host system type... x86_64-unknown-openbsd6.7
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 393216
    checking how to convert x86_64-unknown-openbsd6.7 file names to x86_64-unknown-openbsd6.7 format... func_convert_file_noop
    checking how to convert x86_64-unknown-openbsd6.7 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... openbsd6.7 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... no
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for egrep... (cached) /usr/bin/grep -E
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... no
    checking for byacc... no
    checking how to disable yacc compatibility warnings... not supported
    checking for diff arguments... not supported
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking malloc.h usability... no
    checking malloc.h presence... no
    checking for malloc.h... no
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for dlfcn.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for sig_atomic_t... yes
    checking for inline keyword... __inline
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memmove... yes
    checking for memset... yes
    checking for setlocale... yes
    checking for fcntl... yes
    checking for strerror... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for gettimeofday... yes
    checking for localeconv... yes
    checking for getexecname... no
    checking for canonicalize_file_name... no
    checking for popen... yes
    checking for raise... yes
    checking for readlink... yes
    checking for realpath... yes
    checking for setenv... yes
    checking for strcoll... yes
    checking for flockfile... yes
    checking for timezone variable access... yes
    checking for designated initializers... yes
    checking for __GNUC__... yes
    checking for __INTEL_COMPILER... no
    checking for __clang__... no
    checking for __xlc__... no
    checking for __WATCOMC__... no
    checking whether to build with code coverage support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    configure: Checks for GMP/MPIR ...
    checking for gmp... yes
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking for gmp.h... (cached) yes
    checking if linking against libgmp with "-L/usr/local/lib -lgmp" works... yes
    checking matching GMP version... yes (6.2)
    checking for __gmp_get_memory_functions in -lgmp... yes
    checking for libxml-2.0... yes
    checking libxml/xmlversion.h usability... yes
    checking libxml/xmlversion.h presence... yes
    checking for libxml/xmlversion.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... yes
    checking libxml/uri.h usability... yes
    checking libxml/uri.h presence... yes
    checking for libxml/uri.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking libxml/xmlwriter.h usability... yes
    checking libxml/xmlwriter.h presence... yes
    checking for libxml/xmlwriter.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking if linking against libxml2 with "-L/usr/local/lib -lxml2" works... yes
    configure: Checks for local cJSON ...
    checking for ./libcob/cJSON.c... no
    checking for ./libcob/cJSON.c... (cached) no
    configure: using local cJSON: no
    checking for libcjson... no
    checking cJSON.h usability... no
    checking cJSON.h presence... no
    checking for cJSON.h... no
    checking cjson/cJSON.h usability... no
    checking cjson/cJSON.h presence... no
    checking for cjson/cJSON.h... no
    configure: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    checking for clock_gettime and CLOCK_REALTIME... yes
    checking for isfinite... yes
    checking for fdatasync... yes
    checking for sigaction... yes
    checking for fmemopen... yes
    checking whether fdatasync is declared... yes
    configure: Checks for curses ...
    checking for initscr in -lncursesw... yes
    checking ncursesw/ncurses.h usability... no
    checking ncursesw/ncurses.h presence... no
    checking for ncursesw/ncurses.h... no
    checking ncursesw/curses.h usability... no
    checking ncursesw/curses.h presence... no
    checking for ncursesw/curses.h... no
    checking for initscr in -lncurses... yes
    checking ncurses.h usability... yes
    checking ncurses.h presence... yes
    checking for ncurses.h... yes
    checking for ncurses _nc_freeall function... yes
    checking for ncurses use_legacy_coding function... yes
    checking for curses color_set function... yes
    checking for curses define_key function... yes
    checking for curses mouseinterval function... yes
    checking for curses has_mouse function... no
    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: db.h reports version "-Berkeley DB 4.6.21: (September 27, 2007)-"
    checking for Berkeley DB db.h version >= 4.1... yes (4.6)
    checking for Berkeley DB library with version 4.6... yes
    configure: BDB library version 4.6 found as -ldb
    checking for _WIN32... no
    checking for dlopen in -lc... yes
    checking for dladdr in -lc... yes
    checking for support of computed gotos... yes
    checking if size of long int = size of long long... yes
    checking if long is 32 bits... no
    checking if pointer is longer than 32 bits... yes
    checking for aligned attribute... yes
    checking whether NLS is requested... yes
    checking for msgfmt... no
    checking for gmsgfmt... :
    checking for xgettext... no
    checking for msgmerge... no
    checking for CFPreferencesCopyAppValue... (cached) no
    checking for CFLocaleCopyPreferredLanguages... no
    checking for GNU gettext in libc... no
    checking for iconv... yes
    checking for working iconv... yes
    checking how to link with libiconv... /usr/local/lib/libiconv.so.7.0
    checking for GNU gettext in libintl... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... external libintl
    checking how to link with libintl... /usr/local/lib/libintl.so.7.0 /usr/local/lib/libiconv.so.7.0 -Wl,-rpath,/usr/local/lib
    checking for nl_langinfo and CODESET... yes
    checking for gcc pointer sign option... yes
    checking for ld bind now option... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libcob/Makefile
    config.status: creating lib/Makefile
    config.status: creating cobc/Makefile
    config.status: creating bin/Makefile
    config.status: creating po/Makefile.in
    config.status: creating doc/Makefile
    config.status: creating config/Makefile
    config.status: creating copy/Makefile
    config.status: creating tests/Makefile
    config.status: creating tests/cobol85/Makefile
    config.status: creating extras/Makefile
    config.status: creating bin/cob-config
    config.status: creating pre-inst-env
    config.status: creating tests/atlocal
    config.status: creating tests/run_prog_manual.sh
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing tests/atconfig commands
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    config.status: creating po/POTFILES
    config.status: creating po/Makefile
    config.status: executing chmod commands
    configure: GnuCOBOL Configuration:
    configure:  CC                gcc -std=gnu99
    configure:  CFLAGS            -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE
    configure:  LDFLAGS           -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1
    configure:  PROGRAMS_LIBS         -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    configure:  COB_CC            gcc -std=gnu99
    configure:  COB_CFLAGS        -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -pipe
    configure:  COB_LDFLAGS       -L/usr/local/lib -R/usr/local/lib
    configure:  COB_LIBS          -L${exec_prefix}/lib -lcob -lm
    configure:  COB_CONFIG_DIR    ${datarootdir}/gnucobol/config
    configure:  COB_COPY_DIR      ${datarootdir}/gnucobol/copy
    configure:  COB_LIBRARY_PATH  ${exec_prefix}/lib/gnucobol
    configure:  COB_OBJECT_EXT    o
    configure:  COB_MODULE_EXT    so
    configure:  COB_EXE_EXT
    configure:  COB_SHARED_OPT    -shared
    configure:  COB_PIC_FLAGS     -fPIC -DPIC
    configure:  COB_EXPORT_DYN    -Wl,-E
    configure:  COB_STRIP_CMD     strip --strip-unneeded
    configure:  Dynamic loading:                             System
    configure:  Use gettext for international messages:      yes
    configure:  Use fcntl for file locking:                  yes
    configure:  Use math multiple precision library:         gmp
    configure:  Use curses library for screen I/O:           ncurses
    configure:  Use Berkeley DB for ISAM I/O:                yes
    configure:  Use libxml2 for XML I/O:                     yes
    configure:  Use cJSON for JSON I/O:                      no
    

    And on another new terminal instance:

    daylight$ doas sh ./configure CPPFLAGS="-I${LOCALBASE}/include/db4"
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for make... make
    checking whether make supports order-only prerequisites... no
    checking whether CFLAGS can be modified... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
    checking how to run the C preprocessor... gcc -std=gnu99 -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... x86_64-unknown-openbsd6.7
    checking host system type... x86_64-unknown-openbsd6.7
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 393216
    checking how to convert x86_64-unknown-openbsd6.7 file names to x86_64-unknown-openbsd6.7 format... func_convert_file_noop
    checking how to convert x86_64-unknown-openbsd6.7 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... openbsd6.7 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... no
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for egrep... (cached) /usr/bin/grep -E
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... no
    checking for byacc... no
    checking how to disable yacc compatibility warnings... not supported
    checking for diff arguments... not supported
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking malloc.h usability... no
    checking malloc.h presence... no
    checking for malloc.h... no
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for dlfcn.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for sig_atomic_t... yes
    checking for inline keyword... __inline
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memmove... yes
    checking for memset... yes
    checking for setlocale... yes
    checking for fcntl... yes
    checking for strerror... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for gettimeofday... yes
    checking for localeconv... yes
    checking for getexecname... no
    checking for canonicalize_file_name... no
    checking for popen... yes
    checking for raise... yes
    checking for readlink... yes
    checking for realpath... yes
    checking for setenv... yes
    checking for strcoll... yes
    checking for flockfile... yes
    checking for timezone variable access... yes
    checking for designated initializers... yes
    checking for __GNUC__... yes
    checking for __INTEL_COMPILER... no
    checking for __clang__... no
    checking for __xlc__... no
    checking for __WATCOMC__... no
    checking whether to build with code coverage support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    configure: Checks for GMP/MPIR ...
    checking for gmp... yes
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking for gmp.h... (cached) yes
    checking if linking against libgmp with "-L/usr/local/lib -lgmp" works... yes
    checking matching GMP version... yes (6.2)
    checking for __gmp_get_memory_functions in -lgmp... no
    checking for libxml-2.0... yes
    checking libxml/xmlversion.h usability... yes
    checking libxml/xmlversion.h presence... yes
    checking for libxml/xmlversion.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... yes
    checking libxml/uri.h usability... yes
    checking libxml/uri.h presence... yes
    checking for libxml/uri.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking libxml/xmlwriter.h usability... yes
    checking libxml/xmlwriter.h presence... yes
    checking for libxml/xmlwriter.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... (cached) yes
    checking if linking against libxml2 with "-L/usr/local/lib -lxml2" works... yes
    configure: Checks for local cJSON ...
    checking for ./libcob/cJSON.c... no
    checking for ./libcob/cJSON.c... (cached) no
    configure: using local cJSON: no
    checking for libcjson... no
    checking cJSON.h usability... no
    checking cJSON.h presence... no
    checking for cJSON.h... no
    checking cjson/cJSON.h usability... no
    checking cjson/cJSON.h presence... no
    checking for cjson/cJSON.h... no
    configure: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    checking for clock_gettime and CLOCK_REALTIME... yes
    checking for isfinite... yes
    checking for fdatasync... yes
    checking for sigaction... yes
    checking for fmemopen... yes
    checking whether fdatasync is declared... yes
    configure: Checks for curses ...
    checking for initscr in -lncursesw... yes
    checking ncursesw/ncurses.h usability... no
    checking ncursesw/ncurses.h presence... no
    checking for ncursesw/ncurses.h... no
    checking ncursesw/curses.h usability... no
    checking ncursesw/curses.h presence... no
    checking for ncursesw/curses.h... no
    checking for initscr in -lncurses... yes
    checking ncurses.h usability... yes
    checking ncurses.h presence... yes
    checking for ncurses.h... yes
    checking for ncurses _nc_freeall function... yes
    checking for ncurses use_legacy_coding function... yes
    checking for curses color_set function... yes
    checking for curses define_key function... yes
    checking for curses mouseinterval function... yes
    checking for curses has_mouse function... no
    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: error: Unable to extract Berkeley DB version information from db.h
    

    Operators are standing by...

     
    • Simon Sobisch

      Simon Sobisch - 2020-08-21

      daylight$ doas sh ./configure CPPFLAGS="-I${LOCALBASE}/include/db4" That terminal doesn't know about LOCALBASE from the other, so please retry with ./configure CPPFLAGS="-I/usr/local/include/db4".

      As the configure looks good for both you may run makethere next. Side note: to keep environments separated use an out of tree build:

      cd gnucobol-3.1rc1
      # if previously configure you need to run `make distclean` once
      # but running the configure script from other places will remind you
      
      mkdir build1
      cd build1
      ../configure # and so on
      make
      
      mkdir build2
      cd build2
      ../configure # different
      make
      

      Note: actually better then showing the configure output is posting config.log, from your build directory.

       
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-21

    terminal doesn't know about LOCALBASE

    Aargh! I knew that and missed it.

    Side note: to keep environments separated use an out of tree build:

    Done.

    cd ../build1
    export LOCALBASE=/usr/local
    doas sh ./configure LDFLAGS="-L${LOCALBASE}/lib -R${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4"
    

    Hopefully config1.log is attached to email.

    Make results:

    make  all-recursive
    Making all in .
    Making all in lib
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../lib -I..  -I../..  -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT dummymac.o -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.o ../../lib/dummymac.c
    mv -f .deps/dummymac.Tpo .deps/dummymac.Po
    rm -f libsupport.a
    ar cru libsupport.a dummymac.o 
    ranlib libsupport.a
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo ../../libcob/common.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c  -fPIC -DPIC -o .libs/common.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo ../../libcob/move.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo ../../libcob/numeric.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo ../../libcob/strings.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo ../../libcob/fileio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo ../../libcob/call.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo ../../libcob/intrinsic.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo ../../libcob/termio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c  -fPIC -DPIC -o .libs/termio.o
    ../../libcob/termio.c: In function 'cob_display_common':
    ../../libcob/termio.c:265: warning: passing argument 1 of 'pretty_display_numeric' discards qualifiers from pointer target type
    ../../libcob/termio.c:267: warning: passing argument 1 of 'display_numeric' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo ../../libcob/screenio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo ../../libcob/reportio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c  -fPIC -DPIC -o .libs/reportio.oUnable to run make on this one. 
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo ../../libcob/cobgetopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    ../../libcob/cobgetopt.c: In function 'cob_getopt_long_long':
    ../../libcob/cobgetopt.c:578: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    ../../libcob/cobgetopt.c:601: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c -o mlio.lo ../../libcob/mlio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c  -fPIC -DPIC -o .libs/mlio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c -o mlio.o >/dev/null 2>&1
    mv -f .deps/mlio.Tpo .deps/mlio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE   -version-info 4:0:0 -no-undefined -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo mlio.lo   -lm -L/usr/local/lib -lgmp -L/usr/local/lib -lxml2 -lncurses -ldb -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib  
    libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC -o .libs/libcob.so.4.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o .libs/mlio.o   -L/usr/local/lib -lgmp -lxml2 -lpthread -lz -llzma -lm -lncurses -ldb -lintl -liconv  -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -pthread   -pthread
    libtool: link: ar cru .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o mlio.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in bin
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../bin -I..  -I../..  -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobcrun.o -MD -MP -MF .deps/cobcrun.Tpo -c -o cobcrun.o ../../bin/cobcrun.c
    mv -f .deps/cobcrun.Tpo .deps/cobcrun.Po
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE  -Wl,-E -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1 -o cobcrun cobcrun.o -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib ../lib/libsupport.a  ../libcob/libcob.la  
    libtool: link: gcc -std=gnu99 -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -Wl,-E -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobcrun cobcrun.o  -L/usr/local/lib ../lib/libsupport.a -L../libcob/.libs -lcob -lgmp -lxml2 -lz -llzma -lpthread -lm -lncurses -ldb -lintl -liconv -pthread -Wl,-rpath,/usr/local/lib
    ld: error: undefined symbol: cob_common_init
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    
    ld: error: undefined symbol: print_info_detailed
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    collect2: ld returned 1 exit status
    *** Error 1 in bin (Makefile:565 'cobcrun')
    *** Error 1 in . (Makefile:652 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnucobol-3.1-rc1/build1 (Makefile:535 'all')
    
    cd ../build2
    doas sh ../configure CPPFLAGS="-I$/usr/local/include/db4"
    

    Results in config2.log

    BDB error gives incomplete config. Unable to make.

     
  • Simon Sobisch

    Simon Sobisch - 2020-08-24

    Thank you for providing these notes. config2.log is interesting because of the following:

    • -I/usr/local/include get's auto-included (by pkg-config for GMP, installed with the official "gmp" name)
    • BDB test fails as follows:
      configure:17360: gcc -std=gnu99 -o conftest -O2 -I/usr/local/include/db4 -I/usr/local/include conftest.c -ldb >&5 ld: error: unable to find library -ldb
    • so we see the include directory (from GMP) gets correctly taken over, but the library path, which is also included in GMP's pkg-config:
      configure:15168: checking if linking against libgmp with "-L/usr/local/lib -lgmp" works configure:15181: gcc -std=gnu99 -o conftest -O2 -I/usr/local/include/db4 -I/usr/local/include conftest.c -L/usr/local/lib -lgmp >&5
      is not included
    • this one even happens in GMP checks which is definitely wrong:
      checking for __gmp_get_memory_functions in -lgmp configure:15486: gcc -std=gnu99 -o conftest -O2 -I/usr/local/include/db4 -I/usr/local/include conftest.c -lgmp >&5 ld: error: unable to find library -lgmp

    ... so I have something to fix the configure script in any case here.

    And config1.log shows that the user-specified LDFLAGS are inserted before the main libtool, this can be fixed with adjusting the two Makefiles. You should be able to adjust

    #bin/Makefile.in
    -cobcrun_LDADD = $(PROGRAMS_LIBS) $(top_builddir)/lib/libsupport.a \
    -   $(top_builddir)/libcob/libcob.la $(CODE_COVERAGE_LIBS)
    +cobcrun_LDADD = $(top_builddir)/lib/libsupport.a \
    +   $(top_builddir)/libcob/libcob.la \
    +   $(PROGRAMS_LIBS) $(CODE_COVERAGE_LIBS)
    #cobc/Makefile.in
    -cobc_LDADD = $(PROGRAMS_LIBS) $(top_builddir)/lib/libsupport.a \
    -   $(top_builddir)/libcob/libcob.la $(CODE_COVERAGE_LIBS)
    +cobc_LDADD = $(top_builddir)/lib/libsupport.a \
    +   $(top_builddir)/libcob/libcob.la \
    +   $(PROGRAMS_LIBS) $(CODE_COVERAGE_LIBS)
    

    and be able to go on with "build1".

    GnuCOBOL should likely put all those into the libcob.la file and remove the additional entries alltogether, but I need to check that.

     
  • Anonymous

    Anonymous - 2020-08-24

    After Makefile changes.

    Running "../configure" produces the incomplete configuration attached as config.log-with-db.

    Running "..configure --without-db produces the completed configuration attached as config.log-without-db.

    Running the without-db config produces the following make output:

    Creating defaults.h...
    Creating tarstamp.h...
    make  all-recursive
    Making all in .
    Making all in lib
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../lib -I..  -I../..  -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT dummymac.o -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.o ../../lib/dummymac.c
    mv -f .deps/dummymac.Tpo .deps/dummymac.Po
    rm -f libsupport.a
    ar cru libsupport.a dummymac.o 
    ranlib libsupport.a
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo ../../libcob/common.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c  -fPIC -DPIC -o .libs/common.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo ../../libcob/move.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo ../../libcob/numeric.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo ../../libcob/strings.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo ../../libcob/fileio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo ../../libcob/call.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo ../../libcob/intrinsic.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo ../../libcob/termio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c  -fPIC -DPIC -o .libs/termio.o
    ../../libcob/termio.c: In function 'cob_display_common':
    ../../libcob/termio.c:265: warning: passing argument 1 of 'pretty_display_numeric' discards qualifiers from pointer target type
    ../../libcob/termio.c:267: warning: passing argument 1 of 'display_numeric' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo ../../libcob/screenio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo ../../libcob/reportio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c  -fPIC -DPIC -o .libs/reportio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo ../../libcob/cobgetopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    ../../libcob/cobgetopt.c: In function 'cob_getopt_long_long':
    ../../libcob/cobgetopt.c:578: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    ../../libcob/cobgetopt.c:601: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c -o mlio.lo ../../libcob/mlio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c  -fPIC -DPIC -o .libs/mlio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c -o mlio.o >/dev/null 2>&1
    mv -f .deps/mlio.Tpo .deps/mlio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE   -version-info 4:0:0 -no-undefined -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo mlio.lo   -lm -L/usr/local/lib -lgmp -L/usr/local/lib -lxml2 -lncurses -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib  
    libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC -o .libs/libcob.so.4.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o .libs/mlio.o   -L/usr/local/lib -lgmp -lxml2 -lpthread -lz -llzma -lm -lncurses -lintl -liconv  -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -pthread   -pthread
    libtool: link: ar cru .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o mlio.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in bin
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../bin -I..  -I../..  -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobcrun.o -MD -MP -MF .deps/cobcrun.Tpo -c -o cobcrun.o ../../bin/cobcrun.c
    mv -f .deps/cobcrun.Tpo .deps/cobcrun.Po
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE  -Wl,-E -Wl,-z,relro,-z,now,-O1 -o cobcrun cobcrun.o ../lib/libsupport.a  ../libcob/libcob.la  -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib  
    libtool: link: gcc -std=gnu99 -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -Wl,-E -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobcrun cobcrun.o  ../lib/libsupport.a -L../libcob/.libs -lcob -L/usr/local/lib -lgmp -lxml2 -lz -llzma -lpthread -lm -lncurses -lintl -liconv -pthread -Wl,-rpath,/usr/local/lib
    "../pre-inst-env" /bin/sh /home/puffy/gnucobol-3.1-rc1/build_aux/missing help2man --output=cobcrun.1 --info-page=gnucobol cobcrun
    /home/puffy/gnucobol-3.1-rc1/build_aux/missing[81]: help2man: not found
    WARNING: 'help2man' is missing on your system.
             You should only need it if you modified a dependency of a man page.
             You may want to install the GNU Help2man package:
             <https://www.gnu.org/software/help2man/>
    *** Error 127 in bin (Makefile:1012 'cobcrun.1')
    *** Error 1 in . (Makefile:652 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnucobol-3.1-rc1/build1 (Makefile:535 'all')
    daylight$ pwd
    /home/puffy/gnucobol-3.1-rc1/build1
    
     
    • Simon Sobisch

      Simon Sobisch - 2020-08-25

      Yes, the configure command should (for now) stay the same as the working bdb one from above. The help2man part may be invoked because of the changed Makefiles, we can ignore that for now, just touch bin/cobcrun1.c cobc/cobc.1 to skip that.

       
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-25

    In a fresh build directory, on a fresh putty terminal:

    doas ../configure --without-db
    

    creates the attached config.log

    doas touch bin/cobcrun1.c cobc/cobc.1
    doas make
    

    Produces the following output:

    Creating defaults.h...
    Creating tarstamp.h...
    make  all-recursive
    Making all in .
    Making all in lib
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../lib -I..  -I../..  -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT dummymac.o -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.o ../../lib/dummymac.c
    mv -f .deps/dummymac.Tpo .deps/dummymac.Po
    rm -f libsupport.a
    ar cru libsupport.a dummymac.o
    ranlib libsupport.a
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo ../../libcob/common.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c  -fPIC -DPIC -o .libs/common.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo ../../libcob/move.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo ../../libcob/numeric.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo ../../libcob/strings.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo ../../libcob/fileio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo ../../libcob/call.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo ../../libcob/intrinsic.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo ../../libcob/termio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c  -fPIC -DPIC -o .libs/termio.o
    ../../libcob/termio.c: In function 'cob_display_common':
    ../../libcob/termio.c:265: warning: passing argument 1 of 'pretty_display_numeric' discards qualifiers from pointer target type
    ../../libcob/termio.c:267: warning: passing argument 1 of 'display_numeric' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo ../../libcob/screenio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo ../../libcob/reportio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c  -fPIC -DPIC -o .libs/reportio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo ../../libcob/cobgetopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    ../../libcob/cobgetopt.c: In function 'cob_getopt_long_long':
    ../../libcob/cobgetopt.c:578: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    ../../libcob/cobgetopt.c:601: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c -o mlio.lo ../../libcob/mlio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c  -fPIC -DPIC -o .libs/mlio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c -o mlio.o >/dev/null 2>&1
    mv -f .deps/mlio.Tpo .deps/mlio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE   -version-info 4:0:0 -no-undefined -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo mlio.lo   -lm -L/usr/local/lib -lgmp -L/usr/local/lib -lxml2 -lncurses -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC -o .libs/libcob.so.4.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o .libs/mlio.o   -L/usr/local/lib -lgmp -lxml2 -lpthread -lz -llzma -lm -lncurses -lintl -liconv  -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -pthread   -pthread
    libtool: link: ar cru .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o mlio.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in bin
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../bin -I..  -I../..  -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobcrun.o -MD -MP -MF .deps/cobcrun.Tpo -c -o cobcrun.o ../../bin/cobcrun.c
    mv -f .deps/cobcrun.Tpo .deps/cobcrun.Po
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE  -Wl,-E -Wl,-z,relro,-z,now,-O1 -o cobcrun cobcrun.o ../lib/libsupport.a  ../libcob/libcob.la  -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: gcc -std=gnu99 -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -Wl,-E -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobcrun cobcrun.o  ../lib/libsupport.a -L../libcob/.libs -lcob -L/usr/local/lib -lgmp -lxml2 -lz -llzma -lpthread -lm -lncurses -lintl -liconv -pthread -Wl,-rpath,/usr/local/lib
    "../pre-inst-env" /bin/sh /home/puffy/gnucobol-3.1-rc1/build_aux/missing help2man --output=cobcrun.1 --info-page=gnucobol cobcrun
    /home/puffy/gnucobol-3.1-rc1/build_aux/missing[81]: help2man: not found
    WARNING: 'help2man' is missing on your system.
             You should only need it if you modified a dependency of a man page.
             You may want to install the GNU Help2man package:
             <https://www.gnu.org/software/help2man/>
    *** Error 127 in bin (Makefile:1012 'cobcrun.1')
    *** Error 1 in . (Makefile:652 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnucobol-3.1-rc1/build-test (Makefile:535 'all')
    
     
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-25

    and here is the promised config.log...

     
  • Gerald Chudyk

    Gerald Chudyk - 2020-08-25

    Just to help the make output look a bit cleaner, I installed the help2man package and things look a bit different.

    doas make clean
    doas make
    
    make  all-recursive
    Making all in .
    Making all in lib
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../lib -I..  -I../..  -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT dummymac.o -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.o ../../lib/dummymac.c
    mv -f .deps/dummymac.Tpo .deps/dummymac.Po
    rm -f libsupport.a
    ar cru libsupport.a dummymac.o
    ranlib libsupport.a
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo ../../libcob/common.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c  -fPIC -DPIC -o .libs/common.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT common.lo -MD -MP -MF .deps/common.Tpo -c ../../libcob/common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo ../../libcob/move.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT move.lo -MD -MP -MF .deps/move.Tpo -c ../../libcob/move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo ../../libcob/numeric.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c ../../libcob/numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo ../../libcob/strings.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c ../../libcob/strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo ../../libcob/fileio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c ../../libcob/fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo ../../libcob/call.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT call.lo -MD -MP -MF .deps/call.Tpo -c ../../libcob/call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo ../../libcob/intrinsic.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c ../../libcob/intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo ../../libcob/termio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c  -fPIC -DPIC -o .libs/termio.o
    ../../libcob/termio.c: In function 'cob_display_common':
    ../../libcob/termio.c:265: warning: passing argument 1 of 'pretty_display_numeric' discards qualifiers from pointer target type
    ../../libcob/termio.c:267: warning: passing argument 1 of 'display_numeric' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c ../../libcob/termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo ../../libcob/screenio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c ../../libcob/screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo ../../libcob/reportio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c  -fPIC -DPIC -o .libs/reportio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c ../../libcob/reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo ../../libcob/cobgetopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    ../../libcob/cobgetopt.c: In function 'cob_getopt_long_long':
    ../../libcob/cobgetopt.c:578: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    ../../libcob/cobgetopt.c:601: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c ../../libcob/cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I../../libcob -I..  -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c -o mlio.lo ../../libcob/mlio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c  -fPIC -DPIC -o .libs/mlio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../libcob -I.. -I../.. -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c ../../libcob/mlio.c -o mlio.o >/dev/null 2>&1
    mv -f .deps/mlio.Tpo .deps/mlio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE   -version-info 4:0:0 -no-undefined -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo mlio.lo   -lm -L/usr/local/lib -lgmp -L/usr/local/lib -lxml2 -lncurses -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC -o .libs/libcob.so.4.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o .libs/mlio.o   -L/usr/local/lib -lgmp -lxml2 -lpthread -lz -llzma -lm -lncurses -lintl -liconv  -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -pthread   -pthread
    libtool: link: ar cru .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o mlio.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in bin
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../bin -I..  -I../..  -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -MT cobcrun.o -MD -MP -MF .deps/cobcrun.Tpo -c -o cobcrun.o ../../bin/cobcrun.c
    mv -f .deps/cobcrun.Tpo .deps/cobcrun.Po
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE  -Wl,-E -Wl,-z,relro,-z,now,-O1 -o cobcrun cobcrun.o ../lib/libsupport.a  ../libcob/libcob.la  -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: gcc -std=gnu99 -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -U_FORTIFY_SOURCE -Wl,-E -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobcrun cobcrun.o  ../lib/libsupport.a -L../libcob/.libs -lcob -L/usr/local/lib -lgmp -lxml2 -lz -llzma -lpthread -lm -lncurses -lintl -liconv -pthread -Wl,-rpath,/usr/local/lib
    Making all in cobc
    /bin/sh ../../build_aux/ylwrap ../../cobc/ppparse.y y.tab.c ppparse.c y.tab.h `echo ppparse.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/  -e s/c++$/h++/ -e s/c$/h/` y.output ppparse.output -- yacc
    /home/puffy/gnucobol-3.1-rc1/build-test/cobc/../../cobc/ppparse.y:24: syntax error
    %defines?
    ^
    *** Error 1 in cobc (Makefile:642 'ppparse.c')
    *** Error 1 in . (Makefile:652 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnucobol-3.1-rc1/build-test (Makefile:535 'all')
    
     
    • Simon Sobisch

      Simon Sobisch - 2020-08-26

      There's something really strange as your environment tries to updating a bunch of files it should not update. Where did you get the 3.1rc1 source from?

       

      Last edit: Simon Sobisch 2020-08-26
  • Gerald Chudyk

    Gerald Chudyk - 2020-11-06

    doas sh ./configure LDFLAGS="-L${LOCALBASE}/lib -R${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4"

    > doas make
    make  all-recursive
    Making all in .
    Making all in lib
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -W[](https://)all -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT dummymac.lo -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.lo dummymac.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT dummymac.lo -MD -MP -MF .deps/dummymac.Tpo -c dummymac.c  -fPIC -DPIC -o .libs/dummymac.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT dummymac.lo -MD -MP -MF .deps/dummymac.Tpo -c dummymac.c -o dummymac.o >/dev/null 2>&1
    mv -f .deps/dummymac.Tpo .deps/dummymac.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k  -static -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1 -o libsupport.la  dummymac.lo
    libtool: link: ar cru .libs/libsupport.a  dummymac.o
    libtool: link: ranlib .libs/libsupport.a
    libtool: link: ( cd ".libs" && rm -f "libsupport.la" && ln -s "../libsupport.la" "libsupport.la" )
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo common.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c  -fPIC -DPIC -o .libs/common.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo move.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo numeric.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo strings.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo fileio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo call.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo intrinsic.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo termio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c  -fPIC -DPIC -o .libs/termio.o
    termio.c: In function 'cob_display_common':
    termio.c:254: warning: passing argument 1 of 'pretty_display_numeric' discards qualifiers from pointer target type
    termio.c:256: warning: passing argument 1 of 'display_numeric' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo screenio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo reportio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c  -fPIC -DPIC -o .libs/reportio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo cobgetopt.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    cobgetopt.c: In function 'cob_getopt_long_long':
    cobgetopt.c:578: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    cobgetopt.c:601: warning: passing argument 1 of 'exchange' discards qualifiers from pointer target type
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c -o mlio.lo mlio.c
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c mlio.c  -fPIC -DPIC -o .libs/mlio.o
    libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c mlio.c -o mlio.o >/dev/null 2>&1
    mv -f .deps/mlio.Tpo .deps/mlio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k   -version-info 4:0:0 -no-undefined -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo mlio.lo   -lm -L/usr/local/lib -lgmp -L/usr/local/lib -lxml2 -L/usr/local/lib -ljson-c -lncurses -ldb -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC -o .libs/libcob.so.4.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o .libs/mlio.o   -L/usr/local/lib -lgmp -lxml2 -lpthread -lz -llzma -lm -ljson-c -lncurses -ldb -lintl -liconv  -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -pthread   -pthread
    libtool: link: ar cru .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o mlio.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in bin
    gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include -I/usr/local/include/db4 -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobcrun.o -MD -MP -MF .deps/cobcrun.Tpo -c -o cobcrun.o cobcrun.c
    mv -f .deps/cobcrun.Tpo .deps/cobcrun.Po
    /bin/sh ../libtool  --tag=CC    --mode=link gcc -std=gnu99  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k   -L/usr/local/lib -R/usr/local/lib -Wl,-z,relro,-z,now,-O1 -o cobcrun cobcrun.o -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib ../libcob/libcob.la  ../lib/libsupport.la
    libtool: link: gcc -std=gnu99 -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobcrun cobcrun.o  -L/usr/local/lib -L../libcob/.libs -lcob -lgmp -lxml2 -lz -llzma -lpthread -lm -ljson-c -lncurses -ldb -lintl -liconv ../lib/.libs/libsupport.a -pthread -Wl,-rpath,/usr/local/lib
    ld: error: undefined symbol: cob_common_init
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    
    ld: error: undefined symbol: print_version_summary
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    
    ld: error: undefined symbol: print_info_detailed
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    
    ld: error: undefined symbol: cob_init_nomain
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    >>> referenced by cobcrun.c
    >>>               cobcrun.o:(main)
    collect2: ld returned 1 exit status
    *** Error 1 in bin (Makefile:563 'cobcrun')
    *** Error 1 in . (Makefile:651 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnucobol-3.1-dev (Makefile:534 'all')
    > 
    
     
    • Simon Sobisch

      Simon Sobisch - 2022-10-16

      That was a while ago, as I see it there was an issue with using the correct header during compilation in the scenario:

      • old GnuCOBOL installed
      • new GnuCOBOL to be installed in the same prefix as before
      • compilation fails because the wrong headers (the old ones) are used

      @gchudyk: That definitely works under 3.2 dev on Debian; as 3.2rc1 is near the front door and I don't have an OpenBSD installation around: Could you please check the nightly build tarball from https://ci.appveyor.com/api/buildjobs/rvw0arur14lx9yyd/artifacts/gnucobol-3.2-dev.tar.xz in the same scenario (and run make checkall after compilation)?

       
  • Anonymous

    Anonymous - 2022-10-17

    I currently have the OpenBSD package installed as gnucobol-3.1.2p0

    Downloaded gnucobol-3.2-dev.tar.xz and unpacked into my user directory as gnucobol-3.2-dev.

    If I run a clean ./configure I get the following at the tail end:

    configure: Checks for Berkeley DB ...
    checking db.h usability... yes
    checking db.h presence... yes
    checking for db.h... yes
    configure: error: Unable to extract Berkeley DB version information from db.h
    

    So I use the --without-db option as follows:

    daylight$cd gnucobol-3.2-dev
    daylight$ doas ./configure --without-db
    daylight$ doas make
    daylight$ doas make checkall

    Results as follows:

    daylight$ doas ./configure --without-db
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... build_aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for make... make
    checking whether make can handle common constructs... yes
    checking whether make supports order-only prerequisites... no
    checking whether CFLAGS -O can be modified... yes
    checking for gcc... no
    checking for icc... no
    checking for xlc... no
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking whether cc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of cc... gcc3
    checking how to run the C preprocessor... cc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for windres... no
    checking for ar... ar
    checking the archiver (ar) interface... ar
    checking build system type... x86_64-unknown-openbsd7.1
    checking host system type... x86_64-unknown-openbsd7.1
    checking how to print strings... print -r
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 393216
    checking how to convert x86_64-unknown-openbsd7.1 file names to x86_64-unknown-openbsd7.1 format... func_convert_file_noop
    checking how to convert x86_64-unknown-openbsd7.1 file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
    checking for dlltool... no
    checking how to associate runtime and link libraries... print -r --
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from cc object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if cc supports -fno-rtti -fno-exceptions... yes
    checking for cc option to produce PIC... -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works... yes
    checking if cc static flag -static works... yes
    checking if cc supports -c -o file.o... yes
    checking if cc supports -c -o file.o... (cached) yes
    checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... yes
    checking dynamic linker characteristics... openbsd7.1 ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... no
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking if flex is the lexer generator... yes
    checking for bison... no
    checking for byacc... no
    checking if bison is the parser generator... no
    checking for diff arguments... not supported
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for sys/types.h... (cached) yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking for dlfcn.h... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking whether byte ordering is bigendian... no
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for sig_atomic_t... yes
    checking for inline keyword... __inline
    checking for vprintf... yes
    checking for _doprnt... no
    checking for memmove... yes
    checking for memset... yes
    checking for setlocale... yes
    checking for fcntl... yes
    checking for strerror... yes
    checking for strcasecmp... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strdup... yes
    checking for strstr... yes
    checking for strtol... yes
    checking for gettimeofday... yes
    checking for localeconv... yes
    checking for getexecname... no
    checking for canonicalize_file_name... no
    checking for popen... yes
    checking for raise... yes
    checking for readlink... yes
    checking for realpath... yes
    checking for setenv... yes
    checking for strcoll... yes
    checking for flockfile... yes
    checking for timezone variable access... yes
    checking for designated initializers... yes
    checking for __INTEL_COMPILER... no
    checking for __clang__... yes
    checking for __xlc__... no
    checking for __WATCOMC__... no
    configure: Checks for math library ...
    configure: none needed
    checking whether to build with code coverage support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    configure: Checks for GMP/MPIR ...
    checking for gmp... yes
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking if linking against libgmp with "-L/usr/local/lib -lgmp" works... yes
    checking matching GMP version... yes (6.2)
    checking for __gmp_get_memory_functions in -lgmp... no
    checking for libxml-2.0... yes
    checking libxml/xmlversion.h usability... yes
    checking libxml/xmlversion.h presence... yes
    checking for libxml/xmlversion.h... yes
    checking libxml/uri.h usability... yes
    checking libxml/uri.h presence... yes
    checking for libxml/uri.h... yes
    checking libxml/xmlwriter.h usability... yes
    checking libxml/xmlwriter.h presence... yes
    checking for libxml/xmlwriter.h... yes
    checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... yes
    checking if linking against libxml2 with "-L/usr/local/lib -lxml2" works... yes
    configure: Checks for JSON handler
    configure: Checks for local cJSON ...
    configure: using local cJSON: no
    checking for libcjson... no
    checking cJSON.h usability... no
    checking cJSON.h presence... no
    checking for cJSON.h... no
    checking cjson/cJSON.h usability... no
    checking cjson/cJSON.h presence... no
    checking for cjson/cJSON.h... no
    configure: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in "libcob"
    checking for json-c... yes
    checking json.h usability... yes
    checking json.h presence... yes
    checking for json.h... yes
    checking if linking against libjson-c with "-L/usr/local/lib -ljson-c" works... yes
    checking for clock_gettime and CLOCK_REALTIME... yes
    checking for isfinite... yes
    checking for fdatasync... yes
    checking for sigaction... yes
    checking for fmemopen... yes
    checking whether fdatasync is declared... yes
    checking whether fmemopen is declared... yes
    configure: Checks for curses ...
    checking for initscr in -lncursesw... yes
    checking ncursesw/ncurses.h usability... no
    checking ncursesw/ncurses.h presence... no
    checking for ncursesw/ncurses.h... no
    checking ncursesw/curses.h usability... no
    checking ncursesw/curses.h presence... no
    checking for ncursesw/curses.h... no
    checking for _WIN32... no
    checking for dlopen in -lc... yes
    checking for support of computed gotos... yes
    configure: Checks for different sizes ...
    checking size of long int... 8
    checking size of long long... 8
    checking size of long... 8
    checking size of void *... 8
    checking if size of long int = size of long long... yes
    checking if long is 32 bits... no
    checking if pointer is longer than 32 bits... yes
    checking for aligned attribute... yes
    checking for pure attribute... yes
    checking whether NLS is requested... yes
    checking for msgfmt... no
    checking for gmsgfmt... :
    checking for xgettext... no
    checking for msgmerge... no
    checking for CFPreferencesCopyAppValue... (cached) no
    checking for CFLocaleCopyPreferredLanguages... no
    checking for GNU gettext in libc... no
    checking for iconv... yes
    checking for working iconv... yes
    checking how to link with libiconv... /usr/local/lib/libiconv.so.7.0
    checking for GNU gettext in libintl... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... external libintl
    checking how to link with libintl... /usr/local/lib/libintl.so.7.0 -L/usr/local/lib /usr/local/lib/libiconv.so.7.0 -Wl,-rpath,/usr/local/lib
    checking for nl_langinfo and CODESET... yes
    checking for debug option -ggdb3... yes
    checking for debug option -fasynchronous-unwind-tables... yes
    checking for -pipe option... yes
    checking for gcc pointer sign option... yes
    checking for ld bind now option... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libcob/Makefile
    config.status: creating lib/Makefile
    config.status: creating cobc/Makefile
    config.status: creating bin/Makefile
    config.status: creating po/Makefile.in
    config.status: creating doc/Makefile
    config.status: creating config/Makefile
    config.status: creating copy/Makefile
    config.status: creating tests/Makefile
    config.status: creating tests/cobol85/Makefile
    config.status: creating extras/Makefile
    config.status: creating bin/cob-config
    config.status: creating pre-inst-env
    config.status: creating tests/atlocal
    config.status: creating tests/run_prog_manual.sh
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing tests/atconfig commands
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    config.status: creating po/POTFILES
    config.status: creating po/Makefile
    config.status: executing chmod commands
    configure: GnuCOBOL Configuration:
    configure:  CC                cc
    configure:  CFLAGS            -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k
    configure:  LDFLAGS            -Wl,-z,relro,-z,now,-O1
    configure:  PROGRAMS_LIBS         -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    configure:  COB_CC            cc
    configure:  COB_CFLAGS        -pipe -I/usr/local/include -I/usr/local/include -Wno-unused -fsigned-char -Wno-pointer-sign -Qunused-arguments
    configure:  COB_LDFLAGS
    configure:  COB_DEBUG_FLAGS   -ggdb3 -fasynchronous-unwind-tables
    configure:  COB_LIBS          -L${exec_prefix}/lib -lcob
    configure:  COB_CONFIG_DIR    ${datarootdir}/gnucobol/config
    configure:  COB_COPY_DIR      ${datarootdir}/gnucobol/copy
    configure:  COB_LIBRARY_PATH  ${exec_prefix}/lib/gnucobol
    configure:  COB_OBJECT_EXT    o
    configure:  COB_MODULE_EXT    so
    configure:  COB_EXE_EXT
    configure:  COB_SHARED_OPT    -shared
    configure:  COB_PIC_FLAGS     -fPIC -DPIC
    configure:  COB_EXPORT_DYN    -Wl,-E
    configure:  COB_STRIP_CMD     strip --strip-unneeded
    configure:  Dynamic loading:                             System
    configure:  Use gettext for international messages:      yes
    configure:  Use fcntl for file locking:                  yes
    configure:  Use math multiple precision library:         gmp
    configure:  screen I/O (no curses found):                NO
    configure:  INDEXED I/O (no handler configured):         NO
    configure:  Used for XML I/O:                            libxml2
    configure:  Used for JSON I/O:                           json-c
    
    daylight$ doas make
    make  all-recursive
    Making all in .
    Making all in lib
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT dummymac.lo -MD -MP -MF .deps/dummymac.Tpo -c -o dummymac.lo dummymac.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT dummymac.lo -MD -MP -MF .deps/dummymac.Tpo -c dummymac.c  -fPIC -DPIC -o .libs/dummymac.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT dummymac.lo -MD -MP -MF .deps/dummymac.Tpo -c dummymac.c -o dummymac.o >/dev/null 2>&1
    mv -f .deps/dummymac.Tpo .deps/dummymac.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link cc  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k  -static -Wl,-z,relro,-z,now,-O1 -o libsupport.la  dummymac.lo
    libtool: link: ar cr .libs/libsupport.a  dummymac.o
    libtool: link: ranlib .libs/libsupport.a
    libtool: link: ( cd ".libs" && rm -f "libsupport.la" && ln -s "../libsupport.la" "libsupport.la" )
    Making all in libcob
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo common.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c  -fPIC -DPIC -o .libs/common.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT common.lo -MD -MP -MF .deps/common.Tpo -c common.c -o common.o >/dev/null 2>&1
    mv -f .deps/common.Tpo .deps/common.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT move.lo -MD -MP -MF .deps/move.Tpo -c -o move.lo move.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c  -fPIC -DPIC -o .libs/move.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT move.lo -MD -MP -MF .deps/move.Tpo -c move.c -o move.o >/dev/null 2>&1
    mv -f .deps/move.Tpo .deps/move.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c -o numeric.lo numeric.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c  -fPIC -DPIC -o .libs/numeric.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT numeric.lo -MD -MP -MF .deps/numeric.Tpo -c numeric.c -o numeric.o >/dev/null 2>&1
    mv -f .deps/numeric.Tpo .deps/numeric.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c -o strings.lo strings.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c  -fPIC -DPIC -o .libs/strings.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT strings.lo -MD -MP -MF .deps/strings.Tpo -c strings.c -o strings.o >/dev/null 2>&1
    mv -f .deps/strings.Tpo .deps/strings.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c -o fileio.lo fileio.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c  -fPIC -DPIC -o .libs/fileio.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.c -o fileio.o >/dev/null 2>&1
    mv -f .deps/fileio.Tpo .deps/fileio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT call.lo -MD -MP -MF .deps/call.Tpo -c -o call.lo call.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c  -fPIC -DPIC -o .libs/call.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c -o call.o >/dev/null 2>&1
    mv -f .deps/call.Tpo .deps/call.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c -o intrinsic.lo intrinsic.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c  -fPIC -DPIC -o .libs/intrinsic.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT intrinsic.lo -MD -MP -MF .deps/intrinsic.Tpo -c intrinsic.c -o intrinsic.o >/dev/null 2>&1
    mv -f .deps/intrinsic.Tpo .deps/intrinsic.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c -o termio.lo termio.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c  -fPIC -DPIC -o .libs/termio.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT termio.lo -MD -MP -MF .deps/termio.Tpo -c termio.c -o termio.o >/dev/null 2>&1
    mv -f .deps/termio.Tpo .deps/termio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c -o screenio.lo screenio.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c  -fPIC -DPIC -o .libs/screenio.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT screenio.lo -MD -MP -MF .deps/screenio.Tpo -c screenio.c -o screenio.o >/dev/null 2>&1
    mv -f .deps/screenio.Tpo .deps/screenio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c -o reportio.lo reportio.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c  -fPIC -DPIC -o .libs/reportio.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT reportio.lo -MD -MP -MF .deps/reportio.Tpo -c reportio.c -o reportio.o >/dev/null 2>&1
    mv -f .deps/reportio.Tpo .deps/reportio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c -o cobgetopt.lo cobgetopt.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c  -fPIC -DPIC -o .libs/cobgetopt.o
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobgetopt.lo -MD -MP -MF .deps/cobgetopt.Tpo -c cobgetopt.c -o cobgetopt.o >/dev/null 2>&1
    mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
    /bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include   -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c -o mlio.lo mlio.c
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c mlio.c  -fPIC -DPIC -o .libs/mlio.o
    mlio.c:1310:27: warning: implicit conversion from enumeration type 'enum xml_parser_state' to different enumeration type 'enum xml_code_status' [-Wenum-conversion]
                            state->last_xml_code = XML_PARSER_HAD_FATAL_ERROR;
                                                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
    1 warning generated.
    libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/json-c -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT mlio.lo -MD -MP -MF .deps/mlio.Tpo -c mlio.c -o mlio.o >/dev/null 2>&1
    mv -f .deps/mlio.Tpo .deps/mlio.Plo
    /bin/sh ../libtool  --tag=CC    --mode=link cc  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k   -version-info 5:0:1 -no-undefined -Wl,-z,relro,-z,now,-O1 -o libcob.la -rpath /usr/local/lib common.lo move.lo numeric.lo strings.lo  fileio.lo call.lo intrinsic.lo termio.lo screenio.lo  reportio.lo cobgetopt.lo mlio.lo   -L/usr/local/lib -lgmp -L/usr/local/lib -lxml2 -L/usr/local/lib -ljson-c -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: cc -shared  -fPIC -DPIC -o .libs/libcob.so.5.0  .libs/common.o .libs/move.o .libs/numeric.o .libs/strings.o .libs/fileio.o .libs/call.o .libs/intrinsic.o .libs/termio.o .libs/screenio.o .libs/reportio.o .libs/cobgetopt.o .libs/mlio.o   -L/usr/local/lib -lgmp -lxml2 -lpthread -lz -llzma -lm -ljson-c -lintl -liconv  -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -pthread   -pthread
    libtool: link: ar cr .libs/libcob.a  common.o move.o numeric.o strings.o fileio.o call.o intrinsic.o termio.o screenio.o reportio.o cobgetopt.o mlio.o
    libtool: link: ranlib .libs/libcob.a
    libtool: link: ( cd ".libs" && rm -f "libcob.la" && ln -s "../libcob.la" "libcob.la" )
    Making all in bin
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib  -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobcrun.o -MD -MP -MF .deps/cobcrun.Tpo -c -o cobcrun.o cobcrun.c
    mv -f .deps/cobcrun.Tpo .deps/cobcrun.Po
    /bin/sh ../libtool  --tag=CC    --mode=link cc  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k   -Wl,-z,relro,-z,now,-O1 -o cobcrun cobcrun.o ../libcob/libcob.la  ../lib/libsupport.la  -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: cc -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobcrun cobcrun.o  -L../libcob/.libs -lcob -L/usr/local/lib -lgmp -lxml2 -lz -llzma -lpthread -lm -ljson-c ../lib/.libs/libsupport.a -lintl -liconv -pthread -Wl,-rpath,/usr/local/lib
    Making all in cobc
    make  all-am
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cobc.o -MD -MP -MF .deps/cobc.Tpo -c -o cobc.o cobc.c
    mv -f .deps/cobc.Tpo .deps/cobc.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT ppparse.o -MD -MP -MF .deps/ppparse.Tpo -c -o ppparse.o ppparse.c
    mv -f .deps/ppparse.Tpo .deps/ppparse.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT pplex.o -MD -MP -MF .deps/pplex.Tpo -c -o pplex.o pplex.c
    mv -f .deps/pplex.Tpo .deps/pplex.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT parser.o -MD -MP -MF .deps/parser.Tpo -c -o parser.o parser.c
    mv -f .deps/parser.Tpo .deps/parser.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT scanner.o -MD -MP -MF .deps/scanner.Tpo -c -o scanner.o scanner.c
    mv -f .deps/scanner.Tpo .deps/scanner.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.c
    mv -f .deps/config.Tpo .deps/config.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT reserved.o -MD -MP -MF .deps/reserved.Tpo -c -o reserved.o reserved.c
    mv -f .deps/reserved.Tpo .deps/reserved.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
    mv -f .deps/error.Tpo .deps/error.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT tree.o -MD -MP -MF .deps/tree.Tpo -c -o tree.o tree.c
    mv -f .deps/tree.Tpo .deps/tree.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT cconv.o -MD -MP -MF .deps/cconv.Tpo -c -o cconv.o cconv.c
    mv -f .deps/cconv.Tpo .deps/cconv.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT field.o -MD -MP -MF .deps/field.Tpo -c -o field.o field.c
    mv -f .deps/field.Tpo .deps/field.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT typeck.o -MD -MP -MF .deps/typeck.Tpo -c -o typeck.o typeck.c
    typeck.c:14342:21: warning: unused variable 'field' [-Wunused-variable]
                    struct cb_field * field = CB_FIELD (ref);
                                      ^
    1 warning generated.
    mv -f .deps/typeck.Tpo .deps/typeck.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT codegen.o -MD -MP -MF .deps/codegen.Tpo -c -o codegen.o codegen.c
    mv -f .deps/codegen.Tpo .deps/codegen.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT help.o -MD -MP -MF .deps/help.Tpo -c -o help.o help.c
    mv -f .deps/help.Tpo .deps/help.Po
    cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../lib    -I/usr/local/include  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT codeoptim.o -MD -MP -MF .deps/codeoptim.Tpo -c -o codeoptim.o codeoptim.c
    mv -f .deps/codeoptim.Tpo .deps/codeoptim.Po
    /bin/sh ../libtool  --tag=CC    --mode=link cc  -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k   -Wl,-z,relro,-z,now,-O1 -o cobc cobc.o ppparse.o pplex.o  parser.o scanner.o config.o  reserved.o error.o tree.o  cconv.o field.o typeck.o  codegen.o help.o codeoptim.o ../libcob/libcob.la  ../lib/libsupport.la  -L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib
    libtool: link: cc -O2 -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-O1 -o .libs/cobc cobc.o ppparse.o pplex.o parser.o scanner.o config.o reserved.o error.o tree.o cconv.o field.o typeck.o codegen.o help.o codeoptim.o  -L../libcob/.libs -lcob -L/usr/local/lib -lgmp -lxml2 -lz -llzma -lpthread -lm -ljson-c ../lib/.libs/libsupport.a -lintl -liconv -pthread -Wl,-rpath,/usr/local/lib
    Making all in config
    Making all in copy
    Making all in po
    Making all in extras
    ("../pre-inst-env" cobc -m -Wall -O2 -o "CBL_OC_DUMP.so" "CBL_OC_DUMP.cob" ||  "../pre-inst-env" cobc -m -Wall     -o "CBL_OC_DUMP.so" "CBL_OC_DUMP.cob" ||  "../pre-inst-env" cobc -m -Wall -vv -o "CBL_OC_DUMP.so" "CBL_OC_DUMP.cob")
    cobc:/home/puffy/gnucobol-3.2-dev/cobc/.libs/cobc: undefined symbol 'cob_hard_failure_internal'
    ld.so: cobc: relocation failed
    Killed
    cobc:/home/puffy/gnucobol-3.2-dev/cobc/.libs/cobc: undefined symbol 'cob_hard_failure_internal'
    ld.so: cobc: relocation failed
    Killed
    cobc:/home/puffy/gnucobol-3.2-dev/cobc/.libs/cobc: undefined symbol 'cob_hard_failure_internal'
    ld.so: cobc: relocation failed
    Killed
    *** Error 137 in extras (Makefile:614 'CBL_OC_DUMP.so')
    *** Error 1 in . (Makefile:661 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;  *) echo "am__make_running_wi...)
    *** Error 2 in /home/puffy/gnucobol-3.2-dev (Makefile:544 'all')
    
    daylight$ doas make checkall
    Making check in .
    Making check in lib
    Making check in libcob
    Making check in bin
    Making check in cobc
    make  check-am
    Making check in config
    Making check in copy
    Making check in po
    Making check in extras
    ("../pre-inst-env" cobc -m -Wall -O2 -o "CBL_OC_DUMP.so" "CBL_OC_DUMP.cob" ||  "../pre-inst-env" cobc -m -Wall     -o "CBL_OC_DUMP.so" "CBL_OC_DUMP.cob" ||  "../pre-inst-env" cobc -m -Wall -vv -o "CBL_OC_DUMP.so" "CBL_OC_DUMP.cob")
    cobc:/home/puffy/gnucobol-3.2-dev/cobc/.libs/cobc: undefined symbol 'cob_hard_failure_internal'
    ld.so: cobc: relocation failed
    Killed
    cobc:/home/puffy/gnucobol-3.2-dev/cobc/.libs/cobc: undefined symbol 'cob_hard_failure_internal'
    ld.so: cobc: relocation failed
    Killed
    cobc:/home/puffy/gnucobol-3.2-dev/cobc/.libs/cobc: undefined symbol 'cob_hard_failure_internal'
    ld.so: cobc: relocation failed
    Killed
    *** Error 137 in extras (Makefile:614 'CBL_OC_DUMP.so')
    *** Error 1 in /home/puffy/gnucobol-3.2-dev (Makefile:661 'check-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;; ...)
    
     
    • Simon Sobisch

      Simon Sobisch - 2022-10-17

      Out of interest: Is that "db.h" from Berkeley-DB and if yes what version is installed on the system? Even my system for compatibility-checks from year 2000 as db.h version 2.something (which is too old, so it also needs to be disabled) - but your system does not report any version [I guess 1.85 did so].

      For curses: I guess you may have a header "curses.h" which matches the libncursesw, do you? Or is there only the library without the appropriate header?

      The mlio.c:1310 warning definitely shows an error, I've fixed that in a current checkout but have to see if I've already fixed that in the pending XML PARSE commit (thet ypeck.c:14342 one definitely is).

      The last time the linking of programs in the build tree did not work; this time the execution of the uninstalled binaries does not work, which is both an improvement and quite interesting.

      Please do the following, it will very likely help:

      ./pre-inst-env cobcrun --version
      ./pre-inst-env
      $(which cobcrun)
      ldd $(which cobcrun)
      exit
      $(which cobcrun) && cobcrun --version
      ldd $(which cobcrun)
      

      I think the isue is related to rpath and that is related to the following lines seen in the configure output:

      checking where the gettext function comes from... external libintl
      checking how to link with libintl... /usr/local/lib/libintl.so.7.0 /usr/local/lib/libiconv.so.7.0 -Wl,-rpath,/usr/local/lib
      

      If this is the case: Does it work when you configure with --disable-nls?

      ... that's one of the re-occuring issues, if we can't fix it now I hope we can after 3.2-rc1.

       
      • Gerald Chudyk

        Gerald Chudyk - 2022-10-17

        Out of interest: Is that "db.h" from Berkeley-DB and if yes what version is installed on the system?

        The following is the pkg info installed on my desktop.:

        daylight$ pkg_info db
        Information for inst:db-4.6.21p7v0
        
        Comment:
        Berkeley DB package, revision 4
        
        Required by:
        apr-util-1.6.1p4
        gnucobol-3.1.2p0
        serf-1.3.9p0
        subversion-1.14.2
        thunar-vcs-0.2.0p2
        

        Not sure if this is useful, but here is the OpenBSD makefile for the above gnucobol package, which works fine at this time:

        daylight$ cat Makefile
        COMMENT=        COBOL compiler, formerly known as OpenCOBOL
        
        DISTNAME =      gnucobol-3.1.2
        REVISION =      0
        
        SHARED_LIBS +=  cob     5.0     # 5.0
        
        CATEGORIES =    lang
        
        HOMEPAGE =      https://gnucobol.sourceforge.io/
        
        # compiler: GPLv3+
        # run-time library: LGPLv3+
        PERMIT_PACKAGE =        Yes
        
        WANTLIB += c curses db gmp iconv intl json-c lzma m pthread xml2
        WANTLIB += z
        
        MASTER_SITES =  ${MASTER_SITE_GNU:=gnucobol/}
        
        # base makeinfo chokes on gnucobol texinfo files
        BUILD_DEPENDS = print/texinfo
        
        LIB_DEPENDS =   databases/db/v4 \
                        devel/gettext,-runtime \
                        devel/gmp \
                        devel/json-c \
                        textproc/libxml
        
        CONFIGURE_STYLE = gnu
        
        CONFIGURE_ENV = LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
                        CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
                        CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/db4"
        
        .include <bsd.port.mk>
        

        You're stretching me a bit here, but curses is included in the o/s. The curses.h header file is at /usr/include/curses.h and contains the following:

        /*      $OpenBSD: curses.h,v 1.5 2019/01/25 00:19:25 millert Exp $      */
        
        /*
         * Placed in the public domain by Todd C. Miller <millert@openbsd.org>
         * on June 17, 2003.
         */
        
        #ifndef _CURSES_H_
        #define _CURSES_H_
        
        #include <ncurses.h>
        
        #endif /* _CURSES_H_ */
        

        I remember playing around with curses a few years back, but ran out of time. More info here: https://man.openbsd.org/curses.

        Please do the following, it will very likely help:

        daylight$ ./pre-inst-env cobcrun --version
        cobcrun (GnuCOBOL) 3.2-dev.0
        Copyright (C) 2022 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
        This is free software; see the source for copying conditions.  There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        Written by Roger While, Simon Sobisch, Brian Tiffin
        Built     Oct 17 2022 11:48:35
        Packaged  Oct 16 2022 07:52:43 UTC
        
        libcob (GnuCOBOL) 3.1.2.0
        Copyright (C) 2020 Free Software Foundation, Inc.
        License LGPLv3+: GNU LGPL version 3 or later <http://gnu.org/licenses/lgpl.html>
        This is free software; see the source for copying conditions.  There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
        Built     Apr 08 2022 10:29:06
        Packaged  Dec 23 2020 12:04:58 UTC
        
        daylight$ ./pre-inst-env
        daylight$
        
        daylight$ $(which cobcrun)
        /home/puffy/gnucobol-3.2-dev/bin/.libs/cobcrun: missing PROGRAM name
        Try '/home/puffy/gnucobol-3.2-dev/bin/.libs/cobcrun --help' for more information.
        daylight$
        
        daylight$ ldd $(which cobcrun)
        ldd: /home/puffy/gnucobol-3.2-dev/bin/cobcrun: not an ELF executable
        

        I also did this, in case it helps.

        daylight$ ldd ./bin/.libs/cobcrun
        ./bin/.libs/cobcrun:
                Start            End              Type  Open Ref GrpRef Name
                00000de4f312a000 00000de4f3131000 exe   2    0   0      ./bin/.libs/cobcrun
                00000de74dec5000 00000de74df3c000 rlib  0    1   0      /home/puffy/gnucobol-3.2-dev/libcob/.libs/libcob.so.5.0
                00000de705e70000 00000de705eff000 rlib  0    2   0      /usr/local/lib/libgmp.so.11.0
                00000de7a41a9000 00000de7a4355000 rlib  0    2   0      /usr/local/lib/libxml2.so.17.1
                00000de7a4c23000 00000de7a4c41000 rlib  0    3   0      /usr/lib/libz.so.6.0
                00000de7dd15b000 00000de7dd188000 rlib  0    3   0      /usr/local/lib/liblzma.so.2.1
                00000de73c8b0000 00000de73c8bc000 rlib  0    4   0      /usr/lib/libpthread.so.26.1
                00000de73d90d000 00000de73d93e000 rlib  0    3   0      /usr/lib/libm.so.10.1
                00000de77fa15000 00000de77fa29000 rlib  0    2   0      /usr/local/lib/libjson-c.so.1.1
                00000de757c73000 00000de757c82000 rlib  0    2   0      /usr/local/lib/libintl.so.7.0
                00000de758668000 00000de75876a000 rlib  0    4   0      /usr/local/lib/libiconv.so.7.0
                00000de76d8a6000 00000de76d99b000 rlib  0    1   0      /usr/lib/libc.so.96.1
                00000de793456000 00000de793456000 ld.so 0    1   0      /usr/libexec/ld.so
        daylight$
        

        Not sure what the exit was for. There was nothing to exit. I think I have completely missed an important point. I'm going to blame covid, because that's what we can do now.

        daylight$ $(which cobcrun) && cobcrun --version
        /home/puffy/gnucobol-3.2-dev/bin/.libs/cobcrun: missing PROGRAM name
        Try '/home/puffy/gnucobol-3.2-dev/bin/.libs/cobcrun --help' for more information.
        
        daylight$ pwd
        /home/puffy/gnucobol-3.2-dev
        daylight$  ./bin/.libs/cobcrun  --version
        cobcrun (GnuCOBOL) 3.2-dev.0
        Copyright (C) 2022 Free Software Foundation, Inc.
        License GPLv3+: GNU GPLversion 3 or later <https://gnu.org/licenses/gpl.html>
        This is free software; see the source for copying conditions.  There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        Written by Roger While, Simon Sobisch, Brian Tiffin
        Built     Oct 17 2022 11:48:35
        Packaged  Oct 16 2022 07:52:43 UTC
        
        libcob (GnuCOBOL) 3.2-dev.0
        Copyright (C) 2022 Free Software Foundation, Inc.
        License LGPLv3+: GNU LGPL version 3 or later <https://gnu.org/licenses/lgpl.html>
        This is free software; see the source for copying conditions.  There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
        Built     Oct 17 2022 11:48:08
        Packaged  Oct 16 2022 07:52:43 UTC
        
         
        • Simon Sobisch

          Simon Sobisch - 2022-10-18

          Thank you. This shows that we should again check for "plain curses.h" when looking for ncurses (I've removed that) and it also shows that the libtool generated wrapper script "bin/cobcrun" works different than directly executing the "real" binary - even if both have the same environment (which is setup by ./pre-inst-env).
          Just to be 100% sure please do:

          /home/puffy/gnucobol-3.2-dev/pre-inst-env
          /home/puffy/gnucobol-3.2-dev/bin/cobcrun --version
          /home/puffy/gnucobol-3.2-dev/bin/.libs/cobcrun --version
          exit
          

          Note: this "exit", which you've wondered about before will leave the new shell environment that the pre-inst-env script creates if you don't pass it any program.

           
1 2 > >> (Page 1 of 2)

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.