Re: Re: gnunet build fails (Slackware)

Slack Coder <[email protected]> Sat, 9 Dec 2023 10:11:08 -0500
Newsgroups gmane.network.gnunet.bugs
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------AibkbaSnzhnhcLTSgpzkMrzw
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

> Hmm interesting. I wonder if that issue also occurs using autotools.
>
> Anyway. I just commited a fix (hopefully).
>
> BR

Works :)

Unfortunately, now there is a compile error with LLVM's clang version 
17.0.6, with gcc version 13.2.0 (Slackware64-current) working fine.

```

clang -Isrc/contrib/service/conversation/test_conversation_api.p 
-Isrc/contrib/service/conversation -I../src/contrib/service/conversation 
-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 
-Wno-tautological-constant-out-of-range-compare -DLINUX -DHAVE_LIBIDN2 
-DHAVE_IDN2_H -DHAVE_PTHREAD -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/contrib/service/conversation/test_conversation_api.p/test_conversation_api.c.o 
-MF 
src/contrib/service/conversation/test_conversation_api.p/test_conversation_api.c.o.d 
-o 
src/contrib/service/conversation/test_conversation_api.p/test_conversation_api.c.o 
-c ../src/contrib/service/conversation/test_conversation_api.c
../src/contrib/service/conversation/test_conversation_api.c:442:39: 
error: incompatible pointer to integer conversion passing 'char[6]' to 
parameter of type 'unsigned int' [-Wint-conversion]
   442 |                                       "phone" /* GNS label */,
       |                                       ^~~~~~~
```

--------------AibkbaSnzhnhcLTSgpzkMrzw
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>
      <blockquote type="cite">
        <pre style="margin: 0em;">Hmm interesting. I wonder if that issue also occurs using autotools.

Anyway. I just commited a fix (hopefully).

BR</pre>
      </blockquote>
    </p>
    <p>Works :)<br>
    </p>
    <p>Unfortunately, now there is a compile error with LLVM's clang
      version 17.0.6, with gcc version 13.2.0 (Slackware64-current)
      working fine.<br>
    </p>
    <p>```</p>
    <p>clang -Isrc/contrib/service/conversation/test_conversation_api.p
      -Isrc/contrib/service/conversation
      -I../src/contrib/service/conversation -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
      -Wno-tautological-constant-out-of-range-compare -DLINUX
      -DHAVE_LIBIDN2 -DHAVE_IDN2_H -DHAVE_PTHREAD -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/contrib/service/conversation/test_conversation_api.p/test_conversation_api.c.o
      -MF
src/contrib/service/conversation/test_conversation_api.p/test_conversation_api.c.o.d
      -o
src/contrib/service/conversation/test_conversation_api.p/test_conversation_api.c.o
      -c ../src/contrib/service/conversation/test_conversation_api.c<br>
../src/contrib/service/conversation/test_conversation_api.c:442:39:
      error: incompatible pointer to integer conversion passing
      'char[6]' to parameter of type 'unsigned int' [-Wint-conversion]<br>
        442 |                                       "phone" /* GNS label
      */,<br>
            |                                       ^~~~~~~<br>
      ```<br>
    </p>
  </body>
</html>

--------------AibkbaSnzhnhcLTSgpzkMrzw--