Hi all,
my third email of the day ;-) compilation on OS X with gcc 4.0 fails. I think it is due to some multiple definitions of symbols. I have searched for fixes to this. It seems to be a very common problem but I did not find any clear answer. Maybe it is so simple that people on mailing lists just do not bother answering such questions. One common answer was to use gcc to link and not ld but I don't know to which extent it means something.
jiho@...993...:inkscape$ ./makeosx.sh make all-recursive Making all in src /bin/sh ../libtool --mode=link g++ -Wall -W -Wpointer-arith -Wcast- align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused- parameter -O3 -Wall -L/sw/lib -o inkscape --export-dynamic main.o libinkpre.a application/libinkapp.a ui/dialog/libuidialog.a dialogs/ libspdialogs.a jabber_whiteboard/libjabber_whiteboard.a trace/ libtrace.a svg/libspsvg.a widgets/libspwidgets.a display/ libspdisplay.a helper/libspchelp.a libcroco/libcroco.a libnrtype/ libnrtype.a libnr/libnr.a libavoid/libavoid.a livarot/libvarot.a ui/ view/libuiview.a ui/libui.a ui/widget/libuiwidget.a graphlayout/ libgraphlayout.a removeoverlap/libremoveoverlap.a extension/ libextension.a extension/implementation/libimplementation.a extension/ internal/libinternal.a extension/script/libscript.a dom/libdom.a xml/ libspxml.a util/libinkutil.a io/libio.a inkjar/libinkjar.a libinkpost.a debug/libinkdebug.a -L/sw/lib -L/usr/X11R6/lib - lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lpangomm-1.4 -lglibmm-2.4 -lgtk- x11-2.0 -lgdk-x11-2.0 -lXrandr -lXinerama -lXext -lXcursor -latk-1.0 - lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lXrender -lpangox-1.0 -lX11 - lpangoft2-1.0 -lfontconfig -lfreetype -lpango-1.0 -lgobject-2.0 - lgmodule-2.0 -lxslt -lxml2 -lpthread -lz -lm -lsigc-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv -lpng -lz -lpopt -L/sw/lib -lgnomevfs-2 - lbonobo-2 -lgconf-2 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 - lgthread-2.0 -lglib-2.0 -lintl -liconv -L/usr/X11R6/lib -lXft - lfreetype -lXrender -lfontconfig -L/sw/lib -L/usr/X11R6/lib - lpangoft2-1.0 -lfontconfig -lfreetype -lpango-1.0 -lm -lgobject-2.0 - lgmodule-2.0 -lglib-2.0 -lintl -liconv -L/usr/X11R6/lib - lfreetype -L/usr/local/lib /System/Library/Perl/5.8.6/darwin-thread- multi-2level/auto/DynaLoader/DynaLoader.a -L/System/Library/Perl/ 5.8.6/darwin-thread-multi-2level/CORE -lperl -ldl -lm -lc -lgc - llcms g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded- virtual -Wswitch -Wno-unused-parameter -O3 -Wall -o inkscape --export- dynamic main.o -Wl,-bind_at_load -L/sw/lib libinkpre.a application/ libinkapp.a ui/dialog/libuidialog.a dialogs/libspdialogs.a jabber_whiteboard/libjabber_whiteboard.a trace/libtrace.a svg/ libspsvg.a widgets/libspwidgets.a display/libspdisplay.a helper/ libspchelp.a libcroco/libcroco.a libnrtype/libnrtype.a libnr/libnr.a libavoid/libavoid.a livarot/libvarot.a ui/view/libuiview.a ui/libui.a ui/widget/libuiwidget.a graphlayout/libgraphlayout.a removeoverlap/ libremoveoverlap.a extension/libextension.a extension/implementation/ libimplementation.a extension/internal/libinternal.a extension/script/ libscript.a dom/libdom.a xml/libspxml.a util/libinkutil.a io/libio.a inkjar/libinkjar.a libinkpost.a debug/libinkdebug.a -L/usr/X11R6/lib / sw/lib/libgtkmm-2.4.dylib /sw/lib/libgdkmm-2.4.dylib /sw/lib/ libatkmm-1.6.dylib /sw/lib/libpangomm-1.4.dylib /sw/lib/ libglibmm-2.4.dylib /sw/lib/libgtk-x11-2.0.dylib /sw/lib/libgdk- x11-2.0.dylib -lXrandr -lXinerama -lXext -lXcursor /sw/lib/ libatk-1.0.dylib /sw/lib/libgdk_pixbuf-2.0.dylib /sw/lib/ libpangoxft-1.0.dylib /sw/lib/libpangox-1.0.dylib -lX11 /sw/lib/ libxslt.dylib /sw/lib/libsigc-2.0.dylib -lpng /sw/lib/ libgnomevfs-2.dylib /sw/lib/libxml2.dylib -lz /sw/lib/ libbonobo-2.dylib /sw/lib/libgconf-2.dylib /sw/lib/libbonobo- activation.dylib /sw/lib/libORBitCosNaming-2.dylib /sw/lib/ libORBit-2.dylib /sw/lib/libpopt.dylib -lresolv /sw/lib/ libgthread-2.0.dylib -lXft -lXrender /sw/lib/libpangoft2-1.0.dylib - lfontconfig /sw/lib/libpango-1.0.dylib /sw/lib/libgobject-2.0.dylib / sw/lib/libgmodule-2.0.dylib /sw/lib/libglib-2.0.dylib /sw/lib/ libintl.dylib /sw/lib/libiconv.dylib -lfreetype -L/usr/local/lib / System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/ DynaLoader.a -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/ CORE -lperl -ldl -lc /sw/lib/libgc.dylib -lpthread /sw/lib/ liblcms.dylib -lm /usr/bin/ld: warning multiple definitions of symbol _locale_charset /sw/lib/libintl.dylib(localcharset.o) definition of _locale_charset /sw/lib/libiconv.dylib(localcharset.o) definition of _locale_charset /usr/bin/ld: Undefined symbols: typeinfo for Atk::Implementor typeinfo for Gtk::Bin typeinfo for Gtk::Dialog typeinfo for Gtk::Object typeinfo for Gtk::Widget typeinfo for Gtk::Window typeinfo for Gtk::Container typeinfo for Glib::ObjectBase typeinfo for Glib::Object typeinfo for Glib::Interface typeinfo for Gtk::CellLayout typeinfo for Gtk::TreeModelColumnRecord typeinfo for Gtk::ComboBox typeinfo for Gtk::Box typeinfo for Gtk::VBox typeinfo for Gtk::Table typeinfo for Gtk::CheckButton typeinfo for Gtk::ToggleButton typeinfo for Gtk::HBox typeinfo for Gtk::Button typeinfo for Gtk::FileChooser typeinfo for Gtk::FileChooserDialog typeinfo for Gtk::ScrolledWindow typeinfo for Gtk::RadioButton typeinfo for Gtk::Item typeinfo for Gtk::MenuItem typeinfo for Gtk::SpinButton typeinfo for Gtk::CellEditable typeinfo for Gtk::Entry typeinfo for Gtk::Editable typeinfo for Gtk::EventBox typeinfo for Gtk::HandleBox typeinfo for Gtk::Adjustment collect2: ld returned 1 exit status make[2]: *** [inkscape] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Thank you in advance for any comment. I hope I'll be able to compile inkscape someday, the development builds for OS X are pretty old now ;-)
JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/