Hi Marty, Am 09.07.2024 um 20:42 schrieb Marty Heyman:
When I run: ---- identification division. program-id. hello. procedure division. display "Hello World". end program hello. ---- with `cobc -free -j hello.cob` I get: — air:~$ cobc -free -j hello.cob ld: warning: -undefined suppress is deprecated ld: warning: -undefined suppress is deprecated Hello World air:~$ man cobc air:~$ cobc --version cobc (GnuCOBOL) 3.1.2.0 Copyright (C) 2020 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 Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart Built May 31 2022 11:49:28 Packaged Dec 23 2020 12:04:58 UTC C version "Apple LLVM 13.1.6 (clang-1316.0.21.2.5)" air:~$ — Are those two ld warnings “working as designed” or are they an indicator of something that should be fixed?
I _guess_ you use a pre-built package? Then please check back with the package manager as this is from the build system, not from GnuCOBOL itself. If you know what's "offending" that ld of yours you can also override that via environment variables. Also note that GC 3.1.2 is outdated and it is highly suggested to switch to GnuCOBOL 3.2 (as newer package may also picked up newer defaults and by that don't show the warnings). In any case you want to add the --verbose option to see what GnuCOBOL executes for each step. Use "-vv" to pass that verbose option to the invoked external programs as well (-vvv is the maximum, but not supported in all environments). Apart from that you possible want to build GC32 from source, both to have full control and be able to tweak the "default calls" before building and to see if the warning "magically vanishes". Simon