On 11/5/13 11:51 AM, Dominique Dhumieres wrote: > With > >> SetCC: flag-sort -r gcc-fsf-4.8 >> SetCXX: flag-sort -r g++-fsf-4.8 > > the build fails with > > ... > libtool: link: flag-sort -r g++-fsf-4.8 -o > DLD-FUNCTIONS/.libs/__magick_read__.so -bundle > DLD-FUNCTIONS/.libs/DLD_FUNCTIONS___magick_read___la-__magick_read__.o > -L/sw64/lib ./.libs/liboctinterp.dylib -L/sw64/lib/gcc4.8/lib > -L/sw64/lib/libpcre1 -L/sw64/lib/fltk13-aqua/lib -L/usr/X11/lib > ../liboctave/.libs/liboctave.dylib ../libcruft/.libs/libcruft.dylib > /sw64/lib/libGraphicsMagick++.dylib /sw64/lib/libGraphicsMagick.dylib -lm > -O3 -O3 -pthread -O3 -Wl,-dead_strip_dylibs -Wl,-dead_strip_dylibs > -Wl,-dylib_file > -Wl,/sw64/lib/octave/3.6.4/liboctave.1.dylib:/sw64/src/fink.build/octave-atlas-3.6.4-5/octave-3.6.4/liboctave/.libs/liboctave.dylib > -Wl,-dylib_file > -Wl,/sw64/lib/octave/3.6.4/libcruft.1.dylib:/sw64/src/fink.build/octave-atlas-3.6.4-5/octave-3.6.4/libcruft/.libs/libcruft.dylib > -Wl,-dylib_file > -Wl,/sw64/lib/octave/3.6.4/libcruft.1.dylib:/sw64/src/fink.build/octave-atlas-3.6.4-5/octave-3.6.4/libcruft/.libs/libcruft.dylib > -pthread -framework AGL -framework OpenGL -framework Ap p licationServices -framework Cocoa > Undefined symbols for architecture x86_64: > "Magick::CoderInfo::CoderInfo(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)", referenced from: > F__magick_format_list__(octave_value_list const&, int) in > DLD_FUNCTIONS___magick_read___la-__magick_read__.o > ld: symbol(s) not found for architecture x86_64 > collect2: error: ld returned 1 exit status > > Dominique >
I tried a different modification to CXX: SetCXX: flag-sort -r g++-fsf-4.8 -std=c++11 But I got the following error: libtool: compile: flag-sort -r g++ -std=c++11 -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -I/sw/include -I/sw/include -O3 -MD -I/usr/X11/include -DHAVE_CONFIG_H -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/sw/include -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O3 -MD -I/usr/X11/include -D_THREAD_SAFE -pthread -O3 -MD -I/usr/X11/include -MT liboctinterp_la-ls-mat4.lo -MD -MP -MF .deps/liboctinterp_la-ls-mat4.Tpo -c ls-mat4.cc -fno-common -DPIC -o .libs/liboctinterp_la-ls-mat4.o In file included from ls-mat4.cc:50: In file included from ./defun.h:30: In file included from ./defun-int.h:28: In file included from ./ov-builtin.h:28: In file included from ./ov-fcn.h:35: In file included from ./symtab.h:34: ../liboctave/regexp.h:90:3: warning: 'opts' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct opts ^ ../liboctave/regexp.h:40:3: note: did you mean struct here? class opts; ^~~~~ struct In file included from ls-mat4.cc:56: In file included from ./ov-cell.h:39: ./ov-base-mat.h:95:8: warning: 'octave_base_matrix<Cell>::assign' hides overloaded virtual function [-Woverloaded-virtual] void assign (const octave_value_list& idx, const MT& rhs); ^ ./ov-cell.h:49:22: note: in instantiation of template class 'octave_base_matrix<Cell>' requested here octave_cell : public octave_base_matrix<Cell> ^ ./ov-base.h:277:16: note: hidden overloaded virtual function 'octave_base_value::assign' declared here virtual void assign (const std::string&, const octave_value&) { } ^ In file included from ls-mat4.cc:56: In file included from ./ov-cell.h:39: ./ov-base-mat.h:97:8: warning: 'octave_base_matrix<Cell>::assign' hides overloaded virtual function [-Woverloaded-virtual] void assign (const octave_value_list& idx, typename MT::element_type rhs); ^ ./ov-base.h:277:16: note: hidden overloaded virtual function 'octave_base_value::assign' declared here virtual void assign (const std::string&, const octave_value&) { } ^ ls-mat4.cc:608:10: error: no viable conversion from 'std::ostream' (aka 'basic_ostream<char>') to 'bool' return os; ^~ 3 warnings and 1 error generated. make[1]: *** [liboctinterp_la-ls-mat4.lo] Error 1 -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users