octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GraphicsMagick linkage error on Mac OS X 10.9


From: Daryl Lee
Subject: Re: GraphicsMagick linkage error on Mac OS X 10.9
Date: Sun, 12 Jan 2014 15:52:42 -0700

On Jan 12, 2014, at 3:44 AM, c. <address@hidden> wrote:

> 
> On 12 Jan 2014, at 00:07, Ben Abbott <address@hidden> wrote:
> 
>> sudo port install octave @3.6.4 +atlas+docs+fltk+gcc48+x11
>> sudo port deactivate octave
>> sudo port install GraphicsMagick +q32
> 
> You can use the "octave-next" package which is in the development branch of 
> MacPorts
> or its preview version posted here [1] to get a more complete and up-to-date 
> set of 
> depenedencies installed.

I had no luck with octave-next:
$ sudo port -v build octave-next +atlas+gcc48+metis+doc 
configure.compiler=macports-gcc-4.8
Error: Port octave-next not found

My intent in going through all this is to eventually actually be able to make a 
contribution; but this may be the hardest "hello, world" experience I've ever 
had!

> 
> As for GraphicsMagick in particular, note the suggestion in this comment [2] 
> about
> needing to compile it with gcc and not clang.
> 
> HTH,
> c.
> 
> [1] https://trac.macports.org/ticket/41155
> [2] https://trac.macports.org/ticket/41155#comment:3

I understand that I need to compile GraphicsMagick under gcc instead of clang; 
I'm only confused as to how to actually do that.  Following Ben's advice, I did:

>> sudo port install octave @3.6.4 +atlas+docs+fltk+gcc48+x11
>> sudo port deactivate octave
>> sudo port install GraphicsMagick +q32

after which I got the same linkage errors.  So I uninstalled both octave and 
GraphicsMagick, then I tried this:

sudo port install octave @3.6.4 +atlas+docs+fltk+gcc48+x11
sudo port deactivate octave
sudo port install GraphicsMagick +q32 configure.compiler=macports-gcc-4.8

followed by 'make clean', then Ben's ./bootstrap, ./configure, make (without 
the -j4 option, just to keep it simple) sequence.  This time I got a new error:

libtool: compile:  /opt/local/bin/g++-mp-4.8 -DHAVE_CONFIG_H -I. -I../../libgui 
-I.. -I/opt/local/include -I/opt/local/include/QtGui -I/opt/local/include 
-I/opt/local/include/QtNetwork -I/opt/local/include -I/opt/local/include/QtCore 
-I../../libgui/qterminal/libqterminal -Isrc -I../../libgui/src 
-I../../libgui/src/m-editor -I../../libgui/src/qtinfo 
-I../../liboctave/cruft/misc -I../../liboctave/array -I../liboctave/numeric 
-I../../liboctave/numeric -I../liboctave/operators -I../../liboctave/operators 
-I../../liboctave/system -I../../liboctave/util -I../libinterp 
-I../../libinterp -I../libinterp/parse-tree -I../../libinterp/parse-tree 
-I../libinterp/corefcn -I../../libinterp/corefcn -I../../libinterp/octave-value 
-I../libgnu -I../../libgnu -D_THREAD_SAFE -I/opt/local/include -Wall -W 
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align 
-Wcast-qual -pipe -O2 -m64 -D_THREAD_SAFE -pthread -MT 
src/m-editor/src_libgui_src_la-file-editor-tab.lo -MD -MP -MF 
src/m-editor/.deps/src_libgui_src_la-file-editor-tab.Tpo -c 
../../libgui/src/m-editor/file-editor-tab.cc  -fno-common -DPIC -o 
src/m-editor/.libs/src_libgui_src_la-file-editor-tab.o
In file included from ../libgnu/stdio.h:43:0,
                 from ../libgnu/wchar.h:71,
                 from /opt/local/include/gcc48/c++/cwchar:44,
                 from /opt/local/include/gcc48/c++/bits/postypes.h:40,
                 from /opt/local/include/gcc48/c++/bits/char_traits.h:40,
                 from /opt/local/include/gcc48/c++/string:40,
                 from /opt/local/include/QtCore/qstring.h:54,
                 from /opt/local/include/QtCore/qobject.h:48,
                 from /opt/local/include/Qsci/qscilexeroctave.h:33,
                 from ../../libgui/src/m-editor/file-editor-tab.cc:31:
/usr/include/stdio.h:255:7: error: previous declaration of 'char* gets(char*)' 
with 'C' linkage
 char *gets(char *);
       ^
In file included from /opt/local/include/gcc48/c++/cstdlib:72:0,
                 from ../bits/stl_algo.h:59,
                 from /opt/local/include/gcc48/c++/algorithm:62,
                 from /opt/local/include/QtCore/qglobal.h:68,
                 from /opt/local/include/QtCore/qnamespace.h:45,
                 from /opt/local/include/QtCore/qobjectdefs.h:45,
                 from /opt/local/include/QtCore/qobject.h:47,
                 from /opt/local/include/Qsci/qscilexeroctave.h:33,
                 from ../../libgui/src/m-editor/file-editor-tab.cc:31:
../libgnu/stdio.h:1034:1: error: conflicts with new declaration with 'C++' 
linkage
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
make[3]: *** [src/m-editor/src_libgui_src_la-file-editor-tab.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

--
Daryl Lee
Amateurs train until they get it right; professionals train until they can't 
get it wrong. -- VOCES8



reply via email to

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