miwi-fbsd / miwi-ports

untested / unfinished ports
4 stars 0 forks source link

pecl-pdflib breaks #3

Open lunetics opened 8 years ago

lunetics commented 8 years ago

Seems like pecl-pdflib is broken (because of pdflib outdated:)

https://www.componentsource.com/de/product/pdflib-net/releases/2245941

Installing pdflib-7.0.5_4...
===>   pecl-pdflib-3.0.4 depends on shared library: libpdf.so - found (/usr/local/lib/libpdf.so)
===>   Returning to build of pecl-pdflib-3.0.4
===>  PHPizing for pecl-pdflib-3.0.4
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
===>  Configuring for pecl-pdflib-3.0.4
configure: loading site script /usr/ports/Templates/config.site
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for a sed that does not truncate output... /usr/bin/sed
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang-cpp
checking for icc... no
checking for suncc... no
checking whether clang and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... amd64-portbld-freebsd10.2
checking host system type... amd64-portbld-freebsd10.2
checking target system type... amd64-portbld-freebsd10.2
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20151012
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... (cached) /usr/bin/awk
checking if /usr/bin/awk is broken... no
checking for PDFlib support... yes, shared
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking how to run the C++ preprocessor... clang++ -E
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from clang object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fPIC
checking if clang PIC flag -fPIC works... yes
checking if clang static flag -static works... yes
checking if clang supports -c -o file.o... yes
checking whether the clang linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd10.2 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by clang++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the clang++ linker (/usr/bin/ld) supports shared libraries... yes
checking for clang++ option to produce PIC... -fPIC
checking if clang++ PIC flag -fPIC works... yes
checking if clang++ static flag -static works... yes
checking if clang++ supports -c -o file.o... yes
checking whether the clang++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd10.2 ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
===>  Building for pecl-pdflib-3.0.4
--- pdf.lo ---
/bin/sh /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/libtool --mode=compile clang  -I. -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4 -DPHP_ATOM_INC -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/include -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/main -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -O2 -pipe -march=native -fstack-protector -fno-strict-aliasing   -c /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c -o pdf.lo
mkdir .libs
 clang -I. -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4 -DPHP_ATOM_INC -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/include -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/main -I/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -march=native -fstack-protector -fno-strict-aliasing -c /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c  -fPIC -DPIC -o .libs/pdf.o
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:269:9: warning: implicit declaration of function 'MAKE_STD_ZVAL' is invalid in C99 [-Wimplicit-function-declaration]
        MAKE_STD_ZVAL(ex);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:291:27: error: unknown type name 'zend_rsrc_list_entry'
static void _free_pdf_doc(zend_rsrc_list_entry *rsrc TSRMLS_DC)
                          ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:340:8: error: unknown type name 'zend_object_value'
static zend_object_value
       ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:343:5: error: use of undeclared identifier 'zend_object_value'
    zend_object_value retval;
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:362:5: error: use of undeclared identifier 'retval'
    retval.handle = zend_objects_store_put(intern,  NULL,
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:363:14: error: use of undeclared identifier 'zend_objects_free_object_storage_t'; did you mean 'zend_objects_store_free_object_storage'?
            (zend_objects_free_object_storage_t)pdflib_object_dtor,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             zend_objects_store_free_object_storage
/usr/local/include/php/Zend/zend_objects_API.h:66:15: note: 'zend_objects_store_free_object_storage' declared here
ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects);
              ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:363:49: error: expected ')'
            (zend_objects_free_object_storage_t)pdflib_object_dtor,
                                                ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:362:43: note: to match this '('
    retval.handle = zend_objects_store_put(intern,  NULL,
                                          ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:365:5: error: use of undeclared identifier 'retval'
    retval.handlers = &pdflib_handlers;
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:366:12: error: use of undeclared identifier 'retval'
    return retval;
           ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:372:8: error: unknown type name 'zend_object_value'
static zend_object_value
       ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:440:14: error: too many arguments to function call, expected 2, have 3
             NULL TSRMLS_CC);
             ^~~~
/usr/include/sys/_null.h:32:14: note: expanded from macro 'NULL'
#define NULL    ((void *)0)
                ^~~~~~~~~~~
/usr/local/include/php/Zend/zend_API.h:290:1: note: 'zend_register_internal_class_ex' declared here
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
^
/usr/local/include/php/main/../main/php_config.h:6:19: note: expanded from macro 'ZEND_API'
# define ZEND_API __attribute__ ((visibility("default")))
                  ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:478:58: error: use of undeclared identifier 'this_ptr'
    apiname = zend_read_property(pdflib_exception_class, this_ptr, "apiname",
                                                         ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:482:49: error: too many arguments provided to function-like macro invocation
    RETURN_STRING(retbuf ? (char *)retbuf : "", 1);
                                                ^
/usr/local/include/php/Zend/zend_API.h:637:9: note: macro 'RETURN_STRING' defined here
#define RETURN_STRING(s)                                { RETVAL_STRING(s); return; }
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:482:5: error: use of undeclared identifier 'RETURN_STRING'
    RETURN_STRING(retbuf ? (char *)retbuf : "", 1);
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:490:58: error: use of undeclared identifier 'this_ptr'
    message = zend_read_property(pdflib_exception_class, this_ptr, "message",
                                                         ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:494:49: error: too many arguments provided to function-like macro invocation
    RETURN_STRING(retbuf ? (char *)retbuf : "", 1);
                                                ^
/usr/local/include/php/Zend/zend_API.h:637:9: note: macro 'RETURN_STRING' defined here
#define RETURN_STRING(s)                                { RETVAL_STRING(s); return; }
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:494:5: error: use of undeclared identifier 'RETURN_STRING'
    RETURN_STRING(retbuf ? (char *)retbuf : "", 1);
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:502:55: error: use of undeclared identifier 'this_ptr'
    code = zend_read_property(pdflib_exception_class, this_ptr, "code",
                                                      ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:17:9: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
        SET_ERROR_HANDLING(EH_THROW, pdflib_exception_class);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:20:13: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
            RESTORE_ERROR_HANDLING();
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:23:9: warning: implicit declaration of function 'zend_object_store_get_object' is invalid in C99 [-Wimplicit-function-declaration]
        P_FROM_OBJECT(pdf, object);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:246:13: note: expanded from macro 'P_FROM_OBJECT'
            zend_object_store_get_object(object TSRMLS_CC); \
            ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:23:9: warning: cast to 'pdflib_object *' (aka 'struct _pdflib_object *') from smaller integer type 'int' [-Wint-to-pointer-cast]
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:245:30: note: expanded from macro 'P_FROM_OBJECT'
        pdflib_object *obj = (pdflib_object*) \
                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:23:9: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:251:13: note: expanded from macro 'P_FROM_OBJECT'
            RESTORE_ERROR_HANDLING(); \
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:25:9: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
        SET_ERROR_HANDLING(EH_NORMAL, pdflib_exception_class);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:30:3: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
                RESTORE_ERROR_HANDLING();
                ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:33:13: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:235:5: note: expanded from macro 'ZEND_FETCH_RESOURCE'
    SET_ERROR_HANDLING(EH_NORMAL, pdflib_exception_class); \
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:33:13: error: too many arguments to function call, expected 3, have 6
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:237:45: note: expanded from macro 'ZEND_FETCH_RESOURCE'
            default_id, resource_type_name, NULL, 1, resource_type);    \
                                            ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/_null.h:32:14: note: expanded from macro 'NULL'
#define NULL    ((void *)0)
                ^
/usr/local/include/php/Zend/zend_list.h:63:1: note: 'zend_fetch_resource' declared here
ZEND_API void *zend_fetch_resource(zend_resource *res, const char *resource_type_name, int resource_type);
^
/usr/local/include/php/main/../main/php_config.h:6:19: note: expanded from macro 'ZEND_API'
# define ZEND_API __attribute__ ((visibility("default")))
                  ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:33:13: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:238:5: note: expanded from macro 'ZEND_FETCH_RESOURCE'
    RESTORE_ERROR_HANDLING(); \
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:33:13: warning: implicit declaration of function 'ZEND_VERIFY_RESOURCE' is invalid in C99 [-Wimplicit-function-declaration]
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:239:5: note: expanded from macro 'ZEND_FETCH_RESOURCE'
    ZEND_VERIFY_RESOURCE(rsrc); \
    ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:36:5: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
    RESTORE_ERROR_HANDLING();
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:65:9: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
        SET_ERROR_HANDLING(EH_THROW, pdflib_exception_class);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:68:13: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
            RESTORE_ERROR_HANDLING();
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:71:9: warning: cast to 'pdflib_object *' (aka 'struct _pdflib_object *') from smaller integer type 'int' [-Wint-to-pointer-cast]
        P_FROM_OBJECT(pdf, object);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:245:30: note: expanded from macro 'P_FROM_OBJECT'
        pdflib_object *obj = (pdflib_object*) \
                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:71:9: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:251:13: note: expanded from macro 'P_FROM_OBJECT'
            RESTORE_ERROR_HANDLING(); \
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:73:9: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
        SET_ERROR_HANDLING(EH_NORMAL, pdflib_exception_class);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:78:3: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
                RESTORE_ERROR_HANDLING();
                ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:81:13: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:235:5: note: expanded from macro 'ZEND_FETCH_RESOURCE'
    SET_ERROR_HANDLING(EH_NORMAL, pdflib_exception_class); \
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:81:13: error: too many arguments to function call, expected 3, have 6
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:237:45: note: expanded from macro 'ZEND_FETCH_RESOURCE'
            default_id, resource_type_name, NULL, 1, resource_type);    \
                                            ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/_null.h:32:14: note: expanded from macro 'NULL'
#define NULL    ((void *)0)
                ^
/usr/local/include/php/Zend/zend_list.h:63:1: note: 'zend_fetch_resource' declared here
ZEND_API void *zend_fetch_resource(zend_resource *res, const char *resource_type_name, int resource_type);
^
/usr/local/include/php/main/../main/php_config.h:6:19: note: expanded from macro 'ZEND_API'
# define ZEND_API __attribute__ ((visibility("default")))
                  ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:81:13: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:238:5: note: expanded from macro 'ZEND_FETCH_RESOURCE'
    RESTORE_ERROR_HANDLING(); \
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:84:5: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
    RESTORE_ERROR_HANDLING();
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:117:9: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
        SET_ERROR_HANDLING(EH_THROW, pdflib_exception_class);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:120:13: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
            RESTORE_ERROR_HANDLING();
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:123:9: warning: cast to 'pdflib_object *' (aka 'struct _pdflib_object *') from smaller integer type 'int' [-Wint-to-pointer-cast]
        P_FROM_OBJECT(pdf, object);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:245:30: note: expanded from macro 'P_FROM_OBJECT'
        pdflib_object *obj = (pdflib_object*) \
                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:123:9: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:251:13: note: expanded from macro 'P_FROM_OBJECT'
            RESTORE_ERROR_HANDLING(); \
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:125:9: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
        SET_ERROR_HANDLING(EH_NORMAL, pdflib_exception_class);
        ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:130:3: warning: 'php_std_error_handling' is deprecated [-Wdeprecated-declarations]
                RESTORE_ERROR_HANDLING();
                ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:206:35: note: expanded from macro 'RESTORE_ERROR_HANDLING'
#define RESTORE_ERROR_HANDLING()  php_std_error_handling()
                                  ^
/usr/local/include/php/main/php.h:296:46: note: 'php_std_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
                                             ^
In file included from /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:512:
./php_wrapped.c:133:13: warning: 'php_set_error_handling' is deprecated [-Wdeprecated-declarations]
            ZEND_FETCH_RESOURCE(pdf, PDF *, &p, -1, "pdf object", le_pdf);
            ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:235:5: note: expanded from macro 'ZEND_FETCH_RESOURCE'
    SET_ERROR_HANDLING(EH_NORMAL, pdflib_exception_class); \
    ^
/ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4/pdf.c:205:5: note: expanded from macro 'SET_ERROR_HANDLING'
    php_set_error_handling(type, handler  TSRMLS_CC)
    ^
/usr/local/include/php/main/php.h:292:46: note: 'php_set_error_handling' declared here
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class)
                                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
28 warnings and 20 errors generated.
*** [pdf.lo] Error code 1

make[3]: stopped in /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4
1 error

make[3]: stopped in /ccache/usr/ports/print/pecl-pdflib/work/pdflib-3.0.4
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/print/pecl-pdflib
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/php70-extensions
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/php70-extensions
miwi-fbsd commented 8 years ago

That could a bigger problem, the latest lite release is still 7.0.5 (http://www.pdflib.com/download/free-software/pdflib-lite-7/), I might be mark it broken for php7.

lunetics commented 8 years ago

Maybe it's worth noting to use tFPDF library (which does not need any extension): https://packagist.org/packages/rev42/tfpdf ?

2016-01-19 2:13 GMT+01:00 Martin Wilke notifications@github.com:

That could a bigger problem, the latest lite release is still 7.0.5 ( http://www.pdflib.com/download/free-software/pdflib-lite-7/), I might be mark it broken for php7.

— Reply to this email directly or view it on GitHub https://github.com/miwi-fbsd/miwi-ports/issues/3#issuecomment-172697057.

miwi-fbsd commented 8 years ago

Oh great, I will have a look.