rizinorg / rizin

UNIX-like reverse engineering framework and command-line toolset.
https://rizin.re
GNU Lesser General Public License v3.0
2.71k stars 363 forks source link

MSYS2 failure to build: ../librz/socket/socket.c:275: undefined reference to `rz_sys_signal' #337

Open XVilka opened 3 years ago

XVilka commented 3 years ago

Work environment

Questions Answers
OS/arch/bits (mandatory) Windows 10 64bit MSYS2 x86_64
File format of the file you reverse (mandatory) -
Architecture/bits of the file (mandatory) -
rizin -v full output, not truncated (mandatory) https://github.com/rizinorg/rizin/commit/eef820a137bf7b285d7e9ceae49de533e1058017

Expected behavior

Builds fine

Actual behavior

┌─[ user@user-PC1 ] [17:27:59] /d/rizin        
└> > meson build
The Meson build system
Version: 0.58.2
Source dir: /d/rizin
Build dir: /d/rizin/build
Build type: native build
Project name: rizin
Project version: v0.3.0-git
C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the host machine: cc ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python.exe)
Program git found: YES (/usr/bin/git)
Message: rizin lib version: 0.3.0-git
Library dl found: YES
Run-time dependency threads found: YES
Library util found: NO
Library m found: YES
Compiler for C supports arguments --std=gnu99: YES
Compiler for C supports arguments -Werror=sizeof-pointer-memaccess: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Configuring config.h using configuration
Library magic skipped: feature use_sys_magic disabled

Executing subproject xxhash

xxhash| Project name: xxhash
xxhash| Project version: 0.6.5
xxhash| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
xxhash| C linker for the host machine: cc ld.bfd 2.36.1
xxhash| Build targets in project: 1
xxhash| Subproject xxhash finished.

Dependency openssl skipped: feature use_sys_openssl disabled
Found pkg-config: /usr/bin/pkg-config (1.7.4)
Found CMake: /usr/bin/cmake (3.21.1)
Run-time dependency libuv found: NO (tried pkgconfig and cmake)
Downloading libuv source from https://dist.libuv.org/dist/v1.40.0/libuv-v1.40.0.tar.gz
Download size: 1264008
Downloading: ..........

Executing subproject libuv

libuv| Project name: libuv
libuv| Project version: 1.40.0
libuv| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
libuv| C linker for the host machine: cc ld.bfd 2.36.1
libuv| Run-time dependency threads found: YES
libuv| Library m found: YES
libuv| Library dl found: YES
libuv| Compiler for C supports arguments -fcommon: YES
libuv| Build targets in project: 2
libuv| Subproject libuv finished.

Dependency tree-sitter skipped: feature use_sys_tree_sitter disabled
Downloading tree-sitter source from https://github.com/tree-sitter/tree-sitter/archive/v0.19.4.tar.gz
Download size: 2869856
Downloading: ..........

Executing subproject tree-sitter

tree-sitter| Project name: tree-sitter
tree-sitter| Project version: undefined
tree-sitter| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
tree-sitter| C linker for the host machine: cc ld.bfd 2.36.1
tree-sitter| Compiler for C supports arguments -std=gnu99: YES
tree-sitter| Build targets in project: 3
tree-sitter| Subproject tree-sitter finished.

Message: HAVE_PTRACE: false
Message: USE_PTRACE_WRAP: false
Message: RZ_CHECKS_LEVEL: 2
Header <sys/personality.h> has symbol "ADDR_NO_RANDOMIZE" : NO
Header <sys/procctl.h> has symbol "PROC_ASLR_CTL" : NO
Checking for function "clock_gettime" : YES
Checking if "have extern char **environ" links: YES
Message: HAVE_ENVIRON: true
Checking if "target is ios" links: NO
Message: IS_IOS: false
Checking for function "arc4random_uniform" : YES
Checking for function "explicit_bzero" : YES
Checking for function "explicit_memset" : NO
Checking for function "clock_nanosleep" : YES
Checking for function "clock_gettime" : YES (cached)
Checking for function "sigaction" : YES
Checking for function "pipe" : YES
Checking for function "execv" : YES
Checking for function "execve" : YES
Checking for function "execvp" : YES
Checking for function "execl" : YES
Checking for function "system" : YES
Checking for function "fork" : YES
Checking for function "nice" : YES
Checking for function "openpty" with dependency -lutil: YES
Checking for function "forkpty" with dependency -lutil: YES
Checking for function "login_tty" with dependency -lutil: YES
Checking for function "pipe2" : YES
Configuring rz_userconf.h using configuration
Message: Version Major: 00
Message: Version Minor: 30
Message: Version Patch: 00
Message: Version GitTip: 7e49ab2c4316dcd742a90434b887accf6cecb53b0
Configuring rz_version.h using configuration
Configuring librz.pc using configuration
Dependency zlib skipped: feature use_sys_zlib disabled
Downloading zlib source from https://zlib.net/fossils/zlib-1.2.11.tar.gz
Download size: 607698
Downloading: ..........

Executing subproject zlib

zlib| Project name: zlib
zlib| Project version: 1.2.11
zlib| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
zlib| C linker for the host machine: cc ld.bfd 2.36.1
zlib| Compiler for C supports arguments -Wno-implicit-fallthrough: YES
zlib| Compiler for C supports arguments -Wno-implicit-function-declaration: YES
zlib| Build targets in project: 4
zlib| Subproject zlib finished.

Cloning into 'sdb'...
remote: Enumerating objects: 7482, done.
remote: Counting objects: 100% (123/123), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 7482 (delta 63), reused 46 (delta 27), pack-reused 7359
Receiving objects: 100% (7482/7482), 1.83 MiB | 1.93 MiB/s, done.
Resolving deltas: 100% (5126/5126), done.
Note: switching to '56ee2d7bdb14b38c658ba98cc1778be239007c46'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 56ee2d7 Merge pull request #32 from rizinorg/fix-warning-local-var

Executing subproject sdb

sdb| Project name: sdb
sdb| Project version: undefined
sdb| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
sdb| C linker for the host machine: cc ld.bfd 2.36.1
sdb| Program python3 found: YES (/usr/bin/python.exe)
sdb| Message: SDB version = 1.5.1-git
sdb| Checking for function "getpid" : YES
sdb| Checking for function "_getpid" : NO
sdb| Configuring sdb_userconf.h using configuration
sdb| Configuring sdb_version.h using configuration
sdb| Build targets in project: 6
sdb| Subproject sdb finished.

Dependency capstone skipped: feature use_sys_capstone disabled
Cloning into 'capstone-bundled'...
remote: Enumerating objects: 29224, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 29224 (delta 9), reused 16 (delta 7), pack-reused 29201
Receiving objects: 100% (29224/29224), 40.98 MiB | 4.86 MiB/s, done.
Resolving deltas: 100% (21038/21038), done.
Note: switching to '0f6ee6621c8e863bd791392b4c2ab67ec74bbefe'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 0f6ee662 Fix -Wstringop-truncation warnings (aquynh/capstone#1730) (#2)

Executing subproject capstone-bundled

capstone-bundled| Project name: capstone
capstone-bundled| Project version: undefined
capstone-bundled| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
capstone-bundled| C linker for the host machine: cc ld.bfd 2.36.1
capstone-bundled| Build targets in project: 12
capstone-bundled| Subproject capstone-bundled finished.

Program tree-sitter found: NO
Program node found: NO
Dependency liblz4 skipped: feature use_sys_lz4 disabled
Downloading lz4 source from https://github.com/lz4/lz4/archive/v1.9.3.tar.gz
Download size: 320958
Downloading: ..........

Executing subproject lz4

lz4| Project name: lz4
lz4| Project version: 1.9.3
lz4| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
lz4| C linker for the host machine: cc ld.bfd 2.36.1
lz4| Build targets in project: 16
lz4| Subproject lz4 finished.

Dependency libzip skipped: feature use_sys_libzip disabled
Downloading libzip source from https://libzip.org/download/libzip-1.7.3.tar.gz
Download size: 1231618
Downloading: ..........

Executing subproject libzip

libzip| Project name: libzip
libzip| Project version: 1.7.3
libzip| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
libzip| C linker for the host machine: cc ld.bfd 2.36.1
libzip| Program python3 found: YES (/usr/bin/python.exe)
libzip| Dependency zlib from subproject subprojects/zlib-1.2.11 found: NO
libzip| Run-time dependency bzip2 found: NO (tried pkgconfig and cmake)
libzip| Run-time dependency lzma found: NO (tried pkgconfig and cmake)
libzip| Library lzma found: NO
libzip| Checking for function "strcasecmp" : YES
libzip| Checking for function "arc4random" : YES
libzip| Checking for function "clonefile" : NO
libzip| Checking for function "clonefile" : NO
libzip| Checking for function "explicit_bzero" : YES
libzip| Checking for function "explicit_memset" : NO
libzip| Checking for function "explicit_memset" : NO
libzip| Checking for function "fileno" : YES
libzip| Checking for function "fseeko" : YES
libzip| Checking for function "ftello" : YES
libzip| Checking for function "getprogname" : YES
libzip| Checking for function "localtime_r" : YES
libzip| Checking for function "mkstemp" : YES
libzip| Checking for function "setmode" : NO
libzip| Checking for function "setmode" : NO
libzip| Checking for function "snprintf" : YES
libzip| Checking for function "strdup" : YES
libzip| Checking for function "stricmp" : NO
libzip| Checking for function "stricmp" : NO
libzip| Checking for function "strtoll" : YES
libzip| Checking for function "strtoull" : YES
libzip| Checking for function "_close" : NO
libzip| Checking for function "_close" : NO
libzip| Checking for function "_dup" : NO
libzip| Checking for function "_dup" : NO
libzip| Checking for function "_fdopen" : NO
libzip| Checking for function "_fdopen" : NO
libzip| Checking for function "_fileno" : NO
libzip| Checking for function "_fileno" : NO
libzip| Checking for function "_setmode" : YES
libzip| Checking for function "_snprintf" : NO
libzip| Checking for function "_snprintf" : NO
libzip| Checking for function "_strdup" : NO
libzip| Checking for function "_strdup" : NO
libzip| Checking for function "_stricmp" : NO
libzip| Checking for function "_stricmp" : NO
libzip| Checking for function "_strtoi64" : NO
libzip| Checking for function "_strtoi64" : NO
libzip| Checking for function "_strtoui64" : NO
libzip| Checking for function "_strtoui64" : NO
libzip| Checking for function "_umask" : NO
libzip| Checking for function "_umask" : NO
libzip| Checking for function "_unlink" : NO
libzip| Checking for function "_unlink" : NO
libzip| Has header "stdbool.h" : YES
libzip| Has header "strings.h" : YES
libzip| Has header "unistd.h" : YES
libzip| Has header "dirent.h" : YES
libzip| Has header "fts.h" : YES
libzip| Has header "ndir.h" : NO
libzip| Has header "sys/dir.h" : YES
libzip| Has header "sys/ndir.h" : NO
libzip| Has header "sys/attr.h" : NO
libzip| Checking for size of "off_t" : 8
libzip| Checking for size of "size_t" : 8
libzip| Configuring config.h using configuration
libzip| Has header "limits.h" : YES
libzip| Has header "inttypes.h" : YES
libzip| Checking for type "int8_t" : YES
libzip| Checking for type "uint8_t" : YES
libzip| Checking for type "int16_t" : YES
libzip| Checking for type "uint16_t" : YES
libzip| Checking for type "int32_t" : YES
libzip| Checking for type "uint32_t" : YES
libzip| Checking for type "int64_t" : YES
libzip| Checking for type "uint64_t" : YES
libzip| Checking for type "__int8" : NO
libzip| Checking for type "__int16" : NO
libzip| Checking for type "__int32" : NO
libzip| Checking for type "__int64" : NO
libzip| Configuring zipconf.h using configuration
libzip| Build targets in project: 18
libzip| Subproject libzip finished.

Executing subproject mpc

mpc| Project name: mpc
mpc| Project version: d59264ae27228176f5b731871df1a87d7abbb5c8
mpc| Build targets in project: 21
mpc| Subproject mpc finished.

Executing subproject yxml

yxml| Project name: yxml
yxml| Project version: 66507906673bc6159d5d620414479954c9c21c24
yxml| C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
yxml| C linker for the host machine: cc ld.bfd 2.36.1
yxml| Build targets in project: 22
yxml| Subproject yxml finished.

Message: Use bundled magic library
Cloning into 'tree-sitter-c'...
remote: Enumerating objects: 1620, done.
remote: Counting objects: 100% (169/169), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 1620 (delta 89), reused 130 (delta 63), pack-reused 1451
Receiving objects: 100% (1620/1620), 11.76 MiB | 4.98 MiB/s, done.
Resolving deltas: 100% (1025/1025), done.
Note: switching to '3dd21d9440ca39d8c201335b2f3a393db41aab36'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 3dd21d9 Generate new grammar

Executing subproject tree-sitter-c

tree-sitter-c| Project name: tree-sitter-c
tree-sitter-c| Project version: f05e279aedde06a25801c3f2b2cc8ac17fac52ae
tree-sitter-c| Build targets in project: 38
tree-sitter-c| Subproject tree-sitter-c finished.

librz/core/cmd_descs/meson.build:33: WARNING: PyYAML python module was not found, using cmd_descs.c/cmd_descs.h from source directory. Install PyYAML (either from your package manager or through pip) if you need to modify cmd_descs files. Configuring test_config.h using configuration
Compiler for C supports arguments -Wno-unused-result: YES
Compiler for C supports arguments -Wno-unused-result: YES (cached)
Compiler for C supports arguments -Wno-unused-result: YES (cached)
Compiler for C supports arguments -Wno-unused-result: YES (cached)
Build targets in project: 422

rizin v0.3.0-git

  Directories
    prefix                    : /usr/local
    bindir                    : bin
    libdir                    : lib
    includedir                : include/librz
    datadir                   : share
    wwwroot                   : share/rizin/0.3.0-git/www
    sdb                       : share/rizin/0.3.0-git
    zigns                     : share/rizin/0.3.0-git/zigns
    themes                    : share/rizin/0.3.0-git/cons
    fortunes                  : share/rizin/0.3.0-git/fortunes
    flags                     : share/rizin/0.3.0-git/flag
    hud                       : share/rizin/0.3.0-git/hud
    plugins                   : lib/rizin/0.3.0-git
    extras                    : lib/rizin-extras/0.3.0-git
    bindings                  : lib/rizin-bindings/0.3.0-git

  Configuration
    Debugger enabled          : YES
    System magic library      : NO
    System xxhash library     : NO
    System openssl library    : NO
    System libuv library      : NO
    System capstone library   : NO
    System tree-sitter library: NO
    System lz4 library        : NO
    System zlib library       : NO
    System zip library        : NO
    Use ptrace-wrap           : NO
    Use RPATH                 : YES

  Plugins
    Analysis Plugins          : 6502, 8051, amd29k, arc, arm_cs, arm_gnu, avr, bf, chip8, cr16, cris, dalvik, ebc, gb, h8300, hexagon, i4004, i8080, java, luac, m68k_cs, m680x_cs, malbolge, mcore, mips_cs, mips_gnu, msp430, nios2, null,
                                or1k, pic, ppc_cs, ppc_gnu, propeller, pyc, riscv, rsp, sh, snes, sparc_cs, sparc_gnu, spc700, sysz, tms320, tricore, v810, v850, vax, wasm, x86_cs, xap, xcore_cs, xtensa, z80
    Assembler Plugins         : 6502, 8051, amd29k, arc, arm_as, arm_cs, arm_gnu, arm_winedbg, avr, bf, chip8, cr16, cris_gnu, dalvik, dcpu16, ebc, gb, h8300, hexagon, hppa_gnu, i4004, i8080, java, lanai_gnu, lh5801, lm32, luac, m68k_cs,
                                m680x_cs, malbolge, mcore, mcs96, mips_cs, mips_gnu, msp430, nios2, or1k, pic, ppc_as, ppc_cs, ppc_gnu, propeller, pyc, riscv, rsp, sh, snes, sparc_cs, sparc_gnu, spc700, sysz, tms320, tms320c64x, tricore,
                                v810, v850, vax, wasm, x86_as, x86_cs, x86_nasm, x86_nz, xap, xcore_cs, xtensa, z80
    Binary Plugins            : any, art, avr, bf, bflt, bios, bootimg, cgc, coff, dex, dmp64, dol, dyldcache, elf, elf64, java, le, luac, mach0, mach064, mbn, mdmp, menuet, mz, ne, nes, nin3ds, ninds, ningb, ningba, nro, nso, omf, qnx,
                                p9, pe, pe64, pebble, prg, psxexe, pyc, sfc, smd, sms, spc700, symbols, te, vsf, wasm, xbe, xnu_kernelcache, z64, zimg
    BinLdr Plugins            : ldr_linux
    BinXtr Plugins            : xtr_fatmach0, xtr_sep64
    Breakpoint Plugins        : arm, bf, mips, ppc, sh, x86
    Core Plugins              : java
    Crypto Plugins            : aes, aes_cbc, base64, base91, blowfish, cps2, des, punycode, rc2, rc4, rc6, rol, ror, rot, serpent, xor
    Debug Plugins             : bf, bochs, esil, gdb, io, native, null, qnx, rap, winkd
    Egg Plugins               : exec, xor
    IO Plugins                : ar, fd, bfdbg, bochs, debug, default, gdb, gprobe, gzip, http, ihex, srec, mach, malloc, null, procpid, ptrace, qnx, rzk, rzpipe, rzweb, rap, self, shm, sparse, tcp, winkd, winedbg, zip
    Lang Plugins              : lib, pipe, rust, vala, c, cpipe
    Parse Plugins             : 6502_pseudo, arm_pseudo, att2intel, avr_pseudo, chip8_pseudo, tms320_pseudo, dalvik_pseudo, m68k_pseudo, mips_pseudo, ppc_pseudo, sh_pseudo, riscv_pseudo, v850_pseudo, wasm_pseudo, x86_pseudo, z80_pseudo

  Subprojects
    capstone-bundled          : YES
    libuv                     : YES
    libzip                    : YES
    lz4                       : YES
    mpc                       : YES
    sdb                       : YES
    tree-sitter               : YES
    tree-sitter-c             : YES
    xxhash                    : YES
    yxml                      : YES
    zlib                      : YES

Found ninja-1.10.2 at /usr/bin/ninja                                                                                               

┌─[ user@user-PC1 ] [17:31:21] /d/rizin                                                                                                                                                                                               
└> > ninja -C build
ninja: Entering directory `build'
[29/1668] Compiling C object subprojects/libuv-v1.40.0/libuv.a.p/src_unix_tty.c.o
../subprojects/libuv-v1.40.0/src/unix/tty.c: In function ‘uv__tty_is_slave’:
../subprojects/libuv-v1.40.0/src/unix/tty.c:118:12: warning: implicit declaration of function ‘ptsname’; did you mean ‘ttyname’? [-Wimplicit-function-declaration]
  118 |   result = ptsname(fd) == NULL;
      |            ^~~~~~~
      |            ttyname
../subprojects/libuv-v1.40.0/src/unix/tty.c:118:24: warning: comparison between pointer and integer
  118 |   result = ptsname(fd) == NULL;
      |                        ^~
[67/1668] Compiling C object librz/util/msys-rz_util-0.3.0-git.dll.p/sys.c.o
../librz/util/sys.c: In function ‘rz_sys_backtrace’:
../librz/util/sys.c:303:2: warning: #warning TODO: rz_sys_bt : unimplemented [-Wcpp]
  303 | #warning TODO: rz_sys_bt : unimplemented
      |  ^~~~~~~
[70/1668] Compiling C object subprojects/sdb/src/libsdb.a.p/query.c.o
In file included from ../subprojects/sdb/src/query.c:8:
../subprojects/sdb/src/query.c: In function ‘sdb_querys’:
../subprojects/sdb/src/query.c:756:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  756 |     while (*val && isspace (*val)) {
      |                             ^~~~
../subprojects/sdb/src/query.c:760:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  760 |     while (i >= 0 && isspace (cmd[i])) {
      |                               ~~~^~~
[82/1668] Compiling C object librzspp.a.p/shlr_spp_spp.c.o
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
  366 | }
      | ^
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
../shlr/spp/spp.c:366:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
[118/1668] Compiling C object librz/util/msys-rz_util-0.3.0-git.dll.p/print.c.o
In file included from ../librz/include/rz_types_base.h:4,
                 from ../librz/include/rz_types.h:193,
                 from ../librz/include/rz_util/rz_print.h:4,
                 from ../librz/util/print.c:4:
../librz/util/print.c: In function ‘check_arg_name’:
../librz/util/print.c:1793:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1793 |   for (z = 0; p[z] && (isalpha(p[z]) || isdigit(p[z]) || p[z] == '_'); z++) {
      |                                ~^~~
../librz/util/print.c:1793:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1793 |   for (z = 0; p[z] && (isalpha(p[z]) || isdigit(p[z]) || p[z] == '_'); z++) {
      |                                                 ~^~~
[135/1668] Compiling C object librz/util/msys-rz_util-0.3.0-git.dll.p/str.c.o
In file included from ../librz/include/rz_types_base.h:4,
                 from ../librz/include/rz_types.h:193,
                 from ../librz/util/str.c:4:
../librz/util/str.c: In function ‘rz_str_wrap’:
../librz/util/str.c:3622:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 3622 |   if (!*p || isspace(*p)) {
      |                      ^~
../librz/util/str.c:3635:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 3635 |  while (p >= str && isspace(*p)) {
      |                             ^~
[137/1668] Compiling C object librz/util/msys-rz_util-0.3.0-git.dll.p/thread.c.o
../librz/util/thread.c: In function ‘rz_th_setname’:
../librz/util/thread.c:96:9: note: ‘#pragma message: warning rz_th_setname not implemented’
   96 | #pragma message("warning rz_th_setname not implemented")
      |         ^~~~~~~
../librz/util/thread.c: In function ‘rz_th_getname’:
../librz/util/thread.c:122:9: note: ‘#pragma message: warning rz_th_getname not implemented’
  122 | #pragma message("warning rz_th_getname not implemented")
      |         ^~~~~~~
../librz/util/thread.c: In function ‘rz_th_setaffinity’:
../librz/util/thread.c:189:9: note: ‘#pragma message: warning rz_th_setaffinity not implemented’
  189 | #pragma message("warning rz_th_setaffinity not implemented")
      |         ^~~~~~~
[198/1668] Linking target librz/socket/msys-rz_socket-0.3.0-git.dll
FAILED: librz/socket/msys-rz_socket-0.3.0-git.dll
cc  -o librz/socket/msys-rz_socket-0.3.0-git.dll librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http_server.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_serial.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_proc.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_client.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o -Wl,--as-needed -Wl,--allow-shlib-undefined -shared -Wl,--start-group -Wl,--out-implib=librz/socket/librz_socket.dll.a librz/util/librz_util.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -Wl,--end-group
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_connect':
/d/rizin/build/../librz/socket/socket.c:275: undefined reference to `rz_sys_signal'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:275: undefined reference to `rz_sys_signal'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:323: undefined reference to `rz_sys_perror_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_port_by_name':
/d/rizin/build/../librz/socket/socket.c:471: undefined reference to `rz_num_get'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_connect':
/d/rizin/build/../librz/socket/socket.c:258: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_spawn':
/d/rizin/build/../librz/socket/socket.c:210: undefined reference to `rz_num_rand'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:211: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:213: undefined reference to `rz_str_replace'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:214: undefined reference to `rz_sys_cmdf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:233: undefined reference to `rz_sys_sleep'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:234: undefined reference to `rz_sys_usleep'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:244: undefined reference to `rz_sys_sleep'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:245: undefined reference to `rz_sys_usleep'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_port_by_name':
/d/rizin/build/../librz/socket/socket.c:471: undefined reference to `rz_num_get'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:471: undefined reference to `rz_num_get'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_listen':
/d/rizin/build/../librz/socket/socket.c:548: undefined reference to `rz_sys_signal'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `__listen_unix':
/d/rizin/build/../librz/socket/socket.c:163: undefined reference to `rz_sys_signal'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_listen':
/d/rizin/build/../librz/socket/socket.c:539: undefined reference to `rz_sys_perror_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:552: undefined reference to `rz_sys_perror_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_accept':
/d/rizin/build/../librz/socket/socket.c:597: undefined reference to `rz_sys_perror_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_write':
/d/rizin/build/../librz/socket/socket.c:736: undefined reference to `rz_sys_signal'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_http_answer':
/d/rizin/build/../librz/socket/socket_http.c:39: undefined reference to `rz_buf_new_with_bytes'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:49: undefined reference to `rz_buf_read_at'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:51: undefined reference to `rz_str_casestr'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:52: undefined reference to `rz_str_casestr'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:73: undefined reference to `rz_str_casestr'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:83: undefined reference to `rz_str_ndup'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:84: undefined reference to `rz_str_trim'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:127: undefined reference to `rz_buf_free'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:127: undefined reference to `rz_buf_free'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_slurp':
/d/rizin/build/../librz/socket/socket_http.c:27: undefined reference to `rz_buf_append_bytes'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:24: undefined reference to `rz_buf_append_bytes'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_http_answer':
/d/rizin/build/../librz/socket/socket_http.c:93: undefined reference to `rz_str_casestr'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:35: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_http_get_recursive':
/d/rizin/build/../librz/socket/socket_http.c:198: undefined reference to `rz_sys_getenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:225: undefined reference to `rz_str_startswith'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:201: undefined reference to `rz_str_escape_sh'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:202: undefined reference to `rz_str_newf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:203: undefined reference to `rz_sys_cmd_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `rz_socket_http_post':
/d/rizin/build/../librz/socket/socket_http.c:293: undefined reference to `rz_str_startswith'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http_server.c.o: in function `rz_socket_http_accept':
/d/rizin/build/../librz/socket/socket_http_server.c:88: undefined reference to `rz_base64_decode'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_proc.c.o: in function `rz_socket_proc_open':
/d/rizin/build/../librz/socket/socket_proc.c:25: undefined reference to `rz_sys_pipe'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_proc.c:30: undefined reference to `rz_sys_pipe'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_proc.c:35: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_close':
/d/rizin/build/../librz/socket/rzpipe.c:141: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:137: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:133: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:129: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_open_dl':
/d/rizin/build/../librz/socket/rzpipe.c:218: undefined reference to `rz_lib_dl_open'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:219: undefined reference to `rz_lib_dl_sym'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:220: undefined reference to `rz_lib_dl_sym'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzp_open_spawn':
/d/rizin/build/../librz/socket/rzpipe.c:172: undefined reference to `rz_sys_getenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:173: undefined reference to `rz_sys_getenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_open':
/d/rizin/build/../librz/socket/rzpipe.c:248: undefined reference to `rz_sys_pipe'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:254: undefined reference to `rz_sys_pipe'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:260: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `env':
/d/rizin/build/../librz/socket/rzpipe.c:30: undefined reference to `rz_str_newf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:31: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:30: undefined reference to `rz_str_newf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:31: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_open':
/d/rizin/build/../librz/socket/rzpipe.c:282: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:283: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:293: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:294: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:303: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:302: undefined reference to `rz_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_cmd':
/d/rizin/build/../librz/socket/rzpipe.c:317: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_new':
/d/rizin/build/../librz/socket/socket_rap_server.c:9: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_create':
/d/rizin/build/../librz/socket/socket_rap_server.c:24: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_listen':
/d/rizin/build/../librz/socket/socket_rap_server.c:44: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_accept':
/d/rizin/build/../librz/socket/socket_rap_server.c:49: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o:/d/rizin/build/../librz/socket/socket_rap_server.c:54: more undefined references to `rz_assert_log' follow
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `getstr':
/d/rizin/build/../librz/socket/run.c:245: undefined reference to `rz_str_unescape'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:216: undefined reference to `rz_sys_cmd_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:217: undefined reference to `rz_str_trim_tail'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:225: undefined reference to `rz_sys_cmd_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:226: undefined reference to `rz_str_trim_tail'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:236: undefined reference to `rz_hex_str2bin'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:182: undefined reference to `rz_str_unescape'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:231: undefined reference to `rz_sys_cmd_str'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:232: undefined reference to `rz_str_trim_tail'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `redirect_socket_to_pty':
/d/rizin/build/../librz/socket/run.c:741: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `handle_redirection':
/d/rizin/build/../librz/socket/run.c:404: undefined reference to `rz_sys_pipe'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:418: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:419: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_reset':
/d/rizin/build/../librz/socket/run.c:100: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_parseline':
/d/rizin/build/../librz/socket/run.c:490: undefined reference to `rz_sys_getenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:620: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:624: undefined reference to `rz_sys_clearenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:614: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:584: undefined reference to `rz_sys_fopen'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:609: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:572: undefined reference to `rz_signal_from_string'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:558: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_parse':
/d/rizin/build/../librz/socket/run.c:111: undefined reference to `rz_str_replace_char'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:106: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_parsefile':
/d/rizin/build/../librz/socket/run.c:472: undefined reference to `rz_file_slurp'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:471: undefined reference to `rz_assert_log'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `dyn_init':
/d/rizin/build/../librz/socket/run.c:79: undefined reference to `rz_lib_dl_sym'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:82: undefined reference to `rz_lib_dl_sym'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_config_env':
/d/rizin/build/../librz/socket/run.c:889: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `dyn_init':
/d/rizin/build/../librz/socket/run.c:76: undefined reference to `rz_lib_dl_sym'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_config_env':
/d/rizin/build/../librz/socket/run.c:997: undefined reference to `rz_sys_pipe'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1010: undefined reference to `rz_sys_pipe_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1021: undefined reference to `rz_str_rz_prefix'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1035: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1048: undefined reference to `rz_sys_setenv'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1054: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:926: undefined reference to `rz_sys_sleep'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_start':
/d/rizin/build/../librz/socket/run.c:1139: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1148: undefined reference to `rz_file_dump'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1158: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1193: undefined reference to `rz_file_exists'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1225: undefined reference to `rz_file_dump'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1244: undefined reference to `rz_sys_fork'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1253: undefined reference to `rz_file_dump'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1274: undefined reference to `rz_lib_dl_open'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1279: undefined reference to `rz_lib_dl_sym'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1328: undefined reference to `rz_lib_dl_close'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1194: undefined reference to `rz_file_path'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1178: undefined reference to `rz_file_binsh'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_get_environ_profile':
/d/rizin/build/../librz/socket/run.c:1337: undefined reference to `rz_strbuf_new'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1343: undefined reference to `rz_str_escape_latin1'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1345: undefined reference to `rz_strbuf_appendf'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `getstr':
/d/rizin/build/../librz/socket/run.c:209: undefined reference to `rz_file_slurp'
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_get_environ_profile':
/d/rizin/build/../librz/socket/run.c:1352: undefined reference to `rz_strbuf_drain'
collect2: error: ld returned 1 exit status
[207/1668] Compiling C object librz/crypto/msys-rz_crypto-0.3.0-git.dll.p/des.c.o
ninja: build stopped: subcommand failed.                                                                                                                                                                                                               

And a couple warnings:

[39/1507] Compiling C object librzsdb.a.p/shlr_sdb_src_query.c.o
In file included from ../shlr/sdb/src/query.c:8:
../shlr/sdb/src/query.c: In function ‘sdb_querys’:
../shlr/sdb/src/query.c:756:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  756 |     while (*val && isspace (*val)) {
      |                             ^~~~
../shlr/sdb/src/query.c:760:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  760 |     while (i >= 0 && isspace (cmd[i])) {
      |                               ~~~^~~
[62/1507] Compiling C object sdb.exe.p/shlr_sdb_src_query.c.o
In file included from ../shlr/sdb/src/query.c:8:
../shlr/sdb/src/query.c: In function ‘sdb_querys’:
../shlr/sdb/src/query.c:756:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  756 |     while (*val && isspace (*val)) {
      |                             ^~~~
../shlr/sdb/src/query.c:760:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  760 |     while (i >= 0 && isspace (cmd[i])) {
      |                               ~~~^~~

Steps to reproduce the behavior

If you try the same on Cygwin it will show the same error. @ret2libc suggested to move the detection from the checking tons of #ifdefs to checking the presence of particular function/definition with Meson.

XVilka commented 3 years ago

These linking errors seems related to this: https://github.com/msys2/MINGW-packages/issues/6986

XVilka commented 3 years ago

Just retested and relocation truncated to fit: R_X86_64_PC32 against undefined symbol are gone now with MSYS2 updated binutils, only remaining error are undefined symbols:

      |  ^~~~~~~                                                                                                                                                                                                                               
[204/1644] Linking target librz/socket/msys-rz_socket-0.3.0-git.dll                                                                                                                                                                            
FAILED: librz/socket/msys-rz_socket-0.3.0-git.dll                                                                                                                                                                                              
cc  -o librz/socket/msys-rz_socket-0.3.0-git.dll librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http_server.c.o librz/so
cket/msys-rz_socket-0.3.0-git.dll.p/socket_serial.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_proc.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_client.c.o libr
z/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o -Wl,--as-needed -Wl,--allow-shlib-undefined -shared -Wl,--start-group -Wl,--out-implib=librz/socket/librz_socket.dll.a librz/
util/librz_util.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -Wl,--end-group                                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_connect':                                                                                 
/d/rizin/build/../librz/socket/socket.c:275: undefined reference to `rz_sys_signal'                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:275: undefined reference to `rz_sys_signal'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:323: undefined reference to `rz_sys_perror_str'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_port_by_name':                                                                            
/d/rizin/build/../librz/socket/socket.c:471: undefined reference to `rz_num_get'                                                                                                                                                               
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_connect':                                                                                 
/d/rizin/build/../librz/socket/socket.c:258: undefined reference to `rz_assert_log'                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_spawn':                                                                                   
/d/rizin/build/../librz/socket/socket.c:210: undefined reference to `rz_num_rand'                                                                                                                                                              
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:211: undefined reference to `rz_sys_fork'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:213: undefined reference to `rz_str_replace'                                                                                     
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:214: undefined reference to `rz_sys_cmdf'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:233: undefined reference to `rz_sys_sleep'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:234: undefined reference to `rz_sys_usleep'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:244: undefined reference to `rz_sys_sleep'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:245: undefined reference to `rz_sys_usleep'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_port_by_name':                                                                            
/d/rizin/build/../librz/socket/socket.c:471: undefined reference to `rz_num_get'                                                                                                                                                               
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:471: undefined reference to `rz_num_get'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_listen':                                                                                  
/d/rizin/build/../librz/socket/socket.c:548: undefined reference to `rz_sys_signal'                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `__listen_unix':                                                                                     
/d/rizin/build/../librz/socket/socket.c:163: undefined reference to `rz_sys_signal'                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_listen':                                                                                  
/d/rizin/build/../librz/socket/socket.c:539: undefined reference to `rz_sys_perror_str'                                                                                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket.c:552: undefined reference to `rz_sys_perror_str'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_accept':                                                                                  
/d/rizin/build/../librz/socket/socket.c:597: undefined reference to `rz_sys_perror_str'                                                                                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket.c.o: in function `rz_socket_write':                                                                                   
/d/rizin/build/../librz/socket/socket.c:736: undefined reference to `rz_sys_signal'                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_http_answer':                                                                           
/d/rizin/build/../librz/socket/socket_http.c:39: undefined reference to `rz_buf_new_with_bytes'                                                                                                                                                
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:49: undefined reference to `rz_buf_read_at'                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:51: undefined reference to `rz_str_casestr'                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:52: undefined reference to `rz_str_casestr'                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:73: undefined reference to `rz_str_casestr'                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:83: undefined reference to `rz_str_ndup'                                                                                    
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:84: undefined reference to `rz_str_trim'                                                                                    
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:127: undefined reference to `rz_buf_free'                                                                                   
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:127: undefined reference to `rz_buf_free'                                                                                   
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_slurp':                                                                                 
/d/rizin/build/../librz/socket/socket_http.c:27: undefined reference to `rz_buf_append_bytes'                                                                                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:24: undefined reference to `rz_buf_append_bytes'                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_http_answer':                                                                           
/d/rizin/build/../librz/socket/socket_http.c:93: undefined reference to `rz_str_casestr'                                                                                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:35: undefined reference to `rz_assert_log'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `socket_http_get_recursive':                                                                    
/d/rizin/build/../librz/socket/socket_http.c:198: undefined reference to `rz_sys_getenv'                                                                                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:225: undefined reference to `rz_str_startswith'                                                                             
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:201: undefined reference to `rz_str_escape_sh'                                                                              
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:202: undefined reference to `rz_str_newf'                                                                                   
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_http.c:203: undefined reference to `rz_sys_cmd_str'                                                                                
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http.c.o: in function `rz_socket_http_post':                                                                          
/d/rizin/build/../librz/socket/socket_http.c:293: undefined reference to `rz_str_startswith'                                                                                                                                                   
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_http_server.c.o: in function `rz_socket_http_accept':                                                                 
/d/rizin/build/../librz/socket/socket_http_server.c:88: undefined reference to `rz_base64_decode'                                                                                                                                              
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_proc.c.o: in function `rz_socket_proc_open':                                                                          
/d/rizin/build/../librz/socket/socket_proc.c:25: undefined reference to `rz_sys_pipe'                                                                                                                                                          
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_proc.c:30: undefined reference to `rz_sys_pipe'                                                                                    
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/socket_proc.c:35: undefined reference to `rz_sys_fork'                                                                                    
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_close':                                                                                      
/d/rizin/build/../librz/socket/rzpipe.c:141: undefined reference to `rz_sys_pipe_close'                                                                                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:137: undefined reference to `rz_sys_pipe_close'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:133: undefined reference to `rz_sys_pipe_close'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:129: undefined reference to `rz_sys_pipe_close'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_open_dl':                                                                                    
/d/rizin/build/../librz/socket/rzpipe.c:218: undefined reference to `rz_lib_dl_open'                                                                                                                                                           
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:219: undefined reference to `rz_lib_dl_sym'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:220: undefined reference to `rz_lib_dl_sym'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzp_open_spawn':                                                                                    
/d/rizin/build/../librz/socket/rzpipe.c:172: undefined reference to `rz_sys_getenv'                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:173: undefined reference to `rz_sys_getenv'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_open':                                                                                       
/d/rizin/build/../librz/socket/rzpipe.c:248: undefined reference to `rz_sys_pipe'                                                                                                                                                              
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:254: undefined reference to `rz_sys_pipe'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:260: undefined reference to `rz_sys_fork'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `env':                                                                                               
/d/rizin/build/../librz/socket/rzpipe.c:30: undefined reference to `rz_str_newf'                                                                                                                                                               
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:31: undefined reference to `rz_sys_setenv'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:30: undefined reference to `rz_str_newf'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:31: undefined reference to `rz_sys_setenv'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_open':                                                                                       
/d/rizin/build/../librz/socket/rzpipe.c:282: undefined reference to `rz_sys_pipe_close'                                                                                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:283: undefined reference to `rz_sys_pipe_close'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:293: undefined reference to `rz_sys_pipe_close'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:294: undefined reference to `rz_sys_pipe_close'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:303: undefined reference to `rz_sys_pipe_close'                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/rzpipe.c:302: undefined reference to `rz_log'                                                                                             
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/rzpipe.c.o: in function `rzpipe_cmd':                                                                                        
/d/rizin/build/../librz/socket/rzpipe.c:317: undefined reference to `rz_assert_log'                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_new':                                                               
/d/rizin/build/../librz/socket/socket_rap_server.c:9: undefined reference to `rz_assert_log'                                                                                                                                                   
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_create':                                                            
/d/rizin/build/../librz/socket/socket_rap_server.c:24: undefined reference to `rz_assert_log'                                                                                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_listen':                                                            
/d/rizin/build/../librz/socket/socket_rap_server.c:44: undefined reference to `rz_assert_log'                                                                                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o: in function `rz_socket_rap_server_accept':                                                            
/d/rizin/build/../librz/socket/socket_rap_server.c:49: undefined reference to `rz_assert_log'                                                                                                                                                  
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/socket_rap_server.c.o:/d/rizin/build/../librz/socket/socket_rap_server.c:54: more undefined references to `rz_assert_log' fol
low                                                                                                                                                                                                                                            
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `getstr':                                                                                               
/d/rizin/build/../librz/socket/run.c:243: undefined reference to `rz_str_unescape'                                                                                                                                                             
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:214: undefined reference to `rz_sys_cmd_str'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:215: undefined reference to `rz_str_trim_tail'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:223: undefined reference to `rz_sys_cmd_str'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:224: undefined reference to `rz_str_trim_tail'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:234: undefined reference to `rz_hex_str2bin'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:180: undefined reference to `rz_str_unescape'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:229: undefined reference to `rz_sys_cmd_str'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:230: undefined reference to `rz_str_trim_tail'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `redirect_socket_to_pty':                                                                               
/d/rizin/build/../librz/socket/run.c:733: undefined reference to `rz_sys_fork'                                                                                                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `handle_redirection':                                                                                   
/d/rizin/build/../librz/socket/run.c:396: undefined reference to `rz_sys_pipe'                                                                                                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:410: undefined reference to `rz_sys_pipe_close'                                                                                     
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:411: undefined reference to `rz_sys_pipe_close'                                                                                     
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_reset':                                                                                         
/d/rizin/build/../librz/socket/run.c:98: undefined reference to `rz_assert_log'                                                                                                                                                                
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_parseline':                                                                                     
/d/rizin/build/../librz/socket/run.c:482: undefined reference to `rz_sys_getenv'                                                                                                                                                               
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:612: undefined reference to `rz_sys_setenv'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:616: undefined reference to `rz_sys_clearenv'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:606: undefined reference to `rz_sys_setenv'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:576: undefined reference to `rz_sys_fopen'                                                                                          
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:601: undefined reference to `rz_sys_setenv'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:564: undefined reference to `rz_signal_from_string'                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:550: undefined reference to `rz_sys_setenv'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_parse':                                                                                         
/d/rizin/build/../librz/socket/run.c:109: undefined reference to `rz_str_replace_char'                                                                                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:104: undefined reference to `rz_assert_log'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_parsefile':                                                                                     
/d/rizin/build/../librz/socket/run.c:464: undefined reference to `rz_file_slurp'                                                                                                                                                               
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:463: undefined reference to `rz_assert_log'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `dyn_init':                                                                                             
/d/rizin/build/../librz/socket/run.c:77: undefined reference to `rz_lib_dl_sym'                                                                                                                                                                
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:80: undefined reference to `rz_lib_dl_sym'                                                                                          
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_config_env':                                                                                    
/d/rizin/build/../librz/socket/run.c:881: undefined reference to `rz_sys_fork'                                                                                                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `dyn_init':                                                                                             
/d/rizin/build/../librz/socket/run.c:74: undefined reference to `rz_lib_dl_sym'                                                                                                                                                                
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_config_env':                                                                                    
/d/rizin/build/../librz/socket/run.c:989: undefined reference to `rz_sys_pipe'                                                                                                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1002: undefined reference to `rz_sys_pipe_close'                                                                                    
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1013: undefined reference to `rz_str_rz_prefix'                                                                                     
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1023: undefined reference to `rz_sys_setenv'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1036: undefined reference to `rz_sys_setenv'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1042: undefined reference to `rz_sys_fork'                                                                                          
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:918: undefined reference to `rz_sys_sleep'                                                                                          
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_start':                                                                                         
/d/rizin/build/../librz/socket/run.c:1127: undefined reference to `rz_sys_fork'                                                                                                                                                                
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1136: undefined reference to `rz_file_dump'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1146: undefined reference to `rz_sys_fork'                                                                                          
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1181: undefined reference to `rz_file_exists'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1213: undefined reference to `rz_file_dump'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1232: undefined reference to `rz_sys_fork'                                                                                          
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1241: undefined reference to `rz_file_dump'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1263: undefined reference to `rz_lib_dl_open'                                                                                       
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1268: undefined reference to `rz_lib_dl_sym'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1317: undefined reference to `rz_lib_dl_close'                                                                                      
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1182: undefined reference to `rz_file_path'                                                                                         
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1166: undefined reference to `rz_file_binsh'                                                                                        
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_get_environ_profile':                                                                           
/d/rizin/build/../librz/socket/run.c:1326: undefined reference to `rz_strbuf_new'                                                                                                                                                              
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1332: undefined reference to `rz_str_escape_latin1'                                                                                 
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: /d/rizin/build/../librz/socket/run.c:1334: undefined reference to `rz_strbuf_appendf'                                                                                    
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `getstr':                                                                                               
/d/rizin/build/../librz/socket/run.c:207: undefined reference to `rz_file_slurp'                                                                                                                                                               
/usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld: librz/socket/msys-rz_socket-0.3.0-git.dll.p/run.c.o: in function `rz_run_get_environ_profile':                                                                           
/d/rizin/build/../librz/socket/run.c:1341: undefined reference to `rz_strbuf_drain'                                                                                                                                                            
collect2: error: ld returned 1 exit status                                                                                                                                                                                                     
[211/1644] Linking target librz/hash/msys-rz_hash-0.3.0-git.dll                                                                                                                                                                                
FAILED: librz/hash/msys-rz_hash-0.3.0-git.dll
ret2libc commented 3 years ago

These are likely easily fixable ;)