pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/calibre doesn't build; png_struct_def; Z_BEST_COMPRESSION.
with pkgsrc 2011Q1, in pkg_comp with 5.0 userland running on 5.1.
This seems a PNG thing, given the error about "undefined type 'struct
png_struct_def'" ?
####### Building extension pdfreflow #######
c++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -O2 -I/usr/pkg/include
-I/usr/include -I/usr/pkg/include/python2.6 -I/usr/X11R7/include
-I/usr/X11R7/include/freetype2 -I/usr/pkg/qt4/include -pthread
-I/usr/pkg/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/pkg/include/poppler
-I/usr/include -I/usr/pkg/include/ImageMagick -c
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp
-o
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/build/objects/pdfreflow/images.o
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp:
In member function 'void calibre_reflow::PNGWriter::init(FILE*, int, int)':
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp:243:
error: 'Z_BEST_COMPRESSION' was not declared in this scope
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp:
In function 'void calibre_png_mem_write(png_struct*, png_byte*, png_size_t)':
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp:297:
error: invalid use of undefined type 'struct png_struct_def'
/pkg_comp/obj/pkgsrc/misc/calibre/default/.buildlink/include/png.h:795: error:
forward declaration of 'struct png_struct_def'
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp:
In member function 'void calibre_reflow::PNGMemWriter::init(std::vector<char,
std::allocator<char> >*, int, int)':
/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp:327:
error: 'Z_BEST_COMPRESSION' was not declared in this scope
Traceback (most recent call last):
File "setup.py", line 99, in <module>
sys.exit(main())
File "setup.py", line 85, in main
command.run_all(opts)
File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/setup/__init__.py",
line 158, in run_all
self.run_cmd(self, opts)
File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/setup/__init__.py",
line 154, in run_cmd
cmd.run(opts)
File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/setup/extensions.py",
line 235, in run
self.build(ext, dest)
File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/setup/extensions.py",
line 272, in build
subprocess.check_call(cmd)
File "/usr/pkg/lib/python2.6/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c++', '-O3', '-Wall', '-DNDEBUG',
'-fno-strict-aliasing', '-pipe', '-fPIC', '-O2', '-I/usr/pkg/include',
'-I/usr/include', '-I/usr/pkg/include/python2.6', '-I/usr/X11R7/include',
'-I/usr/X11R7/include/freetype2', '-I/usr/pkg/qt4/include', '-pthread',
'-I/usr/pkg/include/python2.6', '-DPNG_SKIP_SETJMP_CHECK',
'-I/usr/pkg/include/poppler', '-I/usr/include',
'-I/usr/pkg/include/ImageMagick', '-c',
'/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/src/calibre/ebooks/pdf/images.cpp',
'-o',
'/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre/build/objects/pdfreflow/images.o']'
returned non-zero exit status 1
*** Error code 1
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- There's no point being grown-up if you
\X/ rhialto/at/xs4all.nl -- can't be childish sometimes. -The 4th Doctor
Home |
Main Index |
Thread Index |
Old Index