<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57494>57494</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            undefined reference to `setupterm'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          quantrpeter
      </td>
    </tr>
</table>

<pre>
    Hi
  I got error, "~/workspace/llvm-install/bin/llvm-config --system-libs" and "-ltinfo" no help:

```
/home/peter/workspace/llvm-big-example/example2>make
Linking helloworld
g++ -o helloworld -Wall -Wextra -I/home/peter/workspace/llvm-install/include -std=c++17   -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -L/home/peter/workspace/llvm-install/lib  hello.o `~/workspace/llvm-install/bin/llvm-config --system-libs` `~/workspace/llvm-install/bin/llvm-config --libs bitreader core support`
/usr/bin/ld: /home/peter/workspace/llvm-install/lib/libLLVMSupport.a(Process.cpp.o): in function `llvm::sys::Process::FileDescriptorHasColors(int) [clone .part.0]':
Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi.part.0+0x36): undefined reference to `set_curterm'
/usr/bin/ld: Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi.part.0+0x50): undefined reference to `setupterm'
/usr/bin/ld: Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi.part.0+0x88): undefined reference to `tigetnum'
/usr/bin/ld: Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi.part.0+0x98): undefined reference to `set_curterm'
/usr/bin/ld: Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi.part.0+0xa0): undefined reference to `del_curterm'
collect2: error: ld returned 1 exit status
make: *** [Makefile:24: helloworld] Error 1
/home/peter/workspace/llvm-big-example/example2>~/workspace/llvm-install/bin/llvm-config --system-libs
-lrt -ldl -lm -lz -ltinfo -lxml2
```

thanks
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVt-PozYQ_mvgxQIRk5DwwEM2P3orJbvVZq-V-hIZMxB3jU1t08v1r-8Yss1Kd6fd61Y9yRh7Bn_zjceeodTV5-KDCJJ1kCwJuSWNdgSM0SagKxJQGsw3Ad1-0ubJdowDjqX8s42Eso5JidNSqGch16oWDYki-9k6aCMpSosQhKnKQ0XSCVVrL1GanEB2QbocLV_6LLm0cUq3J916kx04MF-jUYomgjNrO-lFlxEN0k3LnmBE2Qn1JFTj7UmNALIa5U1Ab7CRSL9QkehX9Ap7ODvDSHT7Bg7XrRCKy74CEllXBemajxYmc0JIVCuNTDl0Tmhlx7lxTpBoffzp7uPxcP_xYbXxs-Phcb06ru7vDo_Lu8fjfrl6uD9cFdv7h_3yS_Hudn97le6-izfGiYybEGvit_-9Mc-Sfw3j15NSOAOsAkO4NkBs33XauJcHo7fmCoCbvSTf6_HY73a_7A8jfMwCuvjZaA7WxrzrYjypuUcWitS94j5w3i0P5Q9uukSXx8Fl1TjZCglrsNyIzmnzgdmVltrgRVgI5RCSBLMbLrUCEncMzSbBbB3Q-T934QUFL6OL2OFpjI-_3U296RStzi_f0PQbxjbiGZveJOc0u3jSqwpqoaAiBmowoDgQN4Tcgjvy3uDGtZ7Lt7f5v2c3S97Cru9-BLfF4lVuTjTgVP-_U8tfp_YDg8peD2oF8gt2XEsJ3FG_cqxCOJB-reuNB5kQOAtH8B673o5rhlQ_JIDl2PwF26OwRqKooFOvfZH-Z2uy8dhk8v468-5UOTCIpHEkkhVWHtni8xe51Ep8n1tJv14eh96dmHqyIRSTLKMJTSnNwqpIqzzNWeiEk1C87V6FvZHFybluSGN0i60R7tSXMdftxYVnTzqjf8cw-ZJnbQ-Y27az-TSfhqcCynq6yGhd5dNqxhd5DSkvc0hns3KeQ7YIJStB2gJjhD8CCj6RAcL_aczWoSjQB5rkyQSfeZLFk4zlU5ZNSoA6z2kVTBNomZCx5xFr04SmGCPUNxaVUlhnr0pmrWgUwGAO8VnvTtoUf_RMOTNEOxzMFwP9vwFIee3U">