[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43243] Failure building gui - fixable by comm
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h |
Date: |
Wed, 17 Sep 2014 21:28:37 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0 |
URL:
<http://savannah.gnu.org/bugs/?43243>
Summary: Failure building gui - fixable by commenting out
pointless line of libgnu/stdio.h
Project: GNU Octave
Submitted by: None
Submitted on: Wed 17 Sep 2014 09:28:35 PM UTC
Category: Configuration and Build System
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: None
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.2
Operating System: Mac OS
_______________________________________________________
Details:
Building octave 3.8.3 using gcc with the gui enabled on a homebrew mac,
there's an error emitted that terminates the build of the gui:
In file included from
/usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.3.0/4.9.1/include/c++/cstdlib:72:0,
from
/usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.3.0/4.9.1/include/c++/bits/stl_algo.h:59,
from
/usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.3.0/4.9.1/include/c++/algorithm:62,
from /usr/local/Cellar/qt/4.8.6/include/QtCore/qglobal.h:68,
from
/usr/local/Cellar/qt/4.8.6/include/QtCore/qnamespace.h:45,
from
/usr/local/Cellar/qt/4.8.6/include/QtCore/qobjectdefs.h:45,
from /usr/local/Cellar/qt/4.8.6/include/QtCore/qobject.h:47,
from /usr/local/include/Qsci/qscilexeroctave.h:33,
from src/m-editor/file-editor-tab.cc:31:
../libgnu/stdio.h:1034:1: error: conflicting declaration of 'char*
gets(char*)' with 'C++' linkage
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
The problem is fixed simply by commenting out that line of libgnu/stdio.h
While I'm at it, here's a configure line that successfully builds octave using
the homebrew install of gcc 4.9:
./configure CC=/usr/local/bin/gcc-4.9 CXX=/usr/local/bin/g++-4.9
CFLAGS="-I/usr/local/include -Ofast -m64 -march=native -mtune=native"
CPPFLAGS="-I/usr/local/include" F77=/usr/local/bin/gfortran-4.9
FFLAGS="-I/usr/local/include -Ofast -m64 -march=native -mtune=native"
LDFLAGS="-L/usr/local/lib/gcc/x86_64-apple-darwin13.3.0/4.9.1
-L/usr/local/lib" FLIBS="-lgfortran -lquadmath -lm" --with-framework-carbon
--without-x LLVM_CONFIG=/usr/local/bin/llvm-config-3.5
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43243>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h,
anonymous <=
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, Carlo de Falco, 2014/09/18
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, anonymous, 2014/09/18
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, Carlo de Falco, 2014/09/18
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, anonymous, 2014/09/18
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, Jordi GutiƩrrez Hermoso, 2014/09/18
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, Carlo de Falco, 2014/09/18
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, anonymous, 2014/09/18
- [Octave-bug-tracker] [bug #43243] Failure building gui - fixable by commenting out pointless line of libgnu/stdio.h, Carlo de Falco, 2014/09/19