[MacPorts] #65913: legacy-support: tests: failure due to fstatat64

MacPorts noreply at macports.org
Thu Sep 29 20:02:23 UTC 2022


#65913: legacy-support: tests: failure due to fstatat64
-----------------------------+--------------------------
  Reporter:  mascguy         |      Owner:  cjones051073
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.7.2
Resolution:                  |   Keywords:
      Port:  legacy-support  |
-----------------------------+--------------------------

Comment (by kencu):

 I get much the same, but a warning not an error, on 10.13:

 {{{
 /usr/bin/clang -c -std=c99 -Iinclude -Os -arch x86_64
 test/test_fstatat64.c -o test/test_fstatat64.o
 test/test_fstatat64.c:81:12: warning: 'stat64' is deprecated: first
 deprecated in macOS 10.6 [-Wdeprecated-declarations]
   if (0 != stat64 (argv[0], &orig_stat64)) {
            ^
 /usr/include/sys/stat.h:402:5: note: 'stat64' has been explicitly marked
 deprecated here
 int     stat64(const char *, struct stat64 *)
 __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA);
         ^
 test/test_fstatat64.c:93:12: warning: implicit declaration of function
 'fstatat64' is invalid in C99 [-Wimplicit-function-declaration]
   if (0 != fstatat64 (AT_FDCWD, argv[0], &atfdcwd_stat64, 0)) {
            ^
 2 warnings generated.
 /usr/bin/clang -Llib -L/opt/local/lib -Wl,-headerpad_max_install_names
 -arch x86_64 test/test_fstatat64.o -lMacportsLegacySupport -o
 test/test_fstatat64
 test/test_fstatat64
 }}}

 I guess that test should be looked at more carefully to see when/if it
 should be run.

-- 
Ticket URL: <https://trac.macports.org/ticket/65913#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list