FreeBSD Tips and Tricks

UP: TOC

This brief tutorial shows a package upgrade from PHP56 to PHP7 on FreeBSD 10.3. The upgrade is based on package installations. However, php70-pecl-memcached was not available as package therefore we had to install from ports.

cd /root pkg info php56\* > ~/installed-php56.txt cat installed-php56.txt php56-5.6.20 php56-ctype-5.6.20 php56-curl-5.6.20 php56-dom-5.6.20 php56-exif-5.6.20 php56-fileinfo-5.6.20 php56-filter-5.6.20 php56-gd-5.6.20 php56-gettext-5.6.20 php56-hash-5.6.20 php56-iconv-5.6.20 php56-json-5.6.20 php56-mbstring-5.6.20 php56-mcrypt-5.6.20 php56-opcache-5.6.20 php56-openssl-5.6.20 php56-pdo-5.6.20 php56-pdo_pgsql-5.6.20 php56-pgsql-5.6.20 php56-phar-5.6.20 php56-session-5.6.20 php56-simplexml-5.6.20 php56-tokenizer-5.6.20 php56-xml-5.6.20 cat ~/installed-php56.txt | xargs pkg delete -fy Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 24 packages (of 0 packages in the universe): Installed packages to be REMOVED: php56-5.6.20 php56-ctype-5.6.20 php56-curl-5.6.20 php56-dom-5.6.20 php56-exif-5.6.20 php56-fileinfo-5.6.20 php56-filter-5.6.20 php56-gd-5.6.20 php56-gettext-5.6.20 php56-hash-5.6.20 php56-iconv-5.6.20 php56-json-5.6.20 php56-mbstring-5.6.20 php56-mcrypt-5.6.20 php56-opcache-5.6.20 php56-openssl-5.6.20 php56-pdo-5.6.20 php56-pdo_pgsql-5.6.20 php56-pgsql-5.6.20 php56-phar-5.6.20 php56-session-5.6.20 php56-simplexml-5.6.20 php56-tokenizer-5.6.20 php56-xml-5.6.20 The operation will free 25 MiB. [1/24] Deinstalling php56-pdo_pgsql-5.6.20... [1/24] Deleting files for php56-pdo_pgsql-5.6.20: 100% [2/24] Deinstalling php56-phar-5.6.20... [2/24] Deleting files for php56-phar-5.6.20: 100% [3/24] Deinstalling php56-ctype-5.6.20... [3/24] Deleting files for php56-ctype-5.6.20: 100% [4/24] Deinstalling php56-curl-5.6.20... [4/24] Deleting files for php56-curl-5.6.20: 100% [5/24] Deinstalling php56-dom-5.6.20... [5/24] Deleting files for php56-dom-5.6.20: 100% [6/24] Deinstalling php56-exif-5.6.20... [6/24] Deleting files for php56-exif-5.6.20: 100% [7/24] Deinstalling php56-fileinfo-5.6.20... [7/24] Deleting files for php56-fileinfo-5.6.20: 100% [8/24] Deinstalling php56-filter-5.6.20... [8/24] Deleting files for php56-filter-5.6.20: 100% [9/24] Deinstalling php56-gd-5.6.20... [9/24] Deleting files for php56-gd-5.6.20: 100% [10/24] Deinstalling php56-gettext-5.6.20... [10/24] Deleting files for php56-gettext-5.6.20: 100% [11/24] Deinstalling php56-hash-5.6.20... [11/24] Deleting files for php56-hash-5.6.20: 100% [12/24] Deinstalling php56-iconv-5.6.20... [12/24] Deleting files for php56-iconv-5.6.20: 100% [13/24] Deinstalling php56-json-5.6.20... [13/24] Deleting files for php56-json-5.6.20: 100% [14/24] Deinstalling php56-mbstring-5.6.20... [14/24] Deleting files for php56-mbstring-5.6.20: 100% [15/24] Deinstalling php56-mcrypt-5.6.20... [15/24] Deleting files for php56-mcrypt-5.6.20: 100% [16/24] Deinstalling php56-opcache-5.6.20... [16/24] Deleting files for php56-opcache-5.6.20: 100% [17/24] Deinstalling php56-openssl-5.6.20... [17/24] Deleting files for php56-openssl-5.6.20: 100% [18/24] Deinstalling php56-pdo-5.6.20... [18/24] Deleting files for php56-pdo-5.6.20: 100% [19/24] Deinstalling php56-pgsql-5.6.20... [19/24] Deleting files for php56-pgsql-5.6.20: 100% [20/24] Deinstalling php56-session-5.6.20... [20/24] Deleting files for php56-session-5.6.20: 100% [21/24] Deinstalling php56-simplexml-5.6.20... [21/24] Deleting files for php56-simplexml-5.6.20: 100% [22/24] Deinstalling php56-tokenizer-5.6.20... [22/24] Deleting files for php56-tokenizer-5.6.20: 100% [23/24] Deinstalling php56-xml-5.6.20... [23/24] Deleting files for php56-xml-5.6.20: 100% [24/24] Deinstalling php56-5.6.20... [24/24] Deleting files for php56-5.6.20: 100% pkg remove pecl-memcached-2.2.0_3 Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: pecl-memcached-2.2.0_3 Proceed with deinstalling packages? [y/N]: y [1/1] Deinstalling pecl-memcached-2.2.0_3... [1/1] Deleting files for pecl-memcached-2.2.0_3: 100% pkg install php70-ctype Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 8 package(s) will be affected (of 0 checked): New packages to be INSTALLED: php70-ctype: 7.0.6 php70: 7.0.6 php56-phar: 5.6.21 php56: 5.6.21 php56-hash: 5.6.21 php56-ctype: 5.6.21 php56-json: 5.6.21 php56-openssl: 5.6.21 The process will require 34 MiB more space. 4 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching php70-ctype-7.0.6.txz: 100% 7 KiB 6.7kB/s 00:01 Fetching php70-7.0.6.txz: 100% 2 MiB 2.1MB/s 00:01 Fetching php56-phar-5.6.21.txz: 100% 99 KiB 101.7kB/s 00:01 Fetching php56-5.6.21.txz: 100% 2 MiB 2.0MB/s 00:01 Fetching php56-hash-5.6.21.txz: 100% 114 KiB 116.9kB/s 00:01 Fetching php56-ctype-5.6.21.txz: 100% 6 KiB 6.5kB/s 00:01 Fetching php56-json-5.6.21.txz: 100% 16 KiB 16.5kB/s 00:01 Fetching php56-openssl-5.6.21.txz: 100% 43 KiB 44.2kB/s 00:01 Checking integrity... done (2 conflicting) Checking integrity... done (0 conflicting) Conflicts with the existing packages have been found. One more solver iteration is needed to resolve them. The following 4 package(s) will be affected (of 0 checked): Installed packages to be REMOVED: php-composer-1.0.0.a11_1 pecl-intl-3.0.0_2 New packages to be INSTALLED: php70: 7.0.6 php70-ctype: 7.0.6 The process will require 15 MiB more space. Proceed with this action? [y/N]: y [1/4] Deinstalling php-composer-1.0.0.a11_1... [1/4] Deleting files for php-composer-1.0.0.a11_1: 20% pkg: /usr/local/bin/composer.phar different from original checksum, not removing [1/4] Deleting files for php-composer-1.0.0.a11_1: 100% [2/4] Deinstalling pecl-intl-3.0.0_2... [2/4] Deleting files for pecl-intl-3.0.0_2: 100% [3/4] Installing php70-7.0.6... [3/4] Extracting php70-7.0.6: 100% [4/4] Installing php70-ctype-7.0.6... [4/4] Extracting php70-ctype-7.0.6: 100% pkg install php70-curl pkg install php70-dom pkg install php70-exif pkg install php70-fileinfo pkg install php70-filter pkg install php70-gd pkg install php70-gettext pkg install pkgconf cd /usr/ports/databases/ sh /root/php70-pecl-memcached c - php70-pecl-memcached/ x - php70-pecl-memcached/Makefile x - php70-pecl-memcached/distinfo x - php70-pecl-memcached/pkg-descr cd php70-pecl-memcached/ make install ==> NOTICE: The memcached port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> License PHP30 accepted by the user ===> Found saved configuration for php70-pecl-memcached-3.0.0a1 ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/sbin/pkg - found => php-memcached-dev-php-memcached-3.0.0a1-52c644b_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch https://github.com/php-memcached-dev/php-memcached/archive/52c644be2275f837a42c364f86dcf8592c81f679/php-memcached-dev-php-memcached-3.0.0a1-52c644b_GH0.tar.gz fetch: https://github.com/php-memcached-dev/php-memcached/archive/52c644be2275f837a42c364f86dcf8592c81f679/php-memcached-dev-php-memcached-3.0.0a1-52c644b_GH0.tar.gz: size unknown fetch: https://github.com/php-memcached-dev/php-memcached/archive/52c644be2275f837a42c364f86dcf8592c81f679/php-memcached-dev-php-memcached-3.0.0a1-52c644b_GH0.tar.gz: size of remote file is not known php-memcached-dev-php-memcached-3.0.0a1-52c644 79 kB 397 kBps 00m00s ===> Fetching all distfiles required by php70-pecl-memcached-3.0.0a1 for building ===> Extracting for php70-pecl-memcached-3.0.0a1 => SHA256 Checksum OK for php-memcached-dev-php-memcached-3.0.0a1-52c644b_GH0.tar.gz. ===> Patching for php70-pecl-memcached-3.0.0a1 ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/include/php/main/php.h - found ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/bin/phpize - found ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/lib/php/20151012/json.so - found ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/lib/php/20151012/session.so - found ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/bin/autoconf-2.69 - found ===> php70-pecl-memcached-3.0.0a1 depends on shared library: libmemcached.so - found (/usr/local/lib/libmemcached.so) ===> PHPizing for php70-pecl-memcached-3.0.0a1 Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 ===> Configuring for php70-pecl-memcached-3.0.0a1 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 cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cpp checking for icc... no checking for suncc... no checking whether cc understands -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.3 checking host system type... amd64-portbld-freebsd10.3 checking target system type... amd64-portbld-freebsd10.3 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 whether to enable memcached support... yes, shared checking for libmemcached... yes, shared checking whether to enable memcached session handler support... yes checking whether to enable memcached igbinary serializer support... no checking whether to enable memcached json serializer support... no checking whether to enable memcached msgpack serializer support... no checking whether to enable memcached sasl support... no checking whether to enable memcached protocol support... no checking whether to use system FastLZ bibrary... no checking for ZLIB... yes, shared checking for pkg-config... /usr/local/bin/pkg-config checking for zlib location... /usr checking for session includes... /usr/local/include/php checking for memcached session support... enabled checking for memcached igbinary support... disabled checking for memcached msgpack support... disabled checking for libmemcached location... found version 1.0.18, under /usr/local checking whether to enable sasl support... no checking whether memcached_exist is defined... yes checking for memcached protocol support... disabled checking for ld used by cc... /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 dlfcn.h... (cached) yes checking the maximum length of command line arguments... (cached) 262144 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... freebsd10.3 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 whether the c++ linker (/usr/bin/ld) supports shared libraries... yes checking for c++ option to produce PIC... checking if c++ static flag works... yes checking if c++ supports -c -o file.o... yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... freebsd10.3 ld.so (cached) (cached) checking how to hardcode library paths into programs... unsupported configure: creating ./config.status config.status: creating config.h ===> Building for php70-pecl-memcached-3.0.0a1 --- php_memcached.lo --- --- php_libmemcached_compat.lo --- --- php_memcached.lo --- /bin/sh /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/libtool --mode=compile cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_memcached.c -o php_memcached.lo --- php_libmemcached_compat.lo --- /bin/sh /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/libtool --mode=compile cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_libmemcached_compat.c -o php_libmemcached_compat.lo mkdir .libs cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_libmemcached_compat.c -fPIC -DPIC -o .libs/php_libmemcached_compat.o --- php_memcached.lo --- cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o --- g_fmt.lo --- /bin/sh /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/libtool --mode=compile cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/g_fmt.c -o g_fmt.lo --- php_memcached.lo --- /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_memcached.c:2652:56: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] add_assoc_stringl_ex(server_values, key, key_length, value, value_length); ^~~~~ /usr/local/include/php/Zend/zend_API.h:397:85: note: passing argument to parameter 'str' here ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length); ^ /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_memcached.c:3370:35: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] add_assoc_string(&array, "host", memcached_server_name(instance)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/php/Zend/zend_API.h:406:96: note: expanded from macro 'add_assoc_string' #define add_assoc_string(__arg, __key, __str) add_assoc_string_ex(__arg, __key, strlen(__key), __str) ^ /usr/local/include/php/Zend/zend_API.h:396:84: note: passing argument to parameter 'str' here ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str); ^ /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_memcached.c:3372:35: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] add_assoc_string(&array, "type", memcached_server_type(instance)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/php/Zend/zend_API.h:406:96: note: expanded from macro 'add_assoc_string' #define add_assoc_string(__arg, __key, __str) add_assoc_string_ex(__arg, __key, strlen(__key), __str) ^ /usr/local/include/php/Zend/zend_API.h:396:84: note: passing argument to parameter 'str' here ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str); ^ --- g_fmt.lo --- cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/g_fmt.c -fPIC -DPIC -o .libs/g_fmt.o --- fastlz/fastlz.lo --- /bin/sh /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/libtool --mode=compile cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/fastlz/fastlz.c -o fastlz/fastlz.lo --- php_memcached.lo --- 3 warnings generated. --- php_memcached_session.lo --- /bin/sh /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/libtool --mode=compile cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_memcached_session.c -o php_memcached_session.lo --- fastlz/fastlz.lo --- mkdir fastlz/.libs cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/fastlz/fastlz.c -fPIC -DPIC -o fastlz/.libs/fastlz.o --- php_memcached_session.lo --- cc -I/usr/local/include/php -I. -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -c /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/php_memcached_session.c -fPIC -DPIC -o .libs/php_memcached_session.o --- ./memcached.la --- /bin/sh /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/include -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/main -I/usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679 -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 -fstack-protector -fno-strict-aliasing -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 -fstack-protector -o ./memcached.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/modules php_memcached.lo php_libmemcached_compat.lo g_fmt.lo fastlz/fastlz.lo php_memcached_session.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lz -lmemcached -lmemcachedutil cc -shared .libs/php_memcached.o .libs/php_libmemcached_compat.o .libs/g_fmt.o fastlz/.libs/fastlz.o .libs/php_memcached_session.o -L/usr/local/lib -lz -lmemcached -lmemcachedutil -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,memcached.so -o ./.libs/memcached.so creating ./memcached.la (cd ./.libs && rm -f memcached.la && ln -s ../memcached.la memcached.la) --- /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/modules/memcached.la --- /bin/sh /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/libtool --mode=install cp ./memcached.la /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/modules cp ./.libs/memcached.so /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/modules/memcached.so cp ./.libs/memcached.lai /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/modules/memcached.la ---------------------------------------------------------------------- Libraries have been installed in: /usr/ports/databases/php70-pecl-memcached/work/php-memcached-52c644be2275f837a42c364f86dcf8592c81f679/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- --- all --- Build complete. Don't forget to run 'make test'. ===> Staging for php70-pecl-memcached-3.0.0a1 ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/include/php/main/php.h - found ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/lib/php/20151012/json.so - found ===> php70-pecl-memcached-3.0.0a1 depends on file: /usr/local/lib/php/20151012/session.so - found ===> Generating temporary packing list ====> Compressing man pages (compress-man) ===> Installing for php70-pecl-memcached-3.0.0a1 ===> Checking if php70-pecl-memcached already installed ===> Registering installation for php70-pecl-memcached-3.0.0a1 Installing php70-pecl-memcached-3.0.0a1... ===> NOTICE: The memcached port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port service memcached restart ; service nginx restart ; service php-fpm restart ; Stopping memcached. Starting memcached. Performing sanity check on nginx configuration: nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful Stopping nginx. Waiting for PIDS: 36608. Performing sanity check on nginx configuration: nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful Starting nginx. Performing sanity check on php-fpm configuration: [06-May-2016 13:21:56] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful Stopping php_fpm. Waiting for PIDS: 98592. Performing sanity check on php-fpm configuration: [06-May-2016 13:21:56] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful Starting php_fpm.

The whole upgrade took approx. 30 minutes.

UP: TOC