hello,

 just FYI i got error when i compile VXS if it helps anyone:




bpc_attrib.c:1249:50: warning: ‘%d’ directive output may be truncated writing 
between 1 and 11 bytes into a region of size between 0 and 8191 
[-Wformat-truncation=]
 1249 |     snprintf(attribPathTemp, BPC_MAXPATHLEN, "%s.%d", attribPath, 
getpid());
      |                                                  ^~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_attrib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 3 and 8204 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_attrib.c:1352:62: warning: ‘%s’ directive output may be truncated writing 
up to 255 bytes into a region of size between 0 and 8191 [-Wformat-truncation=]
 1352 |                 snprintf(deletePath, sizeof(deletePath), "%s/%s", 
attribPath, dp->d_name);
      |                                                              ^~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_attrib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 2 and 8448 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_attrib.c:1146:50: warning: ‘%d’ directive output may be truncated writing 
between 1 and 11 bytes into a region of size between 0 and 8191 
[-Wformat-truncation=]
 1146 |     snprintf(attribPathTemp, BPC_MAXPATHLEN, "%s.%d", attribPath, 
getpid());
      |                                                  ^~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_attrib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 3 and 8204 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   
bpc_attribCache.c
bpc_attribCache.c: In function ‘bpc_attribCache_loadPath’:
bpc_attribCache.c:234:66: warning: ‘%s’ directive output may be truncated 
writing up to 8191 bytes into a region of size between 0 and 16383 
[-Wformat-truncation=]
  234 |             snprintf(fullAttribPath, sizeof(fullAttribPath), "%s/%s", 
topDir, attribPath);
      |                                                                  ^~     
      ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_attribCache.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 2 and 24576 bytes into a destination 
of size 16384
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_attribCache.c: In function ‘bpc_attribCache_loadInode’:
bpc_attribCache.c:366:63: warning: ‘%s’ directive output may be truncated 
writing up to 8191 bytes into a region of size between 8186 and 16377 
[-Wformat-truncation=]
  366 |             snprintf(inodeDir, sizeof(inodeDir), "%s/pc/%s/%d/%s", 
BPC_TopDir, ac->hostName, ac->bkupMergeList[i].num, attribDir);
      |                                                               ^~        
                                               ~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_attribCache.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output 8 or more bytes (assuming 16390) into a 
destination of size 16384
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_attribCache.c:367:66: warning: ‘%s’ directive output may be truncated 
writing up to 8191 bytes into a region of size between 0 and 16383 
[-Wformat-truncation=]
  367 |             snprintf(fullAttribPath, sizeof(fullAttribPath), "%s/%s", 
inodeDir, attribFile);
      |                                                                  ^~     
        ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_attribCache.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 2 and 24576 bytes into a destination 
of size 16384
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   bpc_dirOps.c
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   
bpc_fileDigest.c
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   bpc_fileZIO.c
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   bpc_hashtable.c
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   bpc_lib.c
bpc_lib.c: In function ‘bpc_digest_md52path_v3’:
bpc_lib.c:185:44: warning: ‘%c’ directive output may be truncated writing 1 
byte into a region of size between 0 and 8191 [-Wformat-truncation=]
  185 |         snprintf(path, BPC_MAXPATHLEN, "%s/%c/%c/%c/%s_%d", compress ? 
BPC_CPoolDir3 : BPC_PoolDir3, n0, n1, n2, hexStr, ext);
      |                                            ^~
bpc_lib.c:185:40: note: using the range [-2147483648, 2147483647] for directive 
argument
  185 |         snprintf(path, BPC_MAXPATHLEN, "%s/%c/%c/%c/%s_%d", compress ? 
BPC_CPoolDir3 : BPC_PoolDir3, n0, n1, n2, hexStr, ext);
      |                                        ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_lib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 10 and 8251 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_lib.c:187:44: warning: ‘%c’ directive output may be truncated writing 1 
byte into a region of size between 0 and 8191 [-Wformat-truncation=]
  187 |         snprintf(path, BPC_MAXPATHLEN, "%s/%c/%c/%c/%s", compress ? 
BPC_CPoolDir3 : BPC_PoolDir3, n0, n1, n2, hexStr);
      |                                            ^~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_lib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 8 and 8239 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_lib.c: In function ‘bpc_lib_conf_init’:
bpc_lib.c:40:56: warning: ‘%s’ directive output may be truncated writing 5 
bytes into a region of size between 0 and 8191 [-Wformat-truncation=]
   40 |     snprintf(BPC_CPoolDir,  sizeof(BPC_CPoolDir),  "%s/%s", BPC_TopDir, 
"cpool");
      |                                                        ^~               
~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_lib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 7 and 8198 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_lib.c:41:56: warning: ‘%s’ directive output may be truncated writing 5 
bytes into a region of size between 0 and 8191 [-Wformat-truncation=]
   41 |     snprintf(BPC_CPoolDir3, sizeof(BPC_CPoolDir3), "%s/%s", BPC_TopDir, 
"cpool");
      |                                                        ^~               
~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_lib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 7 and 8198 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_lib.c:42:56: warning: ‘%s’ directive output may be truncated writing 4 
bytes into a region of size between 0 and 8191 [-Wformat-truncation=]
   42 |     snprintf(BPC_PoolDir,   sizeof(BPC_PoolDir),   "%s/%s", BPC_TopDir, 
"pool");
      |                                                        ^~               
~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_lib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 6 and 8197 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bpc_lib.c:43:56: warning: ‘%s’ directive output may be truncated writing 4 
bytes into a region of size between 0 and 8191 [-Wformat-truncation=]
   43 |     snprintf(BPC_PoolDir3,  sizeof(BPC_PoolDir3),  "%s/%s", BPC_TopDir, 
"pool");
      |                                                        ^~               
~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_lib.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 6 and 8197 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   bpc_poolWrite.c
bpc_poolWrite.c: In function ‘bpc_poolWrite_addToPool’:
bpc_poolWrite.c:762:47: warning: ‘.lock’ directive output may be truncated 
writing 5 bytes into a region of size between 1 and 8192 [-Wformat-truncation=]
  762 |         snprintf(lockFile, BPC_MAXPATHLEN, "%s.lock", poolPath);
      |                                               ^~~~~
In file included from /usr/include/stdio.h:867,
                 from ./rsync.h:38,
                 from backuppc.h:24,
                 from bpc_poolWrite.c:20:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: 
‘__builtin___snprintf_chk’ output between 6 and 8197 bytes into a destination 
of size 8192
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.62\" 
-DXS_VERSION=\"0.62\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.30/CORE"   bpc_refCount.c



--
cordialement,
Ghislain



_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to