=> Building multimedia/librtmp Started : Friday, 14 FEB 2020 at 09:59:00 UTC Platform: 5.7-DEVELOPMENT DragonFly v5.7.0.1432.g9cd86-DEVELOPMENT #23: Thu Feb 13 14:43:04 PST 2020 root@sting.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.7-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.7-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- PKG_CONFIG=pkgconf XDG_DATA_HOME=/construction/multimedia/librtmp XDG_CONFIG_HOME=/construction/multimedia/librtmp HOME=/construction/multimedia/librtmp TMPDIR="/tmp" PATH=/construction/multimedia/librtmp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/construction/multimedia/librtmp XDG_CONFIG_HOME=/construction/multimedia/librtmp HOME=/construction/multimedia/librtmp TMPDIR="/tmp" PATH=/construction/multimedia/librtmp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -I/usr/local/include -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -L/usr/local/lib -Wl,-rpath,/usr/local/lib " LIBS="" CXX="c++" CXXFLAGS=" -pipe -I/usr/local/include -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/multimedia/librtmp/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- OSREL=5.7 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/librtmp" EXAMPLESDIR="share/examples/librtmp" DATADIR="share/librtmp" WWWDIR="www/librtmp" ETCDIR="etc/librtmp" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/librtmp DOCSDIR=/usr/local/share/doc/librtmp EXAMPLESDIR=/usr/local/share/examples/librtmp WWWDIR=/usr/local/www/librtmp ETCDIR=/usr/local/etc/librtmp -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=LiveSystem USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=15 DPORTS_BUILDER= yes DISABLE_LICENSES= yes DEFAULT_VERSIONS= ssl=openssl FORCE_PACKAGE= yes DEVELOPER= yes HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.30.1 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=32 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500709 OSVERSION=9999999 OSREL=5.7 _OSRELEASE=5.7-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> librtmp-2.4.20151223_4 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.12.0_1.txz Installing pkg-1.12.0_1... Extracting pkg-1.12.0_1: .......... done ===> librtmp-2.4.20151223_4 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of librtmp-2.4.20151223_4 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> Fetching all distfiles required by librtmp-2.4.20151223_4 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> Fetching all distfiles required by librtmp-2.4.20151223_4 for building => SHA256 Checksum OK for rtmpdump-2.4.fa8646da.tar.bz2. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> Fetching all distfiles required by librtmp-2.4.20151223_4 for building ===> Extracting for librtmp-2.4.20151223_4 => SHA256 Checksum OK for rtmpdump-2.4.fa8646da.tar.bz2. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for librtmp-2.4.20151223_4 ===> Applying ports patches for librtmp-2.4.20151223_4 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> librtmp-2.4.20151223_4 depends on package: pkgconf>=1.3.0_1 - not found ===> Installing existing package /packages/All/pkgconf-1.6.3,1.txz Installing pkgconf-1.6.3,1... Extracting pkgconf-1.6.3,1: .......... done ===> librtmp-2.4.20151223_4 depends on package: pkgconf>=1.3.0_1 - found ===> Returning to build of librtmp-2.4.20151223_4 ===> librtmp-2.4.20151223_4 depends on file: /usr/local/lib/libcrypto.so.11 - not found ===> Installing existing package /packages/All/openssl-1.1.1d,1.txz Installing openssl-1.1.1d,1... Extracting openssl-1.1.1d,1: .......... done ===> librtmp-2.4.20151223_4 depends on file: /usr/local/lib/libcrypto.so.11 - found ===> Returning to build of librtmp-2.4.20151223_4 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for librtmp-2.4.20151223_4 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for librtmp-2.4.20151223_4 --- rtmp.o --- --- log.o --- --- amf.o --- --- hashswf.o --- --- parseurl.o --- --- log.o --- cc -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c log.c --- rtmp.o --- cc -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c rtmp.c --- parseurl.o --- cc -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c parseurl.c --- amf.o --- cc -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c amf.c --- hashswf.o --- cc -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c hashswf.c --- amf.o --- In file included from amf.c:33: bytes.h:74:2: warning: #warning "Float word order not defined, assuming the same as byte order!" [-Wcpp] #warning "Float word order not defined, assuming the same as byte order!" ^~~~~~~ --- rtmp.o --- In file included from handshake.h:125, from rtmp.c:152: dh.h: In function 'DHInit': dh.h:179:48: warning: passing argument 1 of 'BN_hex2bn' from incompatible pointer type [-Wincompatible-pointer-types] #define MP_gethex(u, hex, res) res = BN_hex2bn(&u, hex) ^~~~~~~~ #define MP_bytes(u) BN_num_bytes(u) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #define MP_setbin(u,buf,len) BN_bn2bin(u,buf) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #define MP_getbin(u,buf,len) u = BN_bin2bn(buf,len,0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #define MDH DH ~~~~~~~~~~~~~~ #define MDH_new() DH_new() ~~~~~~~~~~~~~~~~~~~~~~~~~~ #define MDH_free(dh) DH_free(dh) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #define MDH_generate_key(dh) DH_generate_key(dh) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #define MDH_compute_key(secret, seclen, pub, dh) DH_compute_key(secret, pub, dh) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ #include "log.h" ~~~~~~~~~~~~~~~~ #include "dhgroups.h" ~~~~~~~~~~~~~~~~~~~~~ /* RFC 2631, Section 2.1.5, http://www.ietf.org/rfc/rfc2631.txt */ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static int ~~~~~~~~~~ isValidPublicKey(const MP_t y, const MP_t p, const MP_t q) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ~ int ret = TRUE; ~~~~~~~~~~~~~~~ MP_t bn; ~~~~~~~~ assert(y); ~~~~~~~~~~ MP_new(bn); ~~~~~~~~~~~ assert(bn); ~~~~~~~~~~~ /* y must lie in [2,p-1] */ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ MP_set_w(bn, 1); ~~~~~~~~~~~~~~~~ if (MP_cmp(y, bn) < 0) ~~~~~~~~~~~~~~~~~~~~~~ { ~ RTMP_Log(RTMP_LOGERROR, "DH public key must be at least 2"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ret = FALSE; ~~~~~~~~~~~~ goto failed; ~~~~~~~~~~~~ } ~ /* bn = p-2 */ ~~~~~~~~~~~~~~ MP_set(bn, p); ~~~~~~~~~~~~~~ MP_sub_w(bn, 1); ~~~~~~~~~~~~~~~~ if (MP_cmp(y, bn) > 0) ~~~~~~~~~~~~~~~~~~~~~~ { ~ RTMP_Log(RTMP_LOGERROR, "DH public key must be at most p-2"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ret = FALSE; ~~~~~~~~~~~~ goto failed; ~~~~~~~~~~~~ } ~ /* Verify with Sophie-Germain prime ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * ~ * This is a nice test to make sure the public key position is calculated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * correctly. This test will fail in about 50% of the cases if applied to ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * random data. ~~~~~~~~~~~~~~ */ ~~ if (q) ~~~~~~ { ~ /* y must fulfill y^q mod p = 1 */ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MP_modexp(bn, y, q, p); ~~~~~~~~~~~~~~~~~~~~~~~ if (MP_cmp_1(bn) != 0) ~~~~~~~~~~~~~~~~~~~~~~ { ~ RTMP_Log(RTMP_LOGWARNING, "DH public key does not fulfill y^q mod p = 1"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ } ~ } ~ failed: ~~~~~~~ MP_free(bn); ~~~~~~~~~~~~ return ret; ~~~~~~~~~~~ } ~ static MDH * ~~~~~~~~~~~~ DHInit(int nKeyBits) ~~~~~~~~~~~~~~~~~~~~ { ~ size_t res; ~~~~~~~~~~~ MDH *dh = MDH_new(); ~~~~~~~~~~~~~~~~~~~~ if (!dh) ~~~~~~~~ goto failed; ~~~~~~~~~~~~ #if !defined(USE_OPENSSL) || defined(LIBRESSL_VERSION_NUMBER) || !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MP_new(dh->g); ~~~~~~~~~~~~~~ if (!dh->g) ~~~~~~~~~~~ goto failed; ~~~~~~~~~~~~ #else ~~~~~ BIGNUM *g; ~~~~~~~~~~ MP_new(g); ~~~~~~~~~~ if (g == NULL) ~~~~~~~~~~~~~~ goto failed; ~~~~~~~~~~~~ #endif ~~~~~~ #if !defined(USE_OPENSSL) || defined(LIBRESSL_VERSION_NUMBER) || !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MP_gethex(dh->p, P1024, res); /* prime P1024, see dhgroups.h */ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #else ~~~~~ const BIGNUM *p = DH_get0_p(dh); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MP_gethex(p, P1024, res); /* prime P1024, see dhgroups.h */ ~~~~~~~~~~~ dh.h:274:3: note: in expansion of macro 'MP_gethex' MP_gethex(p, P1024, res); /* prime P1024, see dhgroups.h */ ^~~~~~~~~ In file included from /usr/local/include/openssl/asn1.h:23, from /usr/local/include/openssl/objects.h:15, from /usr/local/include/openssl/evp.h:28, from /usr/local/include/openssl/x509.h:18, from /usr/local/include/openssl/ssl.h:20, from rtmp.c:60: /usr/local/include/openssl/bn.h:311:24: note: expected 'BIGNUM **' {aka 'struct bignum_st **'} but argument is of type 'const BIGNUM **' {aka 'const struct bignum_st **'} int BN_hex2bn(BIGNUM **a, const char *str); ~~~~~~~~~^ In file included from handshake.h:125, from rtmp.c:152: dh.h:285:19: warning: passing argument 2 of 'DH_set0_pqg' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] DH_set0_pqg(dh, p, NULL, g); ^ In file included from /usr/local/include/openssl/dsa.h:25, from /usr/local/include/openssl/x509.h:26, from /usr/local/include/openssl/ssl.h:20, from rtmp.c:60: /usr/local/include/openssl/dh.h:182:33: note: expected 'BIGNUM *' {aka 'struct bignum_st *'} but argument is of type 'const BIGNUM *' {aka 'const struct bignum_st *'} int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); ~~~~~~~~^ In file included from handshake.h:125, from rtmp.c:152: dh.h: In function 'DHGenerateKey': dh.h:322:30: warning: passing argument 1 of 'isValidPublicKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] res = isValidPublicKey(DH_get0_pub_key(dh), DH_get0_p(dh), q1); ^~~~~~~~~~~~~~~~~~~ In file included from handshake.h:125, from rtmp.c:152: dh.h:197:29: note: expected 'MP_t' {aka 'struct bignum_st * const'} but argument is of type 'const BIGNUM *' {aka 'const struct bignum_st *'} isValidPublicKey(const MP_t y, const MP_t p, const MP_t q) ~~~~~~~~~~~^ In file included from handshake.h:125, from rtmp.c:152: dh.h:322:51: warning: passing argument 2 of 'isValidPublicKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] res = isValidPublicKey(DH_get0_pub_key(dh), DH_get0_p(dh), q1); ^~~~~~~~~~~~~ In file included from handshake.h:125, from rtmp.c:152: dh.h:197:43: note: expected 'MP_t' {aka 'struct bignum_st * const'} but argument is of type 'const BIGNUM *' {aka 'const struct bignum_st *'} isValidPublicKey(const MP_t y, const MP_t p, const MP_t q) ~~~~~~~~~~~^ In file included from handshake.h:125, from rtmp.c:152: dh.h: In function 'DHComputeSharedSecretKey': dh.h:413:34: warning: passing argument 2 of 'isValidPublicKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (isValidPublicKey(pubkeyBn, DH_get0_p(dh), q1)) ^~~~~~~~~~~~~ In file included from handshake.h:125, from rtmp.c:152: dh.h:197:43: note: expected 'MP_t' {aka 'struct bignum_st * const'} but argument is of type 'const BIGNUM *' {aka 'const struct bignum_st *'} isValidPublicKey(const MP_t y, const MP_t p, const MP_t q) ~~~~~~~~~~~^ --- librtmp.a --- --- librtmp.so.1 --- --- librtmp.a --- ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o --- librtmp.so.1 --- cc -shared -Wl,-soname,librtmp.so.1 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o -L/usr/local/lib -lssl -lcrypto -lz --- librtmp.a --- /usr/libexec/binutils227/elf/ar: creating librtmp.a --- librtmp.so.1 --- ln -sf librtmp.so.1 librtmp.so -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> librtmp-2.4.20151223_4 depends on file: /usr/local/lib/libcrypto.so.11 - found -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for librtmp-2.4.20151223_4 ===> Generating temporary packing list sed -e "s;@prefix@;/usr/local;" -e "s;@libdir@;/usr/local/lib;" -e "s;@VERSION@;v2.4;" -e "s;@CRYPTO_REQ@;;" -e "s;@OPENSSLLIB@;/usr/local/lib;" -e "s;@OPENSSLINC@;/usr/local/include;" -e "s;@PUBLIC_LIBS@;;" -e "s;@PRIVATE_LIBS@;;" librtmp.pc.in > librtmp.pc mkdir -p /construction/multimedia/librtmp/stage/usr/local/include/librtmp /construction/multimedia/librtmp/stage/usr/local/libdata/pkgconfig /construction/multimedia/librtmp/stage/usr/local/man/man3 /construction/multimedia/librtmp/stage/usr/local/lib cp amf.h http.h log.h rtmp.h /construction/multimedia/librtmp/stage/usr/local/include/librtmp cp librtmp.a /construction/multimedia/librtmp/stage/usr/local/lib cp librtmp.pc /construction/multimedia/librtmp/stage/usr/local/libdata/pkgconfig cp librtmp.3 /construction/multimedia/librtmp/stage/usr/local/man/man3 install -s -m 0644 librtmp.so.1 /construction/multimedia/librtmp/stage/usr/local/lib cd /construction/multimedia/librtmp/stage/usr/local/lib; ln -sf librtmp.so.1 librtmp.so ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for librtmp-2.4.20151223_4 file sizes/checksums [9]: . done packing files [9]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Friday, 14 FEB 2020 at 09:59:10 UTC Duration: 00:00:09