Skip to content

Instantly share code, notes, and snippets.

@theos911
theos911 / 01.make
Created February 20, 2014 11:38
tuntap fails to build on 10.4 G3 with forced 4.2 fix
cd src/tap && make TUNTAP_VERSION=20090913 -f Makefile all
/usr/local/bin/g++-4.2 -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
../tuntap.cc: In member function 'virtual bool tuntap_interface::register_interface(const sockaddr_dl*, void*, u_int32_t)':
../tuntap.cc:329: error: invalid conversion from 'errno_t (*)(__ifnet*, long unsigned int, void*)' to 'errno_t (*)(__ifnet*, u_int32_t, void*)'
../tuntap.cc: In member function 'virtual bool tuntap_interface::register_interface(const sockaddr_dl*, void*, u_int32_t)':
../tuntap.cc:329: error: invalid conversion from 'errno_t (*)(__ifnet*, long unsigned int, void*)' to 'errno_t (*)(__ifnet*, u_int32_t, void*)'
In file included from /System/Library/Frameworks/Kernel.framework/Headers/kern/locks.h:31,
fro
@theos911
theos911 / 01.make
Created February 20, 2014 00:58
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
@theos911
theos911 / 01.make
Created February 20, 2014 00:30
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
===== Display starts at offset 253124 within file of length 384196. ====
===== Use File->Reload (Cmd-R) to display more. ====
10.4 -c -o libgio_2_0_la-gtcpwrapperconnection.lo `test -f 'gtcpwrapperconnection.c' || echo './'`gtcpwrapperconnection.c
libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/zlib/1.2.8/include -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I../glib -I../glib -I.. -I../gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/usr/local/lib/gio/modules\" -I/usr/local/opt/zlib/include -I/usr/local/opt/gettext/include -F/usr/local/Frameworks -D_REENTRANT -Wall -Wstrict-prototypes -Os -w -pipe -mcpu=750 -faltivec -mmacosx-version-min=10.4 -c gtcpwrapperconnection.c -fno-common -DPIC -o .libs/libgio_2_0_la-gtcpwrapperconnection.o
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/usr/local/Cellar/zlib/1.2.8/include -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I../glib -I../glib -I.. -I../gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILA
@theos911
theos911 / 01.make
Created February 19, 2014 19:46
Pianobar fails to build 10.4 G3
Makefile:18: Extraneous text after `else' directive
Makefile:20: *** only one `else' per conditional. Stop.
HOMEBREW_VERSION: 0.9.5
HEAD: dcd70872364553711e1df962c0493098efc52acb
CPU: single-core 32-bit g3
OS X: 10.4.11-Power Macintosh
Xcode: 2.5
X11: 1.1.3 => /usr/X11R6
@theos911
theos911 / 02.make
Last active January 4, 2016 13:09
Ruby 2.1.0 fails to build 10.4 G3
CC = /usr/bin/gcc-4.0
LD = ld
LDSHARED = /usr/bin/gcc-4.0 -dynamiclib
CFLAGS = -Os -w -pipe -mcpu=750 -faltivec -mmacosx-version-min=10.4 -fno-common
XCFLAGS = -D_FORTIFY_SOURCE=2 -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -F/usr/local/Frameworks -I/usr/local/opt/openssl/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/powerpc-darwin8.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -install_name /usr/local/Cellar/ruby/2.1.0/lib/libruby.2.1.0.dylib -current_version 2.1.0 -compatibility_version 2.1.0 -Wl,-u,_objc_msgSend -framework CoreFoundation -Wl,-u,_objc_msgSend -framework CoreFoundation
SOLIBS = -lpthread -lgmp -ldl -lobjc
Using built-in specs.
Target: powerpc-apple-darwin8
@theos911
theos911 / command output
Created April 25, 2013 20:07
Updated ffmpeg x264 crash
theodore-waddells-powermacg3series:~ theodorewaddell$ ffmpeg -i /Users/theodorewaddell/Desktop/FuryLowIdle.mp4 -vcodec libx264 -vprofile high -preset slow -pix_fmt yuv420p -b:v 300k -b:v 300k -s 426x240 -threads 0 /Users/theodorewaddell/Desktop/FuryLowIdle240p.mp4
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Apr 18 2013 21:46:57 with gcc 4.2.1 (GCC) (Apple Inc. build 5553)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=/usr/local/bin/gcc-4.2 --host-cflags='-Os -w -pipe -mcpu=750 -faltivec -isystem /usr/X11R6/include -mmacosx-version-min=10.4' --host-ldflags='-L/usr/local/lib -F/usr/local/Frameworks -L/usr/X11R6/lib -B/usr/local/Cellar/ld64/97.17/bin/' --enable-debug --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --disable-asm --disable-altivec
libavutil 52. 18.100 / 52. 18.100
libavcodec 54
@theos911
theos911 / output
Created April 16, 2013 22:49
htop fails to build 10.4 G3
theodore-waddells-powermacg3series:~ theodorewaddell$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install htop ==> Downloading https://github.com/max-horvath/htop-osx/archive/0.8.2.1-2013-03-31.tar.gz
Already downloaded: /Library/Caches/Homebrew/htop-osx-0.8.2.1.tar.gz
/usr/bin/tar xzf /Library/Caches/Homebrew/htop-osx-0.8.2.1.tar.gz
==> ./autogen.sh
./autogen.sh
/usr/bin/glibtoolize: line 1: cd: /usr/share/libtool: No such file or directory
glibtoolize: cannot list files in `/usr/share/libtool'
configure.ac:8: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
configure.ac: installing `./install-sh'
configure.ac: installing `./mkinstalldirs'
@theos911
theos911 / config.log
Created April 14, 2013 22:44
fontconfig tigerbrew fails to build G3
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-dependency-tracking --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=/usr/local/Cellar/fontconfig/2.10.91
## --------- ##
## Platform. ##
@theos911
theos911 / output
Created April 14, 2013 20:54
x264 tigerbrew build log
theodore-waddells-powermacg3series:~ theodorewaddell$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install x264 ==> Downloading http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20120812-2245-stable.tar.bz2
Already downloaded: /Library/Caches/Homebrew/x264-r2197.4.tar.bz2
/usr/bin/tar xjf /Library/Caches/Homebrew/x264-r2197.4.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/x264/r2197.4 --enable-shared
./configure --prefix=/usr/local/Cellar/x264/r2197.4 --enable-shared
fatal: Not a git repository (or any of the parent directories): .git
platform: PPC
system: MACOSX
cli: yes
libx264: internal