Ad Widget

Collapse

Issues compiling Zabbix on GL.iNET OpenWRT: libpthread check failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikkiblue
    Junior Member
    • Jan 2023
    • 5

    #1

    Issues compiling Zabbix on GL.iNET OpenWRT: libpthread check failed

    I am trying to compile Zabbix 6.2.6 on OpenWRT 19.07.8 because thre are no suitable binaries available. ./configure stops with the following error:
    Code:
    configure: error: Unable to use libpthread (libpthread check failed)
    How can this be resolved? I was not able to find any sources for libpthread on GitHub.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    I've not tried to build Zabbix from source on OpenWRT, but I do have experience building it from source on other platforms.

    Doing some web searching, I see that at least OpenWRT 21.x has a libpthread package, so POSIX threads are a thing for OpenWRT. I had to verify that, because I wasn't certain if they would be.

    For some configure checks, the thing that causes the failure is a missing development package of some type. On Linux systems, there's sometimes a "-devel" or "-dev' package that adds headers or pkgconfig or .m4 files that are needed for configure to correctly detect that the thing it's looking for is installed.

    What I recommend you do is find the error message in the 'config.log' file that's generated as part of the configure process. The error message will not be at the end of the file, there's often a lot of additional information that gets output after a particular configure check fails, so you need to work backward from the end of the config.log file, looking for the earliest message you see related to 'pthread' and the messages immediately after that. That should explain why the libpthread check failed. If it's not immediately clear to you once you find that message, post the snippet from the config.log here and someone can likely explain what the problem is

    Comment

    Working...