bugGNU Octave - Bugs: bug #61668, [octave-forge] (gsl) configure...


bug #61668: [octave-forge] (gsl) configure tests fail because main is defined with no return type

Submitted by:  Carlo de Falco <cdf>
Submitted on:  Mon 13 Dec 2021 03:25:59 PM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Patch Submitted Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  7.0.90 Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

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


Mon 13 Dec 2021 03:28:43 PM UTC, comment #1: 

original submission:

> the following change fixes the problem for me

the patch didn't show in the original submission, trying again ...

$ diff -u configure.ac.in configure.ac.in.new
--- configure.ac.in        2021-12-13 16:16:41.000000000 +0100
+++ configure.ac.in.new        2021-12-13 16:15:25.000000000 +0100
@@ -82,7 +82,7 @@
 #include "ov-scalar.h"
+int main()
   octave_scalar x (1.234);
   bool y = x.isreal ();
@@ -102,7 +102,7 @@
 #include "ov-scalar.h"
 #include "ovl.h"
 #include "parse.h"
+int main()
   octave_value_list ovl = octave::feval ("sin", octave_value (1.234));
   return 0;

Carlo de Falco <cdf>
Project Member
Mon 13 Dec 2021 03:25:59 PM UTC, original submission:  

Installing the gsl on Octave 6.3 fails because
the configure script fails to detect 6.3 features.

the reason for the failure is that the tests defined
in configure define main with no return type, which causes
the tests to fail with the error

 error: C++ requires a type specifier for all declarations

regardless of the Octave version being used

I tested this with clang++ on macos but suspect the same
would happen on other systems

the following change fixes the problem for me

Carlo de Falco <cdf>
Project Member


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

Attach Files:

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 cdf (Submitted the item)

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

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.7