print/libharu does not build after update to 2.3.0
Rainer Hurling
rhurlin at gwdg.de
Sat Feb 15 10:23:46 UTC 2014
Unfortunately print/libharu does not build anymore after the update to
2.3.0 (r344246). This happens on HEAD r261806 amd64 with clang.
Any help is really appreciated.
Thanks in advance,
Rainer Hurling
#make
===> Found saved configuration for libharu-2.3.0
===> libharu-2.3.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libharu-2.3.0 for building
===> Extracting for libharu-2.3.0
=> SHA256 Checksum OK for libharu-2.3.0.tar.gz.
===> Patching for libharu-2.3.0
===> Applying FreeBSD patches for libharu-2.3.0
===> libharu-2.3.0 depends on file: /usr/local/bin/cmake - found
===> libharu-2.3.0 depends on shared library: libpng15.so - found
===> Configuring for libharu-2.3.0
===> Performing out-of-source build
/bin/mkdir -p /usr/ports/print/libharu/work/.build
-- The C compiler identification is Clang 3.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- DevPackage only available for Win32. Set DEVPAK to OFF.
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
-- Found PNG: /usr/local/lib/libpng.so (found version "1.5.18")
Summary of CMake build system results for the haru library
Install location variables which can be set by the user:
CMAKE_INSTALL_PREFIX: /usr/local
CMAKE_INSTALL_EXEC_PREFIX
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_INCLUDEDIR
Other important CMake variables:
CMAKE_SYSTEM_NAME: FreeBSD
UNIX: 1
WIN32:
APPLE:
MSVC: (MSVC_VERSION: )
MINGW:
MSYS:
CYGWIN:
BORLAND:
WATCOM:
CMAKE_BUILD_TYPE: Release
CMAKE_C_COMPILER CMAKE_C_FLAGS: /usr/bin/cc -O2 -pipe -fno-strict-aliasing
Library options:
LIBHPDF_SHARED: ON
LIBHPDF_STATIC: ON
LIBHPDF_EXAMPLES: ON
DEVPAK: OFF
Optional libraries:
HAVE_LIBZ: TRUE
HAVE_LIBPNG: TRUE
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_COMPILER
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS
THREADS_HAVE_PTHREAD_ARG
-- Build files have been written to: /usr/ports/print/libharu/work/.build
===> Building for libharu-2.3.0
Scanning dependencies of target hpdf
Scanning dependencies of target hpdfs
[ 1%] Building C object src/CMakeFiles/hpdf.dir/hpdf_binary.o
[ 0%] Building C object src/CMakeFiles/hpdf.dir/hpdf_boolean.o
[ 4%] Building C object src/CMakeFiles/hpdfs.dir/hpdf_annotation.o
[ 4%] Building C object src/CMakeFiles/hpdf.dir/hpdf_catalog.o
[ 5%] Building C object src/CMakeFiles/hpdf.dir/hpdf_array.o
[ 4%] Building C object src/CMakeFiles/hpdf.dir/hpdf_annotation.o
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:235:46:
error: use of undeclared identifier 'HPDF_ANNOT_WIDGET'; did you mean
'HPDF_ANNOT_HIDDEN'?
annot = HPDF_Annotation_New (mmgr, xref, HPDF_ANNOT_WIDGET, rect);
^~~~~~~~~~~~~~~~~
HPDF_ANNOT_HIDDEN
/usr/local/include/hpdf_types.h:366:5: note: 'HPDF_ANNOT_HIDDEN'
declared here
HPDF_ANNOT_HIDDEN,
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:235:46:
warning: implicit conversion from enumeration type 'enum
_HPDF_AnnotFlgs' to different enumeration type 'HPDF_AnnotType' (aka
'enum _HPDF_AnnotType') [-Wenum-conversion]
annot = HPDF_Annotation_New (mmgr, xref, HPDF_ANNOT_WIDGET, rect);
~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~
[ 6%] Building C object src/CMakeFiles/hpdf.dir/hpdf_destination.o
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:235:46:
error: use of undeclared identifier 'HPDF_ANNOT_WIDGET'; did you mean
'HPDF_ANNOT_HIDDEN'?
annot = HPDF_Annotation_New (mmgr, xref, HPDF_ANNOT_WIDGET, rect);
^~~~~~~~~~~~~~~~~
HPDF_ANNOT_HIDDEN
/usr/local/include/hpdf_types.h:366:5: note: 'HPDF_ANNOT_HIDDEN'
declared here
HPDF_ANNOT_HIDDEN,
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:235:46:
warning: implicit conversion from enumeration type 'enum
_HPDF_AnnotFlgs' to different enumeration type 'HPDF_AnnotType' (aka
'enum _HPDF_AnnotType') [-Wenum-conversion]
annot = HPDF_Annotation_New (mmgr, xref, HPDF_ANNOT_WIDGET, rect);
~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:302:53:
error: unknown type name 'HPDF_JavaScript'
HPDF_LinkAnnot_SetJavaScript(HPDF_Annotation annot, HPDF_JavaScript
javascript)
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:302:53:
error: unknown type name 'HPDF_JavaScript'
HPDF_LinkAnnot_SetJavaScript(HPDF_Annotation annot, HPDF_JavaScript
javascript)
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:414:1:
error: conflicting types for 'HPDF_3DAnnot_New'
HPDF_3DAnnot_New (HPDF_MMgr mmgr,
^
/usr/local/include/hpdf_annotation.h:53:1: note: previous declaration is
here
HPDF_3DAnnot_New (HPDF_MMgr mmgr,
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:931:43:
error: use of undeclared identifier 'HPDF_ANNOT_PROJECTION'
annot = HPDF_Annotation_New (mmgr, xref, HPDF_ANNOT_PROJECTION,
rect);
^
[ 7%] Building C object src/CMakeFiles/hpdfs.dir/hpdf_array.o
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:414:1:
error: conflicting types for 'HPDF_3DAnnot_New'
HPDF_3DAnnot_New (HPDF_MMgr mmgr,
^
/usr/local/include/hpdf_annotation.h:53:1: note: previous declaration is
here
HPDF_3DAnnot_New (HPDF_MMgr mmgr,
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:931:43:
error: use of undeclared identifier 'HPDF_ANNOT_PROJECTION'
annot = HPDF_Annotation_New (mmgr, xref, HPDF_ANNOT_PROJECTION,
rect);
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:1218:55:
error: unknown type name 'HPDF_ExData'; did you mean 'HPDF_Date'?
HPDF_ProjectionAnnot_SetExData(HPDF_Annotation annot, HPDF_ExData exdata)
^~~~~~~~~~~
HPDF_Date
/usr/local/include/hpdf_types.h:125:3: note: 'HPDF_Date' declared here
} HPDF_Date;
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:1222:39:
error: passing 'HPDF_Date' (aka 'struct _HPDF_Date') to parameter of
incompatible type 'void *'
ret = HPDF_Dict_Add(annot, "ExData", exdata);
^~~~~~
/usr/local/include/hpdf_objects.h:467:31: note: passing argument to
parameter 'obj' here
void *obj);
^
1 warning and 6 errors generated.
--- src/CMakeFiles/hpdfs.dir/hpdf_annotation.o ---
*** [src/CMakeFiles/hpdfs.dir/hpdf_annotation.o] Error code 1
make[4]: stopped in /usr/ports/print/libharu/work/.build
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:1218:55:
error: unknown type name 'HPDF_ExData'; did you mean 'HPDF_Date'?
HPDF_ProjectionAnnot_SetExData(HPDF_Annotation annot, HPDF_ExData exdata)
^~~~~~~~~~~
HPDF_Date
/usr/local/include/hpdf_types.h:125:3: note: 'HPDF_Date' declared here
} HPDF_Date;
^
/usr/ports/print/libharu/work/libharu-libharu-7f4bb51/src/hpdf_annotation.c:1222:39:
error: passing 'HPDF_Date' (aka 'struct _HPDF_Date') to parameter of
incompatible type 'void *'
ret = HPDF_Dict_Add(annot, "ExData", exdata);
^~~~~~
/usr/local/include/hpdf_objects.h:467:31: note: passing argument to
parameter 'obj' here
void *obj);
^
1 warning and 6 errors generated.
--- src/CMakeFiles/hpdf.dir/hpdf_annotation.o ---
*** [src/CMakeFiles/hpdf.dir/hpdf_annotation.o] Error code 1
make[4]: stopped in /usr/ports/print/libharu/work/.build
1 error
make[4]: stopped in /usr/ports/print/libharu/work/.build
--- src/CMakeFiles/hpdf.dir/all ---
*** [src/CMakeFiles/hpdf.dir/all] Error code 2
make[3]: stopped in /usr/ports/print/libharu/work/.build
1 error
make[4]: stopped in /usr/ports/print/libharu/work/.build
--- src/CMakeFiles/hpdfs.dir/all ---
*** [src/CMakeFiles/hpdfs.dir/all] Error code 2
make[3]: stopped in /usr/ports/print/libharu/work/.build
2 errors
make[3]: stopped in /usr/ports/print/libharu/work/.build
--- all ---
*** [all] Error code 2
make[2]: stopped in /usr/ports/print/libharu/work/.build
1 error
make[2]: stopped in /usr/ports/print/libharu/work/.build
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/print/libharu
*** Error code 1
Stop.
make: stopped in /usr/ports/print/libharu
More information about the freebsd-ports
mailing list