Skip Menu |
 

This queue is for tickets about the SDL_perl CPAN distribution.

Report information
The Basics
Id: 49844
Status: patched
Worked: 5 min
Priority: 0/
Queue: SDL_perl

People
Owner: KTHAKORE [...] cpan.org
Requestors: RCAPUTO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: de
Download (untitled) / with headers
text/plain 171b
Running Build.PL gives: Can't use an undefined value as an ARRAY reference at make/lib/SDL/Build.pm line 182. and the build stops. OSX here, using a native SDL library.
Download (untitled) / with headers
text/plain 385b
Line 182 of make/lib/SDL/Build.pm dereferences @{ $links->{$subsystem}{libs} } ... but the subsystems in Build.PL call that field "libraries": my %subsystems = ( SDL => { file => { from => 'src/SDL.xs', to => 'lib/SDL_perl.xs', }, libraries => [qw( SDL SDL_image SDL_mixer SDL_net SDL_ttf SDL_gfx png jpeg smpeg )], }, ....
Download (untitled) / with headers
text/plain 920b
On Sat Sep 19 14:28:31 2009, RCAPUTO wrote: Show quoted text
> 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 Show quoted text
> my %subsystems = > ( > SDL => { > file => { > from => 'src/SDL.xs', > to => 'lib/SDL_perl.xs', > }, > libraries => [qw( SDL SDL_image SDL_mixer SDL_net SDL_ttf SDL_gfx > png jpeg smpeg )], > }, > ....
-- work in progress
Download (untitled) / with headers
text/plain 2.9k
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
From: tobias.leich [...] adckrone.com
Download (untitled) / with headers
text/plain 798b
Hi, on WinXP using ActivePerl 5.10 I have the same issue: C:\SDL_Perl-v2.2.3.1>perl BUILD.PL ******************************** !!!WARNING!!! ******************************** Windows support is currently experimental - you can continue, but you've been warned! If you are interested in helping please contact us at sdl- devel@perl.org. ************************************************************************ ******* Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Can't use an undefined value as an ARRAY reference at make/lib/SDL/Build.pm line 183. sub_file = lib/SDL/OpenGL.xs ************************************************************************ ******* If you need further information please let me know... Tobias (BTW: SDL/Perl is great!)
Download (untitled) / with headers
text/plain 1.1k
On Fri Oct 16 05:46:31 2009, FROGGS wrote: Show quoted text
> Hi, on WinXP using ActivePerl 5.10 I have the same issue: >
Hi, we recommend Strawberry Perl. Any way Can you give the SDL_Perl on Github a shot? I think this was fixed. http://github.com/kthakore/SDL_Perl/ Try the master branch. If this doesn't work can you give me your $^O output? Show quoted text
> C:\SDL_Perl-v2.2.3.1>perl BUILD.PL > ******************************** !!!WARNING!!! > ******************************** > Windows support is currently experimental - you can continue, but > you've been warned! > > If you are interested in helping please contact us at sdl- > devel@perl.org. > ************************************************************************ > ******* > Checking whether your kit is complete... > Looks good > > Checking prerequisites... > Looks good > > Can't use an undefined value as an ARRAY reference at > make/lib/SDL/Build.pm line 183. > > sub_file = lib/SDL/OpenGL.xs > ************************************************************************ > ******* > > If you need further information please let me know... > > Tobias > > (BTW: SDL/Perl is great!)
Thanks. -- work in progress
Download (untitled) / with headers
text/plain 763b
Hi, here's the output: C:\kthakore-SDL_perl-94538a0>perl Build.PL ******************************** !!!WARNING!!! ******************************** Windows support is currently experimental - you can continue, but you've been warned! If you are interested in helping please contact us at sdl- devel@perl.org. ************************************************************************ ******* Checking whether your kit is complete... WARNING: the following files are missing in your kit: lib/SDL/Game.pm MANIFEST.bak META.yml src/Net/README Please inform the author. Checking prerequisites... Looks good sub_file = lib/SDL/Rect.xs ^O = MSWin32 Can't use an undefined value as an ARRAY reference at make/lib/SDL/Build.pm line 184.
Download (untitled) / with headers
text/plain 923b
On So. 18. Okt. 2009, 06:38:19, FROGGS wrote: Show quoted text
> Hi, here's the output: > > C:\kthakore-SDL_perl-94538a0>perl Build.PL > ******************************** !!!WARNING!!! > ******************************** > Windows support is currently experimental - you can continue, but > you've been warned! > > If you are interested in helping please contact us at sdl- > devel@perl.org. >
************************************************************************ Show quoted text
> ******* > Checking whether your kit is complete... > WARNING: the following files are missing in your kit: > lib/SDL/Game.pm > MANIFEST.bak > META.yml > src/Net/README > Please inform the author. > > Checking prerequisites... > Looks good > > sub_file = lib/SDL/Rect.xs > ^O = MSWin32 > Can't use an undefined value as an ARRAY reference at > make/lib/SDL/Build.pm line 184.
BTW: I get the same output with strawberry perl 5.10.0.6
Download (untitled) / with headers
text/plain 1.1k
On Sun Oct 18 07:00:20 2009, FROGGS wrote: Show quoted text
> On So. 18. Okt. 2009, 06:38:19, FROGGS wrote:
> > Hi, here's the output: > > > > C:\kthakore-SDL_perl-94538a0>perl Build.PL > > ******************************** !!!WARNING!!! > > ******************************** > > Windows support is currently experimental - you can continue, but > > you've been warned! > > > > If you are interested in helping please contact us at sdl- > > devel@perl.org. > >
> ************************************************************************
> > ******* > > Checking whether your kit is complete... > > WARNING: the following files are missing in your kit: > > lib/SDL/Game.pm > > MANIFEST.bak > > META.yml > > src/Net/README > > Please inform the author. > > > > Checking prerequisites... > > Looks good > > > > sub_file = lib/SDL/Rect.xs > > ^O = MSWin32 > > Can't use an undefined value as an ARRAY reference at > > make/lib/SDL/Build.pm line 184.
> > BTW: I get the same output with strawberry perl 5.10.0.6
Ok, give the redesign branch a shot. Also would it be possible to join us on #sdl irc.perl.org I would like to get you setup on our Trac site for tickets. Thanks -- work in progress
From: tobias.leich [...] adckrone.com
Download (untitled) / with headers
text/plain 186b
@RCAPUTO: Can you please try the latest redesign branch? http://github.com/kthakore/SDL_perl/tree/redesign At least you will get an error message that it can't find some header files.
RT-Send-CC: tobias.leich [...] adckrone.com
This is patch in the Alpha release. Try it with cpan install KTHAKORE/SDL-2.3.tar.gz


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.