[Nix-dev] Abiword broken because of libpng

Sergey Mironov ierton at gmail.com
Mon Apr 16 10:48:30 CEST 2012


Hi!
I am trying to fix an error causing build failure in abiword:

ie_impGraphic_GdkPixbuf.cpp: In member function 'UT_Error
IE_ImpGraphic_GdkPixbuf::_png_write(GdkPixbuf*)':
ie_impGraphic_GdkPixbuf.cpp:188:6: error: invalid use of incomplete
type 'png_struct {aka struct png_struct_def}'
/nix/store/5y4x6m06pfdsjy0s562006j9v0jfp6s8-libpng-1.5.9/include/png.h:847:16:
error: forward declaration of 'png_struct {aka struct png_struct_def}'
ie_impGraphic_GdkPixbuf.cpp: In member function 'UT_Error
IE_ImpGraphic_GdkPixbuf::Initialize_PNG()':
ie_impGraphic_GdkPixbuf.cpp:449:6: error: invalid use of incomplete
type 'png_struct {aka struct png_struct_def}'
/nix/store/5y4x6m06pfdsjy0s562006j9v0jfp6s8-libpng-1.5.9/include/png.h:847:16:
error: forward declaration of 'png_struct {aka struct png_struct_def}'
make[5]: *** [ie_impGraphic_GdkPixbuf.lo] Error 1

struct png_struct is really undefined in libpng-1.5.9 (comment says
that applications shouldn't know the details). So I've decided to try
older version of libpng - libpng12 and changed all-packages.nix

  abiword = callPackage ../applications/office/abiword {
    inherit (gnome) libglade libgnomecanvas;

    libpng = libpng12; # <-- by adding this

  };

But it doesn't help! The error is same as before and it refers to
libpng-1.5.9. What do I do wrong?

Sergey.


More information about the nix-dev mailing list