==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_fc2b681c-73b0-4378-a2c6-202d940ea373]...done ==> Making package: jomon 0.3.4-1.1 (Fri May 31 11:05:16 2024) ==> Retrieving sources... -> Cloning jomon git repo... Cloning into bare repository '/home/alhp/workspace/build/x86-64-v2/jomon-0.3.4-1/jomon'... ==> Validating source files with b2sums... jomon ... Passed ==> Making package: jomon 0.3.4-1.1 (Fri May 31 11:05:27 2024) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (2) New Version Net Change extra/geoip-database 20240406-1 8.82 MiB extra/geoip 1.6.12-2 0.28 MiB Total Installed Size: 9.10 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) ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (8) New Version Net Change core/expat 2.6.2-1 0.41 MiB core/mpdecimal 4.0.0-2 0.32 MiB extra/perl-error 0.17029-5 0.04 MiB extra/perl-mailtools 2.21-7 0.10 MiB extra/perl-timedate 2.33-5 0.08 MiB extra/git 2.45.1-1 27.82 MiB core/python 3.12.3-1 70.10 MiB extra/re2c 3.1-1 2.03 MiB Total Installed Size: 100.90 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing expat... 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/1) 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-v2 -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.3.4"\" debug.c -o build/debug.o gcc -c -march=x86-64-v2 -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.3.4"\" error.c -o build/error.o gcc -c -march=x86-64-v2 -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.3.4"\" file.c -o build/file.o gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.3.4"\" debug.c > build/debug.d gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.3.4"\" error.c > build/error.d gcc -c -march=x86-64-v2 -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.3.4"\" hashmap.c -o build/hashmap.o file.c: In function ‘file_write_pcap’: file.c:170:56: error: passing argument 3 of ‘write_data’ from incompatible pointer type [-Wincompatible-pointer-types] 170 | 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:173:47: error: passing argument 3 of ‘write_data’ from incompatible pointer type [-Wincompatible-pointer-types] 173 | 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:177:13: error: invalid use of undefined type ‘struct packet’ 177 | fn(p->len); | ^~ file.c: At top level: file.c:202:5: error: conflicting types for ‘write_data’; have ‘int(unsigned char *, unsigned int, struct packet *)’ 202 | 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:204:10: error: invalid use of undefined type ‘struct packet’ 204 | if (p->len + sizeof(pcaprec_hdr_t) > len) { | ^~ file.c:211:24: error: invalid use of undefined type ‘struct packet’ 211 | pcap_hdr.ts_sec = p->time.tv_sec; | ^~ file.c:212:25: error: invalid use of undefined type ‘struct packet’ 212 | pcap_hdr.ts_usec = p->time.tv_usec; | ^~ file.c:213:26: error: invalid use of undefined type ‘struct packet’ 213 | pcap_hdr.incl_len = p->len; | ^~ file.c:214:26: error: invalid use of undefined type ‘struct packet’ 214 | pcap_hdr.orig_len = p->len; | ^~ file.c:218:42: error: invalid use of undefined type ‘struct packet’ 218 | memcpy(buf + sizeof(pcaprec_hdr_t), p->buf, p->len); | ^~ file.c:218:50: error: invalid use of undefined type ‘struct packet’ 218 | memcpy(buf + sizeof(pcaprec_hdr_t), p->buf, p->len); | ^~ file.c:219:13: error: invalid use of undefined type ‘struct packet’ 219 | return p->len + sizeof(pcaprec_hdr_t); | ^~ file.c: In function ‘file_write_ascii’: file.c:279:34: error: implicit declaration of function ‘get_adu_payload’ [-Wimplicit-function-declaration] 279 | unsigned char *payload = get_adu_payload(p); | ^~~~~~~~~~~~~~~ file.c:279:34: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] file.c:280:24: error: implicit declaration of function ‘get_adu_payload_len’ [-Wimplicit-function-declaration] 280 | uint16_t len = get_adu_payload_len(p); | ^~~~~~~~~~~~~~~~~~~ file.c: In function ‘file_write_raw’: file.c:297:34: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 297 | unsigned char *payload = get_adu_payload(p); | ^~~~~~~~~~~~~~~ make: *** [Makefile:78: build/file.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -c -march=x86-64-v2 -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.3.4"\" interface.c -o build/interface.o gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.3.4"\" hashmap.c > build/hashmap.d gcc -MM -iquote /startdir/src/jomon -DVERSION=\""0.3.4"\" interface.c > build/interface.d ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_fc2b681c-73b0-4378-a2c6-202d940ea373/build