Source: uml-utilities
Version: 20070815.4-2
Severity: serious
Tags: ftbfs patch
X-Debbugs-Cc: Ritesh Raj Sarraf <r...@debian.org>

https://buildd.debian.org/status/logs.php?pkg=uml-utilities&ver=20070815.4-2

...
cow.c: In function ‘write_cow_header’:
cow.c:229:51: error: passing argument 2 of ‘cow_file_size’ from incompatible 
pointer type [-Wincompatible-pointer-types]
  229 |         err = cow_file_size(header->backing_file, size);
      |                                                   ^~~~
      |                                                   |
      |                                                   long long unsigned 
int *
In file included from cow.c:13:
cow_sys.h:40:52: note: expected ‘__u64 *’ {aka ‘long unsigned int *’} but 
argument is of type ‘long long unsigned int *’
   40 | static inline int cow_file_size(char *file, __u64 *size_out)
      |                                             ~~~~~~~^~~~~~~~
make[2]: *** [<builtin>: cow.o] Error 1


A fix is attached.
Description: Fix FTBFS on ppc64el and mips64el with gcc 14
Author: Adrian Bunk <b...@debian.org>

--- uml-utilities-20070815.4.orig/moo/cow_sys.h
+++ uml-utilities-20070815.4/moo/cow_sys.h
@@ -37,7 +37,7 @@ static inline int cow_seek_file(int fd,
        return(0);
 }
 
-static inline int cow_file_size(char *file, __u64 *size_out)
+static inline int cow_file_size(char *file, unsigned long long *size_out)
 {
        struct stat64 buf;
 

Reply via email to