Home arrow Debugging Tips arrow Error When Compiling Inkscape
Error When Compiling Inkscape PDF
Tuesday, 07 February 2012
If you try to compile latest Inkscape from ports using (this was reproduced on FreeBSD 9.0):

  cd /usr/ports/graphics/inkscape
  make -DBATCH install clean


and you get the following error:

inkscape compiling error
r.Tpo -c WP6Header.cpp  -fPIC -DPIC -o .libs/WP6Header.o
mv -f .deps/WP6GraphicsBoxStylePacket.Tpo .deps/WP6GraphicsBoxStylePacket.Plo
/bin/sh ../../libtool --tag=CXX    --mode=compile clang++ -DHAVE_CONFIG_H -I. -I../.. -I.    -DNDEBUG -O2 -pipe -fno-strict-aliasing -Wall -Werror -pedantic -MT WP60Header.lo -MD -MP -MF .deps/WP60Header.Tpo -c -o WP60Header.lo WP60Header.cpp
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../.. -I. -DNDEBUG -O2 -pipe -fno-strict-aliasing -Wall -Werror -pedantic -MT WP60Header.lo -MD -MP -MF .deps/WP60Header.Tpo -c WP60Header.cpp  -fPIC -DPIC -o .libs/WP60Header.o
mv -f .deps/WP6Header.Tpo .deps/WP6Header.Plo
/bin/sh ../../libtool --tag=CXX    --mode=compile clang++ -DHAVE_CONFIG_H -I. -I../.. -I.    -DNDEBUG -O2 -pipe -fno-strict-aliasing -Wall -Werror -pedantic -MT WP61Header.lo -MD -MP -MF .deps/WP61Header.Tpo -c -o WP61Header.lo WP61Header.cpp
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../.. -I. -DNDEBUG -O2 -pipe -fno-strict-aliasing -Wall -Werror -pedantic -MT WP61Header.lo -MD -MP -MF .deps/WP61Header.Tpo -c WP61Header.cpp  -fPIC -DPIC -o .libs/WP61Header.o
WP6GraphicsFilenamePacket.cpp:45:15: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand]
        if ((m_flags && 0x01) == 0x00)
                     ^  ~~~~
WP6GraphicsFilenamePacket.cpp:45:15: note: use '&' for a bitwise operation
        if ((m_flags && 0x01) == 0x00)
                     ^~
                     &
WP6GraphicsFilenamePacket.cpp:45:15: note: remove constant to silence this warning
        if ((m_flags && 0x01) == 0x00)
                     ^~~~~~~
1 error generated.
*** Error code 1
mv -f .deps/WP6GraphicsCachedFileDataPacket.Tpo .deps/WP6GraphicsCachedFileDataPacket.Plo
mv -f .deps/WP60Header.Tpo .deps/WP60Header.Plo
mv -f .deps/WP61Header.Tpo .deps/WP61Header.Plo
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 1

Stop in /usr/ports/textproc/libwpd.
*** Error code 1

Stop in /usr/ports/graphics/libwpg.
*** Error code 1

Stop in /usr/ports/graphics/inkscape.
*** Error code 1

Stop in /usr/ports/graphics/inkscape.

then there is some dependency missing or a dependeny is compiled with an old library.

Here is a correct dependency for Inkscape 0.48.2_1 (at least at this time, because in the future some version might be changed or other required dependencies could appear/dissapear).

So, here is the dependency list (on a properly installed machine):

inkscape-0.48.2_1 dependency list
think# pkg_info -r inkscape-0.48.2_1
Information for inkscape-0.48.2_1:

Depends on:
Dependency: xineramaproto-1.2.1
Dependency: xextproto-7.2.0
Dependency: renderproto-0.11.1
Dependency: randrproto-1.3.2
Dependency: kbproto-1.0.5
Dependency: inputproto-2.0.2
Dependency: fixesproto-5.0
Dependency: damageproto-1.2.1
Dependency: compositeproto-0.4.2
Dependency: font-util-1.2.0
Dependency: encodings-1.0.4,1
Dependency: expat-2.0.1_2
Dependency: gnome_subr-1.0
Dependency: dmidecode-2.11
Dependency: gsfonts-8.11_5
Dependency: cups-client-1.5.0
Dependency: pciids-20120118
Dependency: hicolor-icon-theme-0.12
Dependency: gnomehier-2.3_12
Dependency: gsl-1.15_1
Dependency: python27-2.7.2_3
Dependency: perl-5.12.4_3
Dependency: p5-XML-RegExp-0.03
Dependency: p5-YAML-Syck-1.19
Dependency: p5-Net-SSLeay-1.42
Dependency: p5-IO-Socket-SSL-1.53
Dependency: p5-URI-1.59
Dependency: p5-WWW-RobotRules-6.01
Dependency: p5-LWP-MediaTypes-6.01
Dependency: p5-HTML-Tagset-3.20
Dependency: p5-HTML-Parser-3.69
Dependency: p5-HTTP-Date-6.00
Dependency: p5-File-Listing-6.03
Dependency: p5-Digest-HMAC-1.03
Dependency: p5-Authen-NTLM-1.09
Dependency: p5-XML-Parser-2.41
Dependency: p5-libxml-0.08
Dependency: poppler-data-0.4.5
Dependency: png-1.4.8
Dependency: libfpx-1.2.0.12_1
Dependency: lcms2-2.3
Dependency: lcms-1.19_1,1
Dependency: jpeg-8_3
Dependency: webp-0.1.3
Dependency: jbigkit-1.6
Dependency: tiff-4.0.0_3
Dependency: openjpeg-1.3_2
Dependency: cups-image-1.5.0
Dependency: jbig2dec-0.11
Dependency: jasper-1.900.1_10
Dependency: pkg-config-0.25_1
Dependency: fftw3-3.3_1
Dependency: pixman-0.24.0
Dependency: talloc-2.0.7
Dependency: freetype2-2.4.7
Dependency: fontconfig-2.8.0_1,1
Dependency: bitstream-vera-1.10_5
Dependency: xproto-7.0.22
Dependency: libfontenc-1.1.0
Dependency: mkfontscale-1.0.9
Dependency: mkfontdir-1.0.6
Dependency: font-misc-ethiopic-1.0.3
Dependency: font-misc-meltho-1.0.3
Dependency: font-bh-ttf-1.0.3
Dependency: xorg-fonts-truetype-7.5.1
Dependency: libICE-1.0.7,1
Dependency: libSM-1.2.0,1
Dependency: libXdmcp-1.1.0
Dependency: libXau-1.0.6
Dependency: pcre-8.21_1
Dependency: p5-Parse-Yapp-1.05
Dependency: p5-Date-Manip-6.30
Dependency: libvolume_id-0.81.1
Dependency: libsigc++-2.2.10
Dependency: libpthread-stubs-0.3_3
Dependency: libxcb-1.7
Dependency: xcb-util-0.3.8,1
Dependency: xcb-util-renderutil-0.3.8
Dependency: libX11-1.4.4,1
Dependency: libXt-1.0.9
Dependency: libXext-1.3.0_1,1
Dependency: libXi-1.4.3,1
Dependency: libXinerama-1.1.1,1
Dependency: libXfixes-5.0
Dependency: libXcomposite-0.4.3,1
Dependency: libXdamage-1.1.3
Dependency: libXrender-0.9.6
Dependency: libXft-2.1.14
Dependency: libXrandr-1.3.2
Dependency: libXcursor-1.1.12
Dependency: libltdl-2.4.2
Dependency: libffi-3.0.9
Dependency: libexecinfo-1.1_3
Dependency: libdaemon-0.14
Dependency: boehm-gc-7.1
Dependency: gdbm-1.9.1
Dependency: p5-Encode-Locale-1.02
Dependency: libiconv-1.13.1_1
Dependency: ghostscript9-9.04
Dependency: samba34-libsmbclient-3.4.14
Dependency: libxml2-2.7.8_1
Dependency: libwmf-0.2.8.4_6
Dependency: dbus-1.4.14_2
Dependency: gettext-0.18.1.1
Dependency: gnome-mime-data-2.18.0_4
Dependency: aspell-0.60.6.1
Dependency: popt-1.16
Dependency: libgpg-error-1.10
Dependency: libgcrypt-1.5.0
Dependency: libxslt-1.1.26_3
Dependency: glib-2.28.8_3
Dependency: gamin-0.1.10_4
Dependency: gio-fam-backend-2.28.8
Dependency: glibmm-2.28.2,1
Dependency: libxml++-2.34.2
Dependency: desktop-file-utils-0.18
Dependency: libgee-0.6.2.1
Dependency: libIDL-0.8.14_1
Dependency: ORBit2-2.14.19
Dependency: gdk-pixbuf-2.23.5_1
Dependency: libcroco-0.6.2_1
Dependency: liblqr-1-0.4.1_2
Dependency: enchant-1.6.0
Dependency: dbus-glib-0.94
Dependency: eggdbus-0.6_1
Dependency: policykit-0.9_6
Dependency: cairo-1.10.2_3,1
Dependency: cairomm-1.10.0
Dependency: poppler-0.18.0
Dependency: poppler-glib-0.18.0
Dependency: gobject-introspection-0.10.8
De pendency: pango-1.28.4
Dependency: pangomm-2.28.2
Dependency: polkit-0.99
Dependency: consolekit-0.4.3
Dependency: hal-0.5.14_18
Dependency: avahi-app-0.6.29_1
Dependency: shared-mime-info-0.90
Dependency: p5-Compress-Raw-Zlib-2.048
Dependency: p5-Compress-Raw-Bzip2-2.048
Dependency: p5-IO-Compress-2.048
Dependency: p5-Net-HTTP-6.02
Dependency: p5-HTTP-Message-6.02
Dependency: p5-HTTP-Negotiate-6.00
Dependency: p5-HTTP-Daemon-6.00
Dependency: p5-HTTP-Cookies-6.00
Dependency: p5-libwww-6.03
Dependency: p5-XML-DOM-1.44
Dependency: p5-XML-XQL-0.68
Dependency: atk-2.0.1
Dependency: atkmm-2.22.5
Dependency: gtk-update-icon-cache-2.24.6
Dependency: gtk-2.24.6
Dependency: gtkspell-2.0.16_3
Dependency: gtkmm-2.24.2
Dependency: gtk-engines2-2.20.2
Dependency: dconf-0.5.1_3
Dependency: gconf2-2.32.0_2
Dependency: gnome-vfs-2.24.4
Dependency: libgsf-1.14.21
Dependency: libwpd-0.9.2
Dependency: libwpg-0.2.0_1
Dependency: librsvg2-2.34.1
Dependency: ImageMagick-6.7.4.4_1

On machine where I could reproduce the error some of the dependencies were old. For example some dependencies were:

- pciids-20111109 instead of pciids-20120118 (solved by cvsup and recompile)
- gsl-1.15 instead of gsl-1.15_1 (solved by cvsup and recompile)

p5-XML-RegExp-0.03 - missing (solved by compilation)
  cd /usr/ports/textproc/p5-XML-RegExp
  make install clean


p5-YAML-Syck-1.19 - missing
  cd /usr/ports/textproc/p5-YAML-Syck
  make install clean


- p5-IO-Socket-SSL-1.49 instead of p5-IO-Socket-SSL-1.53 (solved by cvsup and recompile)

p5-libxml-0.08 - missing
  cd /usr/ports/textproc/p5-libxml
  make install clean


These are some of old dependencies, I did not check every module because the problem seems to be at libwpg port.

The problem is with: /usr/ports/graphics/libwpg and /usr/ports/textproc/libwpd ports because some required dependencies are old.

More specific the problem could be solved for inkscape by rebuilding port and all dependencies of inkscape:

  portmaster -fR graphics/inkscape

Or to solve the problem only for libwpg and libwpd:

  portmaster -fR graphics/libwpg
  portmaster -fR graphics/libwpd


Dont forget that portmaster is an userland app available in FreeBSD's ports:

  cd /usr/ports/ports-mgmt/portmaster
  make install clean; rehash


Note: When updating ports is important to read /usr/ports/UPDATING.

For example for inkscape you will find:

20120109:
  AFFECTS: users of
graphics/inkscape:
  AUTHOR: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it


  Before updating graphics/inkscape to version 0.48.2 one should deinstall
  the port graphics/libwpg01.

and also:

20110103:
  AFFECTS: users of textproc/libwpd and graphics/libwpg
  AUTHOR: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

  LibWPD and LibWPG is now using new API, partially incompatible with
  previous versions.
  For correct upgrade procedure please upgrade LibWPD and LibWPG first
  as described, than follow usual upgrade procedure

  # portmaster -o textproc/libwpd08 libwpd
  # portmaster -o graphics/libwpg01 libwpg


  substitute 'portupgrade' for 'portmaster' accordingly if that's your
  your upgrade tool of choice.

Such info found in /usr/ports/UPDATING file for ports are usefull sometimes.

Last Updated ( Tuesday, 07 February 2012 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?