Skip to content

Build issues on OS X 10.11 (El Capitan) #3

@tommythorn

Description

@tommythorn

Building with ./build.sh fails with

Detected Mac OS X (Darwin)
Cleaning up...
Creating source archive...
tar: Option --transform is not supported
Usage:

as Mac OS X tar doesn't support this flag. Installing GNU tar (gnu-tar) via MacPorts and applying

diff --git a/build.sh b/build.sh
index 1467c9a..f8afa3e 100755
--- a/build.sh
+++ b/build.sh
@@ -17,6 +17,7 @@ elif [ "$(uname -s)" = "Darwin" ]; then
        echo "Detected Mac OS X (Darwin)"
        CFLAGS="$CFLAGS -arch i686"
        LDFLAGS="$LDFLAGS -arch i686"
+       tar=gtar
 fi

 echo Cleaning up...

get's us to

Building combined binary...
In file included from src/proto.raw.c:26:
src/common.c:48:11: fatal error: 'net/if_tun.h' file not found
        #include <net/if_tun.h>
                 ^
1 error generated.

The naive brew install tuntap failed with

tuntap: Building this formula from source isn't possible due to OS X
Yosemite and above's strict unsigned kext ban.

You can install with Homebrew Cask:
  brew install Caskroom/cask/tuntap

You can download from:
  http://sourceforge.net/projects/tuntaposx/files/tuntap/

but alas brew install Caskroom/cask/tuntap doesn't come with if_tun.h nor
is it present in the sources at http://sourceforge.net/projects/tuntaposx/files/tuntap/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions