+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/android-tools-adb-5.1.1.29/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/android-tools-adb-5.1.1.29/work.log
===> Building for android-tools-adb-5.1.1.29
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libusb-1.0 -I/opt/pkg/include -DADB_HOST=1 -DHAVE_FORKEXEC=1 -DHAVE_SYMLINKS -DHAVE_TERMIO_H -DHAVE_SYS_SOCKET_H -D_FILE_OFFSET_BITS=64 -I. -I../include  -c -o adb.o adb.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libusb-1.0 -I/opt/pkg/include -DADB_HOST=1 -DHAVE_FORKEXEC=1 -DHAVE_SYMLINKS -DHAVE_TERMIO_H -DHAVE_SYS_SOCKET_H -D_FILE_OFFSET_BITS=64 -I. -I../include  -c -o adb_client.o adb_client.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libusb-1.0 -I/opt/pkg/include -DADB_HOST=1 -DHAVE_FORKEXEC=1 -DHAVE_SYMLINKS -DHAVE_TERMIO_H -DHAVE_SYS_SOCKET_H -D_FILE_OFFSET_BITS=64 -I. -I../include  -c -o adb_auth_host.o adb_auth_host.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libusb-1.0 -I/opt/pkg/include -DADB_HOST=1 -DHAVE_FORKEXEC=1 -DHAVE_SYMLINKS -DHAVE_TERMIO_H -DHAVE_SYS_SOCKET_H -D_FILE_OFFSET_BITS=64 -I. -I../include  -c -o commandline.o commandline.c
commandline.c: In function 'ppp':
commandline.c:772:36: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
  772 |         ppp_args = (const char **) alloca(sizeof(char *) * argc + 1);
      |                                    ^~~~~~
commandline.c:772:36: warning: incompatible implicit declaration of built-in function 'alloca' [-Wbuiltin-declaration-mismatch]
adb_auth_host.c: In function 'RSA_to_RSAPublicKey':
adb_auth_host.c:94:5: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   94 |     if (RSA_size(rsa) != RSANUMBYTES) {
      |     ^~
In file included from /home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/x509.h:36,
                 from /home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/pem.h:23,
                 from adb_auth_host.c:47:
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:215:27: note: declared here
  215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
      |                           ^~~~~~~~
adb_auth_host.c:100:5: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  100 |     RSA_get0_key(rsa, &getter1, NULL, NULL);
      |     ^~~~~~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:228:28: note: declared here
  228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
      |                            ^~~~~~~~~~~~
adb_auth_host.c:115:5: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  115 |     RSA_get0_key(rsa, NULL, &getter2, NULL);
      |     ^~~~~~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:228:28: note: declared here
  228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
      |                            ^~~~~~~~~~~~
adb_auth_host.c: In function 'get_user_info':
adb_auth_host.c:158:13: warning: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
  158 |         ret = getlogin_r(username, sizeof(username));
      |             ^
adb_auth_host.c: In function 'generate_key':
adb_auth_host.c:214:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  214 |     RSA* rsa = RSA_new();
      |     ^~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:212:28: note: declared here
  212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
adb_auth_host.c:227:5: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  227 |     RSA_generate_key_ex(rsa, 2048, exponent, NULL);
      |     ^~~~~~~~~~~~~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:271:27: note: declared here
  271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
adb_auth_host.c:228:5: warning: 'EVP_PKEY_set1_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  228 |     EVP_PKEY_set1_RSA(pkey, rsa);
      |     ^~~~~~~~~~~~~~~~~
In file included from adb_auth_host.c:45:
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/evp.h:1361:5: note: declared here
 1361 | int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);
      |     ^~~~~~~~~~~~~~~~~
adb_auth_host.c:257:5: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  257 |     RSA_free(rsa);
      |     ^~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:304:28: note: declared here
  304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
adb_auth_host.c: In function 'read_key':
adb_auth_host.c:281:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  281 |     key->rsa = RSA_new();
      |     ^~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:212:28: note: declared here
  212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
adb_auth_host.c:283:5: warning: 'PEM_read_RSAPrivateKey' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  283 |     if (!PEM_read_RSAPrivateKey(f, &key->rsa, NULL, NULL)) {
      |     ^~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/pem.h:75:11: note: declared here
   75 |     type *PEM_##readname##_##name(INTYPE *out, type **x,                \
      |           ^~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/pem.h:239:10: note: in expansion of macro 'PEM_read_cb_fnsig'
  239 |     attr PEM_read_cb_fnsig(name, type, FILE, read);
      |          ^~~~~~~~~~~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/pem.h:338:5: note: in expansion of macro 'DECLARE_PEM_read_fp_attr'
  338 |     DECLARE_PEM_read_fp_attr(attr, name, type)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/pem.h:364:5: note: in expansion of macro 'DECLARE_PEM_read_attr'
  364 |     DECLARE_PEM_read_attr(attr, name, type)                                 \
      |     ^~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/pem.h:452:1: note: in expansion of macro 'DECLARE_PEM_rw_cb_attr'
  452 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA)
      | ^~~~~~~~~~~~~~~~~~~~~~
adb_auth_host.c:286:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  286 |         RSA_free(key->rsa);
      |         ^~~~~~~~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:304:28: note: declared here
  304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
adb_auth_host.c: In function 'adb_auth_sign':
adb_auth_host.c:387:5: warning: 'RSA_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  387 |     if (!RSA_sign(NID_sha1, token, token_size, sig, &len, key->rsa)) {
      |     ^~
/home/pbulk/build/devel/android-tools-adb/work/.buildlink/include/openssl/rsa.h:359:27: note: declared here
  359 | OSSL_DEPRECATEDIN_3_0 int RSA_sign(int type, const unsigned char *m,
      |                           ^~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libusb-1.0 -I/opt/pkg/include -DADB_HOST=1 -DHAVE_FORKEXEC=1 -DHAVE_SYMLINKS -DHAVE_TERMIO_H -DHAVE_SYS_SOCKET_H -D_FILE_OFFSET_BITS=64 -I. -I../include  -c -o console.o console.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libusb-1.0 -I/opt/pkg/include -DADB_HOST=1 -DHAVE_FORKEXEC=1 -DHAVE_SYMLINKS -DHAVE_TERMIO_H -DHAVE_SYS_SOCKET_H -D_FILE_OFFSET_BITS=64 -I. -I../include  -c -o file_sync_client.o file_sync_client.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libusb-1.0 -I/opt/pkg/include -DADB_HOST=1 -DHAVE_FORKEXEC=1 -DHAVE_SYMLINKS -DHAVE_TERMIO_H -DHAVE_SYS_SOCKET_H -D_FILE_OFFSET_BITS=64 -I. -I../include  -c -o fdevent.o fdevent.c
fdevent.c: In function 'fdevent_subproc_event_func':
fdevent.c:545:25: error: 'FIONREAD' undeclared (first use in this function); did you mean 'UIO_READ'?
  545 |       ioctl(subproc_fd, FIONREAD, &rcount);
      |                         ^~~~~~~~
      |                         UIO_READ
fdevent.c:545:25: note: each undeclared identifier is reported only once for each function it appears in
gmake: *** [<builtin>: fdevent.o] Error 1
gmake: *** Waiting for unfinished jobs....
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/android-tools-adb
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/android-tools-adb