[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61668] [octave-forge] (gsl) configure tests f
From: |
Carlo de Falco |
Subject: |
[Octave-bug-tracker] [bug #61668] [octave-forge] (gsl) configure tests fail because main is defined with no return type |
Date: |
Mon, 13 Dec 2021 10:26:01 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:95.0) Gecko/20100101 Firefox/95.0 |
URL:
<https://savannah.gnu.org/bugs/?61668>
Summary: [octave-forge] (gsl) configure tests fail because
main is defined with no return type
Project: GNU Octave
Submitted by: cdf
Submitted on: Mon 13 Dec 2021 04:25:59 PM CET
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: Patch Submitted
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 7.0.90
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
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
$ 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 @@
[AC_LANG_SOURCE(
[[
#include "ov-scalar.h"
-main()
+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"
-main()
+int main()
{
octave_value_list ovl = octave::feval ("sin", octave_value (1.234));
return 0;
-varbatim-
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61668>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61668] [octave-forge] (gsl) configure tests fail because main is defined with no return type,
Carlo de Falco <=