Skip to content

v1.6.11 failed to build with undefined reference to `pthread_setname_np' #1792

@fmvin

Description

@fmvin

Looks like closing the issue #1777 by commit bd27935 mosquitto_loop_start() now sets a thread name breaks down a building of v1.6.11 on my target platform.

cc -L../lib pub_client.o pub_shared.o client_shared.o client_props.o -o mosquitto_pub ../lib/libmosquitto.so.1
../lib/libmosquitto.so.1: undefined reference to `pthread_setname_np'

Target platform:
Old fashioned RedHat

2.6.32-642.15.1.el6.i686 #0 SMP Thu Sep 1 00:00:40 MSK 2016 i686 i686 i386 GNU/Linux
ldd (GNU libc) 2.5

Build command:

make WITH_SRV=no WITH_UUID=no WITH_TLS=no WITH_DOCS=no

v1.6.10 builds OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions