Skip Menu |

This queue is for tickets about the Glib-Object-Introspection CPAN distribution.

Report information
The Basics
Id: 77341
Status: resolved
Priority: 0/
Queue: Glib-Object-Introspection

People
Owner: Nobody in particular
Requestors: XAOC [...] cpan.org
Cc:
AdminCc:

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



Subject: Test libraries don't compile in GIO 0.009
When running 'make test' prior to the release, I noticed that most of the tests were being skipped. Uncommenting the output redirects to /dev/null in Makefile.PL gets me: [Glib-Object-Introspection-0.009]$ perl Makefile.PL Trying to build test libraries... /opt/local/share/gobject-introspection-1.0/tests/regress.c: In function ‘regress_test_closure_variant’: /opt/local/share/gobject-introspection-1.0/tests/regress.c:232: warning: passing argument 2 of ‘g_value_set_variant’ discards qualifiers from pointer target type /opt/local/share/gobject-introspection-1.0/tests/regress.c: In function ‘regress_test_array_fixed_out_objects’: /opt/local/share/gobject-introspection-1.0/tests/regress.c:2378: warning: initialization from incompatible pointer type ld: unknown option: --no-as-needed collect2: ld returned 1 exit status not OK Writing Makefile for Glib::Object::Introspection Writing MYMETA.yml I played with the first compile statement in Makefile.PL in order to try to get the test libraries to compile, but I just ended up generating more errors. OS X: 10.7.4 (x86_64 Intel) Perl: This is perl 5, version 14, subversion 2 (v5.14.2) built for darwin-thread-multi-2level Glib: 1.242 GIO: 0.009 from the same tarball I uploaded to CPAN gobject-introspection: 1.30.0_0
On Mon May 21 17:51:08 2012, XAOC wrote: Show quoted text
> ld: unknown option: --no-as-needed > collect2: ld returned 1 exit status
I added this linker flag to fix a problem that I had ever since Ubuntu switched to using --as-needed by default. But as I know understand, my fix only masked the real problem: the linker flags where in an incorrect position in the command invocation. Should be fixed in git now: <http://git.gnome.org/browse/perl-Glib-Object-Introspection/commit/?id=a089780f26d3b90b9345f1ab9ae76a53acf26ce5>.