bugGNU Octave - Bugs: bug #51961, integer argument size conflict in...


bug #51961: integer argument size conflict in ranlib when building with 64-bit Fortran support

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Thu 07 Sep 2017 10:42:13 PM UTC  
Category: LibrariesSeverity: 4 - Important
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 09 Sep 2017 12:27:50 AM UTC, comment #1:

I don't think the INTEGER*N syntax is part of any standard, but it has been a very common extension for more than 30 years. I can't imagine a compiler that would not support it.

John W. Eaton <jwe>
Project Administrator
Thu 07 Sep 2017 10:42:13 PM UTC, original submission:

When building with 64-bit Fortran indexing, there is a conflict between some of the function arguments in liboctave/external/ranlib and the calling prototypes declared in C.

In C:

But in Fortran the arguments are declared as plain INTEGER types.

I've worked around this with the following patch

I don't remember how portable the INTEGER*N syntax is, I don't know if we want to keep these source files pristine, or if there's a cleaner solution, like overriding the FFLAGS for just the libranlib source files.

Mike Miller <mtmiller>
Project Administrator


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1