
I tried to build Inkscape over lunch but got the following error. Aaron Spike
ccache g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -o inkscape --export-dynamic main.o -Wl,--export-dynamic -Wl,-E libinkpre.a application/libinkapp.a dialogs/libspdialogs.a trace/libtrace.a svg/libspsvg.a widgets/libspwidgets.a display/libspdisplay.a helper/libspchelp.a libnrtype/libnrtype.a libnr/libnr.a livarot/libvarot.a ui/libui.a ui/dialog/libuidialog.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 /usr/lib/libxslt.so /usr/lib/libxml2.so /usr/lib/libgtkmm-2.4.so /usr/lib/libgdkmm-2.4.so /usr/lib/libatkmm-1.6.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libpangomm-1.4.so /usr/lib/libglibmm-2.4.so /usr/lib/libsigc-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so -lpng /usr/lib/libpopt.so -L/usr/X11R6/lib /usr/lib/libXft.so /usr/lib/libXrender.so -lX11 -lfontconfig /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libfreetype.so -lz -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -lm -lc -lcrypt /usr/lib/python2.3/config/libpython2.3.a -lpthread -ldl -lutil /usr/local/lib/libgc.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib /usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x411d): In function `posix_tmpnam': : warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' /usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x406d): In function `posix_tempnam': : warning: the use of `tempnam' is dangerous, better use `mkstemp' libinkpre.a(sp-line.o)(.text+0x64a): In function `sp_line_set_transform': /usr/local/src/inkscape/src/sp-line.cpp:213: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' libinkpre.a(sp-line.o)(.text+0x65b):/usr/local/src/inkscape/src/sp-line.cpp:214: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' dialogs/libspdialogs.a(unclump.o)(.text+0xff1): In function `unclump_push(SPItem*, SPItem*, double)': /usr/include/c++/3.3/bits/stl_tree.h:202: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' dialogs/libspdialogs.a(unclump.o)(.text+0x1192): In function `unclump_pull(SPItem*, SPItem*, double)': /usr/include/c++/3.3/bits/stl_tree.h:202: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' libnrtype/libnrtype.a(Layout-TNG-Output.o)(.text+0x739): In function `Inkscape::Text::Layout::getBoundingBox(NRRect*, NR::Matrix const&) const': libnrtype/Layout-TNG-Output.cpp:101: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' libnrtype/libnrtype.a(Layout-TNG-Output.o)(.text+0x74e):libnrtype/Layout-TNG-Output.cpp:102: more undefined references to `NR::Point::operator*=(NR::Matrix const&)' follow collect2: ld returned 1 exit status make[2]: *** [inkscape] Error 1 make[2]: Leaving directory `/usr/local/src/inkscape/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/inkscape' make: *** [all] Error 2

aaron@...749... wrote:
I tried to build Inkscape over lunch but got the following error. Aaron Spike
ccache g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -o inkscape --export-dynamic main.o -Wl,--export-dynamic -Wl,-E libinkpre.a application/libinkapp.a dialogs/libspdialogs.a trace/libtrace.a svg/libspsvg.a widgets/libspwidgets.a display/libspdisplay.a helper/libspchelp.a libnrtype/libnrtype.a libnr/libnr.a livarot/libvarot.a ui/libui.a ui/dialog/libuidialog.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 /usr/lib/libxslt.so /usr/lib/libxml2.so /usr/lib/libgtkmm-2.4.so /usr/lib/libgdkmm-2.4.so /usr/lib/libatkmm-1.6.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libpangomm-1.4.so /usr/lib/libglibmm-2.4.so /usr/lib/libsigc-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so -lpng /usr/lib/libpopt.so -L/usr/X11R6/lib /usr/lib/libXft.so /usr/lib/libXrender.so -lX11 -lfontconfig /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libfreetype.so -lz -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -lperl -lm -lc -lcrypt /usr/lib/python2.3/config/libpython2.3.a -lpthread -ldl -lutil /usr/local/lib/libgc.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib /usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x411d): In function `posix_tmpnam': : warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' /usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x406d): In function `posix_tempnam': : warning: the use of `tempnam' is dangerous, better use `mkstemp' libinkpre.a(sp-line.o)(.text+0x64a): In function `sp_line_set_transform': /usr/local/src/inkscape/src/sp-line.cpp:213: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' libinkpre.a(sp-line.o)(.text+0x65b):/usr/local/src/inkscape/src/sp-line.cpp:214: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' dialogs/libspdialogs.a(unclump.o)(.text+0xff1): In function `unclump_push(SPItem*, SPItem*, double)': /usr/include/c++/3.3/bits/stl_tree.h:202: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' dialogs/libspdialogs.a(unclump.o)(.text+0x1192): In function `unclump_pull(SPItem*, SPItem*, double)': /usr/include/c++/3.3/bits/stl_tree.h:202: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' libnrtype/libnrtype.a(Layout-TNG-Output.o)(.text+0x739): In function `Inkscape::Text::Layout::getBoundingBox(NRRect*, NR::Matrix const&) const': libnrtype/Layout-TNG-Output.cpp:101: undefined reference to `NR::Point::operator*=(NR::Matrix const&)' libnrtype/libnrtype.a(Layout-TNG-Output.o)(.text+0x74e):libnrtype/Layout-TNG-Output.cpp:102: more undefined references to `NR::Point::operator*=(NR::Matrix const&)' follow collect2: ld returned 1 exit status make[2]: *** [inkscape] Error 1 make[2]: Leaving directory `/usr/local/src/inkscape/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/inkscape' make: *** [all] Error 2
You almost certainly need to do a:
sh autogen.sh ./configure --your-options make clean make
Some old symbols have been ref'd in your .o files. Just flush everything out this way and start clean.
Bob
participants (2)
-
unknown@example.com
-
Bob Jamison