Skip to content

Instantly share code, notes, and snippets.

@theos911
Created February 20, 2014 00:30
Show Gist options
  • Save theos911/9104529 to your computer and use it in GitHub Desktop.
Save theos911/9104529 to your computer and use it in GitHub Desktop.
tuntap fails to build on 10.4 G3
cd src/tap && make TUNTAP_VERSION=20090913 -f Makefile all
g++ -Wall -mkernel -force_cpusubtype_ALL -fno-builtin -fno-stack-protector -arch ppc -arch i386 -arch x86_64 -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20090913\" -DTAP_KEXT_VERSION=\"20090913\" -I.. -I/System/Library/Frameworks/Kernel.framework/Headers -c ../tuntap.cc -o ../tuntap.o
cc1plus: error: invalid option 'kernel'
cc1plus: error: unrecognized command line option "-fno-stack-protector"
cc1plus: error: invalid option 'kernel'
cc1plus: error: invalid option 'kernel'
cc1plus: error: unrecognized command line option "-fno-stack-protector"
cc1plus: error: unrecognized command line option "-fno-stack-protector"
lipo: can't figure out the architecture type of: /var/tmp//ccRqc8G7.out
make[1]: *** [../tuntap.o] Error 1
make: *** [tap.kext] Error 2
HOMEBREW_VERSION: 0.9.5
HEAD: a3e7186ea4efca241dd780883a5631c94af4f08b
CPU: single-core 32-bit g3
OS X: 10.4.11-Power Macintosh
Xcode: 2.5
X11: 1.1.3 => /usr/X11R6
theodore-waddells-powerbook:~ theodorewaddell$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mistydemeo/tigerbrew.git
HEAD: a3e7186ea4efca241dd780883a5631c94af4f08b
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: single-core 32-bit g3
OS X: 10.4.11-Power Macintosh
Xcode: 2.5
GCC-4.0: build 5370
GCC-4.2: build 5553
Clang: N/A
X11: 1.1.3 => /usr/X11R6
System Ruby: 1.8.2
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby
theodore-waddells-powerbook:~ theodorewaddell$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install tuntap
==> Cloning git://git.code.sf.net/p/tuntaposx/code
git clone --depth 1 --branch release_20090913 git://git.code.sf.net/p/tuntaposx/code /Library/Caches/Homebrew/tuntap--git
Cloning into '/Library/Caches/Homebrew/tuntap--git'...
remote: Counting objects: 74, done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 74 (delta 14), reused 50 (delta 4)
Receiving objects: 100% (74/74), 56.93 KiB | 0 bytes/s, done.
Resolving deltas: 100% (14/14), done.
Checking connectivity... done.
Note: checking out '7859e07c569b29c8e559911a7955973969ebac56'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
==> Checking out tag release_20090913
git checkout-index -a -f --prefix=/private/tmp/tuntap-2n8c/
==> make
cd src/tap && make TUNTAP_VERSION=20090913 -f Makefile all
g++ -Wall -mkernel -force_cpusubtype_ALL -fno-builtin -fno-stack-protector -arch ppc -arch i386 -arch x86_64 -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20090913\" -DTAP_KEXT_VERSION=\"20090913\" -I.. -I/System/Library/Frameworks/Kernel.framework/Headers -c ../tuntap.cc -o ../tuntap.o
cc1plus: error: invalid option 'kernel'
cc1plus: error: unrecognized command line option "-fno-stack-protector"
cc1plus: error: invalid option 'kernel'
cc1plus: error: invalid option 'kernel'
cc1plus: error: unrecognized command line option "-fno-stack-protector"
cc1plus: error: unrecognized command line option "-fno-stack-protector"
lipo: can't figure out the architecture type of: /var/tmp//ccRqc8G7.out
make[1]: *** [../tuntap.o] Error 1
make: *** [tap.kext] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: a3e7186ea4efca241dd780883a5631c94af4f08b
CPU: single-core 32-bit g3
OS X: 10.4.11-Power Macintosh
Xcode: 2.5
X11: 1.1.3 => /usr/X11R6
==> ENV
CC: /usr/bin/gcc-4.0
CXX: /usr/bin/g++-4.0
OBJC: /usr/bin/gcc-4.0
OBJCXX: /usr/bin/g++-4.0
CFLAGS: -Os -w -pipe -mcpu=750 -faltivec -mmacosx-version-min=10.4
CXXFLAGS: -Os -w -pipe -mcpu=750 -faltivec -mmacosx-version-min=10.4
CPPFLAGS: -F/usr/local/Frameworks
LDFLAGS: -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.4
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.4:/usr/lib/pkgconfig
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/Library/Contributions/cmd
CPATH: /usr/local/include
Error: tuntap did not build
Logs:
/Users/theodorewaddell/Library/Logs/Homebrew/tuntap/01.make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment