spawn.h ?

bruce bushby bruce.bushby at gmail.com
Sun Feb 6 17:28:47 UTC 2011


Hi

Are there any suggestions for compiling an application that uses "#include
<spawn.h>" with uClibc?

I've been trying to add rabbitMQ C client as a "buildroot" application
however the compile keep failing due to "missing spawn.h"

I've tried all the uClib thread options including Native POSIX threading
with the daily snapshot.

This is the error message:

/opt/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc
--sysroot=/opt/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot
-DHAVE_CONFIG_H -I. -I..    -I../librabbitmq -I./unix -I../librabbitmq -pipe
-Os  -mtune=arm926ej-s -march=armv5te -mabi=aapcs-linux -msoft-float
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/opt/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include
-I/opt/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/include
-Wall -MT process.o -MD -MP -MF .deps/process.Tpo -c -o process.o `test -f
'unix/process.c' || echo './'`unix/process.c
unix/process.c:53:19: fatal error: spawn.h: No such file or directory
compilation terminated.
make[4]: *** [process.o] Error 1
make[4]: *** Waiting for unfinished jobs....

I did some searching and get the feeling that posix_spawn it not supported
... or t depends on (SPN ?)


Would the application need to recoded to work with uClibc?


Thanks
Bruce


More information about the uClibc mailing list