Skip to content

Instantly share code, notes, and snippets.

View jrabbit's full-sized avatar
🍡

J Laxson jrabbit

🍡
View GitHub Profile
Reading Package Lists...
Building Dependency Tree...
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
fileutils: Depends: coreutils-default (>= 1:6.9-3) but it is not going to be installed
pyqt4-mac-py25: Conflicts: pyqt4-mac-py25-bin but 4.6-1 is to be installed
@jrabbit
jrabbit / gist:507352
Created August 3, 2010 23:20
Quick and dirty script to set SDL env for Alien::SDL
#!/usr/bin/env python
from subprocess import *
import os
sdlconf = Popen(['sdl-config', '--prefix'], stdout=PIPE).communicate()[0]
pkgconf = Popen(['pkg-config','sdl', '--libs'], stdout=PIPE).communicate()[0]
if sdlconf:
prefix = sdlconf
elif pkgconf:
Has already been unwrapped into directory /Users/jrabbit/Projects/SDL-2.510/.
Prepending /Users/jrabbit/.cpan/build/parent-0.223-QHxzM6/blib/arch /Users/jrabbit/.cpan/build/parent-0.223-QHxzM6/blib/lib /Users/jrabbit/.cpan/build/autodie-2.10-wPG3ad/blib/arch /Users/jrabbit/.cpan/build/autodie-2.10-wPG3ad/blib/lib /Users/jrabbit/.cpan/build/Test-Harness-3.21-bBuB8b/blib/arch /Users/jrabbit/.cpan/build/Test-Harness-3.21-bBuB8b/blib/lib to PERL5LIB for 'make'
CPAN.pm: Going to build /Users/jrabbit/Projects/SDL-2.510/.
[Alien::SDL] Build option used:
Already installed SDL ver=1.2.14 path=/sw
Building SDL
gcc-4.2 -Isrc -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -c -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -o src/support/win32.o src/support/win32.c
gcc-4.2 -Isrc -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -DXS_VERSION="2.510" -DVERSION="2.510" -DNOSIGCATCH -O2 -I/sw/include/SDL -D_GNU_SOURCE=1 -D_THR
$ sudo cpan .
Password:
You are visiting the local directory
'.'
without lock, take care that concurrent processes do not do likewise.
CPAN: Time::HiRes loaded ok (v1.9711)
CPAN: Storable loaded ok (v2.18)
Going to read '/Users/jrabbit/.cpan/Metadata'
Database was generated on Wed, 04 Aug 2010 00:27:09 GMT
CPAN: YAML loaded ok (v0.71)
$ gcc-4.2 -Isrc -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -DXS_VERSION="2.510" -DVERSION="2.510" -DNOSIGCATCH -O2 -I/sw/include -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/X11R6/include -I/usr/local/include -DHAVE_SDL -DHAVE_SDL_IMAGE -DUSE_THREADS -fPIC -c -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -o lib/SDLx/SFont.o lib/SDLx/SFont.c
lib/SDLx/SFont.c: In function ‘boot_SDLx__SFont’:
lib/SDLx/SFont.c:470: error: incompatible type for argument 2 of ‘Perl_newSVpv’
$ sudo cpan .
You are visiting the local directory
'.'
without lock, take care that concurrent processes do not do likewise.
CPAN: Time::HiRes loaded ok (v1.9711)
CPAN: Storable loaded ok (v2.18)
Going to read '/Users/jrabbit/.cpan/Metadata'
Database was generated on Wed, 04 Aug 2010 00:27:09 GMT
CPAN: YAML loaded ok (v0.71)
Going to read 52 yaml files from /Users/jrabbit/.cpan/build/
Lemming:Alien-SDL-1.412 jrabbit$ sudo cpan .
Password:
You are visiting the local directory
'.'
without lock, take care that concurrent processes do not do likewise.
CPAN: Time::HiRes loaded ok (v1.9711)
CPAN: Storable loaded ok (v2.18)
Going to read '/Users/jrabbit/.cpan/Metadata'
Database was generated on Wed, 04 Aug 2010 00:27:09 GMT
CPAN: YAML loaded ok (v0.71)
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=gcc-4.2'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
$ sudo cpan .
Password:
You are visiting the local directory
'.'
without lock, take care that concurrent processes do not do likewise.
CPAN: Time::HiRes loaded ok (v1.9711)
CPAN: Storable loaded ok (v2.18)
Going to read '/Users/jrabbit/.cpan/Metadata'
Database was generated on Wed, 04 Aug 2010 00:27:09 GMT
CPAN: YAML loaded ok (v0.71)
$ perl Build bundle
[Alien::SDL] Build option used:
Already installed SDL ver=1.2.14 path=/sw
Building SDL
gcc -o "SDLPerl.app/Contents/MacOS/SDLPerl" MacOSX/main.c -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -I/sw/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I -I -I/usr/X11R6/include -I/usr/local/include -arch x86_64 -arch i386 -arch ppc -L/usr/local/lib -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -lperl -ldl -lm -lutil -lc -L/sw/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -L/usr/local/lib -L/usr/X11R6/lib -lSDLmain
MacOSX/main.c:3:21: error: SDL/SDL.h: No such file or directory
MacOSX/main.c:3:21: error: SDL/SDL.h: No such file or directory
{standard input}:147:non-relocatable subtraction expression, "_my_perl" minus "L00000000002$pb"
{standard input}:147:symbol: "_my_perl" can't be undefined in a subtraction expression
{standard input}:142:non-relocatab