Hello.
I've just upgraded my Poudriere host to 14.2 and I'm rebuilding the
packages I use (with 2024Q4 branch).
tcptrack fails with:
c++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -O2 -pipe
-Wno-error=unused-but-set-variable -fstack-protector-strong
-fno-strict-aliasing -std=c++14 -MT TextUI.o -MD -MP -MF .deps/TextUI.Tpo -c
-o TextUI.o TextUI.cc
TextUI.cc:306:17: error: format specifies type 'int' but the argument has type
'time_t' (aka 'long') [-Werror,-Wformat]
306 | printw("%ds",ic->getIdleSeconds());
| ~~ ^~~~~~~~~~~~~~~~~~~~
| %ld
TextUI.cc:308:17: error: format specifies type 'int' but the argument has type
'time_t' (aka 'long') [-Werror,-Wformat]
308 | printw("%dm",ic->getIdleSeconds()/60);
| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
TextUI.cc:310:17: error: format specifies type 'int' but the argument has type
'time_t' (aka 'long') [-Werror,-Wformat]
310 | printw("%dh",ic->getIdleSeconds()/3600);
| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
3 errors generated.
I'm attaching full build log.
I think this is the same as:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997254
I could fix this myself (and possibly provide a patch).
However I'm wondering if this is the right thing to do, given it seems
there's a new version around.
Have you already seen this errors?
What are you plans with the ports?
Should I file a bug report?
Or is this some problem on my side???
Thanks for all your work.
bye
av.
=>> Building net-mgmt/tcptrack
build started at Mon Dec 9 09:14:35 CET 2024
port directory: /usr/ports/net-mgmt/tcptrack
package name: tcptrack-1.4.2_4
building for: FreeBSD 142amd64-default-job-01 14.2-RELEASE FreeBSD 14.2-RELEASE 1402000 amd64
maintained by: portmas...@bsdforge.com
Makefile datestamp: -rw-r--r-- 1 root wheel 744 Oct 14 18:33 /usr/ports/net-mgmt/tcptrack/Makefile
Ports top last git commit: e9b9b2624aab
Ports top unclean checkout: yes
Port dir last git commit: 4485bd8221c2
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.2
Host OSVERSION: 1402000
Jail OSVERSION: 1402000
Job Id: 01
---Begin Environment---
SHELL=/bin/sh
OSVERSION=1402000
UNAME_v=FreeBSD 14.2-RELEASE 1402000
UNAME_r=14.2-RELEASE
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.2
MASTERMNT=/usr/local/poudriere/data/.m/142amd64-default/ref
FTP_PROXY=http://10.1.2.38:8080/
HTTPS_PROXY=http://10.1.2.38:8080/
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/142amd64-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=142amd64-default
HTTP_PROXY=http://10.1.2.38:8080/
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/142amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.2
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---
---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---
---Begin OPTIONS List---
---End OPTIONS List---
--MAINTAINER--
portmas...@bsdforge.com
--End MAINTAINER--
--CONFIGURE_ARGS--
--prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--
--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work/.cache HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-mgmt/tcptrack/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-mgmt/tcptrack/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288
--End CONFIGURE_ENV--
--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work/.cache HOME=/wrkdirs/usr/ports/net-mgmt/tcptrack/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-mgmt/tcptrack/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-mgmt/tcptrack/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -Wno-error=unused-but-set-variable -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-error=unused-but-set-variable -fstack-protector-strong -fno-strict-aliasing -std=c++14 " 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--
OSREL=14.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/tcptrack" EXAMPLESDIR="share/examples/tcptrack" DATADIR="share/tcptrack" WWWDIR="www/tcptrack" ETCDIR="etc/tcptrack"
--End PLIST_SUB--
--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/tcptrack DOCSDIR=/usr/local/share/doc/tcptrack EXAMPLESDIR=/usr/local/share/examples/tcptrack WWWDIR=/usr/local/www/tcptrack ETCDIR=/usr/local/etc/tcptrack
--End SUB_LIST--
---Begin make.conf---
JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_OPENJDK_JDK_1_8
DISABLE_LICENSES=yes
_CLAMAVUSER=mailnull
#DEFAULT_VERSIONS+=ghostscript=10
WITH_DEBUG_PORTS+=databases/ldb28
WITH_DEBUG_PORTS+=net/samba419
WITH_DEBUG_PORTS+=www/c-icap
WITH_DEBUG_PORTS+=www/squid
SAMBA4_BUNDLED_LDB=yes
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### ####
JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_OPENJDK_JDK_1_8
DISABLE_LICENSES=yes
_CLAMAVUSER=mailnull
#DEFAULT_VERSIONS+=ghostscript=10
WITH_DEBUG_PORTS+=databases/ldb28
WITH_DEBUG_PORTS+=net/samba419
WITH_DEBUG_PORTS+=www/c-icap
WITH_DEBUG_PORTS+=www/squid
SAMBA4_BUNDLED_LDB=yes
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/root/.ccache
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
DISABLE_MAKE_JOBS=poudriere
---End make.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) 34275
open files (-n) 8192
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
pipebuf (-y) unlimited
--End resource limits--
=======================<phase: check-sanity >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===========================================================================
=======================<phase: pkg-depends >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===> tcptrack-1.4.2_4 depends on file: /usr/local/sbin/pkg - not found
===> Installing existing package /packages/All/pkg-1.21.3.pkg
[142amd64-default-job-01] Installing pkg-1.21.3...
[142amd64-default-job-01] Extracting pkg-1.21.3: .......... done
===> tcptrack-1.4.2_4 depends on file: /usr/local/sbin/pkg - found
===> Returning to build of tcptrack-1.4.2_4
===========================================================================
=======================<phase: fetch-depends >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Fetching all distfiles required by tcptrack-1.4.2_4 for building
===========================================================================
=======================<phase: checksum >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Fetching all distfiles required by tcptrack-1.4.2_4 for building
=> SHA256 Checksum OK for tcptrack-1.4.2.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Fetching all distfiles required by tcptrack-1.4.2_4 for building
===> Extracting for tcptrack-1.4.2_4
=> SHA256 Checksum OK for tcptrack-1.4.2.tar.gz.
===========================================================================
=======================<phase: patch-depends >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Patching for tcptrack-1.4.2_4
===> Applying FreeBSD patches for tcptrack-1.4.2_4 from /usr/ports/net-mgmt/tcptrack/files
===========================================================================
=======================<phase: build-depends >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===> tcptrack-1.4.2_4 depends on file: /usr/local/bin/ccache - not found
===> Installing existing package /packages/All/ccache-3.7.12_7.pkg
[142amd64-default-job-01] Installing ccache-3.7.12_7...
[142amd64-default-job-01] Extracting ccache-3.7.12_7: ......... done
Create compiler links...
create symlink for cc
create symlink for cc (world)
create symlink for c++
create symlink for c++ (world)
create symlink for CC
create symlink for CC (world)
create symlink for clang
create symlink for clang (world)
create symlink for clang++
create symlink for clang++ (world)
=====
Message from ccache-3.7.12_7:
--
NOTE:
Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for
information on using ccache with FreeBSD ports and src.
===> tcptrack-1.4.2_4 depends on file: /usr/local/bin/ccache - found
===> Returning to build of tcptrack-1.4.2_4
===========================================================================
=======================<phase: lib-depends >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Configuring for tcptrack-1.4.2_4
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking for gcc... cc
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 dependency style of cc... gcc3
checking how to run the C++ preprocessor... c++ -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
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 whether byte ordering is bigendian... no
checking for socket in -lsocket... no
checking for gethostbyname in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for inet_addr in -lnsl... no
checking for initscr in -lncurses... yes
checking for pcap_open_live in -lpcap... yes
checking for pthread_create in -lpthread... yes
checking for nanosleep in -lrt... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking pcap/pcap.h usability... yes
checking pcap/pcap.h presence... yes
checking for pcap/pcap.h... yes
checking for pthread.h... (cached) yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking hash_map usability... no
checking hash_map presence... no
checking for hash_map... no
checking ext/hash_map usability... yes
checking ext/hash_map presence... yes
checking for ext/hash_map... yes
checking for an ANSI C-conforming const... yes
checking for ANSI C header files... (cached) yes
checking if the __gnu_cxx namespace exists... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
===========================================================================
=======================<phase: build >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Building for tcptrack-1.4.2_4
/usr/bin/make all-recursive
Making all in src
c++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -O2 -pipe -Wno-error=unused-but-set-variable -fstack-protector-strong -fno-strict-aliasing -std=c++14 -MT Collector.o -MD -MP -MF .deps/Collector.Tpo -c -o Collector.o Collector.cc
mv -f .deps/Collector.Tpo .deps/Collector.Po
c++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -O2 -pipe -Wno-error=unused-but-set-variable -fstack-protector-strong -fno-strict-aliasing -std=c++14 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc
mv -f .deps/main.Tpo .deps/main.Po
c++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -O2 -pipe -Wno-error=unused-but-set-variable -fstack-protector-strong -fno-strict-aliasing -std=c++14 -MT TCContainer.o -MD -MP -MF .deps/TCContainer.Tpo -c -o TCContainer.o TCContainer.cc
TCContainer.cc:172:7: warning: variable 'numitems' set but not used [-Wunused-but-set-variable]
172 | int numitems = 0;
| ^
1 warning generated.
mv -f .deps/TCContainer.Tpo .deps/TCContainer.Po
c++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -O2 -pipe -Wno-error=unused-but-set-variable -fstack-protector-strong -fno-strict-aliasing -std=c++14 -MT TextUI.o -MD -MP -MF .deps/TextUI.Tpo -c -o TextUI.o TextUI.cc
TextUI.cc:306:17: error: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Werror,-Wformat]
306 | printw("%ds",ic->getIdleSeconds());
| ~~ ^~~~~~~~~~~~~~~~~~~~
| %ld
TextUI.cc:308:17: error: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Werror,-Wformat]
308 | printw("%dm",ic->getIdleSeconds()/60);
| ~~ ^~~~~~~~~~~~~~~~~~~~~~~
| %ld
TextUI.cc:310:17: error: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Werror,-Wformat]
310 | printw("%dh",ic->getIdleSeconds()/3600);
| ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~
| %ld
3 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /wrkdirs/usr/ports/net-mgmt/tcptrack/work/tcptrack-1.4.2/src
*** Error code 1
Stop.
make[1]: stopped in /wrkdirs/usr/ports/net-mgmt/tcptrack/work/tcptrack-1.4.2
*** Error code 1
Stop.
make: stopped in /wrkdirs/usr/ports/net-mgmt/tcptrack/work/tcptrack-1.4.2
*** Error code 1
Stop.
make: stopped in /usr/ports/net-mgmt/tcptrack
=>> Cleaning up wrkdir
===> Cleaning for tcptrack-1.4.2_4
build of net-mgmt/tcptrack | tcptrack-1.4.2_4 ended at Mon Dec 9 09:14:41 CET 2024
build time: 00:00:05
!!! build failure encountered !!!