Bug 1150298

Summary: ARM 32 bit on Ubuntu: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mbooth, ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-09 08:27:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2014-10-07 21:02:30 UTC
Description of problem:

Lots and lots of warnings during the compile like this:

Guestfs.c: In function 'XS_Sys__Guestfs_zfgrep':
Guestfs.c:25673:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zfgrepi':
Guestfs.c:25722:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zfile':
Guestfs.c:25769:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zgrep':
Guestfs.c:25814:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zgrepi':
Guestfs.c:25863:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Note this is a 32 bit ARM platform, but I would expect that both
integers and pointers are 32 bit.

Version-Release number of selected component (if applicable):

libguestfs 1.27.59

How reproducible:

100%

Steps to Reproduce:
1. Compile libguestfs.

Comment 1 Pino Toscano 2016-05-09 08:27:26 UTC
This should be hopefully fixed with
https://github.com/libguestfs/libguestfs/commit/873560f495478e20e13f73532bf3426cde0d517c
which is in libguestfs >= 1.33.28.