On my FreeBSD gammu fails compiling: -- FreeBSD 9.3-RELEASE-p49 #0: Fri Oct 21 21:01:08 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 The C compiler identification is GNU 4.2.1 -- I use freebsd-update (for major freebsd upgrades and minor fixes) and portsnap/portupgrade often. This is the error: -- [...] [ 22%] Building C object libgammu/CMakeFiles/libGammu.dir/service/gsmdata.c.o cd /usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/ports/comms/gammu/work/.build/libgammu/../include -I/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/service/gsmdata.c.o -c /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmdata.c cc1: warnings being treated as errors /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c: In function 'GSM_DecodeVCAL_RRULE': /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1461: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1462: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1469: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1493: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1494: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1496: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1503: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1506: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1507: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1536: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1537: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1540: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1547: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1570: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1571: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1583: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1584: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1598: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1599: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1605: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1606: warning: will never be executed /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1657: warning: will never be executed *** [libgammu/CMakeFiles/libGammu.dir/service/gsmcal.c.o] Error code 1 [ 22%] Building C object libgammu/CMakeFiles/libGammu.dir/service/gsmpbk.c.o cd /usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/ports/comms/gammu/work/.build/libgammu/../include -I/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/service/gsmpbk.c.o -c /usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmpbk.c 1 error *** [libgammu/CMakeFiles/libGammu.dir/all] Error code 2 1 error *** [all] Error code 2 1 error ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** [do-build] Error code 1 Stop in /usr/ports/comms/gammu. *** [stage] Error code 1 Stop in /usr/ports/comms/gammu. -- My workaround is to change /work/gammu-1.37.91/gammu-CMakeLists.txt to comment this line out: #MACRO_TUNE_COMPILER("-Wunreachable-code") Met me know if I can provide further information (this is my first bug report, so have patience with me :-) )
Btw: I have tried MAKE_JOBS_UNSAFE=yes without it changing anything. Also I use defaults besides setting the MYSQL option (but it fails even if i do not set it). Let me know if I can provide further information
Same here on my 9.3-p50 poudriere build server, with a slightly different error message (but the same cause, i assume): ====>> Building comms/gammu build started at Sun Nov 20 16:22:30 CET 2016 port directory: /usr/ports/comms/gammu building for: FreeBSD internal-build-server 9.3-RELEASE-p50 FreeBSD 9.3-RELEASE-p50 r308205 amd64 maintained by: ports@FreeBSD.org Makefile ident: $FreeBSD: head/comms/gammu/Makefile 426004 2016-11-13 03:13:18Z vanilla $ Poudriere version: 3.1.14 Host OSVERSION: 903000 Jail OSVERSION: 903000 ---Begin Environment--- UNAME_v=FreeBSD 9.3-RELEASE-p50 r308205 UNAME_r=9.3-RELEASE-p50 BLOCKSIZE=K MAIL=/var/mail/root STATUS=1 ARCH=amd64 SAVED_TERM=screen MASTERMNT=/usr/local/poudriere/data/.m/93amd64-default-my55/ref UID=0 FORCE_PACKAGE=yes PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin _JAVA_VERSION_LIST_REGEXP=1.6\|1.7\|1.8\|1.6+\|1.7+\|1.8+ POUDRIERE_BUILD_TYPE=bulk PKGNAME=gammu-1.37.91 OSREL=9.3 _OSRELEASE=9.3-RELEASE-p50 PYTHONBASE=/usr/local OLDPWD=/ _SMP_CPUS=4 PWD=/usr/local/poudriere/data/.m/93amd64-default-my55/ref/.p/pool HAVE_COMPAT_IA32_KERN=YES OPSYS=FreeBSD MASTERNAME=93amd64-default-my55 SCRIPTPREFIX=/usr/local/share/poudriere _JAVA_VENDOR_LIST_REGEXP=openjdk\|oracle\|sun USER=root HOME=/root POUDRIERE_VERSION=3.1.14 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh CONFIGURE_MAX_CMD_LEN=262144 LIBEXECPREFIX=/usr/local/libexec/poudriere LOCALBASE=/usr/local PACKAGE_BUILDING=yes _JAVA_OS_LIST_REGEXP=native\|linux OSVERSION=903000 ---End Environment--- ---Begin OPTIONS List--- ===> The following configuration options are available for gammu-1.37.91: BASH=off: Install programmable completions for Bash DBI=off: Database support via LibDBI DOCS=on: Build and/or install documentation MYSQL=off: MySQL database support ODBC=off: ODBC database backend PGSQL=off: PostgreSQL database support ===> Use 'make config' to modify these settings ---End OPTIONS List--- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/comms/gammu/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/comms/gammu/work HOME=/wrkdirs/usr/ports/comms/gammu/work TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/comms/gammu/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/comms/gammu/work HOME=/wrkdirs/usr/ports/comms/gammu/work TMPDIR="/tmp" NO_PIE=yes WITHOUT_DEBUG_FILES=yes WITHOUT_KERNEL_SYMBOLS=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector" LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- VERSION=1.37.91 BASH="@comment " NO_BASH="" DBI="@comment " NO_DBI="" DOCS="" NO_DOCS="@comment " MYSQL="@comment " NO_MYSQL="" ODBC="@comment " NO_ODBC="" PGSQL="@comment " NO_PGSQL="" CMAKE_BUILD_TYPE="release" GTK2_VERSION="2.10.0" GTK3_VERSION="3.0.0" OSREL=9.3 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local PORTDOCS="" PORTEXAMPLES="" LIB32DIR=lib DOCSDIR="share/doc/gammu" EXAMPLESDIR="share/examples/gammu" DATADIR="share/gammu" WWWDIR="www/gammu" ETCDIR="etc/gammu" --End PLIST_SUB-- --SUB_LIST-- BASH="@comment " NO_BASH="" DBI="@comment " NO_DBI="" DOCS="" NO_DOCS="@comment " MYSQL="@comment " NO_MYSQL="" ODBC="@comment " NO_ODBC="" PGSQL="@comment " NO_PGSQL="" PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/gammu DOCSDIR=/usr/local/share/doc/gammu EXAMPLESDIR=/usr/local/share/examples/gammu WWWDIR=/usr/local/www/gammu ETCDIR=/usr/local/etc/gammu --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles #### /usr/local/etc/poudriere.d/make.conf #### # -- make options for buildworld and buildkernel -- # KERNCONF=IT64SERVER # compiler options CFLAGS= -O2 -pipe # next line is only valid for buildkernel COPTFLAGS= -O2 -pipe # disable build of certain things NO_ATM=true NO_AUTHPF=true NO_FORTRAN=true NO_GAMES=true NO_I4B=true NO_PF=true NO_PROFILE=true # NIS UNSET_OPTIONS+=NIS # build the patented IDEA algorithm for crypto and relatives MAKE_IDEA=YES # only build docs in these languages DOC_LANG=en_US.ISO8859-1 RELNOTES_LANG=en_US.ISO8859-1 # options for updating /usr/src and /usr/doc with subversion SVN_UPDATE=YES SVN=/usr/local/bin/svn # -- make options for ports -- # # general/misc WITH_BDB_VER=5 WITH_BDB_HIGHEST=YES WITHOUT_FUSE=YES WITHOUT_NIS=YES APACHE_PORT=www/apache22-worker-mpm DEFAULT_VERSIONS+=bdb=5 DEFAULT_VERSIONS+=perl5=5.20 DEFAULT_VERSIONS+=python=2.7 DEFAULT_VERSIONS+=ruby=2.2 DEFAULT_VERSIONS+=php=5.6 DEFAULT_VERSIONS+=pgsql=9.2 DEFAULT_VERSIONS+=apache=2.2 DEFAULT_VERSIONS+=ssl=openssl # build everything with threads-support (except libxml2) WITH_THREADS=YES # build without IPv6 support WITHOUT_IPV6=YES # papersize A4=YES PAPERSIZE=a4 # language WITH_I18N=YES DICT=de # don't build X11 GUI's WITHOUT_X11=YES WITHOUT_GUI=YES OPTIONS_UNSET+=GUI OPTIONS_UNSET+=X11 # postfix & sasl WITHOUT_OTP=YES # Icinga ICINGAHTMURL=/ ICINGACGIURL=/cgi-bin # pkgng WITH_PKGNG=YES # deactivate STAGING (FIXME: workaround for some ports) #NO_STAGE=YES #.if ${.CURDIR:M*/mail/mailman} #NO_STAGE=YES #.endif #### /usr/local/etc/poudriere.d/93amd64-my55-make.conf #### # -- make options for ports -- # # general/misc DEFAULT_VERSIONS+=mysql=5.5 # pkgng WITH_PKGNG=yes DISABLE_MAKE_JOBS=poudriere ---End make.conf--- =======================<phase: check-sanity >============================ ===> NOTICE: The gammu 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 GPLv2 accepted by the user ===> Found saved configuration for gammu-1.37.2 =========================================================================== =======================<phase: pkg-depends >============================ ===> gammu-1.37.91 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.9.3.txz [internal-build-server] Installing pkg-1.9.3... [internal-build-server] Extracting pkg-1.9.3: .......... done ===> gammu-1.37.91 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of gammu-1.37.91 =========================================================================== =======================<phase: fetch-depends >============================ =========================================================================== =======================<phase: fetch >============================ ===> NOTICE: The gammu 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 GPLv2 accepted by the user ===> Found saved configuration for gammu-1.37.2 ===> Fetching all distfiles required by gammu-1.37.91 for building =========================================================================== =======================<phase: checksum >============================ ===> NOTICE: The gammu 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 GPLv2 accepted by the user ===> Found saved configuration for gammu-1.37.2 ===> Fetching all distfiles required by gammu-1.37.91 for building => SHA256 Checksum OK for gammu-1.37.91.tar.xz. =========================================================================== =======================<phase: extract-depends>============================ =========================================================================== =======================<phase: extract >============================ ===> NOTICE: The gammu 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 GPLv2 accepted by the user ===> Found saved configuration for gammu-1.37.2 ===> Fetching all distfiles required by gammu-1.37.91 for building ===> Extracting for gammu-1.37.91 => SHA256 Checksum OK for gammu-1.37.91.tar.xz. =========================================================================== =======================<phase: patch-depends >============================ =========================================================================== =======================<phase: patch >============================ ===> Patching for gammu-1.37.91 ===> Applying FreeBSD patches for gammu-1.37.91 =========================================================================== =======================<phase: build-depends >============================ ===> gammu-1.37.91 depends on file: /usr/local/bin/cmake - not found ===> Installing existing package /packages/All/cmake-3.6.3.txz [internal-build-server] Installing cmake-3.6.3... [internal-build-server] `-- Installing expat-2.2.0... [internal-build-server] `-- Extracting expat-2.2.0: .......... done [internal-build-server] `-- Installing cmake-modules-3.6.3... [internal-build-server] `-- Extracting cmake-modules-3.6.3: .......... done [internal-build-server] `-- Installing curl-7.51.0_1... [internal-build-server] | `-- Installing libidn2-0.10... [internal-build-server] | | `-- Installing indexinfo-0.2.6... [internal-build-server] | | `-- Extracting indexinfo-0.2.6: .... done [internal-build-server] | | `-- Installing libiconv-1.14_9... [internal-build-server] | | `-- Extracting libiconv-1.14_9: .......... done [internal-build-server] | `-- Extracting libidn2-0.10: .......... done [internal-build-server] | `-- Installing ca_root_nss-3.27.1... [internal-build-server] | `-- Extracting ca_root_nss-3.27.1: ........ done [internal-build-server] | `-- Installing openssl-1.0.2j_1,1... [internal-build-server] | `-- Extracting openssl-1.0.2j_1,1: .......... done [internal-build-server] `-- Extracting curl-7.51.0_1: .......... done [internal-build-server] `-- Installing libarchive-3.2.2,1... [internal-build-server] | `-- Installing liblz4-131... [internal-build-server] | `-- Extracting liblz4-131: .......... done [internal-build-server] | `-- Installing lzo2-2.09... [internal-build-server] | `-- Extracting lzo2-2.09: .......... done [internal-build-server] `-- Extracting libarchive-3.2.2,1: .......... done [internal-build-server] `-- Installing jsoncpp-1.7.7... [internal-build-server] `-- Extracting jsoncpp-1.7.7: .......... done [internal-build-server] `-- Installing libexecinfo-1.1_3... [internal-build-server] `-- Extracting libexecinfo-1.1_3: .... done [internal-build-server] Extracting cmake-3.6.3: .......... done Message from ca_root_nss-3.27.1: ********************************* WARNING ********************************* FreeBSD does not, and can not warrant that the certification authorities whose certificates are included in this package have in any way been audited for trustworthiness or RFC 3647 compliance. Assessment and verification of trust is the complete responsibility of the system administrator. *********************************** NOTE ********************************** This package installs symlinks to support root certificates discovery by default for software that uses OpenSSL. This enables SSL Certificate Verification by client software without manual intervention. If you prefer to do this manually, replace the following symlinks with either an empty file or your site-local certificate bundle. * /etc/ssl/cert.pem * /usr/local/etc/ssl/cert.pem * /usr/local/openssl/cert.pem *************************************************************************** Message from openssl-1.0.2j_1,1: Copy /usr/local/openssl/openssl.cnf.sample to /usr/local/openssl/openssl.cnf and edit it to fit your needs. ===> gammu-1.37.91 depends on file: /usr/local/bin/cmake - found ===> Returning to build of gammu-1.37.91 ===> gammu-1.37.91 depends on executable: msgfmt - not found ===> Installing existing package /packages/All/gettext-tools-0.19.8.1.txz [internal-build-server] Installing gettext-tools-0.19.8.1... [internal-build-server] `-- Installing gettext-runtime-0.19.8.1... [internal-build-server] `-- Extracting gettext-runtime-0.19.8.1: .......... done [internal-build-server] Extracting gettext-tools-0.19.8.1: .......... done ===> gammu-1.37.91 depends on executable: msgfmt - found ===> Returning to build of gammu-1.37.91 ===> gammu-1.37.91 depends on package: pkgconf>=0.9.10 - not found ===> Installing existing package /packages/All/pkgconf-1.0.2.txz [internal-build-server] Installing pkgconf-1.0.2... [internal-build-server] Extracting pkgconf-1.0.2: .......... done ===> gammu-1.37.91 depends on package: pkgconf>=0.9.10 - found ===> Returning to build of gammu-1.37.91 =========================================================================== =======================<phase: lib-depends >============================ ===> gammu-1.37.91 depends on shared library: libcurl.so - found (/usr/local/lib/libcurl.so) ===> gammu-1.37.91 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so) ===> gammu-1.37.91 depends on shared library: libiconv.so - found (/usr/local/lib/libiconv.so) ===> gammu-1.37.91 depends on shared library: libglib-2.0.so - not found ===> Installing existing package /packages/All/glib-2.46.2_3.txz [internal-build-server] Installing glib-2.46.2_3... [internal-build-server] `-- Installing python27-2.7.12... [internal-build-server] | `-- Installing libffi-3.2.1... [internal-build-server] | `-- Extracting libffi-3.2.1: .......... done [internal-build-server] `-- Extracting python27-2.7.12: .......... done [internal-build-server] `-- Installing pcre-8.39... [internal-build-server] `-- Extracting pcre-8.39: .......... done [internal-build-server] `-- Installing perl5-5.20.3_15... [internal-build-server] `-- Extracting perl5-5.20.3_15: .......... done [internal-build-server] Extracting glib-2.46.2_3: .......... done No schema files found: doing nothing. Message from python27-2.7.12: =========================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: bsddb databases/py-bsddb gdbm databases/py-gdbm sqlite3 databases/py-sqlite3 tkinter x11-toolkits/py-tkinter =========================================================================== Message from perl5-5.20.3_15: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. ===> NOTICE: This port is deprecated; you may wish to reconsider installing it: Unsupported, please upgrade to a more recent version of Perl. It is scheduled to be removed on or after 2017-06-30. ===> gammu-1.37.91 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so) ===> Returning to build of gammu-1.37.91 =========================================================================== =======================<phase: configure >============================ ===> Configuring for gammu-1.37.91 ===> Performing out-of-source build /bin/mkdir -p /wrkdirs/usr/ports/comms/gammu/work/.build -- The C compiler identification is GNU 4.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Configuring Gammu 1.37.91 -- Found PkgConfig: pkgconf (found version "1.0.2") -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Looking for __clang__ -- Looking for __clang__ - not found -- Looking for strncasecmp -- Looking for strncasecmp - found -- Looking for strcasecmp -- Looking for strcasecmp - found -- Looking for _strnicmp -- Looking for _strnicmp - not found -- Looking for _stricmp -- Looking for _stricmp - not found -- Looking for strcasestr -- Looking for strcasestr - found -- Looking for strchrnul -- Looking for strchrnul - not found -- Looking for strtoull -- Looking for strtoull - found -- Looking for dirent.h -- Looking for dirent.h - found -- Looking for sys/ioctl.h -- Looking for sys/ioctl.h - found -- Looking for sys/utsname.h -- Looking for sys/utsname.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for wchar.h -- Looking for wchar.h - found -- Looking for include files wchar.h, wctype.h -- Looking for include files wchar.h, wctype.h - found -- Looking for iswspace -- Looking for iswspace - found -- Looking for towlower -- Looking for towlower - found -- Looking for I_SETSIG -- Looking for I_SETSIG - not found -- Looking for strings.h -- Looking for strings.h - found -- Looking for scandir -- Looking for scandir - found -- Looking for alphasort -- Looking for alphasort - found -- Looking for getopt -- Looking for getopt - found -- Looking for getopt_long -- Looking for getopt_long - found -- Looking for daemon -- Looking for daemon - not found -- Looking for daemon -- Looking for daemon - found -- Looking for kill -- Looking for kill - found -- Looking for sigtimedwait -- Looking for sigtimedwait - found -- Looking for getpwnam -- Looking for getpwnam - found -- Looking for getgrnam -- Looking for getgrnam - found -- Looking for getpwuid -- Looking for getpwuid - found -- Looking for getuid -- Looking for getuid - found -- Looking for initgroups -- Looking for initgroups - found -- Looking for setuid -- Looking for setuid - found -- Looking for setgid -- Looking for setgid - found -- Looking for SIGHUP -- Looking for SIGHUP - found -- Looking for SIGUSR1 -- Looking for SIGUSR1 - found -- Looking for SIGUSR2 -- Looking for SIGUSR2 - found -- Looking for dup -- Looking for dup - found -- Looking for getpid -- Looking for getpid - found -- Looking for getpass -- Looking for getpass - found -- Looking for alarm -- Looking for alarm - found -- Looking for dup -- Looking for dup - not found -- Looking for shmget -- Looking for shmget - found -- Performing Test HAVE_STRPTIME -- Performing Test HAVE_STRPTIME - Success -- Performing Test HAVE_SYSLOG -- Performing Test HAVE_SYSLOG - Success -- Looking for pthread.h -- Looking for pthread.h - found -- Found Threads: TRUE -- Found PythonInterp: /usr/local/bin/python2.7 (found suitable version "2.7.12", minimum required is "2") -- Looking for dgettext -- Looking for dgettext - not found -- Looking for pgettext -- Looking for pgettext - not found -- Found Libintl: /usr/local/include -- Performing Test ICONV_HAVE_WERROR -- Performing Test ICONV_HAVE_WERROR - Success -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed -- Found CURL: /usr/local/lib/libcurl.so (found version "7.51.0") -- Checking for module 'glib-2.0>=2.16' -- Found glib-2.0, version 2.46.2 -- Found Glib -- Checking for module 'gobject-2.0' -- Found gobject-2.0, version 2.46.2 -- Found GObject -- Checking for module 'systemd' -- Package systemd was not found in the pkg-config search path. Perhaps you should add the directory containing `systemd.pc' to the PKG_CONFIG_PATH environment variable Package 'systemd', required by 'virtual:world', not found -- Checking for module 'gudev-1.0' -- Package gudev-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gudev-1.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gudev-1.0', required by 'virtual:world', not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of wchar_t -- Check size of wchar_t - done -- Check size of wint_t -- Check size of wint_t - done -- Check size of ssize_t -- Check size of ssize_t - done -- Check size of intptr_t -- Check size of intptr_t - done -- Performing Test HAVE_MACRO_FUNCTION -- Performing Test HAVE_MACRO_FUNCTION - Success -- Performing Test HAVE_STRUCT_TM_TM_ZONE -- Performing Test HAVE_STRUCT_TM_TM_ZONE - Success -- Performing Test HAVE_DAYLIGHT -- Performing Test HAVE_DAYLIGHT - Failed -- Performing Test HAVE_MACRO_FUNC -- Performing Test HAVE_MACRO_FUNC - Failed -- Checking for module 'bluez' -- Package bluez was not found in the pkg-config search path. Perhaps you should add the directory containing `bluez.pc' to the PKG_CONFIG_PATH environment variable Package 'bluez', required by 'virtual:world', not found -- Bluez not found. -- Found BSD Bluetooth: /usr/include, /usr/lib/libbluetooth.so -- Using BSD Bluetooth stack -- Looking for sdp_service_search_attribute in bluetooth -- Looking for sdp_service_search_attribute in bluetooth - not found -- Looking for bt_devinquiry in bluetooth -- Looking for bt_devinquiry in bluetooth - found -- OS X Bluetooth 2.0 not found. -- Bluetooth support enabled -- Checking for module 'libusb-1.0' -- Package libusb-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb-1.0.pc' to the PKG_CONFIG_PATH environment variable Package 'libusb-1.0', required by 'virtual:world', not found -- libusb-1.0 not found. -- Performing Test IRDA_FOUND -- Performing Test IRDA_FOUND - Failed -- Performing Test COMPILER_HAS_WERROR -- Performing Test COMPILER_HAS_WERROR - Success -- Performing Test COMPILER_HAS_WALL -- Performing Test COMPILER_HAS_WALL - Success -- Performing Test COMPILER_HAS_WERROR_IMPLICIT_FUNCTION_DECLARATION -- Performing Test COMPILER_HAS_WERROR_IMPLICIT_FUNCTION_DECLARATION - Success -- Performing Test COMPILER_HAS_WNO_DEPRECATED_DECLARATIONS -- Performing Test COMPILER_HAS_WNO_DEPRECATED_DECLARATIONS - Success -- Performing Test COMPILER_HAS_WDECLARATION_AFTER_STATEMENT -- Performing Test COMPILER_HAS_WDECLARATION_AFTER_STATEMENT - Success -- Performing Test COMPILER_HAS_WPOINTER_ARITH -- Performing Test COMPILER_HAS_WPOINTER_ARITH - Success -- Performing Test COMPILER_HAS_WFLOAT_EQUAL -- Performing Test COMPILER_HAS_WFLOAT_EQUAL - Success -- Performing Test COMPILER_HAS_WBAD_FUNCTION_CAST -- Performing Test COMPILER_HAS_WBAD_FUNCTION_CAST - Success -- Performing Test COMPILER_HAS_WMISSING_FORMAT_ATTRIBUTE -- Performing Test COMPILER_HAS_WMISSING_FORMAT_ATTRIBUTE - Success -- Performing Test COMPILER_HAS_WMISSING_NORETURN -- Performing Test COMPILER_HAS_WMISSING_NORETURN - Success -- Performing Test COMPILER_HAS_WSHADOW -- Performing Test COMPILER_HAS_WSHADOW - Success -- Performing Test COMPILER_HAS_WSTRICT_PROTOTYPES -- Performing Test COMPILER_HAS_WSTRICT_PROTOTYPES - Success -- Performing Test COMPILER_HAS_WSIGN_COMPARE -- Performing Test COMPILER_HAS_WSIGN_COMPARE - Success -- Performing Test COMPILER_HAS_WUNREACHABLE_CODE -- Performing Test COMPILER_HAS_WUNREACHABLE_CODE - Success -- Performing Test COMPILER_HAS_WNO_ERROR_UNREACHABLE_CODE -- Performing Test COMPILER_HAS_WNO_ERROR_UNREACHABLE_CODE - Success -- Performing Test COMPILER_HAS_WNO_POINTER_SIGN -- Performing Test COMPILER_HAS_WNO_POINTER_SIGN - Success -- Performing Test COMPILER_HAS_WWRITE_STRINGS -- Performing Test COMPILER_HAS_WWRITE_STRINGS - Success -- Performing Test COMPILER_HAS_WREDUNDANT_DECLS -- Performing Test COMPILER_HAS_WREDUNDANT_DECLS - Success -- Performing Test COMPILER_HAS_WFORMAT_2 -- Performing Test COMPILER_HAS_WFORMAT_2 - Success -- Performing Test COMPILER_HAS_WNO_FORMAT_Y2K -- Performing Test COMPILER_HAS_WNO_FORMAT_Y2K - Success -- Performing Test COMPILER_HAS_WNO_FORMAT_NONLITERAL -- Performing Test COMPILER_HAS_WNO_FORMAT_NONLITERAL - Success -- Performing Test COMPILER_HAS_FSTACK_PROTECTOR -- Performing Test COMPILER_HAS_FSTACK_PROTECTOR - Success -- Performing Test LINKER_HAS_WL__ZRELRO -- Performing Test LINKER_HAS_WL__ZRELRO - Success -- Performing Test LINKER_HAS_WL___AS_NEEDED -- Performing Test LINKER_HAS_WL___AS_NEEDED - Success -- Performing Test COMPILER_HAS_FPIC -- Performing Test COMPILER_HAS_FPIC - Success -- Nokia support enabled -- Nokia MBUS2 protocol enabled -- Nokia FBUS2 protocol enabled -- Nokia FBUS2DLR3 protocol enabled -- Nokia DKU2PHONET protocol enabled -- Nokia DKU2AT protocol enabled -- Nokia DKU5FBUS2 protocol enabled -- Nokia FBUS2PL2303 protocol enabled -- Nokia FBUS2BLUE protocol enabled -- Nokia PHONETBLUE protocol enabled -- Nokia BLUEFBUS2 protocol enabled -- Nokia BLUEPHONET protocol enabled -- Nokia 3320 and compatible phones support enabled -- Nokia 650 and compatible phones support enabled -- Nokia 61xx and compatible phones support enabled -- Nokia 6510 and compatible phones support enabled -- Force using 6210 frames for calendar for DCT4 phones disabled -- Nokia 7110 and compatible phones support enabled -- Nokia 9210 and compatible phones support enabled -- Nokia 3650 and compatible phones support enabled -- AT support enabled -- AT protocol enabled -- AT protocol over Bluetooth enabled -- AT phones support enabled -- Alcatel support enabled -- Alcatel protocol enabled -- Alcatel phones support enabled -- OBEX compatible phones support enabled -- OBEX protocol over Bluetooth enabled -- Generic OBEX phones support enabled -- AT with OBEX phones support enabled -- Symbian phones support (S60) enabled -- Symbian phones support (gnapplet) enabled -- GNAPBUS protocol over Bluetooth enabled -- Gnapplet phones support enabled -- S60 phones support enabled -- Cell Broadcast messages support enabled -- Backup/Restore functions enabled /var/lock is not writable, skipping locking tests! -- Init script not being installed, install it by -DINSTALL_LSB_INIT=ON -- Udev rules not being installed, install it by -DINSTALL_UDEV_RULES=ON -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_MODULE_LINKER_FLAGS ICONV_LIBRARY LIBICONV_INCLUDE_DIR LIBICONV_LIBRARIES LIBICONV_LIBRARY -- Build files have been written to: /wrkdirs/usr/ports/comms/gammu/work/.build =========================================================================== =======================<phase: build >============================ ===> Building for gammu-1.37.91 /usr/local/bin/cmake -H/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91 -B/wrkdirs/usr/ports/comms/gammu/work/.build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/local/bin/cmake -E cmake_progress_start /wrkdirs/usr/ports/comms/gammu/work/.build/CMakeFiles /wrkdirs/usr/ports/comms/gammu/work/.build/CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all /usr/bin/make -f helper/CMakeFiles/string.dir/build.make helper/CMakeFiles/string.dir/depend cd /wrkdirs/usr/ports/comms/gammu/work/.build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91 /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/helper /wrkdirs/usr/ports/comms/gammu/work/.build /wrkdirs/usr/ports/comms/gammu/work/.build/helper /wrkdirs/usr/ports/comms/gammu/work/.build/helper/CMakeFiles/string.dir/DependInfo.cmake Scanning dependencies of target string /usr/bin/make -f helper/CMakeFiles/string.dir/build.make helper/CMakeFiles/string.dir/build [ 0%] Building C object helper/CMakeFiles/string.dir/string.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/helper && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -I/wrkdirs/usr/ports/comms/gammu/work/.build/helper/../include -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -o CMakeFiles/string.dir/string.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/helper/string.c [ 0%] Linking C static library libstring.a cd /wrkdirs/usr/ports/comms/gammu/work/.build/helper && /usr/local/bin/cmake -P CMakeFiles/string.dir/cmake_clean_target.cmake cd /wrkdirs/usr/ports/comms/gammu/work/.build/helper && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/string.dir/link.txt --verbose=1 /usr/bin/ar qc libstring.a CMakeFiles/string.dir/string.c.o /usr/bin/ranlib libstring.a [ 0%] Built target string /usr/bin/make -f libgammu/CMakeFiles/libGammu.dir/build.make libgammu/CMakeFiles/libGammu.dir/depend cd /wrkdirs/usr/ports/comms/gammu/work/.build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91 /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu /wrkdirs/usr/ports/comms/gammu/work/.build /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/CMakeFiles/libGammu.dir/DependInfo.cmake Scanning dependencies of target libGammu /usr/bin/make -f libgammu/CMakeFiles/libGammu.dir/build.make libgammu/CMakeFiles/libGammu.dir/build [ 0%] Building C object libgammu/CMakeFiles/libGammu.dir/gsmcomon.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/gsmcomon.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/gsmcomon.c [ 1%] Building C object libgammu/CMakeFiles/libGammu.dir/gsmphones.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/gsmphones.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/gsmphones.c [ 1%] Building C object libgammu/CMakeFiles/libGammu.dir/gsmstate.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/gsmstate.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/gsmstate.c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/gsmstate.c: In function 'GSM_InitConnection_Log': /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/gsmstate.c:792: warning: will never be executed [ 1%] Building C object libgammu/CMakeFiles/libGammu.dir/api.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/api.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/api.c [ 1%] Building C object libgammu/CMakeFiles/libGammu.dir/debug.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/debug.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/debug.c [ 2%] Building C object libgammu/CMakeFiles/libGammu.dir/misc/misc.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/misc/misc.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/misc.c [ 2%] Building C object libgammu/CMakeFiles/libGammu.dir/misc/cfg.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/misc/cfg.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/cfg.c [ 2%] Building C object libgammu/CMakeFiles/libGammu.dir/misc/coding/coding.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/misc/coding/coding.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/coding/coding.c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/coding/coding.c: In function 'GSM_PackSemiOctetNumber': /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/coding/coding.c:1147: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/coding/coding.c:1147: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/coding/coding.c: In function 'mywstrstr': /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/misc/coding/coding.c:1575: warning: will never be executed [ 2%] Building C object libgammu/CMakeFiles/libGammu.dir/service/sms/gsmsms.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/service/sms/gsmsms.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/sms/gsmsms.c [ 3%] Building C object libgammu/CMakeFiles/libGammu.dir/service/sms/gsmems.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/service/sms/gsmems.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/sms/gsmems.c [ 3%] Building C object libgammu/CMakeFiles/libGammu.dir/service/sms/gsmmulti.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/service/sms/gsmmulti.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/sms/gsmmulti.c [ 3%] Building C object libgammu/CMakeFiles/libGammu.dir/service/gsmcal.c.o cd /wrkdirs/usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -DlibGammu_EXPORTS -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/wrkdirs/usr/ports/comms/gammu/work/.build/libgammu/../include -I/wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe -fstack-protector -fno-strict-aliasing -Werror -Wall -Werror-implicit-function-declaration -Wno-deprecated-declarations -Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-cast -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsign-compare -Wunreachable-code -Wno-error=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls -Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector -fPIC -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -fPIC -o CMakeFiles/libGammu.dir/service/gsmcal.c.o -c /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c cc1: warnings being treated as errors /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c: In function 'GSM_DecodeVCAL_RRULE': /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1461: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1462: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1469: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1493: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1494: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1496: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1503: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1506: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1507: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1536: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1537: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1540: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1547: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1570: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1571: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1583: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1584: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1598: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1599: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1605: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1606: warning: will never be executed /wrkdirs/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1657: warning: will never be executed *** [libgammu/CMakeFiles/libGammu.dir/service/gsmcal.c.o] Error code 1 Stop in /wrkdirs/usr/ports/comms/gammu/work/.build. *** [libgammu/CMakeFiles/libGammu.dir/all] Error code 1 Stop in /wrkdirs/usr/ports/comms/gammu/work/.build. *** [all] Error code 1 Stop in /wrkdirs/usr/ports/comms/gammu/work/.build. *** [do-build] Error code 1 Stop in /usr/ports/comms/gammu. ====>> Cleaning up wrkdir ===> Cleaning for gammu-1.37.91 build of comms/gammu ended at Sun Nov 20 16:22:57 CET 2016 build time: 00:00:27 !!! build failure encountered !!!
The error seems caused by the -W-error flag in CMake.txt and cmake/FindIconv.cmake. I tried to remove it from this files, without success. I added CFLAGS= -Wno-error to the Makefile. And this works with poudriere on 103i386 and 93amd64 (I don't tested it in the port). By the way: The error does not appear with 103amd64.
gammu currently builds fine on all supported FreeBSD versions.