bugPSPP - Bugs: bug #59034, E: pspp 64bit-portability-issue...

 
 

bug #59034: E: pspp 64bit-portability-issue src/ui/gui/psppire-conf.c:56

Submitter:  Mindaugas <embar>
Submitted:  Fri 28 Aug 2020 08:02:15 PM UTC
   
 
Category:  Compilation/Portability Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 29 Aug 2020 12:18:28 PM UTC, comment #3: 
Mindaugas <embar>
Sat 29 Aug 2020 06:51:36 AM UTC, comment #2: 

I pushed a fix for this.

John Darrington <jmd>
Group administrator
Sat 29 Aug 2020 06:18:41 AM UTC, comment #1: 

Hi Mindaugas,

thanks for the report. I guess this comes from this warning in the logfile:


[  241s] src/ui/gui/psppire-conf.c: In function 'flush_conf':
[  241s] src/ui/gui/psppire-conf.c:56:19: warning: implicit declaration of function 'strerror'; did you mean 'g_strerror'? [-Wimplicit-function-declaration]
[  241s]        char *msg = strerror (errno);
[  241s]                    ^~~~~~~~
[  241s]                    g_strerror
[  241s] src/ui/gui/psppire-conf.c:56:19: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
[  241s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/pspp-1.5.0-ga6dbf8'
[  241s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/pspp-1.5.0-ga6dbf8'


Seems like the includes that we have in psppire-conf.c cover strerror on many other platforms. Could you try a patch with an appropiate include like


#include <string.h>



Friedrich Beckmann <beckmanf>
Group Member
Fri 28 Aug 2020 08:02:15 PM UTC, original submission:  

After compiling latest pspp-1.5.0-ga6dbf8 for openSUSE 15.0 or 15.1, I get error:
E: pspp 64bit-portability-issue src/ui/gui/psppire-conf.c:56

Seems this error is not during compilation itself, but during openSUSE additional checks after compilation while preparing RPM package.

A suggestion how to resolve this error was described here:
https://forums.opensuse.org/showthread.php/434860-64bit-portability-issue?s=c679da64bfde605150b82aed30142a9e&p=2134759#post2134759
(though I did not tested this solution).

However I have no such error in newer openSUSE versions 15.2 and Tumbleweed

Mindaugas <embar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #49720:  buildlog.txt added by embar (2MiB - text/plain - openSUSE 15.1 buildlog)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by beckmanf (Posted a comment)
  • -email is unavailable- added by embar (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-29 jmd StatusNone Fixed
        Open/ClosedOpen Closed
    2020-08-28 embar Attached File- Added buildlog.txt, #49720

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code