compile error on os x 10.4.2
Hi,
I have a linking error on mac os X with latest CVS (checked this 3 hours ago) and I think I have all dependencies right (because it worked last time with these packages = two weeks ago, when I compiled inkscape). But since I have changed system and now I use 10.4.2 with latest developer tools and fink up to date. So I have this error:
/bin/sh ../libtool --mode=link g++ -Wall -W -Wpointer-arith -Wcast- align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused- parameter -I/sw/include -O3 -Wall -L/sw/lib -o inkscape --export- dynamic main.o libinkpre.a application/libinkapp.a ui/dialog/ libuidialog.a dialogs/libspdialogs.a dom/libdom.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 extension/libextension.a extension/implementation/ libimplementation.a extension/internal/libinternal.a extension/script/ libscript.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 -lgc g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded- virtual -Wswitch -Wno-unused-parameter -I/sw/include -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 dom/libdom.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 extension/ libextension.a extension/implementation/libimplementation.a extension/ internal/libinternal.a extension/script/libscript.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 -lm /sw/lib/ libgobject-2.0.dylib /sw/lib/libgmodule-2.0.dylib /sw/lib/ libglib-2.0.dylib /sw/lib/libintl.dylib -lc /sw/lib/libiconv.dylib - lfreetype /sw/lib/libgc.dylib -lpthread /usr/bin/ld: warning empty table of contents: jabber_whiteboard/ libjabber_whiteboard.a (can't load from it) /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::HBox typeinfo for Gtk::FileChooser typeinfo for Gtk::FileChooserDialog typeinfo for Gtk::HandleBox typeinfo for Gtk::Adjustment typeinfo for Gtk::CheckButton typeinfo for Gtk::CellEditable typeinfo for Gtk::ToggleButton typeinfo for Gtk::Entry typeinfo for Gtk::Button typeinfo for Gtk::Editable collect2: ld returned 1 exit status make[2]: *** [inkscape] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
could it come from the code or is it something in my settings?
jiho@...993...:inkscape$ g++ -v Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5026.obj~19/src/configure -- disable-checking --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/ s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ -- build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 -- target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.0 (Apple Computer, Inc. build 5026)
jiho@...993...:inkscape$ ld -v Apple Computer, Inc. version cctools-590.obj~12
NB: it seems that the latest dev build is not functional because it was only partially uploaded to sourceforge so the dmg does not even mount. therefore this new build is really needed. Thanks for any help.
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/
On Thu, 6 Oct 2005, jiho wrote:
I have a linking error on mac os X with latest CVS (checked this 3 hours ago) and I think I have all dependencies right (because it worked last time with these packages = two weeks ago, when I compiled inkscape). But since I have changed system and now I use 10.4.2 with latest developer tools and fink up to date. So I have this error:
/usr/bin/ld: Undefined symbols: typeinfo for Atk::Implementor typeinfo for Gtk::Bin typeinfo for Gtk::Dialog typeinfo for Gtk::Window [...]
could it come from the code or is it something in my settings?
This happens because all the required libraries (i.e. GTK) are built by fink on 10.4.x using gcc-3.3 still. (Much of fink is still built with gcc 3.3 but people are working on bringing it to all up to gcc 4.0)
The solution for the moment is to build inkscape with gcc-3.3 and g++-3.3. This works fine on OSX 10.4.x with current CVS, except there is yet another trivial patch to src/isnan.h required. pjrm and I were discussing it yesterday but I don't think he checked it in yet. It'll be there soon but to compile on gcc3.3 under Tiger you'll want to have the following:
# define isNaN(_a) (std::isnan(_a)) # define isFinite(_a) (std::isfinite(_a))
Cheers, Michael
participants (2)
-
jiho
-
Michael Wybrow