Skip to content

Instantly share code, notes, and snippets.

@theos911
Created February 20, 2014 00:58
Show Gist options
  • Save theos911/9104867 to your computer and use it in GitHub Desktop.
Save theos911/9104867 to your computer and use it in GitHub Desktop.
tuntap fails to build on 10.4 G3 with 4.2 fix
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: unrecognized command line option "-fno-stack-protector"
cc1plus: error: invalid option 'kernel'
cc1plus: error: unrecognized command line option "-fno-stack-protector"
lipo: can't figure out the architecture type of: /var/tmp//ccvI5Gnb.out
make[1]: *** [../tuntap.o] Error 1
make: *** [tap.kext] Error 2
HOMEBREW_VERSION: 0.9.5
HEAD: 366cb435c4f828346c55f4c6f8c63ae2046a5b49
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 update
Updated Tigerbrew from a3e7186e to 366cb435.
theodore-waddells-powerbook:~ theodorewaddell$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install tuntap
==> Cloning git://git.code.sf.net/p/tuntaposx/code
git --git-dir /Library/Caches/Homebrew/tuntap--git/.git status -s
Updating /Library/Caches/Homebrew/tuntap--git
git config remote.origin.url git://git.code.sf.net/p/tuntaposx/code
git config remote.origin.fetch +refs/tags/release_20090913:refs/tags/release_20090913
git --git-dir /Library/Caches/Homebrew/tuntap--git/.git rev-parse -q --verify release_20090913
git checkout -f release_20090913
HEAD is now at 7859e07... Version bump
git reset --hard release_20090913
HEAD is now at 7859e07 Version bump
==> Checking out tag release_20090913
git checkout-index -a -f --prefix=/private/tmp/tuntap-Rwtd/
==> 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: unrecognized command line option "-fno-stack-protector"
cc1plus: error: invalid option 'kernel'
cc1plus: error: unrecognized command line option "-fno-stack-protector"
lipo: can't figure out the architecture type of: /var/tmp//ccvI5Gnb.out
make[1]: *** [../tuntap.o] Error 1
make: *** [tap.kext] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 366cb435c4f828346c55f4c6f8c63ae2046a5b49
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/local/bin/gcc-4.2 => /usr/local/Cellar/apple-gcc42/4.2.1-5553/bin/gcc-4.2
CXX: /usr/local/bin/g++-4.2 => /usr/local/Cellar/apple-gcc42/4.2.1-5553/bin/g++-4.2
OBJC: /usr/local/bin/gcc-4.2
OBJCXX: /usr/local/bin/g++-4.2
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