Hi,

Gnunet is failing to build for me on the latest master version (b1bd228cfc7847d06ca35cbec5ec48c3942fea41).

The build is on Slackware64-15.0 with meson upgraded (1.3.0) from Slackware64-current.  I also get an error about a missing reference to pthread when postgresql is not included as a dependency.

You may find a Dockerfile to reproduce the bug and its build output attached.

```

../src/lib/pq/test_pq.c: In function ‘run_queries’:
../src/lib/pq/test_pq.c:202:7: internal compiler error: Segmentation fault
   202 |       GNUNET_PQ_query_param_array_ptrs_string (3, as, db),
       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x15a1707 internal_error(char const*, ...)
     ???:0
0x756bb1 expand_call(tree_node*, rtx_def*, int)
     ???:0
0x86d2ee expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
     ???:0
0x8775de store_expr(tree_node*, rtx_def*, int, bool, bool)
     ???:0
Please submit a full bug report,

```



Sending build context to Docker daemon  4.096kB

Step 1/20 : FROM vbatts/slackware:15.0
 ---> 3c2a7300bd31
Step 2/20 : ARG REPO="http://slackware.osuosl.org/slackware64-15.0/";
 ---> Using cache
 ---> 9b97bc106c58
Step 3/20 : RUN echo "Upgrading and installing slackware system (without X)"
 ---> Using cache
 ---> 5e4466f7f217
Step 4/20 : RUN echo "${REPO}" > /etc/slackpkg/mirrors &&   echo 'WGETFLAGS=--quiet' >> /etc/slackpkg/slackpkg.conf &&   echo 'DEFAULT_ANSWER=yes' >> /etc/slackpkg/slackpkg.conf &&   echo 'BATCH=yes' >> /etc/slackpkg/slackpkg.conf
 ---> Using cache
 ---> b568c7c651e5
Step 5/20 : RUN yes y | slackpkg update &&     yes y | slackpkg install a ap n d k l kde x t tcl xap xfce y &&     yes y | slackpkg upgrade-all
 ---> Using cache
 ---> 5b429c08fc2a
Step 6/20 : RUN echo "Reinstall ssl and wget to work around certificate errors"
 ---> Using cache
 ---> 5bda8020df81
Step 7/20 : RUN yes y | slackpkg reinstall openssl wget
 ---> Using cache
 ---> aff271a2b9f7
Step 8/20 : RUN echo "installing sbotools and gnunet dependencies"
 ---> Using cache
 ---> a4a1f1586d11
Step 9/20 : WORKDIR /usr/src
 ---> Using cache
 ---> 39cc859a92ff
Step 10/20 : RUN bash -c 'wget --quiet http://slackbuilds.org/slackbuilds/15.0/system/sbotools.tar.gz   && tar -xzf sbotools.tar.gz   && cd sbotools   && source *.info   && wget $DOWNLOAD   && sh *.Slack*   && installpkg /tmp/*.t?z'
 ---> Using cache
 ---> 3b7e98ea1b52
Step 11/20 : RUN mkdir /etc/sbotools   && echo LOCAL_OVERRIDES=/usr/src/slackbuilds > /etc/sbotools/sbotools.conf   && echo REPO=git://git.slackbuilds.org/slackbuilds.git > /etc/sbotools/sbotools.conf   && git clone https://git.server.ky/slackcoder/slackbuilds   && sbosnap fetch
 ---> Using cache
 ---> 34dec8722405
Step 12/20 : RUN sboinstall --nointeractive     jansson     recutils     libmicrohttpd
 ---> Using cache
 ---> 45ab216b965c
Step 13/20 : RUN groupadd -g 209 postgres     && useradd -u 209 -g 209 postgres -d /var/lib/psql     && sboinstall --nointeractive     postgresql
 ---> Using cache
 ---> 5abbfbc1cc72
Step 14/20 : RUN yes y | sboinstall     Sphinx
 ---> Using cache
 ---> 7ddc7d9b8623
Step 15/20 : RUN echo "Update Slackware's meson version"
 ---> Using cache
 ---> 253a8dd17aee
Step 16/20 : WORKDIR /usr/local/src
 ---> Using cache
 ---> 837da33347b8
Step 17/20 : RUN rsync -a rsync://bear.alienbase.nl/mirrors/slackware/slackware64-current/source/d/meson .   && cd meson   && sh *.SlackBuild   && upgradepkg /tmp/*.txz
 ---> Using cache
 ---> 7eeb2ef3ecb0
Step 18/20 : RUN git clone https://git.gnunet.org/gnunet.git
 ---> Using cache
 ---> 61af48d70a75
Step 19/20 : RUN cd gnunet   && meson setup builddir   && cd builddir   && meson configure -Dprefix=/usr/local   && meson compile
 ---> Running in ac9307724511
The Meson build system
Version: 1.3.0
Source dir: /usr/local/src/gnunet
Build dir: /usr/local/src/gnunet/builddir
Build type: native build
Project name: gnunet
Project version: 0.21.0-talerdev.1-6-ga849a8a1b
C compiler for the host machine: ccache cc (gcc 11.2.0 "cc (GCC) 11.2.0")
C linker for the host machine: cc ld.bfd 2.37-slack15
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program getent found: YES (/usr/bin/getent)
Checking whether type "struct sockaddr_in" has member "sin_len" : NO 
Checking whether type "struct sockaddr_un" has member "sun_len" : NO 
Checking whether type "struct tm" has member "tm_gmtoff" : YES 
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Compiler for C supports arguments -Wno-address-of-packed-member: YES 
Compiler for C supports arguments -Wno-tautological-constant-out-of-range-compare: NO 
Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2
Found CMake: /usr/bin/cmake (3.21.4)
Run-time dependency libltdl found: NO (tried pkgconfig and cmake)
Library ltdl found: YES
Run-time dependency libunistring found: NO (tried pkgconfig and cmake)
Library unistring found: YES
Run-time dependency sqlite3 found: YES 3.37.2
Run-time dependency libcurl found: YES 8.4.0
Run-time dependency zlib found: YES 1.2.13
Run-time dependency libmicrohttpd found: YES 0.9.75
Run-time dependency jansson found: YES 2.14
Run-time dependency libgcrypt found: YES 1.9.4
Run-time dependency libgnutls found: NO (tried pkgconfig and cmake)
Library gnutls found: YES
Run-time dependency libsodium found: YES 1.0.18
Run-time dependency libquiche found: NO (tried pkgconfig and cmake)
Library quiche found: NO
Run-time dependency libidn2 found: YES 2.3.2
Library m found: YES
Library socket found: NO
Program getopt found: YES (/usr/bin/getopt)
Program ifconfig found: YES (/sbin/ifconfig)
Program ip found: YES (/usr/sbin/ip)
Program iptables found: YES (/usr/sbin/iptables)
Program adduser found: YES (/usr/sbin/adduser)
Program pkg-config found: YES (/usr/bin/pkg-config)
Program ssh found: YES (/usr/bin/ssh)
Program sudo found: YES (/usr/bin/sudo)
Program doas /usr/bin/doas found: NO
Run-time dependency libpq found: YES 14.9
Run-time dependency libzbar found: NO (tried pkgconfig and cmake)
Library zbar found: NO
Run-time dependency libjose found: NO (tried pkgconfig and cmake)
Library jose found: NO
Run-time dependency libpulse found: YES 15.0
Run-time dependency libopus found: NO (tried pkgconfig and cmake)
Library opus found: YES
Run-time dependency libogg found: NO (tried pkgconfig and cmake)
Library ogg found: YES
Run-time dependency libgst found: NO (tried pkgconfig and cmake)
Library gstreamer found: NO
Check usable header "sys/time.h" : YES 
Check usable header "sys/param.h" : YES 
Check usable header "nss.h" : YES 
Check usable header "if_tun.h" : NO 
Check usable header "linux/if_tun.h" : YES 
Header "linux/if_tun.h" has symbol "struct in6_ifreq" : YES 
Check usable header "nss.h" : YES (cached)
Check usable header "gnutls/dane.h" : NO 
Checking if "cURL gnutls check" with dependency libcurl runs: NO (1)
Checking for function "getloadavg" : YES 
Checking for function "strnlen" : YES 
Checking for function "memset_s" : NO 
Checking for function "explicit_bzero" : YES 
Checking for function "gethostbyname" : YES 
Checking for function "gethostbyname2" : YES 
Checking for function "getifaddrs" : YES 
Checking for function "freeifaddrs" : YES 
Check usable header "ifaddrs.h" : YES 
Configuring gnunet_private_config.h using configuration
Configuring gnunet_config.h using configuration
Configuring util.conf using configuration
Configuring namestore-0001.sql using configuration
Configuring namestore-drop.sql using configuration
Configuring resolver.conf using configuration
Configuring statistics.conf using configuration
Configuring arm.conf using configuration
Configuring testing.conf using configuration
Configuring peerstore.conf using configuration
Configuring nat.conf using configuration
Configuring nat-auto.conf using configuration
Configuring transport.conf using configuration
Configuring gnunet-transport-certificate-creation using configuration
Configuring core.conf using configuration
Configuring nse.conf using configuration
Configuring hostlist.conf using configuration
Configuring topology.conf using configuration
Configuring dns.conf using configuration
Configuring identity.conf using configuration
Configuring namecache.conf using configuration
Configuring namestore.conf using configuration
Configuring datacache.conf using configuration
Configuring datastore.conf using configuration
Configuring dhtu.conf using configuration
Configuring dht.conf using configuration
Configuring cadet.conf using configuration
Configuring test_cadet.conf using configuration
Configuring seti.conf using configuration
Configuring setu.conf using configuration
Configuring regex.conf using configuration
Configuring revocation.conf using configuration
Configuring vpn.conf using configuration
Configuring gns.conf using configuration
Configuring tlds.conf using configuration
Configuring zonemaster.conf using configuration
Configuring fs.conf using configuration
Configuring exit.conf using configuration
Configuring pt.conf using configuration
Configuring reclaim.conf using configuration
Configuring messenger.conf using configuration
Configuring rest.conf using configuration
Configuring gnunet-gns-proxy-setup-ca using configuration
Configuring template.conf using configuration
Configuring set.conf using configuration
Configuring consensus.conf using configuration
Configuring test_consensus.conf using configuration
Configuring scalarproduct.conf using configuration
Configuring conversation.conf using configuration
Configuring secretsharing.conf using configuration
Program makeinfo found: YES (/usr/bin/makeinfo)
Program sphinx-build found: YES (/usr/bin/sphinx-build)
Configuring gnunet.conf.5 using configuration
Message: Please make sure NOW to create a user and group 'gnunet' and additionally a group 'gnunetdns'. Make sure that '/var/lib/gnunet' is owned (and writable) by user 'gnunet'
Message: Each user of GNUnet should be added to the 'gnunet' group
Message: Create the gnunet user and add users to the gnunetdns group, run:
    # addgroup gnunetdns
    # adduser --system --disabled-login --home /var/lib/gnunet gnunet
Message: To add users to the gnunet group, run:
             # adduser USERNAME gnunet
             for each of your users, replacing \'USERNAME\' with the respective login name.
             Users may have to login again for the changes to take effect.
Build targets in project: 356

gnunet 0.21.0-talerdev.1-6-ga849a8a1b

  Detected system
    host             : linux
    prefix           : /usr/local
    compiler         : gcc
    libdir           : lib64
    datadir          : share
    default interface: "eth0"
    PostgreSQL       : true
    curl w/ gnutls   : false
    ifconfig         : true
    iptables         : true

Found ninja-1.10.2 at /usr/bin/ninja
[1/1143] Building translation po/it/LC_MESSAGES/gnunet-it.mo
[2/1143] Building translation po/de/LC_MESSAGES/gnunet-de.mo
[3/1143] Building translation po/fr/LC_MESSAGES/gnunet-fr.mo
[4/1143] Building translation po/sr/LC_MESSAGES/gnunet-sr.mo
[5/1143] Building translation po/zh_CN/LC_MESSAGES/gnunet-zh_CN.mo
[6/1143] Building translation po/vi/LC_MESSAGES/gnunet-vi.mo
[7/1143] Building translation po/sv/LC_MESSAGES/gnunet-sv.mo
[8/1143] Building translation po/es/LC_MESSAGES/gnunet-es.mo
[9/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/bio.c.o
[10/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/bandwidth.c.o
[11/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/common_endian.c.o
[12/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/common_allocation.c.o
[13/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/common_logging.c.o
[14/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/child_management.c.o
[15/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/buffer.c.o
[16/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/compress.c.o
[17/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/client.c.o
[18/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/consttime_memcmp.c.o
[19/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/configuration.c.o
[20/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/configuration_helper.c.o
[21/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/container_bloomfilter.c.o
[22/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/container_multihashmap32.c.o
[23/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/container_heap.c.o
[24/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/container_multishortmap.c.o
[25/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/container_multihashmap.c.o
[26/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/container_multiuuidmap.c.o
[27/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_symmetric.c.o
[28/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/container_multipeermap.c.o
[29/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_crc.c.o
[30/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_cs.c.o
[31/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_ecc_dlog.c.o
[32/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_ecc_gnsrecord.c.o
[33/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_ecc_setup.c.o
[34/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_ecc.c.o
[35/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_edx25519.c.o
[36/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_hash.c.o
[37/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_hash_file.c.o
[38/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_hkdf.c.o
[39/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_mpi.c.o
[40/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_kdf.c.o
[41/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_pow.c.o
[42/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_random.c.o
[43/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_pkey.c.o
[44/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_paillier.c.o
[45/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/crypto_rsa.c.o
[46/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/getopt.c.o
[47/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/dnsstub.c.o
[48/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/disk.c.o
[49/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/dnsparser.c.o
../src/lib/util/dnsparser.c: In function ‘GNUNET_DNSPARSER_parse_uri’:
../src/lib/util/dnsparser.c:555:49: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
  555 |   int len =  GNUNET_asprintf(&(uri->target), "%.*s", udp_payload_length - sizeof(struct GNUNET_TUN_DnsUriRecord), &udp_payload[*off]);
      |                                               ~~^~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |                       |
      |                                                 int                     long unsigned int
../src/lib/util/dnsparser.c: In function ‘GNUNET_DNSPARSER_builder_add_uri’:
../src/lib/util/dnsparser.c:1253:7: warning: unused variable ‘ret’ [-Wunused-variable]
 1253 |   int ret;
      |       ^~~
[50/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/getopt_helpers.c.o
[51/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/helper.c.o
[52/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/mst.c.o
[53/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/load.c.o
[54/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/nc.c.o
[55/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/nt.c.o
[56/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/mq.c.o
[57/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/op.c.o
[58/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/os_network.c.o
[59/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/os_installation.c.o
[60/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/network.c.o
[61/1143] Compiling C object src/lib/util/test_disk.p/test_disk.c.o
[62/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/peer.c.o
[63/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/os_priority.c.o
[64/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/plugin.c.o
[65/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/program.c.o
[66/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/regex.c.o
[67/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/resolver_api.c.o
[68/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/signal.c.o
[69/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/uri.c.o
[70/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/scheduler.c.o
[71/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/proc_compat.c.o
[72/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/service.c.o
[73/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/speedup.c.o
[74/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/time.c.o
[75/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/tun.c.o
[76/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/strings.c.o
[77/1143] Compiling C object src/lib/util/libgnunetutil.so.15.0.0.p/gnunet_error_codes.c.o
[78/1143] Compiling C object src/lib/util/test_child_management.p/test_child_management.c.o
[79/1143] Linking target src/lib/util/libgnunetutil.so.15.0.0
[80/1143] Compiling C object src/lib/util/test_common_allocation.p/test_common_allocation.c.o
[81/1143] Compiling C object src/lib/util/test_common_logging_dummy.p/test_common_logging_dummy.c.o
[82/1143] Compiling C object src/lib/util/test_common_endian.p/test_common_endian.c.o
[83/1143] Compiling C object src/lib/util/test_container_bloomfilter.p/test_container_bloomfilter.c.o
[84/1143] Compiling C object src/lib/util/test_configuration.p/test_configuration.c.o
[85/1143] Compiling C object src/lib/util/test_common_logging.p/test_common_logging.c.o
[86/1143] Compiling C object src/lib/util/test_container_dll.p/test_container_dll.c.o
[87/1143] Compiling C object src/lib/util/test_bio.p/test_bio.c.o
[88/1143] Generating symbol file src/lib/util/libgnunetutil.so.15.0.0.p/libgnunetutil.so.15.0.0.symbols
[89/1143] Compiling C object src/lib/util/test_container_multihashmap.p/test_container_multihashmap.c.o
[90/1143] Linking target src/lib/util/test_child_management
[91/1143] Linking target src/lib/util/test_common_allocation
[92/1143] Linking target src/lib/util/test_common_logging_dummy
[93/1143] Compiling C object src/lib/util/test_container_multihashmap32.p/test_container_multihashmap32.c.o
[94/1143] Compiling C object src/lib/util/test_container_multipeermap.p/test_container_multipeermap.c.o
[95/1143] Linking target src/lib/util/test_bio
[96/1143] Linking target src/lib/util/test_common_logging
[97/1143] Compiling C object src/lib/util/test_crypto_crc.p/test_crypto_crc.c.o
[98/1143] Compiling C object src/lib/util/test_crypto_eddsa.p/test_crypto_eddsa.c.o
[99/1143] Linking target src/lib/util/test_common_endian
[100/1143] Linking target src/lib/util/test_container_bloomfilter
[101/1143] Linking target src/lib/util/test_configuration
[102/1143] Compiling C object src/lib/util/test_crypto_symmetric.p/test_crypto_symmetric.c.o
[103/1143] Linking target src/lib/util/test_container_dll
[104/1143] Linking target src/lib/util/test_container_multihashmap
[105/1143] Compiling C object src/lib/util/test_container_heap.p/test_container_heap.c.o
[106/1143] Compiling C object src/lib/util/test_crypto_cs.p/test_crypto_cs.c.o
[107/1143] Linking target src/lib/util/test_container_multihashmap32
[108/1143] Linking target src/lib/util/test_container_multipeermap
[109/1143] Linking target src/lib/util/test_crypto_crc
[110/1143] Linking target src/lib/util/test_crypto_eddsa
[111/1143] Linking target src/lib/util/test_crypto_symmetric
[112/1143] Compiling C object src/lib/util/test_crypto_ecdsa.p/test_crypto_ecdsa.c.o
[113/1143] Linking target src/lib/util/test_container_heap
[114/1143] Linking target src/lib/util/test_crypto_cs
[115/1143] Linking target src/lib/util/test_crypto_ecdsa
[116/1143] Compiling C object src/lib/util/test_crypto_ecc_dlog.p/test_crypto_ecc_dlog.c.o
[117/1143] Compiling C object src/lib/util/test_crypto_hash_context.p/test_crypto_hash_context.c.o
[118/1143] Compiling C object src/lib/util/test_crypto_edx25519.p/test_crypto_edx25519.c.o
[119/1143] Compiling C object src/lib/util/test_crypto_ecdh_eddsa.p/test_crypto_ecdh_eddsa.c.o
[120/1143] Linking target src/lib/util/test_crypto_ecc_dlog
[121/1143] Compiling C object src/lib/gnsrecord/libgnunetgnsrecord.so.0.0.0.p/gnsrecord_pow.c.o
[122/1143] Compiling C object src/lib/util/test_crypto_hash.p/test_crypto_hash.c.o
[123/1143] Compiling C object src/lib/util/test_crypto_ecdh_ecdsa.p/test_crypto_ecdh_ecdsa.c.o
[124/1143] Linking target src/lib/util/test_crypto_edx25519
[125/1143] Linking target src/lib/util/test_crypto_ecdh_eddsa
[126/1143] Linking target src/lib/util/test_crypto_hash_context
[127/1143] Compiling C object src/lib/util/test_crypto_hkdf.p/test_crypto_hkdf.c.o
[128/1143] Compiling C object src/lib/util/test_crypto_paillier.p/test_crypto_paillier.c.o
[129/1143] Linking target src/lib/util/test_crypto_hash
[130/1143] Linking target src/lib/util/test_disk
[131/1143] Linking target src/lib/util/test_crypto_hkdf
[132/1143] Linking target src/lib/util/test_crypto_ecdh_ecdsa
[133/1143] Compiling C object src/lib/util/test_crypto_kdf.p/test_crypto_kdf.c.o
[134/1143] Linking target src/lib/util/test_crypto_paillier
[135/1143] Linking target src/lib/util/test_crypto_kdf
[136/1143] Compiling C object src/lib/util/test_crypto_random.p/test_crypto_random.c.o
[137/1143] Compiling C object src/lib/util/libgnunet_plugin_utiltest.so.p/test_plugin_plug.c.o
[138/1143] Compiling C object src/lib/util/test_crypto_rsa.p/test_crypto_rsa.c.o
[139/1143] Compiling C object src/plugin/setu/libgnunet_plugin_block_setu_test.so.p/plugin_block_setu_test.c.o
[140/1143] Compiling C object src/lib/util/test_getopt.p/test_getopt.c.o
[141/1143] Linking target src/lib/util/libgnunet_plugin_utiltest.so
[142/1143] Compiling C object src/lib/util/test_hexcoder.p/test_hexcoder.c.o
[143/1143] Compiling C object src/lib/util/test_os_network.p/test_os_network.c.o
[144/1143] Linking target src/lib/util/test_crypto_random
[145/1143] Compiling C object src/lib/util/test_peer.p/test_peer.c.o
[146/1143] Linking target src/lib/util/test_crypto_rsa
[147/1143] Linking target src/lib/util/test_getopt
[148/1143] Linking target src/lib/util/test_hexcoder
[149/1143] Compiling C object src/lib/util/test_mq.p/test_mq.c.o
[150/1143] Linking target src/lib/util/test_os_network
[151/1143] Linking target src/lib/util/test_peer
[152/1143] Compiling C object src/lib/util/test_plugin.p/test_plugin.c.o
[153/1143] Linking target src/lib/util/test_mq
[154/1143] Linking target src/lib/util/test_plugin
[155/1143] Compiling C object src/lib/util/test_scheduler_hogging_priority.p/test_scheduler_hogging_priority.c.o
[156/1143] Compiling C object src/lib/util/test_scheduler_hogging_cancel.p/test_scheduler_hogging_cancel.c.o
[157/1143] Compiling C object src/lib/util/test_program.p/test_program.c.o
[158/1143] Linking target src/lib/util/test_scheduler_hogging_priority
[159/1143] Compiling C object src/lib/util/test_regex.p/test_regex.c.o
[160/1143] Linking target src/lib/util/test_scheduler_hogging_cancel
[161/1143] Compiling C object src/lib/util/test_scheduler_delay.p/test_scheduler_delay.c.o
[162/1143] Linking target src/lib/util/test_program
[163/1143] Linking target src/lib/util/test_regex
[164/1143] Compiling C object src/lib/util/test_scheduler.p/test_scheduler.c.o
[165/1143] Compiling C object src/lib/util/test_service.p/test_service.c.o
[166/1143] Compiling C object src/lib/util/test_strings.p/test_strings.c.o
[167/1143] Compiling C object src/lib/util/test_speedup.p/test_speedup.c.o
[168/1143] Compiling C object src/lib/util/test_strings_to_data.p/test_strings_to_data.c.o
[169/1143] Linking target src/lib/util/test_scheduler_delay
[170/1143] Linking target src/lib/util/test_scheduler
[171/1143] Linking target src/lib/util/test_strings
[172/1143] Linking target src/lib/util/test_service
[173/1143] Linking target src/lib/util/test_strings_to_data
[174/1143] Linking target src/lib/util/test_speedup
[175/1143] Compiling C object src/lib/util/test_time.p/test_time.c.o
[176/1143] Compiling C object src/lib/util/test_os_start_process.p/test_os_start_process.c.o
[177/1143] Compiling C object src/lib/util/test_tun.p/test_tun.c.o
[178/1143] Compiling C object src/lib/util/test_uri.p/test_uri.c.o
[179/1143] Compiling C object src/lib/util/perf_crypto_hash.p/perf_crypto_hash.c.o
[180/1143] Compiling C object src/lib/util/perf_crypto_asymmetric.p/perf_crypto_asymmetric.c.o
[181/1143] Linking target src/lib/util/test_time
[182/1143] Linking target src/lib/util/test_tun
[183/1143] Linking target src/lib/util/test_os_start_process
[184/1143] Linking target src/lib/util/test_uri
[185/1143] Compiling C object src/lib/util/perf_crypto_paillier.p/perf_crypto_paillier.c.o
[186/1143] Compiling C object src/lib/util/test_common_logging_runtime_loglevels.p/test_common_logging_runtime_loglevels.c.o
[187/1143] Compiling C object src/lib/util/perf_crypto_ecc_dlog.p/perf_crypto_ecc_dlog.c.o
[188/1143] Linking target src/lib/util/perf_crypto_asymmetric
[189/1143] Linking target src/lib/util/perf_crypto_hash
[190/1143] Compiling C object src/lib/util/perf_crypto_rsa.p/perf_crypto_rsa.c.o
[191/1143] Linking target src/lib/util/test_common_logging_runtime_loglevels
[192/1143] Linking target src/lib/util/perf_crypto_ecc_dlog
[193/1143] Linking target src/lib/util/perf_crypto_paillier
[194/1143] Linking target src/lib/util/perf_crypto_rsa
[195/1143] Compiling C object src/lib/util/perf_scheduler.p/perf_scheduler.c.o
[196/1143] Compiling C object src/lib/util/perf_crypto_symmetric.p/perf_crypto_symmetric.c.o
[197/1143] Compiling C object src/lib/util/perf_malloc.p/perf_malloc.c.o
[198/1143] Linking target src/lib/util/perf_crypto_symmetric
[199/1143] Linking target src/lib/util/perf_scheduler
[200/1143] Compiling C object src/lib/block/libgnunetblockgroup.so.0.0.0.p/bg_bf.c.o
[201/1143] Compiling C object src/lib/util/perf_mq.p/perf_mq.c.o
[202/1143] Compiling C object src/lib/block/libgnunetblock.so.0.0.0.p/block.c.o
[203/1143] Compiling C object src/lib/hello/test_hello_uri.p/test_hello-uri.c.o
[204/1143] Linking target src/lib/util/perf_malloc
[205/1143] Linking target src/lib/util/perf_mq
[206/1143] Linking target src/lib/block/libgnunetblock.so.0.0.0
[207/1143] Compiling C object src/lib/json/libgnunetjson.so.0.0.0.p/json_generator.c.o
[208/1143] Compiling C object src/lib/json/libgnunetjson.so.0.0.0.p/json.c.o
[209/1143] Compiling C object src/lib/hello/libgnunethello.so.0.1.0.p/hello-uri.c.o
[210/1143] Linking target src/lib/hello/libgnunethello.so.0.1.0
[211/1143] Generating symbol file src/lib/block/libgnunetblock.so.0.0.0.p/libgnunetblock.so.0.0.0.symbols
[212/1143] Linking target src/lib/block/libgnunetblockgroup.so.0.0.0
[213/1143] Generating symbol file src/lib/hello/libgnunethello.so.0.1.0.p/libgnunethello.so.0.1.0.symbols
[214/1143] Compiling C object src/lib/json/libgnunetjson.so.0.0.0.p/json_mhd.c.o
[215/1143] Compiling C object src/lib/json/test_json.p/test_json.c.o
[216/1143] Compiling C object src/lib/curl/libgnunetcurl.so.0.0.0.p/curl_reschedule.c.o
[217/1143] Linking target src/lib/hello/test_hello_uri
[218/1143] Compiling C object src/lib/json/libgnunetjson.so.0.0.0.p/json_helper.c.o
[219/1143] Compiling C object src/lib/json/test_json_mhd.p/test_json_mhd.c.o
[220/1143] Compiling C object src/lib/json/libgnunetjson.so.0.0.0.p/json_pack.c.o
[221/1143] Generating symbol file src/lib/block/libgnunetblockgroup.so.0.0.0.p/libgnunetblockgroup.so.0.0.0.symbols
[222/1143] Linking target src/lib/json/libgnunetjson.so.0.0.0
[223/1143] Compiling C object src/lib/sq/libgnunetsq.so.0.0.0.p/sq.c.o
[224/1143] Compiling C object src/lib/curl/libgnunetcurl.so.0.0.0.p/curl.c.o
[225/1143] Linking target src/lib/curl/libgnunetcurl.so.0.0.0
[226/1143] Generating symbol file src/lib/json/libgnunetjson.so.0.0.0.p/libgnunetjson.so.0.0.0.symbols
[227/1143] Linking target src/lib/json/test_json
[228/1143] Compiling C object src/lib/sq/libgnunetsq.so.0.0.0.p/sq_prepare.c.o
[229/1143] Compiling C object src/lib/sq/libgnunetsq.so.0.0.0.p/sq_exec.c.o
[230/1143] Compiling C object src/lib/sq/libgnunetsq.so.0.0.0.p/sq_query_helper.c.o
[231/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq.c.o
[232/1143] Compiling C object src/lib/sq/test_sq.p/test_sq.c.o
[233/1143] Generating symbol file src/lib/curl/libgnunetcurl.so.0.0.0.p/libgnunetcurl.so.0.0.0.symbols
[234/1143] Compiling C object src/lib/sq/libgnunetsq.so.0.0.0.p/sq_result_helper.c.o
[235/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq_connect.c.o
[236/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq_eval.c.o
[237/1143] Linking target src/lib/json/test_json_mhd
[238/1143] Linking target src/lib/sq/libgnunetsq.so.0.0.0
[239/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq_exec.c.o
[240/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq_prepare.c.o
[241/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq_event.c.o
[242/1143] Generating symbol file src/lib/sq/libgnunetsq.so.0.0.0.p/libgnunetsq.so.0.0.0.symbols
[243/1143] Compiling C object src/lib/gnsrecord/libgnunetgnsrecord.so.0.0.0.p/gnsrecord.c.o
[244/1143] Compiling C object src/lib/gnsrecord/libgnunetgnsrecord.so.0.0.0.p/gnsrecord_serialization.c.o
[245/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq_query_helper.c.o
[246/1143] Compiling C object src/lib/pq/libgnunetpq.so.4.0.0.p/pq_result_helper.c.o
[247/1143] Linking target src/lib/sq/test_sq
[248/1143] Compiling C object src/lib/pq/test_pq.p/test_pq.c.o
FAILED: src/lib/pq/test_pq.p/test_pq.c.o 
ccache cc -Isrc/lib/pq/test_pq.p -Isrc/lib/pq -I../src/lib/pq -Isrc/include -I../src/include -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -D_GNU_SOURCE -DGNUNET_EXTRA_LOGGING=0 -DHAVE_TM_GMTOFF -DGETTEXT_PACKAGE=gnunet -DHAVE_CONFIG_H -fno-strict-aliasing -Wno-address-of-packed-member -DLINUX -DHAVE_LIBIDN2 -DHAVE_IDN2_H -DHAVE_LIBM -DHAVE_GETOPT_BINARY=/usr/bin/getopt -DHAVE_PKG_CONFIG -DHAVE_SSH_BINARY -DHAVE_POSTGRESQL -DHAVE_PULSE -DHAVE_OPUS -DHAVE_OGG '-DNEED_LIBGCRYPT_VERSION="1.6.0"' -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H '-DIF_TUN_HDR="linux/if_tun.h"' -DHAVE_GLIBCNSS -DHAVE_IFADDRS_H -MD -MQ src/lib/pq/test_pq.p/test_pq.c.o -MF src/lib/pq/test_pq.p/test_pq.c.o.d -o src/lib/pq/test_pq.p/test_pq.c.o -c ../src/lib/pq/test_pq.c
during RTL pass: expand
../src/lib/pq/test_pq.c: In function ‘run_queries’:
../src/lib/pq/test_pq.c:202:7: internal compiler error: Segmentation fault
  202 |       GNUNET_PQ_query_param_array_ptrs_string (3, as, db),
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x15a1707 internal_error(char const*, ...)
	???:0
0x756bb1 expand_call(tree_node*, rtx_def*, int)
	???:0
0x86d2ee expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
	???:0
0x8775de store_expr(tree_node*, rtx_def*, int, bool, bool)
	???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
[249/1143] Compiling C object src/lib/gnsrecord/libgnunetgnsrecord.so.0.0.0.p/gnsrecord_crypto.c.o
[250/1143] Linking target src/lib/pq/libgnunetpq.so.4.0.0
[251/1143] Compiling C object src/lib/gnsrecord/perf_gnsrecord_crypto.p/perf_gnsrecord_crypto.c.o
[252/1143] Compiling C object src/lib/gnsrecord/libgnunetgnsrecordjson.so.0.0.0.p/json_gnsrecord.c.o
[253/1143] Compiling C object src/lib/gnsrecord/libgnunetgnsrecord.so.0.0.0.p/gnsrecord_misc.c.o
[254/1143] Compiling C object src/service/transport/test_communicator_rekey-udp.p/test_communicator_basic.c.o
In file included from ../src/include/gnunet_util_lib.h:69,
                 from ../src/service/transport/test_communicator_basic.c:28:
../src/service/transport/test_communicator_basic.c: In function ‘process_statistics’:
../src/service/transport/test_communicator_basic.c:396:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
  396 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |                 9000, value);
      |                       ~~~~~
      |                       |
      |                       uint64_t {aka long unsigned int}
../src/include/gnunet_common.h:583:39: note: in definition of macro ‘GNUNET_log’
  583 |           GNUNET_log_nocheck ((kind), __VA_ARGS__);                       \
      |                                       ^~~~~~~~~~~
../src/service/transport/test_communicator_basic.c:396:62: note: format string is defined here
  396 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                                                           ~~~^
      |                                                              |
      |                                                              long long unsigned int
      |                                                           %lu
In file included from ../src/include/gnunet_util_lib.h:69,
                 from ../src/service/transport/test_communicator_basic.c:28:
../src/service/transport/test_communicator_basic.c:408:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
  408 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |                 6000, value);
      |                       ~~~~~
      |                       |
      |                       uint64_t {aka long unsigned int}
../src/include/gnunet_common.h:583:39: note: in definition of macro ‘GNUNET_log’
  583 |           GNUNET_log_nocheck ((kind), __VA_ARGS__);                       \
      |                                       ^~~~~~~~~~~
../src/service/transport/test_communicator_basic.c:408:62: note: format string is defined here
  408 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                                                           ~~~^
      |                                                              |
      |                                                              long long unsigned int
      |                                                           %lu
[255/1143] Compiling C object src/service/transport/test_communicator_rekey-tcp.p/test_communicator_basic.c.o
In file included from ../src/include/gnunet_util_lib.h:69,
                 from ../src/service/transport/test_communicator_basic.c:28:
../src/service/transport/test_communicator_basic.c: In function ‘process_statistics’:
../src/service/transport/test_communicator_basic.c:396:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
  396 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |                 9000, value);
      |                       ~~~~~
      |                       |
      |                       uint64_t {aka long unsigned int}
../src/include/gnunet_common.h:583:39: note: in definition of macro ‘GNUNET_log’
  583 |           GNUNET_log_nocheck ((kind), __VA_ARGS__);                       \
      |                                       ^~~~~~~~~~~
../src/service/transport/test_communicator_basic.c:396:62: note: format string is defined here
  396 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                                                           ~~~^
      |                                                              |
      |                                                              long long unsigned int
      |                                                           %lu
In file included from ../src/include/gnunet_util_lib.h:69,
                 from ../src/service/transport/test_communicator_basic.c:28:
../src/service/transport/test_communicator_basic.c:408:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
  408 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |                 6000, value);
      |                       ~~~~~
      |                       |
      |                       uint64_t {aka long unsigned int}
../src/include/gnunet_common.h:583:39: note: in definition of macro ‘GNUNET_log’
  583 |           GNUNET_log_nocheck ((kind), __VA_ARGS__);                       \
      |                                       ^~~~~~~~~~~
../src/service/transport/test_communicator_basic.c:408:62: note: format string is defined here
  408 |                 "Not enough BOX messages! (want: %u, have %llu)\n",
      |                                                           ~~~^
      |                                                              |
      |                                                              long long unsigned int
      |                                                           %lu
[256/1143] Compiling C object src/lib/gnsrecord/test_gnsrecord_crypto.p/test_gnsrecord_crypto.c.o
[257/1143] Compiling C object src/lib/gnsrecord/test_gnsrecord_serialization.p/test_gnsrecord_serialization.c.o
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja
FROM vbatts/slackware:15.0

ARG REPO="http://slackware.osuosl.org/slackware64-15.0/";

RUN echo "Upgrading and installing slackware system (without X)"
RUN echo "${REPO}" > /etc/slackpkg/mirrors && \
  echo 'WGETFLAGS=--quiet' >> /etc/slackpkg/slackpkg.conf && \
  echo 'DEFAULT_ANSWER=yes' >> /etc/slackpkg/slackpkg.conf && \
  echo 'BATCH=yes' >> /etc/slackpkg/slackpkg.conf

RUN yes y | slackpkg update && \
    yes y | slackpkg install a ap n d k l kde x t tcl xap xfce y && \
    yes y | slackpkg upgrade-all

RUN echo "Reinstall ssl and wget to work around certificate errors"
RUN yes y | slackpkg reinstall openssl wget

RUN echo "installing sbotools and gnunet dependencies"
WORKDIR /usr/src
RUN bash -c 'wget --quiet 
http://slackbuilds.org/slackbuilds/15.0/system/sbotools.tar.gz \
  && tar -xzf sbotools.tar.gz \
  && cd sbotools \
  && source *.info \
  && wget $DOWNLOAD \
  && sh *.Slack* \
  && installpkg /tmp/*.t?z'
RUN mkdir /etc/sbotools \
  && echo LOCAL_OVERRIDES=/usr/src/slackbuilds > /etc/sbotools/sbotools.conf \
  && echo REPO=git://git.slackbuilds.org/slackbuilds.git > 
/etc/sbotools/sbotools.conf \
  && git clone https://git.server.ky/slackcoder/slackbuilds \
  && sbosnap fetch
RUN sboinstall --nointeractive \
    jansson \
    recutils \
    libmicrohttpd
RUN groupadd -g 209 postgres \
    && useradd -u 209 -g 209 postgres -d /var/lib/psql \
    && sboinstall --nointeractive \
    postgresql
RUN yes y | sboinstall \
    Sphinx

RUN echo "Update Slackware's meson version"
WORKDIR /usr/local/src
RUN rsync -a 
rsync://bear.alienbase.nl/mirrors/slackware/slackware64-current/source/d/meson 
. \
  && cd meson \
  && sh *.SlackBuild \
  && upgradepkg /tmp/*.txz

RUN git clone https://git.gnunet.org/gnunet.git
RUN cd gnunet \
  && meson setup builddir \
  && cd builddir \
  && meson configure -Dprefix=/usr/local \
  && meson compile

CMD bash -l

Reply via email to