On Thu Sep 24 10:01:31 2009, KTHAKORE wrote:
Show quoted text> On Sat Sep 19 14:28:31 2009, RCAPUTO wrote:
> > Line 182 of make/lib/SDL/Build.pm dereferences
> >
> > @{ $links->{$subsystem}{libs} }
> >
> > ... but the subsystems in Build.PL call that field "libraries":
> >
> This is not the problem. Take a look at $file_flags{ $sub_file } =
> line 167. It seems the path to the sub_file was not set properly in
> make/lib/SDL/Build/Darwin.pm. Can you send me a print of all you
> $sub_file it is trying to access there. So add this line
> print "sub_file = $sub_file" at line 168. Send me the output of that.
>
> Also send me the following outputs
>
> $ sdl-config --cflags
> $ sdl-config --libs
> $ sdl-config --version
sub_file = lib/SDL/OpenGL.xs
sub_file = lib/SDL_perl.xs
Can't use an undefined value as an ARRAY reference at
make/lib/SDL/Build.pm line 183.
% sdl-config --libs
-L/sw/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
% sdl-config --cflags
-I/sw/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE
% sdl-config --version
1.2.13
Aaaaand:
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=darwin, osvers=9.6.0, archname=darwin-thread-multi-2level
uname='darwin poerbook.local 9.6.0 darwin kernel version 9.6.0: mon
nov 24 17:39:01 pst 2008; root:xnu-1228.9.59~1release_ppc power macintosh '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-DDEBUGGING -fno-strict-aliasing -pipe -I/sw/include',
optimize='-O3 -g',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-DDEBUGGING -fno-strict-aliasing -pipe -I/sw/include'
ccversion='', gccversion='4.0.1 (Apple Inc. build 5465)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/sw/lib
-L/usr/lib'
libpth=/sw/lib /usr/lib
libs=-lgdbm -ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/sw/lib -L/usr/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_TRACK_MEMPOOL USE_ITHREADS USE_LARGE_FILES
USE_PERLIO