=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for ap24-upload-0.7 /usr/pkg/libexec/apr/libtool --silent --mode=compile clang -prefer-pic -O2 -I/usr/pkg/include/apr-1 -I/usr/pkg/include -I/usr/include -DNETBSD -pthread -I/usr/pkg/include/httpd -I/usr/pkg/include/apr-1 -I/usr/pkg/include/apr-1 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/apr-1 -c -o mod_upload.lo mod_upload.c && touch mod_upload.slo mod_upload.c:462:17: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat] apr_time_sec(file->timer.written - file->timer.start), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/apr-1/apr_time.h:64:28: note: expanded from macro 'apr_time_sec' #define apr_time_sec(time) ((time) / APR_USEC_PER_SEC) ^ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:464:17: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat] apr_time_sec(file->timer.closed - file->timer.written), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/apr-1/apr_time.h:64:28: note: expanded from macro 'apr_time_sec' #define apr_time_sec(time) ((time) / APR_USEC_PER_SEC) ^ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:465:17: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat] apr_time_sec(file->timer.moved - file->timer.closed)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/apr-1/apr_time.h:64:28: note: expanded from macro 'apr_time_sec' #define apr_time_sec(time) ((time) / APR_USEC_PER_SEC) ^ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:664:36: warning: format specifies type 'int' but the argument has type 'apr_size_t' (aka 'unsigned long') [-Wformat] file->tmpname, nbytes, file->written); ^~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ^~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:664:44: warning: format specifies type 'int' but the argument has type 'apr_size_t' (aka 'unsigned long') [-Wformat] file->tmpname, nbytes, file->written); ^~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ^~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ 5 warnings generated. /usr/pkg/libexec/apr/libtool --silent --mode=link clang -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o mod_upload.la -R/usr/pkg/lib -R/usr/lib -L/usr/pkg/lib -L/usr/lib -rpath /usr/pkg/lib/httpd -module -avoid-version mod_upload.lo cd /data/scratch/www/ap2-upload/work/mod_upload-0.7 && /usr/bin/make /usr/pkg/bin/apxs -I/usr/pkg/include/php -I/usr/pkg/include/php/main -I/usr/pkg/include/php/TSRM -I/usr/pkg/include/php/Zend -I/usr/pkg/include/php/ext -I/usr/pkg/include/php/ext/date/lib -DHAVE_PHP -c mod_upload.c /usr/pkg/libexec/apr/libtool --silent --mode=compile clang -prefer-pic -O2 -I/usr/pkg/include/apr-1 -I/usr/pkg/include -I/usr/include -DNETBSD -pthread -I/usr/pkg/include/httpd -I/usr/pkg/include/apr-1 -I/usr/pkg/include/apr-1 -I/usr/pkg/include/php -I/usr/pkg/include/php/main -I/usr/pkg/include/php/TSRM -I/usr/pkg/include/php/Zend -I/usr/pkg/include/php/ext -I/usr/pkg/include/php/ext/date/lib -DHAVE_PHP -c -o mod_upload.lo mod_upload.c && touch mod_upload.slo mod_upload.c:281:3: error: use of undeclared identifier 'zend_string'; did you mean 'zend_strtod'? zend_string *tmp_name; ^~~~~~~~~~~ zend_strtod /data/scratch/www/ap2-upload/work/.buildlink/include/php/Zend/zend_strtod.h:30:17: note: 'zend_strtod' declared here ZEND_API double zend_strtod(const char *s00, const char **se); ^ mod_upload.c:281:16: error: use of undeclared identifier 'tmp_name'; did you mean 'tmpnam'? zend_string *tmp_name; ^~~~~~~~ tmpnam /usr/include/stdio.h:270:7: note: 'tmpnam' declared here char *tmpnam(char *); ^ mod_upload.c:281:15: error: invalid operands to binary expression ('double (*)(const char *, const char **)' and 'char *(*)(char *)') zend_string *tmp_name; ~~~~~~~~~~~ ^~~~~~~~~ mod_upload.c:309:5: error: use of undeclared identifier 'tmp_name' tmp_name = zend_string_init(filename, strlen(filename), 0); ^ mod_upload.c:309:16: warning: implicit declaration of function 'zend_string_init' is invalid in C99 [-Wimplicit-function-declaration] tmp_name = zend_string_init(filename, strlen(filename), 0); ^ mod_upload.c:310:5: warning: implicit declaration of function 'zend_hash_add_ptr' is invalid in C99 [-Wimplicit-function-declaration] zend_hash_add_ptr(SG(rfc1867_uploaded_files), tmp_name, tmp_name); ^ mod_upload.c:310:51: error: use of undeclared identifier 'tmp_name'; did you mean 'tmpnam'? zend_hash_add_ptr(SG(rfc1867_uploaded_files), tmp_name, tmp_name); ^~~~~~~~ tmpnam /usr/include/stdio.h:270:7: note: 'tmpnam' declared here char *tmpnam(char *); ^ mod_upload.c:310:61: error: use of undeclared identifier 'tmp_name'; did you mean 'tmpnam'? zend_hash_add_ptr(SG(rfc1867_uploaded_files), tmp_name, tmp_name); ^~~~~~~~ tmpnam /usr/include/stdio.h:270:7: note: 'tmpnam' declared here char *tmpnam(char *); ^ mod_upload.c:315:7: error: member reference type 'zval *' (aka 'struct _zval_struct *') is a pointer; did you mean to use '->'? if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/php/Zend/zend_operators.h:489:29: note: expanded from macro 'Z_TYPE' #define Z_TYPE(zval) (zval).type ~~~~~~^ mod_upload.c:316:5: warning: incompatible pointer types passing 'zval **' (aka 'struct _zval_struct **') to parameter of type 'zval *' (aka 'struct _zval_struct *'); dereference with * [-Wincompatible-pointer-types] array_init(&PG(http_globals)[TRACK_VARS_FILES]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/php/Zend/zend_API.h:364:39: note: expanded from macro 'array_init' #define array_init(arg) _array_init((arg), 0 ZEND_FILE_LINE_CC) ^~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/php/Zend/zend_API.h:369:32: note: passing argument to parameter 'arg' here ZEND_API int _array_init(zval *arg, uint size ZEND_FILE_LINE_DC); ^ mod_upload.c:322:32: warning: incompatible pointer types passing 'zval **' (aka 'struct _zval_struct **') to parameter of type 'zval *' (aka 'struct _zval_struct *'); remove & [-Wincompatible-pointer-types] &PG(http_globals)[TRACK_VARS_FILES]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/php/main/php_variables.h:41:81: note: passing argument to parameter 'track_vars_array' here PHPAPI void php_register_variable_safe(char *var, char *val, int val_len, zval *track_vars_array TSRMLS_DC); ^ mod_upload.c:462:17: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat] apr_time_sec(file->timer.written - file->timer.start), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/apr-1/apr_time.h:64:28: note: expanded from macro 'apr_time_sec' #define apr_time_sec(time) ((time) / APR_USEC_PER_SEC) ^ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:464:17: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat] apr_time_sec(file->timer.closed - file->timer.written), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/apr-1/apr_time.h:64:28: note: expanded from macro 'apr_time_sec' #define apr_time_sec(time) ((time) / APR_USEC_PER_SEC) ^ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:465:17: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat] apr_time_sec(file->timer.moved - file->timer.closed)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/apr-1/apr_time.h:64:28: note: expanded from macro 'apr_time_sec' #define apr_time_sec(time) ((time) / APR_USEC_PER_SEC) ^ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:664:36: warning: format specifies type 'int' but the argument has type 'apr_size_t' (aka 'unsigned long') [-Wformat] file->tmpname, nbytes, file->written); ^~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ^~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ mod_upload.c:664:44: warning: format specifies type 'int' but the argument has type 'apr_size_t' (aka 'unsigned long') [-Wformat] file->tmpname, nbytes, file->written); ^~~~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:448:44: note: expanded from macro 'ap_log_rerror' #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__) ^~~~~~~~~~~ /data/scratch/www/ap2-upload/work/.buildlink/include/httpd/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__' ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \ ^~~~~~~~~~~ 9 warnings and 7 errors generated. apxs:Error: Command failed with rc=65536 . *** Error code 1 Stop. make[2]: stopped in /data/scratch/www/ap2-upload/work/mod_upload-0.7 *** Error code 1 Stop. make[1]: stopped in /data/pkgsrc/www/ap2-upload *** Error code 1 Stop. make: stopped in /data/pkgsrc/www/ap2-upload