[Top][All Lists]

[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


                 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



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
                 from /usr/local/Cellar/qt/4.8.6/include/QtCore/qglobal.h:68,
                 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"
-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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]