Re: SDL_Perl-2.1.3 Build.PL bug

[email protected] (chromatic)
Newsgroups perl.sdl.devel
Message-ID <[email protected]>
On Monday 20 February 2006 11:27, Chris Hinrichs wrote:

> I am trying to install SDL_Perl-2.1.3 and I get this:
>
> monkey2000:~/build/SDL_Perl-2.1.3 hinrichs$ uname -a
> Darwin 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST
> 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh powerpc
>
> monkey2000:~/build/SDL_Perl-2.1.3 hinrichs$ perl Build.PL
> Checking whether your kit is complete...
> Looks good
> Can't use an undefined value as an ARRAY reference at make/lib/SDL/
> Build.pm line 153.
>
> I did a bit of poking around in the Build.PL script - it looks like
> $links which is initialized at this line, line 134 -
> my $links         = $arch->build_links( \%libraries, $build_systems );
>
> has a member $links->{$subsystem}{libs} which is coming out undef for
> subsystem SFont. Hence, at this line in SDL_Perl-2.1.3/make/lib/SDL/
> Build.pm
>
> 			extra_linker_flags =>
>                          [
>                                  @{ $links->{$subsystem}{paths} },
>                                  split(' ',$sdl_link),
>                     ---->        @{ $links->{$subsystem}{libs} },
>                          ],
>
> - it's getting an ARRAY dereference error because $links->{SFont}
> {libs} undef. I already installed
> SDL_ttf-2.0.7 via Mac OS X .pkg installer from libsdl.org. If a
> requisite lib is not found, shouldn't there be a warning...?

Ahh, I see.  SFont is an optional library, but there's no default case in the 
configuration system to set its flags to empty.  I can fix this.

(That reminds me, we really ought to merge the three separate branches soon.)

-- c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.