[Nix-dev] Inkscape/libpng compilation error

Ludovic Courtès ludo at gnu.org
Sun Jan 25 23:14:25 CET 2009


Hello,

TU Delft Nix Buildfarm <e.dolstra at tudelft.nl> writes:

> building sp-image.o
> g++ -DHAVE_CONFIG_H -I. -I..  -I/nix/store/qmxvz1cii0gina267pxn9hiizribhn8q-python-2.5.2/include/python2.5 -I/nix/store/7f5x8ykm72i3wcsn6n50c6f0syw9gl6d-freetype-2.3.6/include/freetype2 -I/nix/store/7f5x8ykm72i3wcsn6n50c6f0syw9gl6d-freetype-2.3.6/include     -I/nix/store/7f5x8ykm72i3wcsn6n50c6f0syw9gl6d-freetype-2.3.6/include/freetype2 -I/nix/store/7f5x8ykm72i3wcsn6n50c6f0syw9gl6d-freetype-2.3.6/include -I/nix/store/s3ix77r0710hxxc8f4v02c0bvf0jz4j7-fontconfig-2.6.0/include -I/nix/store/3avzllrk1q9clfh4v2mfgcjdb75pvk1g-xproto-7.0.10/include -I/nix/store/6v7anjkzr8dg01f0mvwpw3z631bqj48m-libX11-1.1.3/include -I/nix/store/dzm4kk7v0xd12d222k01kfywj43m3xqk-kbproto-1.0.3/include -I/nix/store/s5vd9wv9ljsvrs4vh93fq969647xlf4j-libXft-2.1.12/include -I/nix/store/wsnghal1sbxj0b8drhlg4d1hrq6qcgmp-libXrender-0.9.4/include -I/nix/store/s3n1kgsggblqkh6ir7nk6cjla14i4cbm-renderproto-0.9.3/include     -DPOTRACE=\"potrace\" -pthread -I/nix/store/r0kpkax4hy3fcvrgjsfadh3q7ayin81m-gtk+-2.1
 2!
>  .10/include/gtk-2.0 -I/nix/store/r0kpkax4hy3fcvrgjsfadh3q7ayin81m-gtk+-2.12.10/lib/gtk-2.0/include -I/nix/store/9340nw6i0dkvyz2hrbq2nr25gx9s1ma4-glib-2.16.3/include/glib-2.0 -I/nix/store/9340nw6i0dkvyz2hrbq2nr25gx9s1ma4-glib-2.16.3/lib/glib-2.0/include -I/nix/store/7hzxm2dczq7cdwicwd5ysf6z9lr1zil9-atk-1.20.0/include/atk-1.0 -I/nix/store/6x78jqw9zx3920ybqf5wf3wcgqbixx1c-pango-1.18.4/include/pango-1.0 -I/nix/store/q9icm043xhv4zcphln5d9dhragpwq4r8-cairo-1.8.6/include/cairo -I/nix/store/7f5x8ykm72i3wcsn6n50c6f0syw9gl6d-freetype-2.3.6/include/freetype2 -I/nix/store/7f5x8ykm72i3wcsn6n50c6f0syw9gl6d-freetype-2.3.6/include -I/nix/store/91ms4aqkxnav6c0yzdsq9v90ql8wriy5-libpng-1.2.29/include/libpng12 -I/nix/store/1j3s8n1d9d6r65fnsjxn6dzdkn9m7gbr-libxml2-2.6.32/include/libxml2 -I/nix/store/lgsp3q9v19bl12scd1v8jgz3gl4vd357-libxslt-1.1.24/include -I/nix/store/kxbx6wgq7x0japi2zw570c40wvf7swrw-gtkmm-2.12.7/include/gdkmm-2.4 -I/nix/store/kxbx6wgq7x0japi2zw570c40wvf7swrw-gtkmm-2.12.7/lib/g
 d!
>  kmm-2.4/include -I/nix/store/kxbx6wgq7x0japi2zw570c40wvf7swrw-gtkmm-
> 2.7/include/pangomm-1.4 -I/nix/store/kxbx6wgq7x0japi2zw570c40wvf7swrw-gtkmm-2.12.7/include/gtkmm-2.4 -I/nix/store/kxbx6wgq7x0japi2zw570c40wvf7swrw-gtkmm-2.12.7/lib/gtkmm-2.4/include -I/nix/store/kxbx6wgq7x0japi2zw570c40wvf7swrw-gtkmm-2.12.7/include/atkmm-1.6 -I/nix/store/jngpq5a27vx5xd0dsqkddc3kpxqamw55-glibmm-2.16.2/include/glibmm-2.4 -I/nix/store/jngpq5a27vx5xd0dsqkddc3kpxqamw55-glibmm-2.16.2/lib/glibmm-2.4/include -I/nix/store/jcm5s0n7fy3cdqs3ypcgy0dzs3jnn7ll-libsigc++-2.0.16/include/sigc++-2.0 -I/nix/store/jcm5s0n7fy3cdqs3ypcgy0dzs3jnn7ll-libsigc++-2.0.16/lib/sigc++-2.0/include -I/nix/store/fpq5rqdap9xhgzrfan3pw8a14i7n03vm-cairomm-1.7.2/include/cairomm-1.0   -I../cxxtest    -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno-unused-parameter -g -O2 -c -o sp-image.o sp-image.cpp
> In file included from /nix/store/91ms4aqkxnav6c0yzdsq9v90ql8wriy5-libpng-1.2.29/include/libpng12/png.h:444,
>                  from sp-image.cpp:44:
> /nix/store/91ms4aqkxnav6c0yzdsq9v90ql8wriy5-libpng-1.2.29/include/libpng12/pngconf.h:326: error: expected constructor, destructor, or type conversion before '.' token
> /nix/store/91ms4aqkxnav6c0yzdsq9v90ql8wriy5-libpng-1.2.29/include/libpng12/pngconf.h:327: error: '__dont__' does not name a type
> make[2]: *** [sp-image.o] Error 1
> make[2]: Leaving directory `/tmp/nix-build-0p03qiz21nb9wmg3y3m5ykwsn34f18wm-inkscape-0.46.drv-0/inkscape-0.46/src'
> make[1]: *** [all-recursive] Error 1

This compilation error may be a side effect of my Cairo/Cairomm update.
However, I'm not sure how to handle it.  Other distros consider libpng
overzealous and simply turn the error into a warning:

  http://lists.ibiblio.org/pipermail/sm-commit/2008-December/020813.html
  https://bugs.launchpad.net/ubuntu/+source/libpng/+bug/218409

I'd happily do that but:

  $ nix-store -q --referrers /nix/store/91ms4aqkxnav6c0yzdsq9v90ql8wriy5-libpng-1.2.29/ |wc -l
  101

Should I just temporarily downgrade Cairo{,mm}?  Other ideas?

Thanks,
Ludo'.



More information about the nix-dev mailing list