Skip Menu |

This queue is for tickets about the Glib CPAN distribution.

Report information
The Basics
Id: 118190
Status: resolved
Priority: 0/
Queue: Glib

People
Owner: XAOC [...] cpan.org
Requestors: jenbamin [...] free.fr
Cc:
AdminCc:

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



Subject: can’t install perl module Glib on OS X (El Capitan)
Date: Fri, 30 Sep 2016 22:23:43 +0200
To: bug-Glib [...] rt.cpan.org
From: Benjamin Renaud <jenbamin [...] free.fr>
Dear Glib maintainers, I’ve been unable to build Glib-1.322 (neither 1.323) on OS X (10.11 El Capitan). Either when trying ‘sudo cpanm Glib’ or trying to build from the .tar.gz sources, I’ve encountered the same error: Show quoted text
> error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
On the other hand, glib-2.48.2 seems to have been installed without any problem (using Homebrew). If you know anything I can do to solve this, I would be very thankful ! Thanks a lot, Benjamin Renaud p.-s. : attached is the complete build.log file ; I don’t know if it’s important, but typing ‘uname -a’, I get: Show quoted text
> Darwin ibenj.home 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
Dear Glib maintainers,

I’ve been unable to build Glib-1.322 (neither 1.323) on OS X (10.11 El Capitan). Either when trying ‘sudo cpanm Glib’ or trying to build from the .tar.gz sources, I’ve encountered the same error:
Show quoted text
error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
On the other hand, glib-2.48.2 seems to have been installed without any problem (using Homebrew).

If you know anything I can do to solve this, I would be very thankful !
Thanks a lot,

Benjamin Renaud

p.-s. : attached is the complete build.log file ; I don’t know if it’s important, but typing ‘uname -a’, I get:
Show quoted text
Darwin ibenj.home 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

Download build.log
application/octet-stream 2.9k

Message body not shown because it is not plain text.

On Fri Sep 30 16:24:02 2016, jenbamin@free.fr wrote: Show quoted text
> Dear Glib maintainers, > > I’ve been unable to build Glib-1.322 (neither 1.323) on OS X (10.11 El > Capitan). Either when trying ‘sudo cpanm Glib’ or trying to build from > the .tar.gz sources, I’ve encountered the same error:
> > error: '_GStaticAssertCompileTimeAssertion_0' declared as an array > > with a negative size
> On the other hand, glib-2.48.2 seems to have been installed without > any problem (using Homebrew). > > If you know anything I can do to solve this, I would be very thankful > !
Are you sure that there's nothing in your environment, or in the root user's environment, that might be picked up when the Makefile.PL script in Glib is being run via 'sudo'? For example, do you have XQuartz or GIMP for Mac installed and set in your $PATH? Do you have any cross-compiling toolkits installed? Suggestion: use a fresh Perl via plenv/perlbrew as a normal user on OS X. This is how I compile and run the GTK Perl modules on OS X, using C libraries and Perl installed via Homebrew/plenv.
Subject: Re: [rt.cpan.org #118190] can’t install perl module Glib on OS X (El Capitan)
Date: Sat, 1 Oct 2016 18:28:51 +0200
To: bug-Glib [...] rt.cpan.org
From: Benjamin Renaud <jenbamin [...] free.fr>
Show quoted text
> Le 1 oct. 2016 à 00:01, Brian Manning via RT <bug-Glib@rt.cpan.org> a écrit : > > <URL: https://rt.cpan.org/Ticket/Display.html?id=118190 > > > On Fri Sep 30 16:24:02 2016, jenbamin@free.fr wrote:
>> Dear Glib maintainers, >> >> I’ve been unable to build Glib-1.322 (neither 1.323) on OS X (10.11 El >> Capitan). Either when trying ‘sudo cpanm Glib’ or trying to build from >> the .tar.gz sources, I’ve encountered the same error:
>>> error: '_GStaticAssertCompileTimeAssertion_0' declared as an array >>> with a negative size
>> On the other hand, glib-2.48.2 seems to have been installed without >> any problem (using Homebrew). >> >> If you know anything I can do to solve this, I would be very thankful >> !
> > Are you sure that there's nothing in your environment, or in the root user's environment, that might be picked up when the Makefile.PL script in Glib is being run via 'sudo'? For example, do you have XQuartz or GIMP for Mac installed and set in your $PATH? Do you have any cross-compiling toolkits installed? > > Suggestion: use a fresh Perl via plenv/perlbrew as a normal user on OS X. This is how I compile and run the GTK Perl modules on OS X, using C libraries and Perl installed via Homebrew/plenv.
Thanks a lot for the quick answer! I’m not sure, but I don’t think I have anything special installed on my desktop mac. However, following your suggestion, I tried with my other computer (a brand new laptop, I almost hadn’t installed anything yet) the following: — installing perlbrew and homebrew; — installing fresh new perl (5.24.0); — installing pkg-config, pango, cairo, glib, gtk+ via homebrew; — installing Glib via cpanm (without sudo); — installing Gtk2 via cpanm (idem). Glib build was successful this time, but not Gtk2… Am I missing something? Attached is the build.log for Gtk2. Once again, thanks a lot if you can help! Benjamin
Download build.log
application/octet-stream 60.1k

Message body not shown because it is not plain text.

On Sat Oct 01 12:29:06 2016, jenbamin@free.fr wrote: Show quoted text
> Glib build was successful this time, but not Gtk2… Am I missing > something? Attached is the build.log for Gtk2. > Once again, thanks a lot if you can help!
Hi. Can you please post this issue to the gtk2-perl mailing list [1], and/or open a separate ticket in the Gtk2 RT queue? I'm going to close this ticket, since your original Glib problem has been solved. Thanks, Brian [1] https://mail.gnome.org/mailman/listinfo/gtk-perl-list