[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: execute.c doesn't have fallback for systems without posix_spawn
From: |
Garrett Cooper |
Subject: |
Re: execute.c doesn't have fallback for systems without posix_spawn |
Date: |
Thu, 7 Aug 2014 21:28:31 -0700 |
Hi Paul,
On Mon, Aug 4, 2014 at 7:52 AM, Paul Eggert <address@hidden> wrote:
> My guess is that the FreeBSD 7 host has a stray /usr/include/spawn.h. There
> shouldn't be such a file, but if you try to upgrade to 8.x and then
> downgrade back to 7.x the file is left behind, and this messes up
> configuration. Try removing the stray file. Or, if you don't have root
> access, try './configure ac_cv_header_spawn_h=no'. For more details, please
> see <https://forums.freebsd.org/viewtopic.php?&t=15775>.
spawn.h isn't installed on the host, but it comes with the m4 package
(unpacked):
# find /usr/include/ /usr/local/include/ -name spawn.h
# find . -name spawn.h
./work/m4-1.4.17/lib/spawn.h
The configure test failed though (snippet below):
conftest.c:119:19: error: spawn.h: No such file or directory
conftest.c: In function 'main':
conftest.c:174: error: 'posix_spawn_file_actions_t' undeclared (first
use in this function)
conftest.c:174: error: (Each undeclared identifier is reported only once
conftest.c:174: error: for each function it appears in.)
conftest.c:174: error: expected ';' before 'actions'
conftest.c:176: error: 'posix_spawnattr_t' undeclared (first use in
this function)
conftest.c:176: error: expected ';' before 'attrs'
conftest.c:199: warning: implicit declaration of function
'posix_spawn_file_actions_init'
conftest.c:199: error: 'actions' undeclared (first use in this function)
conftest.c:201: warning: implicit declaration of function
'posix_spawn_file_actions_adddup2'
conftest.c:202: warning: implicit declaration of function
'posix_spawn_file_actions_addclose'
conftest.c:204: warning: implicit declaration of function 'posix_spawnattr_init'
conftest.c:204: error: 'attrs' undeclared (first use in this function)
conftest.c:206: warning: implicit declaration of function
'posix_spawnattr_setsigmask'
conftest.c:207: warning: implicit declaration of function
'posix_spawnattr_setflags'
conftest.c:207: error: 'POSIX_SPAWN_SETSIGMASK' undeclared (first use
in this function)
conftest.c:208: warning: implicit declaration of function 'posix_spawnp'
conftest.c:211: warning: implicit declaration of function
'posix_spawn_file_actions_destroy'
conftest.c:213: warning: implicit declaration of function
'posix_spawnattr_destroy'
configure:16033: $? = 1
This functionality is not a patched from the port, there aren't any
files in /usr/local that would cause it to act differently AFAICT, and
there aren't any ac_* flags being passed in via Makefile.
> Since FreeBSD 7 isn't being maintained any more, this would be low priority
> for us to fix even if it were a bug in m4 or gnulib.
Here's the exact error from FreeBSD 7.4:
--- execute.o ---
In file included from execute.c:47:
./spawn.h:28:25: error: spawn.h: No such file or directory
In file included from execute.c:47:
./spawn.h:469: error: 'POSIX_SPAWN_RESETIDS' undeclared here (not in a function)
./spawn.h:469: error: 'POSIX_SPAWN_SETPGROUP' undeclared here (not in
a function)
./spawn.h:470: error: 'POSIX_SPAWN_SETSIGDEF' undeclared here (not in
a function)
./spawn.h:470: error: 'POSIX_SPAWN_SETSIGMASK' undeclared here (not in
a function)
*** [execute.o] Error code 1
make[5]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17/lib
1 error
make[5]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17/lib
*** [all] Error code 2
make[4]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17/lib
1 error
make[4]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17/lib
*** [all-recursive] Error code 1
make[3]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17
1 error
make[3]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17
*** [all] Error code 2
make[2]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17
1 error
make[2]: stopped in /mnt/freebsd-ports/devel/m4/work/m4-1.4.17
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /mnt/freebsd-ports/devel/m4
*** Error code 1
Stop.
make: stopped in /mnt/freebsd-ports/devel/m4
I've attached the config.log for reference.
Thanks :)!
-Garrett
config.log
Description: Binary data