Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2018 08:43:19 GMT
From:      pkg-fallout@FreeBSD.org
To:        pkg-fallout@FreeBSD.org
Subject:   [package - head-armv7-default][databases/dbtool] Failed for dbtool-1.9.1 in build
Message-ID:  <201805300843.w4U8hJOs071326@beefy16.nyi.freebsd.org>

next in thread | raw e-mail | index | archive | help

You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     ports@FreeBSD.org
Last committer: mat@FreeBSD.org
Ident:          $FreeBSD: head/databases/dbtool/Makefile 419843 2016-08-08 13:46:50Z mat $
Log URL:        http://beefy16.nyi.freebsd.org/data/head-armv7-default/p470877_s334231/logs/dbtool-1.9.1.log
Build URL:      http://beefy16.nyi.freebsd.org/build.html?mastername=head-armv7-default&build=p470877_s334231
Log:

=>> Building databases/dbtool
build started at Wed May 30 08:43:02 UTC 2018
port directory: /usr/ports/databases/dbtool
package name: dbtool-1.9.1
building for: FreeBSD head-armv7-default-job-03 12.0-CURRENT FreeBSD 12.0-CURRENT 1200064 arm
maintained by: ports@FreeBSD.org
Makefile ident:      $FreeBSD: head/databases/dbtool/Makefile 419843 2016-08-08 13:46:50Z mat $
Poudriere version: 3.2.6-3-g832b198d
Host OSVERSION: 1200062
Jail OSVERSION: 1200064
Job Id: 03




!!! Jail is newer than host. (Jail: 1200064, Host: 1200062) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/csh
UNAME_p=armv7
UNAME_m=arm
ABI_FILE=/usr/lib/crt1.o
OSVERSION=1200064
UNAME_v=FreeBSD 12.0-CURRENT 1200064
UNAME_r=12.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
QEMU_EMULATING=1
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.6-3-g832b198d
MASTERMNT=/usr/local/poudriere/data/.m/head-armv7-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/head-armv7-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=head-armv7-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/head-armv7-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for dbtool-1.9.1:
     EXAMPLES=on: Build and/or install examples
====> Database backend: you have to select exactly one of them
     BDB=off: Berkeley DB support
     GDBM=on: GNU dbm library support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
ports@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--with-gdbm  --with-gdbm-dir=/usr/local --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake XDG_DATA_HOME=/wrkdirs/usr/ports/databases/dbtool/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/dbtool/work  HOME=/wrkdirs/usr/ports/databases/dbtool/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/dbtool/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/databases/dbtool/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/dbtool/work  HOME=/wrkdirs/usr/ports/databases/dbtool/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/dbtool/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="/nxb-bin/usr/bin/cc" CFLAGS="-O2 -pipe  -fno-strict-aliasing"  CPP="/nxb-bin/usr/bin/cpp" CPPFLAGS="-I/usr/local/include"  LDFLAGS=" -L/usr/local/lib" LIBS=""  CXX="/nxb-bin/usr/bin/c++" CXXFLAGS="-O2 -pipe -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"
--End MAKE_ENV--

--PLIST_SUB--
PORTDOCS="" PORTEXAMPLES="" OSREL=12.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/dbtool"  EXAMPLESDIR="share/examples/dbtool"  DATADIR="share/dbtool"  WWWDIR="www/dbtool"  ETCDIR="etc/dbtool"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/dbtool DOCSDIR=/usr/local/share/doc/dbtool EXAMPLESDIR=/usr/local/share/examples/dbtool  WWWDIR=/usr/local/www/dbtool ETCDIR=/usr/local/etc/dbtool
--End SUB_LIST--

---Begin make.conf---
.sinclude "/etc/make.nxb.conf"
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=arm
MACHINE_ARCH=armv7
ARCH=${MACHINE_ARCH}
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_9d218390=FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Target: armv7-unknown-freebsd12.0-gnueabihf Thread model: posix InstalledDir: /nxb-bin/usr/bin
_ALTCCVERSION_9d218390=none
_CXXINTERNAL_9c45a5b1=FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Target: armv7-unknown-freebsd12.0-gnueabihf Thread model: posix InstalledDir: /nxb-bin/usr/bin "/nxb-bin/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_9d218390_58173849=yes
CC_OUTPUT_9d218390_9bdba57c=yes
CC_OUTPUT_9d218390_6a4fe7f5=yes
CC_OUTPUT_9d218390_6bcac02b=yes
CC_OUTPUT_9d218390_67d20829=yes
CC_OUTPUT_9d218390_bfa62e83=yes
CC_OUTPUT_9d218390_f0b4d593=yes
CC_OUTPUT_9d218390_308abb44=yes
CC_OUTPUT_9d218390_f00456e5=yes
CC_OUTPUT_9d218390_65ad290d=yes
CC_OUTPUT_9d218390_b2657cc3=yes
CC_OUTPUT_9d218390_380987f7=yes
_OBJC_CCVERSION_9d218390=FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Target: armv7-unknown-freebsd12.0-gnueabihf Thread model: posix InstalledDir: /nxb-bin/usr/bin
_OBJC_ALTCCVERSION_9d218390=none
ARCH=armv7
OPSYS=FreeBSD
_OSRELEASE=12.0-CURRENT
OSREL=12.0
OSVERSION=1200064
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=262144
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
---Begin make.nxb.conf---
CC=/nxb-bin/usr/bin/cc
CPP=/nxb-bin/usr/bin/cpp
CXX=/nxb-bin/usr/bin/c++
AS=/nxb-bin/usr/bin/as
NM=/nxb-bin/usr/bin/nm
LD=/nxb-bin/usr/bin/ld
OBJCOPY=/nxb-bin/usr/bin/objcopy
SIZE=/nxb-bin/usr/bin/size
STRIPBIN=/nxb-bin/usr/bin/strip
SED=/nxb-bin/usr/bin/sed
RANLIB=/nxb-bin/usr/bin/ranlib
YACC=/nxb-bin/usr/bin/yacc
MAKE=/nxb-bin/usr/bin/make
STRINGS=/nxb-bin/usr/bin/strings
AWK=/nxb-bin/usr/bin/awk
FLEX=/nxb-bin/usr/bin/flex
---End make.nxb.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>   NOTICE:

The dbtool 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
===========================================================================
=======================<phase: pkg-depends    >============================
===>   dbtool-1.9.1 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.10.5_1.txz
<snip>
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert armv7-portbld-freebsd12.0 file names to armv7-portbld-freebsd12.0 format... func_convert_file_noop
checking how to convert armv7-portbld-freebsd12.0 file names to toolchain format... func_convert_file_noop
checking for /nxb-bin/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from /nxb-bin/usr/bin/cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /nxb-bin/usr/bin/cpp
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if /nxb-bin/usr/bin/cc supports -fno-rtti -fno-exceptions... yes
checking for /nxb-bin/usr/bin/cc option to produce PIC... -fPIC -DPIC
checking if /nxb-bin/usr/bin/cc PIC flag -fPIC -DPIC works... yes
checking if /nxb-bin/usr/bin/cc static flag -static works... yes
checking if /nxb-bin/usr/bin/cc supports -c -o file.o... yes
checking if /nxb-bin/usr/bin/cc supports -c -o file.o... (cached) yes
checking whether the /nxb-bin/usr/bin/cc linker (/nxb-bin/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd12.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /nxb-bin/usr/bin/c++ accepts -g... yes
checking dependency style of /nxb-bin/usr/bin/c++... gcc3
checking how to run the C++ preprocessor... /nxb-bin/usr/bin/c++ -E
checking for ld used by /nxb-bin/usr/bin/c++... /nxb-bin/usr/bin/ld
checking if the linker (/nxb-bin/usr/bin/ld) is GNU ld... yes
checking whether the /nxb-bin/usr/bin/c++ linker (/nxb-bin/usr/bin/ld) supports shared libraries... yes
checking for /nxb-bin/usr/bin/c++ option to produce PIC... -fPIC -DPIC
checking if /nxb-bin/usr/bin/c++ PIC flag -fPIC -DPIC works... yes
checking if /nxb-bin/usr/bin/c++ static flag -static works... yes
checking if /nxb-bin/usr/bin/c++ supports -c -o file.o... yes
checking if /nxb-bin/usr/bin/c++ supports -c -o file.o... (cached) yes
checking whether the /nxb-bin/usr/bin/c++ linker (/nxb-bin/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd12.0 ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking checking /usr/local/include/gdbm.h presence... yes
checking for pkg-config... no
checking for GDBM... no
checking for gdbm_open in -lgdbm... yes
checking for pcre_compile in -lpcre... yes
checking for getopt... (cached) yes
checking for fdopen... yes
checking for fgetc... yes
checking for getenv... (cached) yes
checking for getpass... yes
checking for an ANSI C-conforming const... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating platform.h
config.status: executing depfiles commands
config.status: executing libtool commands

    Build configured for dbtool 1.9.1:
        CXX:                    /nxb-bin/usr/bin/c++
        CXXFLAGS:               -I/usr/local/include -O2 -pipe  -fno-strict-aliasing -I/usr/local/include
        LDFLAGS:                -L/usr/local/lib  -L/usr/local/lib -L/usr/local/lib
        LIBS:                   -lpcre -lgdbm -lgdbm
        debug:                  yes
        static build:           no

        prefix:                 /usr/local
        libdir:                 ${exec_prefix}/lib
        includedir:             ${prefix}/include

        target platform:        armv7-portbld-freebsd12.0

	db backend:             GDBM
    Type 'make' to build, 'make install' to install.


===========================================================================
=======================<phase: build          >============================
===>  Building for dbtool-1.9.1
gmake[1]: Entering directory '/wrkdirs/usr/ports/databases/dbtool/work/dbtool-1.9.1'
gmake  all-am
gmake[2]: Entering directory '/wrkdirs/usr/ports/databases/dbtool/work/dbtool-1.9.1'
/nxb-bin/usr/bin/c++ -DHAVE_CONFIG_H -I.   -I/usr/local/include  -I/usr/local/include -O2 -pipe  -fno-strict-aliasing -I/usr/local/include -MT cipher.o -MD -MP -MF .deps/cipher.Tpo -c -o cipher.o cipher.cc
mv -f .deps/cipher.Tpo .deps/cipher.Po
/nxb-bin/usr/bin/c++ -DHAVE_CONFIG_H -I.   -I/usr/local/include  -I/usr/local/include -O2 -pipe  -fno-strict-aliasing -I/usr/local/include -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.cc
In file included from config.cc:50:
./dbtool.h:51:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
1 warning generated.
mv -f .deps/config.Tpo .deps/config.Po
/nxb-bin/usr/bin/c++ -DHAVE_CONFIG_H -I.   -I/usr/local/include  -I/usr/local/include -O2 -pipe  -fno-strict-aliasing -I/usr/local/include -MT dbtool.o -MD -MP -MF .deps/dbtool.Tpo -c -o dbtool.o dbtool.cc
In file included from dbtool.cc:48:
./dbtool.h:51:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
1 warning generated.
mv -f .deps/dbtool.Tpo .deps/dbtool.Po
/nxb-bin/usr/bin/c++ -DHAVE_CONFIG_H -I.   -I/usr/local/include  -I/usr/local/include -O2 -pipe  -fno-strict-aliasing -I/usr/local/include -MT digest.o -MD -MP -MF .deps/digest.Tpo -c -o digest.o digest.cc
mv -f .deps/digest.Tpo .deps/digest.Po
/nxb-bin/usr/bin/c++ -DHAVE_CONFIG_H -I.   -I/usr/local/include  -I/usr/local/include -O2 -pipe  -fno-strict-aliasing -I/usr/local/include -MT engine.o -MD -MP -MF .deps/engine.Tpo -c -o engine.o engine.cc
In file included from engine.cc:50:
./dbtool.h:51:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
engine.cc:327:43: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
      datum d_key = {(char *)key.c_str(), key.length()};
                                          ^~~~~~~~~~~~
engine.cc:327:43: note: insert an explicit cast to silence this issue
      datum d_key = {(char *)key.c_str(), key.length()};
                                          ^~~~~~~~~~~~
                                          static_cast<int>( )
engine.cc:328:47: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
      datum d_value = {(char *)value.c_str(), value.length()};
                                              ^~~~~~~~~~~~~~
engine.cc:328:47: note: insert an explicit cast to silence this issue
      datum d_value = {(char *)value.c_str(), value.length()};
                                              ^~~~~~~~~~~~~~
                                              static_cast<int>( )
engine.cc:291:29: warning: result of comparison of constant -1 with expression of type 'char' is always true [-Wtautological-constant-out-of-range-compare]
  while((c = fgetc(stream)) != EOF) {
        ~~~~~~~~~~~~~~~~~~~ ^  ~~~
engine.cc:408:46: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
engine.cc:408:46: note: insert an explicit cast to silence this issue
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
                                             static_cast<int>(  )
engine.cc:409:43: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
  datum value = {(char *)__value.c_str(), __value.length()};
                                          ^~~~~~~~~~~~~~~~
engine.cc:409:43: note: insert an explicit cast to silence this issue
  datum value = {(char *)__value.c_str(), __value.length()};
                                          ^~~~~~~~~~~~~~~~
                                          static_cast<int>( )
engine.cc:468:46: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
engine.cc:468:46: note: insert an explicit cast to silence this issue
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
                                             static_cast<int>(  )
engine.cc:469:43: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
  datum value = {(char *)__value.c_str(), __value.length()};
                                          ^~~~~~~~~~~~~~~~
engine.cc:469:43: note: insert an explicit cast to silence this issue
  datum value = {(char *)__value.c_str(), __value.length()};
                                          ^~~~~~~~~~~~~~~~
                                          static_cast<int>( )
engine.cc:539:46: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
engine.cc:539:46: note: insert an explicit cast to silence this issue
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
                                             static_cast<int>(  )
engine.cc:582:46: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing]
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
engine.cc:582:46: note: insert an explicit cast to silence this issue
  datum key   = {(char *)config.key.c_str(), config.key.length()};
                                             ^~~~~~~~~~~~~~~~~~~
                                             static_cast<int>(  )
2 warnings and 8 errors generated.
gmake[2]: *** [Makefile:405: engine.o] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/databases/dbtool/work/dbtool-1.9.1'
gmake[1]: *** [Makefile:288: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/databases/dbtool/work/dbtool-1.9.1'
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/dbtool



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805300843.w4U8hJOs071326>