bugPSPP - Bugs: bug #47143, MacOS build:...

 
 

bug #47143: MacOS build: src/libpspp/automake.mk produces version.c with syntax errors

Submitter:  Friedrich Beckmann <beckmanf>
Submitted:  Sun 14 Feb 2016 01:42:47 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
   

Sun 14 Feb 2016 07:51:30 PM UTC, comment #2: 

I fixed this with commit

http://git.savannah.gnu.org/cgit/pspp.git/commit/?id=9bf0d33865adacfbe633f9e2e6f206d1715b8e60

which replaces echo with printf.

Friedrich

Friedrich Beckmann <beckmanf>
Group Member
Sun 14 Feb 2016 02:24:10 PM UTC, comment #1: 

Can you try replacing "echo" with "printf" ?


John Darrington <jmd>
Group administrator
Sun 14 Feb 2016 01:42:47 PM UTC, original submission:  

The MacOS build produces the following version.c file


#include "version.h"
const char bare_version[] = "0.9.0";
const char version[] = "GNU pspp 0.9.0";
const char announced_version[] = "GNU pspp 0.9.0"
"
This is an unreleased test version. It is not recommended for production use. Use at your own risk"
;
const char host_system[] = "x86_64-apple-darwin15.3.0";


which ends up in a syntax error for the line with "announced_version". This is due the behavior of src/libpspp/automake.mk after commit:

http://git.savannah.gnu.org/cgit/pspp.git/commit/src/libpspp/automake.mk?id=25e76c9c37c623a3eced22d23a60befb0067de68

where echo is used to produce the code line. It seems that on OSX new lines are produced.

Friedrich

Friedrich Beckmann <beckmanf>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-14 beckmanf StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code