Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Compiling fails on MacOS



Hi,

with source cvs'updated some minutes ago on MacOS:

> sw_vers 
ProductName:		macOS
ProductVersion:		15.1
BuildVersion:		24B83

using newest Developer-Tools updated yesterday:

> gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: x86_64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin


+ cc -O -no-cpp-precomp -fno-omit-frame-pointer -fno-optimize-sibling-calls -I/u/NetBSD/arch/amd64/TOOLS/include/compat -I/u/NetBSD/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/u/NetBSD/src/tools/ctags/../../usr.bin/ctags -c -o ctags.lo.o /u/NetBSD/src/tools/ctags/../../usr.bin/ctags/ctags.c
/u/NetBSD/src/tools/ctags/../../usr.bin/ctags/ctags.c:144:12: error: call to undeclared function 'shquote'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  144 |         if ((sz = shquote(outfile, tname, sizeof tname)) >= sizeof tname) {
      |                   ^
1 error generated.

*** Failed target:  ctags.lo



With the same source on NetBSD-amd86 this is only a "warning" and the compile succeeds:

     create  ctags/.depend
    compile  ctags/C.lo
    compile  ctags/ctags.lo
    compile  ctags/fortran.lo
    compile  ctags/lisp.lo
/u/NetBSD/src.ks/tools/ctags/../../usr.bin/ctags/ctags.c: In function 'main':
/u/NetBSD/src.ks/tools/ctags/../../usr.bin/ctags/ctags.c:144:19: warning: implicit declaration of function 'shquote' [-Wimplicit-function-declaration]
  144 |         if ((sz = shquote(outfile, tname, sizeof tname)) >= sizeof tname) {
      |                   ^~~~~~~
    compile  ctags/print.lo
    compile  ctags/tree.lo
    compile  ctags/yacc.lo
       link  ctags/ctags


Kurt


Home | Main Index | Thread Index | Old Index