Skip to content

unbound-control.c:882:6: error: 'execlp' is unavailable: not available on tvOS #188

@noloader

Description

@noloader

Hi Everyone, @wcawijngaards,

I'm testing Unbound Master on iOS. The testing below is on AppleTVOS. WatchOS and the simulators will produce a similar result.

libtool: compile:  clang -I. -I/Users/travis/AppleTVOS-arm64/include -I/Users/travis/AppleTVOS-arm64/include -DSRCDIR=.
-arch arm64 -mappletvos-version-min=6 --sysroot=/Applications/Xcode-10.0.app/Contents/Developer/Platforms/
AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk -c smallapp/unbound-control.c -o unbound-control.o

smallapp/unbound-control.c:882:6: error: 'execlp' is unavailable: not available on tvOS
                if(execlp("unbound", "unbound", "-c", cfgfile, 
                   ^

/Applications/Xcode-10.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/
usr/include/unistd.h:442:6: note: 'execlp' has been explicitly marked unavailable here
int      execlp(const char * __file, const char * __arg0, ...) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
         ^
1 error generated.

We may need to add ac_cv_func_execlp=no to configure. Otherwise, I believe Autotools [incorrectly] guesses execlp is available. (Commit 84864caeefb0 tries the ac_cv_func_execlp=no fix).

This result depends upon PR #187. The 187 PR updates Android and iOS and adds iOS simulator testing to Travis.

Also see Travis test 660761901.

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