Skip Menu |

This queue is for tickets about the X11-FullScreen CPAN distribution.

Report information
The Basics
Id: 87968
Status: resolved
Priority: 0/
Queue: X11-FullScreen

People
Owner: stephenenelson [...] mac.com
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Fails to build on FreeBSD (0.991)
The 0.991 version fails to build on my freebsd 9.0 system: $ perl Build.PL Can't build and link to 'Imlib2', 'X11', 'Xext', 'freetype' All these libraries are installed on the system. There are two problems: - The check_lib_or_exit function does not seem to look into /usr/local/lib, but that's where third-party libraries are installed on *BSD systems - -ldl seems to be linux-specific and should/may be removed on *BSD systems If I change Build.PL as in the attached diff (not usable as-is, probably should be protected with $^O=~/bsd/ checks or so), then things work: I can build the module and the tests pass. Regards, Slaven
Subject: X11-FullScreen-0.991-FreeBSD.diff
diff --git i/Build.PL w/Build.PL index 91ed128..b870a9c 100644 --- i/Build.PL +++ w/Build.PL @@ -6,7 +6,8 @@ use Module::Build; check_lib_or_exit( # fill in what you prompted the user for here - lib => [qw(Imlib2 X11 Xext freetype)] + lib => [qw(Imlib2 X11 Xext freetype)], + libpath=>"/usr/local/lib", ); my ($imlib_include, $imlib_lib); @@ -29,7 +30,7 @@ sub find_imlib_config { my $build = Module::Build->new( module_name => 'X11::FullScreen', - extra_linker_flags => $imlib_lib . ' -lz -lm -ldl -lXext -lX11', + extra_linker_flags => $imlib_lib . ' -lz -lm -lXext -lX11', extra_compiler_flags => '-I. ' . $imlib_include, license => 'perl', build_requires => {
On 2013-08-20 02:55:01, SREZIC wrote: Show quoted text
> The 0.991 version fails to build on my freebsd 9.0 system: > > $ perl Build.PL > Can't build and link to 'Imlib2', 'X11', 'Xext', 'freetype' > > All these libraries are installed on the system. There are two > problems: > - The check_lib_or_exit function does not seem to look into > /usr/local/lib, but that's where third-party libraries are installed > on *BSD systems > - -ldl seems to be linux-specific and should/may be removed on *BSD > systems > > If I change Build.PL as in the attached diff (not usable as-is, > probably should be protected with $^O=~/bsd/ checks or so), then > things work: I can build the module and the tests pass. >
Ah, my smoker is showing images right now. So I assume the issue is fixed with the new version 0.992 :-) Regards, Slaven
I cleaned up the Build.PL to use ExtUtils::PkgConfig and switched from using a bundled Devel::CheckLib to letting Build.PL require it at build time. Tested it on FreeBSD 9.1, and it built, so I've released my fixes as .992. Thanks! On Tue Aug 20 02:55:01 2013, SREZIC wrote: Show quoted text
> The 0.991 version fails to build on my freebsd 9.0 system: > > $ perl Build.PL > Can't build and link to 'Imlib2', 'X11', 'Xext', 'freetype' > > All these libraries are installed on the system. There are two > problems: > - The check_lib_or_exit function does not seem to look into > /usr/local/lib, but that's where third-party libraries are installed > on *BSD systems > - -ldl seems to be linux-specific and should/may be removed on *BSD > systems > > If I change Build.PL as in the attached diff (not usable as-is, > probably should be protected with $^O=~/bsd/ checks or so), then > things work: I can build the module and the tests pass. > > Regards, > Slaven
Subject: Re: [rt.cpan.org #87968] Fails to build on FreeBSD (0.991)
Date: Tue, 20 Aug 2013 08:44:38 -0700
To: bug-X11-FullScreen [...] rt.cpan.org
From: Stephen Nelson <stephenenelson [...] mac.com>
You got it! :) On Aug 20, 2013, at 8:43 AM, Slaven_Rezic via RT <bug-X11-FullScreen@rt.cpan.org> wrote: Show quoted text
> Queue: X11-FullScreen > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=87968 > > > On 2013-08-20 02:55:01, SREZIC wrote:
>> The 0.991 version fails to build on my freebsd 9.0 system: >> >> $ perl Build.PL >> Can't build and link to 'Imlib2', 'X11', 'Xext', 'freetype' >> >> All these libraries are installed on the system. There are two >> problems: >> - The check_lib_or_exit function does not seem to look into >> /usr/local/lib, but that's where third-party libraries are installed >> on *BSD systems >> - -ldl seems to be linux-specific and should/may be removed on *BSD >> systems >> >> If I change Build.PL as in the attached diff (not usable as-is, >> probably should be protected with $^O=~/bsd/ checks or so), then >> things work: I can build the module and the tests pass. >>
> > Ah, my smoker is showing images right now. So I assume the issue is fixed with the new version 0.992 :-) > > Regards, > Slaven > > > >