Public bug reported:

The package version 22.14.0 fails to build on 32-bit architectures
(i386, armel and armhf)

[ 53%] Linking C executable version-test
cd /<<PKGBUILDDIR>>/obj-i686-linux-gnu/base && /usr/bin/cmake -E 
cmake_link_script CMakeFiles/version-test.dir/link.txt --verbose=1
/<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_compress_and_uncompress_without_header’:
/<<PKGBUILDDIR>>/util/compressutils_tests.c:27:52: error: passing argument 3 of 
‘gvm_compress’ from incompatible pointer type [-Wincompatible-pointer-types]
   27 |     gvm_compress (testdata, strlen (testdata) + 1, &compressed_len);
      |                                                    ^~~~~~~~~~~~~~~
      |                                                    |
      |                                                    size_t * {aka 
unsigned int *}
In file included from /<<PKGBUILDDIR>>/util/compressutils_tests.c:6:
/<<PKGBUILDDIR>>/util/compressutils.c:41:69: note: expected ‘long unsigned int 
*’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
   41 | gvm_compress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
      |                                                      
~~~~~~~~~~~~~~~^~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c:34:49: error: passing argument 3 of 
‘gvm_uncompress’ from incompatible pointer type [-Wincompatible-pointer-types]
   34 |     gvm_uncompress (compressed, compressed_len, &uncompressed_len);
      |                                                 ^~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 size_t * {aka unsigned 
int *}
/<<PKGBUILDDIR>>/util/compressutils.c:109:71: note: expected ‘long unsigned int 
*’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
  109 | gvm_uncompress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
      |                                                        
~~~~~~~~~~~~~~~^~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_compress_and_uncompress_with_header’:
/<<PKGBUILDDIR>>/util/compressutils_tests.c:45:63: error: passing argument 3 of 
‘gvm_compress_gzipheader’ from incompatible pointer type 
[-Wincompatible-pointer-types]
   45 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
      |                                                               
^~~~~~~~~~~~~~~
      |                                                               |
      |                                                               size_t * 
{aka unsigned int *}
/<<PKGBUILDDIR>>/util/compressutils.c:180:41: note: expected ‘long unsigned int 
*’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
  180 |                          unsigned long *dstlen)
      |                          ~~~~~~~~~~~~~~~^~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c:56:49: error: passing argument 3 of 
‘gvm_uncompress’ from incompatible pointer type [-Wincompatible-pointer-types]
   56 |     gvm_uncompress (compressed, compressed_len, &uncompressed_len);
      |                                                 ^~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 size_t * {aka unsigned 
int *}
/<<PKGBUILDDIR>>/util/compressutils.c:109:71: note: expected ‘long unsigned int 
*’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
  109 | gvm_uncompress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
      |                                                        
~~~~~~~~~~~~~~~^~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_reader’:
/<<PKGBUILDDIR>>/util/compressutils_tests.c:66:63: error: passing argument 3 of 
‘gvm_compress_gzipheader’ from incompatible pointer type 
[-Wincompatible-pointer-types]
   66 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
      |                                                               
^~~~~~~~~~~~~~~
      |                                                               |
      |                                                               size_t * 
{aka unsigned int *}
/<<PKGBUILDDIR>>/util/compressutils.c:180:41: note: expected ‘long unsigned int 
*’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
  180 |                          unsigned long *dstlen)
      |                          ~~~~~~~~~~~~~~~^~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_fd_reader’:
/<<PKGBUILDDIR>>/util/compressutils_tests.c:88:63: error: passing argument 3 of 
‘gvm_compress_gzipheader’ from incompatible pointer type 
[-Wincompatible-pointer-types]
   88 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
      |                                                               
^~~~~~~~~~~~~~~
      |                                                               |
      |                                                               size_t * 
{aka unsigned int *}
/<<PKGBUILDDIR>>/util/compressutils.c:180:41: note: expected ‘long unsigned int 
*’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
  180 |                          unsigned long *dstlen)
      |                          ~~~~~~~~~~~~~~~^~~~~~
/usr/bin/cc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG      -std=c11  
   -Wall     -Wextra     -Wpedantic     -Wmissing-prototypes     -Wshadow     
-Wsequence-point     -D_ISOC11_SOURCE     -D_DEFAULT_SOURCE -Wl,-z,relro 
-Wl,-z,now -rdynamic -g -lgcov --coverage 
"CMakeFiles/version-test.dir/version_tests.c.o" -o version-test  -lcgreen 
-L/usr/lib/i386-linux-gnu -lglib-2.0 -Wl,-z,relro -Wl,-z,now
/<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_reader’:
/<<PKGBUILDDIR>>/util/compressutils_tests.c:70:3: warning: ignoring return 
value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   70 |   write (compressed_fd, compressed, compressed_len);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c:77:3: warning: ignoring return 
value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   77 |   fread (uncompressed, 1, 30, stream);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_fd_reader’:
/<<PKGBUILDDIR>>/util/compressutils_tests.c:92:3: warning: ignoring return 
value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   92 |   write (compressed_fd, compressed, compressed_len);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/util/compressutils_tests.c:101:3: warning: ignoring return 
value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  101 |   fread (uncompressed, 1, 30, stream);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [util/CMakeFiles/compressutils-test.dir/build.make:79: 
util/CMakeFiles/compressutils-test.dir/compressutils_tests.c.o] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-i686-linux-gnu'
make[4]: *** [CMakeFiles/Makefile2:808: 
util/CMakeFiles/compressutils-test.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....

The patch for the issue is proposed upstream[1]


[1] https://github.com/greenbone/gvm-libs/issues/846

** Affects: gvm-libs (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: gvm-libs (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: ftbfs update-excuse

** Bug watch added: Debian Bug tracker #1085979
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085979

** Also affects: gvm-libs (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085979
   Importance: Unknown
       Status: Unknown

** Tags added: ftbfs update-excuse

** Description changed:

  The package version 22.14.0 fails to build on 32-bit architectures
  (i386, armel and armhf)
  
  [ 53%] Linking C executable version-test
  cd /<<PKGBUILDDIR>>/obj-i686-linux-gnu/base && /usr/bin/cmake -E 
cmake_link_script CMakeFiles/version-test.dir/link.txt --verbose=1
  /<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_compress_and_uncompress_without_header’:
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:27:52: error: passing argument 3 
of ‘gvm_compress’ from incompatible pointer type [-Wincompatible-pointer-types]
-    27 |     gvm_compress (testdata, strlen (testdata) + 1, &compressed_len);
-       |                                                    ^~~~~~~~~~~~~~~
-       |                                                    |
-       |                                                    size_t * {aka 
unsigned int *}
+    27 |     gvm_compress (testdata, strlen (testdata) + 1, &compressed_len);
+       |                                                    ^~~~~~~~~~~~~~~
+       |                                                    |
+       |                                                    size_t * {aka 
unsigned int *}
  In file included from /<<PKGBUILDDIR>>/util/compressutils_tests.c:6:
  /<<PKGBUILDDIR>>/util/compressutils.c:41:69: note: expected ‘long unsigned 
int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
-    41 | gvm_compress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
-       |                                                      
~~~~~~~~~~~~~~~^~~~~~
+    41 | gvm_compress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
+       |                                                      
~~~~~~~~~~~~~~~^~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:34:49: error: passing argument 3 
of ‘gvm_uncompress’ from incompatible pointer type 
[-Wincompatible-pointer-types]
-    34 |     gvm_uncompress (compressed, compressed_len, &uncompressed_len);
-       |                                                 ^~~~~~~~~~~~~~~~~
-       |                                                 |
-       |                                                 size_t * {aka 
unsigned int *}
+    34 |     gvm_uncompress (compressed, compressed_len, &uncompressed_len);
+       |                                                 ^~~~~~~~~~~~~~~~~
+       |                                                 |
+       |                                                 size_t * {aka 
unsigned int *}
  /<<PKGBUILDDIR>>/util/compressutils.c:109:71: note: expected ‘long unsigned 
int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
-   109 | gvm_uncompress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
-       |                                                        
~~~~~~~~~~~~~~~^~~~~~
+   109 | gvm_uncompress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
+       |                                                        
~~~~~~~~~~~~~~~^~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_compress_and_uncompress_with_header’:
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:45:63: error: passing argument 3 
of ‘gvm_compress_gzipheader’ from incompatible pointer type 
[-Wincompatible-pointer-types]
-    45 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
-       |                                                               
^~~~~~~~~~~~~~~
-       |                                                               |
-       |                                                               size_t 
* {aka unsigned int *}
+    45 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
+       |                                                               
^~~~~~~~~~~~~~~
+       |                                                               |
+       |                                                               size_t 
* {aka unsigned int *}
  /<<PKGBUILDDIR>>/util/compressutils.c:180:41: note: expected ‘long unsigned 
int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
-   180 |                          unsigned long *dstlen)
-       |                          ~~~~~~~~~~~~~~~^~~~~~
+   180 |                          unsigned long *dstlen)
+       |                          ~~~~~~~~~~~~~~~^~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:56:49: error: passing argument 3 
of ‘gvm_uncompress’ from incompatible pointer type 
[-Wincompatible-pointer-types]
-    56 |     gvm_uncompress (compressed, compressed_len, &uncompressed_len);
-       |                                                 ^~~~~~~~~~~~~~~~~
-       |                                                 |
-       |                                                 size_t * {aka 
unsigned int *}
+    56 |     gvm_uncompress (compressed, compressed_len, &uncompressed_len);
+       |                                                 ^~~~~~~~~~~~~~~~~
+       |                                                 |
+       |                                                 size_t * {aka 
unsigned int *}
  /<<PKGBUILDDIR>>/util/compressutils.c:109:71: note: expected ‘long unsigned 
int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
-   109 | gvm_uncompress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
-       |                                                        
~~~~~~~~~~~~~~~^~~~~~
+   109 | gvm_uncompress (const void *src, unsigned long srclen, unsigned long 
*dstlen)
+       |                                                        
~~~~~~~~~~~~~~~^~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_reader’:
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:66:63: error: passing argument 3 
of ‘gvm_compress_gzipheader’ from incompatible pointer type 
[-Wincompatible-pointer-types]
-    66 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
-       |                                                               
^~~~~~~~~~~~~~~
-       |                                                               |
-       |                                                               size_t 
* {aka unsigned int *}
+    66 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
+       |                                                               
^~~~~~~~~~~~~~~
+       |                                                               |
+       |                                                               size_t 
* {aka unsigned int *}
  /<<PKGBUILDDIR>>/util/compressutils.c:180:41: note: expected ‘long unsigned 
int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
-   180 |                          unsigned long *dstlen)
-       |                          ~~~~~~~~~~~~~~~^~~~~~
+   180 |                          unsigned long *dstlen)
+       |                          ~~~~~~~~~~~~~~~^~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_fd_reader’:
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:88:63: error: passing argument 3 
of ‘gvm_compress_gzipheader’ from incompatible pointer type 
[-Wincompatible-pointer-types]
-    88 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
-       |                                                               
^~~~~~~~~~~~~~~
-       |                                                               |
-       |                                                               size_t 
* {aka unsigned int *}
+    88 |     gvm_compress_gzipheader (testdata, strlen (testdata) + 1, 
&compressed_len);
+       |                                                               
^~~~~~~~~~~~~~~
+       |                                                               |
+       |                                                               size_t 
* {aka unsigned int *}
  /<<PKGBUILDDIR>>/util/compressutils.c:180:41: note: expected ‘long unsigned 
int *’ but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
-   180 |                          unsigned long *dstlen)
-       |                          ~~~~~~~~~~~~~~~^~~~~~
+   180 |                          unsigned long *dstlen)
+       |                          ~~~~~~~~~~~~~~~^~~~~~
  /usr/bin/cc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG      -std=c11  
   -Wall     -Wextra     -Wpedantic     -Wmissing-prototypes     -Wshadow     
-Wsequence-point     -D_ISOC11_SOURCE     -D_DEFAULT_SOURCE -Wl,-z,relro 
-Wl,-z,now -rdynamic -g -lgcov --coverage 
"CMakeFiles/version-test.dir/version_tests.c.o" -o version-test  -lcgreen 
-L/usr/lib/i386-linux-gnu -lglib-2.0 -Wl,-z,relro -Wl,-z,now
  /<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_reader’:
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:70:3: warning: ignoring return 
value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
-    70 |   write (compressed_fd, compressed, compressed_len);
-       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    70 |   write (compressed_fd, compressed, compressed_len);
+       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:77:3: warning: ignoring return 
value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
-    77 |   fread (uncompressed, 1, 30, stream);
-       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    77 |   fread (uncompressed, 1, 30, stream);
+       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c: In function 
‘compressutils__can_uncompress_using_fd_reader’:
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:92:3: warning: ignoring return 
value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
-    92 |   write (compressed_fd, compressed, compressed_len);
-       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    92 |   write (compressed_fd, compressed, compressed_len);
+       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /<<PKGBUILDDIR>>/util/compressutils_tests.c:101:3: warning: ignoring return 
value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
-   101 |   fread (uncompressed, 1, 30, stream);
-       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+   101 |   fread (uncompressed, 1, 30, stream);
+       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  make[5]: *** [util/CMakeFiles/compressutils-test.dir/build.make:79: 
util/CMakeFiles/compressutils-test.dir/compressutils_tests.c.o] Error 1
  make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-i686-linux-gnu'
  make[4]: *** [CMakeFiles/Makefile2:808: 
util/CMakeFiles/compressutils-test.dir/all] Error 2
  make[4]: *** Waiting for unfinished jobs....
+ 
+ The patch for the issue is proposed upstream[1]
+ 
+ 
+ [1] https://github.com/greenbone/gvm-libs/issues/846

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2087813

Title:
  gvm-libs fail to build from source on 32 bit architectures

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvm-libs/+bug/2087813/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to