[MacPorts] #55369: aide @0.15.1_1: update to 0.16

MacPorts noreply at macports.org
Tue Nov 21 11:05:54 UTC 2017


#55369: aide @0.15.1_1: update to 0.16
----------------------+------------------
 Reporter:  l2dy      |      Owner:
     Type:  update    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:  haspatch  |       Port:  aide
----------------------+------------------
 FTBFS: `src/compare_db.c:113:34: error: initializer element is not a
 compile-time constant`

 {{{
 depbase=`echo src/compare_db.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
         /usr/bin/clang -DLOCALEDIR=\"/opt/local/share/locale\"
 -DHAVE_CONFIG_H -I.  -I. -I./include -I./src -I./src -I/opt/local/include
 -D_GNU_SOURCE -W -Wall -g  -MT src/compare_db.o -MD -MP -MF $depbase.Tpo
 -c -o src/compare_db.o src/compare_db.c &&\
         mv -f $depbase.Tpo $depbase.Po
 src/compare_db.c:113:34: error: initializer element is not a compile-time
 constant
 const char* details_string[] = { _("File type") , _("Lname"), _("Size"),
 _("Size (>)"), _("Bcount"), _("Perm"), _("Uid"), _("Gid"), _("Atime"),
 _("Mtime"), _("Ctime"), _("Inode"), _("Linkcount"), _("MD5"), _("SHA1"),
 _("RMD160"), _("TIGER"), _("SHA256"), _("SHA512")
                                  ^~~~~~~~~~~~~~
 ./include/locale-aide.h:28:17: note: expanded from macro '_'
 #define _(Text) gettext(Text)
                 ^~~~~~~~~~~~~
 /opt/local/include/libintl.h:132:18: note: expanded from macro 'gettext'
 # define gettext libintl_gettext
                  ^
 src/compare_db.c:417:9: warning: format specifies type 'long' but the
 argument has type 'off_t' (aka 'long long') [-Wformat]
         easy_number((DB_SIZE|DB_SIZEG),size,"%li")
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                              %lli
 src/compare_db.c:392:31: note: expanded from macro 'easy_number'
     snprintf(*values[0], l, c,line->b);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_stdio.h:57:62:
 note: expanded from macro 'snprintf'
   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                              ^~~~~~~~~~~
 src/compare_db.c:423:9: warning: format specifies type 'long' but the
 argument has type 'blkcnt_t' (aka 'long long') [-Wformat]
         easy_number(DB_BCOUNT,bcount,"%li")
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                       %lli
 src/compare_db.c:392:31: note: expanded from macro 'easy_number'
     snprintf(*values[0], l, c,line->b);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_stdio.h:57:62:
 note: expanded from macro 'snprintf'
   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                              ^~~~~~~~~~~
 src/compare_db.c:426:9: warning: format specifies type 'unsigned long' but
 the argument has type 'ino_t' (aka 'unsigned long long') [-Wformat]
         easy_number(DB_INODE,inode,"%lu")
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                     %llu
 src/compare_db.c:392:31: note: expanded from macro 'easy_number'
     snprintf(*values[0], l, c,line->b);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_stdio.h:57:62:
 note: expanded from macro 'snprintf'
   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                              ^~~~~~~~~~~
 src/compare_db.c:427:9: warning: format specifies type 'unsigned long' but
 the argument has type 'nlink_t' (aka 'unsigned short') [-Wformat]
         easy_number(DB_LNKCOUNT,nlink,"%lu")
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                        %hu
 src/compare_db.c:392:31: note: expanded from macro 'easy_number'
     snprintf(*values[0], l, c,line->b);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/secure/_stdio.h:57:62:
 note: expanded from macro 'snprintf'
   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                              ^~~~~~~~~~~
 4 warnings and 1 error generated.
 make[1]: *** [src/compare_db.o] Error 1
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55369>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list