Opened 7 years ago

Closed 2 years ago

#55369 closed update (fixed)

aide @0.15.1_1: update to 0.16

Reported by: l2dy (Zero King) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: aide

Description

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

Attachments (1)

0001-aide-update-to-0.16.patch (3.9 KB) - added by l2dy (Zero King) 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by l2dy (Zero King)

comment:1 Changed 2 years ago by ctreleaven (Craig Treleaven)

Resolution: fixed
Status: newclosed

Now updated to 0.17.4

Note: See TracTickets for help on using tickets.