Your message dated Tue, 14 Mar 2006 12:48:30 -0500
with message-id <[EMAIL PROTECTED]>
and subject line BFS
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: unionfs
Version: 1.0.13-1
Severity: serious

Hi,

Your package is failing to build on 64 bit arches with the
following error:
gcc -o unionimap -luuid unionimap.c usercommon.c -I. -g -O2 -Wall -Werror   -DU
NIONFS_VERSION=\"1.0.13\"
cc1: warnings being treated as errors
unionimap.c: In function 'print_forwardmap':
unionimap.c:247: warning: format '%-22llu' expects type 'long long unsigned int
', but argument 5 has type 'uint64_t'
unionimap.c: In function 'print_reversemap':
unionimap.c:296: warning: format '%-22llu' expects type 'long long unsigned int
', but argument 4 has type 'uint64_t'
make[1]: *** [unionimap] Error 1

An int64_t is ussually defined as a long and not a long long.

What you should do is include <inttypes.h> (C99) and use:
"%-22" PRIu64 "\n", val

PRIu64 should then get replaced by "llu" or "lu" depending on the arch.


Kurt



--- End Message ---
--- Begin Message ---
Package: unionfs
Version: 1.1.3-1

This bug has been resolved in the upstream 1.1.3 release.

~/unionfs/unionfs-1.0.13$ gcc -o unionimap -luuid unionimap.c \
    usercommon.c -I. -g -O2 -Wall -Werror   -DUNIONFS_VERSION=\"1.0.13\"
unionimap.c: In function `print_forwardmap':
unionimap.c:247: warning: long long unsigned int format, uint64_t arg (arg 5)
unionimap.c: In function `print_reversemap':
unionimap.c:296: warning: long long unsigned int format, uint64_t arg (arg 4)

~/unionfs/unionfs-1.0.13$ cd ../unionfs-1.1.3/

~/unionfs/unionfs-1.1.3$ gcc -o unionimap -luuid unionimap.c \
    usercommon.c -I. -g -O2 -Wall -Werror   -DUNIONFS_VERSION=\"1.1.3\"

~/unionfs/unionfs-1.1.3$ uname -m x86_64


The following hunk is relevant:

--- unionfs-1.0.13/unionimap.c  2005-07-22 13:16:48.000000000 -0400
+++ unionfs-1.1.3/unionimap.c   2006-02-20 17:47:06.000000000 -0500
@@ -244,7 +322,8 @@ int print_forwardmap(int file, int debug
                        "Lower-Level");
                while (read(file, (void *)&entry, sizeof(struct fmapent))) {
                        fprintf(stdout, "%-11lu %-8d %-22llu\n", inode++,
-                               entry.fsnum, entry.inode);
+                               entry.fsnum,
+                               (long long unsigned int)entry.inode);
                }
        }
       out:
@@ -289,11 +368,12 @@ int print_reversemap(int file, int debug
                ((unsigned int *)&header.fsid)[1]);
        if (debug_level > 1) {
                fprintf(stdout, "%-11s %-22s\n", "Lower", "Unionfs");
+               unsigned long lowerlevel = 0;
                while (read(file, (void *)&inode, sizeof(uint64_t))) {
-                       unsigned long lowerlevel = 0;
                        if (inode) {
                                fprintf(stdout, "%-11lu %-22llu\n",
-                                       lowerlevel++, inode);
+                                       lowerlevel++,
+                                       (long long unsigned int)inode);
                        }
                }
        }

-- 
Robert Edmonds
[EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to