==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_5c40fd22-3aaf-4cfe-8ae6-2bb5e92c9eeb]...done
==> Making package: jomon 0.5.1-1.1 (Sun Dec 22 21:19:09 2024)
==> Retrieving sources...
  -> Cloning jomon git repo...
Cloning into bare repository '/home/alhp/workspace/build/x86-64-v3/jomon-0.5.1-1/jomon'...
==> Validating source files with b2sums...
    jomon ... Passed
==> Making package: jomon 0.5.1-1.1 (Sun Dec 22 20:19:35 2024)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (2)           New Version  Net Change

extra/geoip-database  20241116-1    10.16 MiB
extra/geoip           1.6.12-3       0.27 MiB

Total Installed Size:  10.43 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing geoip-database...
:: By installing geoip-database, you acknowledge and agree to comply
   with the terms of the GeoLite2 End User License Agreement (EULA).

   Review the EULA here: https://www.maxmind.com/en/geolite2/eula
installing geoip...
Optional dependencies for geoip
    geoip-database-extra: city/ASN databases (not needed for country lookups)
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (7)           New Version  Net Change

core/mpdecimal        4.0.0-2        0.32 MiB
extra/perl-error      0.17029-7      0.04 MiB
extra/perl-mailtools  2.22-1         0.10 MiB
extra/perl-timedate   2.33-7         0.08 MiB
extra/git             2.47.1-1      28.29 MiB
core/python           3.13.1-1      67.54 MiB
extra/re2c            4.0.2-1       11.31 MiB

Total Installed Size:  107.69 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    openssh: ssh transport and crypto
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4 [pending]
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
installing mpdecimal...
installing python...
Optional dependencies for python
    python-setuptools: for building Python packages using tooling that is usually bundled with Python
    python-pip: for installing Python packages using tooling that is usually bundled with Python
    python-pipx: for installing Python software not packaged on Arch Linux
    sqlite: for a default database integration [installed]
    xz: for lzma [installed]
    tk: for tkinter
installing re2c...
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 972.
Creating user 'git' (git daemon user) with UID 972 and GID 972.
(2/4) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/4) Arming ConditionNeedsUpdate...
(4/4) Warn about old perl modules
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of jomon git repo...
Cloning into 'jomon'...
done.
Switched to a new branch 'makepkg'
==> Starting build()...
[*] Checking for gcc...                     [OK]
[*] Checking for libncurses...              [OK]
[*] Checking for libGeoIP...                [OK]
[*] Checking for re2c...                    [OK]
[*] Checking for python3...                 [OK]
[*] Generating config...
python3 scripts/genprotocols.py
python3 scripts/genprotocols.py
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" debug.c -o build/debug.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" error.c -o build/error.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" file.c -o build/file.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" hashmap.c -o build/hashmap.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" interface.c -o build/interface.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" list.c -o build/list.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" main.c -o build/main.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" mempool.c -o build/mempool.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" rbtree.c -o build/rbtree.o
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" ringbuffer.c -o build/ringbuffer.o
file.c: In function ‘file_write_pcap’:
file.c:183:56: error: passing argument 3 of ‘write_data’ from incompatible pointer type [-Wincompatible-pointer-types]
  183 |         n = write_data(buf + bufidx, BUFSIZE - bufidx, p);
      |                                                        ^
      |                                                        |
      |                                                        struct packet *
file.c:56:76: note: expected ‘struct packet *’ but argument is of type ‘struct packet *’
   56 | static int write_data(unsigned char *buf, unsigned int len, struct packet *p);
      |                                                             ~~~~~~~~~~~~~~~^
file.c:186:47: error: passing argument 3 of ‘write_data’ from incompatible pointer type [-Wincompatible-pointer-types]
  186 |             bufidx = write_data(buf, BUFSIZE, p);
      |                                               ^
      |                                               |
      |                                               struct packet *
file.c:56:76: note: expected ‘struct packet *’ but argument is of type ‘struct packet *’
   56 | static int write_data(unsigned char *buf, unsigned int len, struct packet *p);
      |                                                             ~~~~~~~~~~~~~~~^
file.c:190:13: error: invalid use of undefined type ‘struct packet’
  190 |         fn(p->len);
      |             ^~
file.c: At top level:
file.c:215:5: error: conflicting types for ‘write_data’; have ‘int(unsigned char *, unsigned int,  struct packet *)’
  215 | int write_data(unsigned char *buf, unsigned int len, struct packet *p)
      |     ^~~~~~~~~~
file.c:56:12: note: previous declaration of ‘write_data’ with type ‘int(unsigned char *, unsigned int,  struct packet *)’
   56 | static int write_data(unsigned char *buf, unsigned int len, struct packet *p);
      |            ^~~~~~~~~~
file.c: In function ‘write_data’:
file.c:217:10: error: invalid use of undefined type ‘struct packet’
  217 |     if (p->len + sizeof(pcaprec_hdr_t) > len) {
      |          ^~
file.c:224:24: error: invalid use of undefined type ‘struct packet’
  224 |     pcap_hdr.ts_sec = p->time.tv_sec;
      |                        ^~
file.c:225:25: error: invalid use of undefined type ‘struct packet’
  225 |     pcap_hdr.ts_usec = p->time.tv_usec;
      |                         ^~
file.c:226:26: error: invalid use of undefined type ‘struct packet’
  226 |     pcap_hdr.incl_len = p->len;
      |                          ^~
file.c:227:26: error: invalid use of undefined type ‘struct packet’
  227 |     pcap_hdr.orig_len = p->len;
      |                          ^~
file.c:231:42: error: invalid use of undefined type ‘struct packet’
  231 |     memcpy(buf + sizeof(pcaprec_hdr_t), p->buf, p->len);
      |                                          ^~
file.c:231:50: error: invalid use of undefined type ‘struct packet’
  231 |     memcpy(buf + sizeof(pcaprec_hdr_t), p->buf, p->len);
      |                                                  ^~
file.c:232:13: error: invalid use of undefined type ‘struct packet’
  232 |     return p->len + sizeof(pcaprec_hdr_t);
      |             ^~
file.c: In function ‘file_write_ascii’:
file.c:292:34: error: implicit declaration of function ‘get_adu_payload’ [-Wimplicit-function-declaration]
  292 |         unsigned char *payload = get_adu_payload(p);
      |                                  ^~~~~~~~~~~~~~~
file.c:292:34: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
file.c:293:24: error: implicit declaration of function ‘get_adu_payload_len’ [-Wimplicit-function-declaration]
  293 |         uint16_t len = get_adu_payload_len(p);
      |                        ^~~~~~~~~~~~~~~~~~~
file.c: In function ‘file_write_raw’:
file.c:310:34: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  310 |         unsigned char *payload = get_adu_payload(p);
      |                                  ^~~~~~~~~~~~~~~
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" debug.c > build/debug.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" error.c > build/error.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" hashmap.c > build/hashmap.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" interface.c > build/interface.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" list.c > build/list.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" main.c > build/main.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" mempool.c > build/mempool.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" rbtree.c > build/rbtree.d
make: *** [Makefile:79: build/file.o] Error 1
make: *** Waiting for unfinished jobs....
gcc -c -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/jomon -flto=auto -falign-functions=32 -Wl,-z,now -w -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" signal.c -o build/signal.o
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" ringbuffer.c > build/ringbuffer.d
gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.5.1"\" signal.c > build/signal.d
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_5c40fd22-3aaf-4cfe-8ae6-2bb5e92c9eeb/build