[Nix-dev] Re: Inkscape/libpng compilation error

Ludovic Courtès ludo at gnu.org
Mon Jan 26 19:56:52 CET 2009


Hello,

ludo at gnu.org (Ludovic Courtès) writes:

>> 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'
>> .[q.[qmake[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 ended up patching Inkscape:

  https://svn.nixos.org/viewvc/nix?rev=13873&view=rev

We'll see if other applications/libraries need it as well...

Thanks,
Ludo'.




More information about the nix-dev mailing list