[package - 123i386-default][net-p2p/microdc2] Failed for microdc2-0.15.6_10 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Tue, 30 Aug 2022 18:01:03 UTC
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:     pankov_p@mail.ru
Log URL:        http://beefy5.nyi.freebsd.org/data/123i386-default/643cd9b34b82/logs/microdc2-0.15.6_10.log
Build URL:      http://beefy5.nyi.freebsd.org/build.html?mastername=123i386-default&build=643cd9b34b82
Log:

=>> Building net-p2p/microdc2
build started at Tue Aug 30 18:00:41 UTC 2022
port directory: /usr/ports/net-p2p/microdc2
package name: microdc2-0.15.6_10
building for: FreeBSD 123i386-default-job-03 12.3-RELEASE-p6 FreeBSD 12.3-RELEASE-p6 i386
maintained by: pankov_p@mail.ru
Makefile ident: 
Poudriere version: 3.2.8-21-g883afb07
Host OSVERSION: 1400063
Jail OSVERSION: 1203000
Job Id: 03

---Begin Environment---
SHELL=/bin/csh
UNAME_p=i386
UNAME_m=i386
OSVERSION=1203000
UNAME_v=FreeBSD 12.3-RELEASE-p6
UNAME_r=12.3-RELEASE-p6
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
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-21-g883afb07
MASTERMNT=/usr/local/poudriere/data/.m/123i386-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/123i386-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=123i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/123i386-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 microdc2-0.15.6_10:
     NLS=on: Native Language Support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
pankov_p@mail.ru
--End MAINTAINER--

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

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/net-p2p/microdc2/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-p2p/microdc2/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/net-p2p/microdc2/work/.cache  HOME=/wrkdirs/usr/ports/net-p2p/microdc2/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-p2p/microdc2/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-p2p/microdc2/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 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-p2p/microdc2/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-p2p/microdc2/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/net-p2p/microdc2/work/.cache  HOME=/wrkdirs/usr/ports/net-p2p/microdc2/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-p2p/microdc2/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-p2p/microdc2/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-DLIBICONV_PLUG -I/usr/local/include"  LDFLAGS=" -L/usr/local/lib -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -DLIBICONV_PLUG "  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--
NLS="" NO_NLS="@comment " GTK2_VERSION="2.10.0"  GTK3_VERSION="3.0.0"  GTK4_VERSION="4.0.0" OSREL=12.3 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/microdc2"  EXAMPLESDIR="share/examples/microdc2"  DATADIR="share/microdc2"  WWWDIR="www/microdc2"  ETCDIR="etc/microdc2"
--End PLIST_SUB--

--SUB_LIST--
NLS="" NO_NLS="@comment " PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/microdc2 DOCSDIR=/usr/local/share/doc/microdc2 EXAMPLESDIR=/usr/local/share/examples/microdc2  WWWDIR=/usr/local/www/microdc2 ETCDIR=/usr/local/etc/microdc2
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
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_921dbbb2=FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target: i386-unknown-freebsd12.3 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target: i386-unknown-freebsd12.3 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-m" "elf_i386_fbsd" "-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_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target: i386-unknown-freebsd12.3 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=i386
OPSYS=FreeBSD
_OSRELEASE=12.3-RELEASE-p6
OSREL=12.3
OSVERSION=1203000
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
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)  524288
stack size              (kbytes, -s)  65536
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   >============================
===>  License GPLv2 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   microdc2-0.15.6_10 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.18.4.pkg
[123i386-default-job-03] Installing pkg-1.18.4...
[123i386-default-job-03] Extracting pkg-1.18.4: .......... done
===>   microdc2-0.15.6_10 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of microdc2-0.15.6_10
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by microdc2-0.15.6_10 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by microdc2-0.15.6_10 for building
=> SHA256 Checksum OK for microdc2-0.15.6.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by microdc2-0.15.6_10 for building
===>  Extracting for microdc2-0.15.6_10
=> SHA256 Checksum OK for microdc2-0.15.6.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for microdc2-0.15.6_10
===>  Applying FreeBSD patches for microdc2-0.15.6_10 from /usr/ports/net-p2p/microdc2/files
===========================================================================
=======================<phase: build-depends  >============================
===>   microdc2-0.15.6_10 depends on executable: msgfmt - not found
===>   Installing existing package /packages/All/gettext-tools-0.21_1.pkg
[123i386-default-job-03] Installing gettext-tools-0.21_1...
[123i386-default-job-03] `-- Installing gettext-runtime-0.21...
[123i386-default-job-03] |   `-- Installing indexinfo-0.3.1...
[123i386-default-job-03] |   `-- Extracting indexinfo-0.3.1: .... done
[123i386-default-job-03] `-- Extracting gettext-runtime-0.21: .......... done
[123i386-default-job-03] `-- Installing libtextstyle-0.21...
[123i386-default-job-03] `-- Extracting libtextstyle-0.21: .......... done
[123i386-default-job-03] Extracting gettext-tools-0.21_1: .......... done
===>   microdc2-0.15.6_10 depends on executable: msgfmt - found
===>   Returning to build of microdc2-0.15.6_10
<snip>
rm -f libcommon.a
ar cru libcommon.a bksearch.o byteq.o  error.o hmap.o intutil.o  msgq.o optparser.o ptrv.o  quoting.o range.o substrcmp.o  strbuf.o strleftcmp.o tempdir.o  tmap.o ../../lib/libgnu.a
ranlib libcommon.a
Making all in tth
if cc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib  -I../../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT tiger.o -MD -MP -MF ".deps/tiger.Tpo" -c -o tiger.o tiger.c;  then mv -f ".deps/tiger.Tpo" ".deps/tiger.Po"; else rm -f ".deps/tiger.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib  -I../../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT sboxes.o -MD -MP -MF ".deps/sboxes.Tpo" -c -o sboxes.o sboxes.c;  then mv -f ".deps/sboxes.Tpo" ".deps/sboxes.Po"; else rm -f ".deps/sboxes.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib  -I../../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT base32.o -MD -MP -MF ".deps/base32.Tpo" -c -o base32.o base32.c;  then mv -f ".deps/base32.Tpo" ".deps/base32.Po"; else rm -f ".deps/base32.Tpo"; exit 1; fi
base32.c:37:12: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    return digest;
           ^~~~~~
1 warning generated.
if cc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib  -I../../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT tigertree.o -MD -MP -MF ".deps/tigertree.Tpo" -c -o tigertree.o tigertree.c;  then mv -f ".deps/tigertree.Tpo" ".deps/tigertree.Po"; else rm -f ".deps/tigertree.Tpo"; exit 1; fi
tigertree.c:110:12: warning: unused variable 'tmp' [-Wunused-variable]
    word64 tmp, cnt;
           ^
tigertree.c:110:17: warning: unused variable 'cnt' [-Wunused-variable]
    word64 tmp, cnt;
                ^
2 warnings generated.
if cc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../lib  -I../../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT tth.o -MD -MP -MF ".deps/tth.Tpo" -c -o tth.o tth.c;  then mv -f ".deps/tth.Tpo" ".deps/tth.Po"; else rm -f ".deps/tth.Tpo"; exit 1; fi
tth.c:99:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    tt_init(&tt, *tthl, level);
                 ^~~~~
./tigertree.h:41:46: note: passing argument to parameter 'tthl' here
void tt_init(TT_CONTEXT *ctx, unsigned char *tthl, unsigned depth);
                                             ^
1 warning generated.
rm -f libtth.a
ar cru libtth.a tiger.o sboxes.o  base32.o tigertree.o tth.o 
ranlib libtth.a
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT command.o -MD -MP -MF ".deps/command.Tpo" -c -o command.o command.c;  then mv -f ".deps/command.Tpo" ".deps/command.Po"; else rm -f ".deps/command.Tpo"; exit 1; fi
command.c:862:23: warning: implicit declaration of function 'main_to_utf8_string' is invalid in C99 [-Wimplicit-function-declaration]
        hub_my_nick = main_to_utf8_string(my_nick);
                      ^
command.c:862:21: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
        hub_my_nick = main_to_utf8_string(my_nick);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
command.c:867:18: warning: implicit declaration of function 'main_to_utf8_string' is invalid in C99 [-Wimplicit-function-declaration]
        hub_t2 = main_to_utf8_string(t2);
                 ^
command.c:867:16: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
        hub_t2 = main_to_utf8_string(t2);
               ^ ~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT connection.o -MD -MP -MF ".deps/connection.Tpo" -c -o connection.o connection.c;  then mv -f ".deps/connection.Tpo" ".deps/connection.Po"; else rm -f ".deps/connection.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT variables.o -MD -MP -MF ".deps/variables.Tpo" -c -o variables.o variables.c;  then mv -f ".deps/variables.Tpo" ".deps/variables.Po"; else rm -f ".deps/variables.Tpo"; exit 1; fi
variables.c:791:29: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'int') [-Wformat]
    return xasprintf("%ld", value);
                      ~~~   ^~~~~
                      %d
1 warning generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT fs.o -MD -MP -MF ".deps/fs.Tpo" -c -o fs.o fs.c;  then mv -f ".deps/fs.Tpo" ".deps/fs.Po"; else rm -f ".deps/fs.Tpo"; exit 1; fi
fs.c:359:20: warning: passing 'unsigned char [2]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            res = strcoll(s1, s2);
                          ^~
/usr/include/string.h:83:26: note: passing argument to parameter here
int      strcoll(const char *, const char *);
                             ^
fs.c:359:24: warning: passing 'unsigned char [2]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            res = strcoll(s1, s2);
                              ^~
/usr/include/string.h:83:40: note: passing argument to parameter here
int      strcoll(const char *, const char *);
                                           ^
fs.c:635:13: warning: unused variable 'xml_fd' [-Wunused-variable]
    int fd, xml_fd, bzxml_fd;
            ^
fs.c:635:21: warning: unused variable 'bzxml_fd' [-Wunused-variable]
    int fd, xml_fd, bzxml_fd;
                    ^
fs.c:637:11: warning: unused variable 'xml_filename' [-Wunused-variable]
    char *xml_filename;
          ^
fs.c:638:11: warning: unused variable 'bzxml_filename' [-Wunused-variable]
    char *bzxml_filename;
          ^
6 warnings generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT xml_flist.o -MD -MP -MF ".deps/xml_flist.Tpo" -c -o xml_flist.o xml_flist.c;  then mv -f ".deps/xml_flist.Tpo" ".deps/xml_flist.Po"; else rm -f ".deps/xml_flist.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT hub.o -MD -MP -MF ".deps/hub.Tpo" -c -o hub.o hub.c;  then mv -f ".deps/hub.Tpo" ".deps/hub.Po"; else rm -f ".deps/hub.Tpo"; exit 1; fi
hub.c:397:19: warning: comparison of different enumeration types ('DCHubState' and 'DCUserState') [-Wenum-compare]
    if (hub_state != state) {
        ~~~~~~~~~ ^  ~~~~~
hub.c:422:10: warning: implicit declaration of function 'try_utf8_to_main_string' is invalid in C99 [-Wimplicit-function-declaration]
    t1 = try_utf8_to_main_string(str);
         ^
hub.c:422:8: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
    t1 = try_utf8_to_main_string(str);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hub.c:447:31: warning: implicit conversion from enumeration type 'DCHubState' to different enumeration type 'DCUserState' [-Wenum-conversion]
        if (!check_state(buf, DC_HUB_LOCK))
             ~~~~~~~~~~~      ^~~~~~~~~~~
hub.c:508:31: warning: implicit conversion from enumeration type 'DCHubState' to different enumeration type 'DCUserState' [-Wenum-conversion]
        if (!check_state(buf, DC_HUB_HELLO))
             ~~~~~~~~~~~      ^~~~~~~~~~~~
hub.c:698:13: warning: misleading indentation; statement is not part of the previous 'else' [-Wmisleading-indentation]
            flag_putf(DC_DF_PUBLIC_CHAT, first ? _("Public: %s\n") : _(" | %s\n"), quotearg(head));
            ^
hub.c:690:9: note: previous statement is here
        else
        ^
6 warnings generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT huffman.o -MD -MP -MF ".deps/huffman.Tpo" -c -o huffman.o huffman.c;  then mv -f ".deps/huffman.Tpo" ".deps/huffman.Po"; else rm -f ".deps/huffman.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c;  then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
main.c:1321:6: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
            if (running && search_socket >= 0 && FD_ISSET(search_socket, &res_read_fds))
            ^
main.c:1319:9: note: previous statement is here
        if (running)
        ^
main.c:1338:6: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
            if (running) {
            ^
main.c:1335:9: note: previous statement is here
        if (running && FD_ISSET(update_result_mq->fd, &res_read_fds))
        ^
2 warnings generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT lookup.o -MD -MP -MF ".deps/lookup.Tpo" -c -o lookup.o lookup.c;  then mv -f ".deps/lookup.Tpo" ".deps/lookup.Po"; else rm -f ".deps/lookup.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT filelist-in.o -MD -MP -MF ".deps/filelist-in.Tpo" -c -o filelist-in.o filelist-in.c;  then mv -f ".deps/filelist-in.Tpo" ".deps/filelist-in.Po"; else rm -f ".deps/filelist-in.Tpo"; exit 1; fi
filelist-in.c:211:52: warning: for loop has empty body [-Wempty-body]
        for (; c < decoded_len && decoded[c] == '\n'; c++);
                                                          ^
filelist-in.c:211:52: note: put the semicolon on a separate line to silence this warning
1 warning generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT screen.o -MD -MP -MF ".deps/screen.Tpo" -c -o screen.o screen.c;  then mv -f ".deps/screen.Tpo" ".deps/screen.Po"; else rm -f ".deps/screen.Tpo"; exit 1; fi
screen.c:258:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        fprintf(log_fh, log_msg);
                        ^~~~~~~
screen.c:258:25: note: treat the string as an argument to avoid this
        fprintf(log_fh, log_msg);
                        ^
                        "%s", 
1 warning generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT search.o -MD -MP -MF ".deps/search.Tpo" -c -o search.o search.c;  then mv -f ".deps/search.Tpo" ".deps/search.Po"; else rm -f ".deps/search.Tpo"; exit 1; fi
search.c:86:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    u_str = xstrndup(p, len);
          ^ ~~~~~~~~~~~~~~~~
search.c:90:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    sp->str = u_str;
            ^ ~~~~~
2 warnings generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT user.o -MD -MP -MF ".deps/user.Tpo" -c -o user.o user.c;  then mv -f ".deps/user.Tpo" ".deps/user.Po"; else rm -f ".deps/user.Tpo"; exit 1; fi
user.c:1056:17: warning: implicit declaration of function 'utf8_to_main_string' is invalid in C99 [-Wimplicit-function-declaration]
                utf8_to_main_string(buf+5);
                ^
user.c:1052:19: warning: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
            char *s =
                  ^
2 warnings generated.
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.c;  then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT tth_file.o -MD -MP -MF ".deps/tth_file.Tpo" -c -o tth_file.o tth_file.c;  then mv -f ".deps/tth_file.Tpo" ".deps/tth_file.Po"; else rm -f ".deps/tth_file.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT local_flist.o -MD -MP -MF ".deps/local_flist.Tpo" -c -o local_flist.o local_flist.c;  then mv -f ".deps/local_flist.Tpo" ".deps/local_flist.Po"; else rm -f ".deps/local_flist.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT hash.o -MD -MP -MF ".deps/hash.Tpo" -c -o hash.o hash.c;  then mv -f ".deps/hash.Tpo" ".deps/hash.Po"; else rm -f ".deps/hash.Tpo"; exit 1; fi
if cc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib  -I../lib  -DLIBICONV_PLUG -I/usr/local/include -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -MT charsets.o -MD -MP -MF ".deps/charsets.Tpo" -c -o charsets.o charsets.c;  then mv -f ".deps/charsets.Tpo" ".deps/charsets.Po"; else rm -f ".deps/charsets.Tpo"; exit 1; fi
cc -Wall   -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -L/usr/local/lib -fstack-protector-strong -o microdc2  command.o connection.o  variables.o fs.o xml_flist.o  hub.o huffman.o main.o  lookup.o filelist-in.o screen.o  search.o user.o util.o  tth_file.o local_flist.o hash.o  charsets.o common/libcommon.a  tth/libtth.a  ../lib/libgnu.a  -lbz2  -lreadline  /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib     
ld: error: undefined symbol: main_to_utf8_string
>>> referenced by command.c
>>>               command.o:(cmd_say)
>>> referenced by command.c
>>>               command.o:(cmd_say)

ld: error: undefined symbol: try_utf8_to_main_string
>>> referenced by hub.c
>>>               hub.o:(hub_input_available)
>>> referenced by hub.c
>>>               hub.o:(hub_input_available)
>>> referenced by hub.c
>>>               hub.o:(hub_input_available)

ld: error: undefined symbol: filelist_xml_open
>>> referenced by filelist-in.c
>>>               filelist-in.o:(parse_main)

ld: error: undefined symbol: filelist_bzxml_open
>>> referenced by filelist-in.c
>>>               filelist-in.o:(parse_main)

ld: error: undefined symbol: utf8_to_main_string
>>> referenced by user.c
>>>               user.o:(user_handle_command)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[4]: stopped in /wrkdirs/usr/ports/net-p2p/microdc2/work/microdc2-0.15.6/src
*** Error code 1

Stop.
make[3]: stopped in /wrkdirs/usr/ports/net-p2p/microdc2/work/microdc2-0.15.6/src
*** Error code 1

Stop.
make[2]: stopped in /wrkdirs/usr/ports/net-p2p/microdc2/work/microdc2-0.15.6
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/net-p2p/microdc2/work/microdc2-0.15.6
*** Error code 1

Stop.
make: stopped in /usr/ports/net-p2p/microdc2