[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible mkfifo configuration bug

From: Andrew Janke
Subject: Possible mkfifo configuration bug
Date: Thu, 27 Dec 2018 15:20:15 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.3.3

Hi, Gnulib maintainers,

I'm working with GNU Octave and we're having an issue with mkfifo in Gnulib. https://savannah.gnu.org/bugs/index.php?55273

When we configure and build Gnulib on macOS, it builds the mkfifo() replacement function that just returns an ENOSYS error, even though mkfifo is present. This results in all mkfifo() calls failing.

The configure output indicates that mkfifo is found:

configure:57847: checking for mkfifo
configure:57872: gcc -o conftest -g -O2 -D_THREAD_SAFE -pthread -I/usr/local/opt/readline/include -I/usr/local/opt/gettext/include -I/usr/local/opt/qt/include -I/usr/local/opt/sundials27/include -I/usr/local/opt/qscintilla2/include  -L/usr/local/opt/readline/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/libffi/lib -F/usr/local/opt/qt/lib -L/usr/local/opt/sundials27/lib -L/usr/local/opt/qscintilla2/lib conftest.c  -lm  >&5 ld: warning: directory not found for option '-L/usr/local/opt/sundials27/lib'
configure:57872: $? = 0
configure:57881: result: yes
configure:57887: checking whether mkfifo rejects trailing slashes
configure:57935: gcc -o conftest -g -O2 -D_THREAD_SAFE -pthread   -

But there is no HAVE_MKFIFO present in the resulting config.h file.

Manually doing a CPPFLAGS="-DHAVE_MKFIFO" fixes it.

Possibly related to this change: https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=b24b6bbf9cf4cdc0d5d011b20dd74916507a6153

There's no "HAVE_MKFIFO=1" statement anywhere in m4/mkfifo.m4 now. Should there be one in the "else" branch of "test $gl_cv_func_mkfifo = no"?

Andrew Janke

reply via email to

[Prev in Thread] Current Thread [Next in Thread]