print/libharu does not build after update to 2.3.0

2014-02-15 Thread Rainer Hurling
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);
  

Re: print/libharu does not build after update to 2.3.0

2014-02-15 Thread Pietro Cerutti
On 2014-Feb-15, 11:23, Rainer Hurling wrote:
 Unfortunately print/libharu does not build anymore after the update to
 2.3.0 (r344246). This happens on HEAD r261806 amd64 with clang.

Uhm, it seems to be related to the previous installation. Can you
deinstall the currently installed version before building the new one?
I'll look at a proper fix on monday! Thanks!

 
 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);
   

Re: print/libharu does not build after update to 2.3.0

2014-02-15 Thread Rainer Hurling
Am 15.02.2014 12:36, schrieb Pietro Cerutti:
 On 2014-Feb-15, 11:23, Rainer Hurling wrote:
 Unfortunately print/libharu does not build anymore after the update to
 2.3.0 (r344246). This happens on HEAD r261806 amd64 with clang.
 
 Uhm, it seems to be related to the previous installation. Can you
 deinstall the currently installed version before building the new one?
 I'll look at a proper fix on monday! Thanks!

Yupp, that was it. After deinstalling old print/libharu, the updated
version builds and installs just fine. Thanks for the quick help!


 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