Page 1 of 1

configure: error: Missing POSIX Threads support

Posted: Mon Jan 20, 2020 10:59 pm
by tytan652
Hi, I'm trying to compile avahi libraries for the Switch and when I use ./configure.
I get this:

Code: Select all

checking for the pthreads library -lpthreads... no
...
configure: error: Missing POSIX Threads support
And when I execute this command:

Code: Select all

/opt/devkitpro/devkitA64/aarch64-none-elf/bin/ld -L/opt/devkitpro/portlibs/switch/lib -lpthread
I get this:

Code: Select all

/opt/devkitpro/devkitA64/aarch64-none-elf/bin/ld: warning: cannot find entry symbol _start; not setting start address
Anyone know what I can do about this?
Thank you in advance

./configure command:

Code: Select all

./configure \
    CFLAGS='-D__SWITCH__ -D_GNU_SOURCE -O2 -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIC -ftls-model=local-exec' \
    CXXFLAGS='-D__SWITCH__ -D_GNU_SOURCE -O2 -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIC -ftls-model=local-exec' \
    LDFLAGS='-fPIE -L/opt/devkitpro/portlibs/switch/lib -L/opt/devkitpro/libnx/lib' \
    --prefix=/opt/devkitpro/portlibs/switch \
    --host=aarch64-none-elf \
    --enable-shared=no \
    --disable-glib \
    --disable-gobject \
    --disable-dbus \
    --disable-gdbm \
    --disable-libdaemon \
    --disable-python --disable-pygobject --disable-python-dbus \
    --disable-mono \
    --disable-autoipd \
    --disable-monodoc \
    --disable-doxygen-doc --disable-doxygen-dot --disable-doxygen-xml --disable-doxygen-html \
    --disable-manpages \
    --disable-xmltoman \
    --disable-qt4 \
    --disable-qt5 \
    --disable-gtk \
    --disable-gtk3 \
    --with-xml=none

Re: configure: error: Missing POSIX Threads support

Posted: Sat Apr 11, 2020 5:31 pm
by WinterMute
It's impossible to know what's going on without seeing why the pthreads check fails. The relevant output should be in config.log. Nothing immediately jumps out in what you've posted except maybe --enable-shared=no which I think should normally be handled by --disable-shared --enable-static