Re: Windows 7 64-bit compile error for Glib.pm





On Mon, Jul 18, 2011 at 9:22 PM, Terrence Brannon <schemelab gmail com> wrote:


On Mon, Jul 18, 2011 at 8:58 PM, Brian Manning <elspicyjack gmail com> wrote:
On Mon, Jul 18, 2011 at 4:15 PM, Terrence Brannon <schemelab gmail com> wrote:
> I installed the gtk+ windows all-in-one bundle version 2.22:
> http://www.gtk.org/download/win64.php
> and set it up successfully. However, the command `cpan Glib` on Strawberry
> Perl 5.10 yields this error:
[snip]
> Note (probably harmless): No library found for -lgobject-2.0
> Note (probably harmless): No library found for -lgthread-2.0
> Note (probably harmless): No library found for -lglib-2.0
> Note (probably harmless): No library found for -lintl

I'm going to take a guess here and say that the path to the GTK
libraries is not in your %PATH% environment variable.  Can you please
confirm?


It wasnt that. It's that they need to be renamed. Running this script:

Forgot to mention the script that I had to run on the unpack of the all-in-one gtk+ download:
#!/usr/bin/perl

use File::Find;
use File::Copy;

find( \&wanted, '.' );

sub wanted {
    my $file = $_;
    if ( $file =~ /\.lib$/ ) {
        my $newfile = $file;
        $newfile =~ s/\.lib/\.a/g;
        warn "$file -> $newfile";
        copy( $file, $newfile );
    }
}

 

removes those errors. I already had the bin and lib of the unpacked all-in-one gtk+ download on the PATH

Now, it builds, but there are few test errors. But please note, I removed the 64-bit download and downloaded the 32-bit version and applied the library rename fix to that to get to the stage where I am now, with test errors:

C:\Users\thequietcenter\prg>cpan Glib
CPAN: CPAN::SQLite loaded ok (v0.199)
Database was generated on Mon, 18 Jul 2011 14:47:37 GMT
Running install for module 'Glib'
Running make for T/TS/TSCH/Glib-1.223.tar.gz
CPAN: Digest::SHA loaded ok (v5.61)
CPAN: Compress::Zlib loaded ok (v2.034)
Checksum for C:\strawberry\cpan\sources\authors\id\T\TS\TSCH\Glib-1.223.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.76)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
CPAN: CPAN::Meta loaded ok (v2.110930)
CPAN: Module::CoreList loaded ok (v2.46)

  CPAN.pm: Going to build T/TS/TSCH/Glib-1.223.tar.gz

Including generated API documentation...
Checking if your kit is complete...
Looks good
Writing Makefile for Glib
Could not read metadata file. Falling back to other methods to determine prerequisites
cp build/IFiles.pm blib\arch/Glib/Install/Files.pm
cp Subclass.pm blib\lib/Glib/Object/Subclass.pm
cp gperl.h blib\arch/Glib/Install/gperl.h
cp Glib.pm blib\lib/Glib.pm
cp GenPod.pm blib\lib/Glib/GenPod.pm
cp CodeGen.pm blib\lib/Glib/CodeGen.pm
cp gperl_marshal.h blib\arch/Glib/Install/gperl_marshal.h
cp devel.pod blib\lib/Glib/devel.pod
cp ParseXSDoc.pm blib\lib/Glib/ParseXSDoc.pm
cp C:\strawberry\cpan\build\Glib-1.223-9ldjvH\typemap blib\arch/Glib/Install/typemap
cp doctypes blib\arch/Glib/Install/doctypes
cp MakeHelper.pm blib\lib/Glib/MakeHelper.pm
[ XS Glib.xs ]
[ CC Glib.c ]
[ XS GError.xs ]
[ CC GError.c ]
[ XS GUtils.xs ]
[ CC GUtils.c ]
[ XS GLog.xs ]
[ CC GLog.c ]
[ XS GType.xs ]
[ CC GType.c ]
[ XS GBoxed.xs ]
[ CC GBoxed.c ]
[ XS GObject.xs ]
[ CC GObject.c ]
[ XS GValue.xs ]
[ CC GValue.c ]
[ XS GClosure.xs ]
[ CC GClosure.c ]
[ XS GSignal.xs ]
[ CC GSignal.c ]
[ XS GMainLoop.xs ]
[ CC GMainLoop.c ]
GMainLoop.xs: In function `XS_Glib__IO_add_watch':
GMainLoop.xs:556: warning: passing arg 1 of `g_io_channel_win32_new_socket' makes integer from pointer without a cast
[ XS GIOChannel.xs ]
[ CC GIOChannel.c ]
[ XS GParamSpec.xs ]
[ CC GParamSpec.c ]
[ XS GKeyFile.xs ]
[ CC GKeyFile.c ]
[ XS GOption.xs ]
[ CC GOption.c ]
[ XS GBookmarkFile.xs ]
[ CC GBookmarkFile.c ]
[ CC gperl-gtypes.c ]
Running Mkbootstrap for Glib ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 Glib.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"Glib\", 'DLBASE' => 'Glib', 'DL_FUNCS' => { Glib=>[] }, 'FUNCLIST' => [q[SvGChar], q[SvGKeyFile], q[SvGParamFlags], q[SvGPar], q[SvGSignalFlags], q[_gperl_call_XS], q[gperl_alloc_temp], q[gperl_argv_free], q[gperl_argv_new], q[gperl_argv_update], q[gperl_boxed_package_from_typeperl_boxed_type_from_package], q[gperl_callback_destroy], q[gperl_callback_invoke], q[gperl_callback_new], q[gperl_closure_new], q[gperl_closure_new_with_ller], q[gperl_convert_back_enum], q[gperl_convert_back_enum_pass_unknown], q[gperl_convert_back_flags], q[gperl_convert_enum], q[gperl_convert_flag_one],rl_convert_flags], q[gperl_croak_gerror], q[gperl_default_boxed_wrapper_class], q[gperl_filename_from_sv], q[gperl_format_variable_for_output], q[gperl_futal_package_from_type], q[gperl_fundamental_type_from_package], q[gperl_gerror_from_sv], q[gperl_get_boxed_check], q[gperl_get_object], q[gperl_get_object], q[gperl_handle_logs_for], q[gperl_install_exception_handler], q[gperl_new_boxed], q[gperl_new_boxed_copy], q[gperl_new_object], q[gperl_object_check_ty[gperl_object_package_from_type], q[gperl_object_set_no_warn_unreg_subclass], q[gperl_object_stash_from_type], q[gperl_object_type_from_package], q[gperl__context_get_type], q[gperl_option_group_get_type], q[gperl_package_from_type], q[gperl_param_spec_package_from_type], q[gperl_param_spec_type_from_packaggperl_prepend_isa], q[gperl_register_boxed], q[gperl_register_boxed_alias], q[gperl_register_error_domain], q[gperl_register_fundamental], q[gperl_registeamental_alias], q[gperl_register_object], q[gperl_register_object_alias], q[gperl_register_param_spec], q[gperl_register_sink_func], q[gperl_remove_exceptndler], q[gperl_run_exception_handlers], q[gperl_set_isa], q[gperl_signal_connect], q[gperl_signal_set_marshaller_for], q[gperl_str_eq], q[gperl_str_hash]erl_sv_copy], q[gperl_sv_is_defined], q[gperl_sv_free], q[gperl_sv_from_filename], q[gperl_sv_from_gerror], q[gperl_sv_from_value], q[gperl_sv_get_type],
l_try_convert_enum], q[gperl_try_convert_flag], q[gperl_type_class], q[gperl_type_from_package], q[gperl_value_from_sv], q[newSVGChar], q[newSVGParamFlagsewSVGParamSpec], q[newSVGSignalFlags], q[newSVGSignalInvocationHint], q[newSVGSignalQuery]], 'IMPORTS' => {  }, 'DL_VARS' => []);"
dlltool --def Glib.def --output-exp dll.exp
[ LD blib\arch\auto\Glib\Glib.dll ]
dlltool --def Glib.def --base-file dll.base --output-exp dll.exp
[ LD blib\arch\auto\Glib\Glib.dll ]
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 755 blib\arch\auto\Glib\Glib.dll
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "cp" -- Glib.bs blib\arch\auto\Glib\Glib.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 blib\arch\auto\Glib\Glib.bs
dlltool --def Glib.def --output-lib blib\arch\auto\Glib\Glib.a --dllname Glib.dll blib\arch\auto\Glib\Glib.dll
  TSCH/Glib-1.223.tar.gz
  C:\strawberry\c\bin\dmake.EXE -- OK
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/1.t ...................... ok
t/2.t ...................... ok
t/3.t ...................... ok
t/4.t ...................... ok
t/5.t ...................... ok
t/6.t ...................... ok
t/64bit.t ..................
t/64bit.t .................. 1/12 #   Failed test at t/64bit.t line 25.
#          got: '1'
#     expected: '-9223372036854775807'

#   Failed test at t/64bit.t line 26.
#          got: '-1'
#     expected: '9223372036854775807'

#   Failed test at t/64bit.t line 35.
#          got: '4294967295'
#     expected: '18446744073709551615'

#   Failed test at t/64bit.t line 46.
#          got: '1'
#     expected: '-9223372036854775807'

#   Failed test at t/64bit.t line 48.
#          got: '-1'
#     expected: '9223372036854775807'

#   Failed test at t/64bit.t line 53.
#          got: '4294967295'
#     expected: '18446744073709551615'
# Looks like you failed 6 tests of 12.
t/64bit.t .................. Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/12 subtests
t/7.t ...................... ok
t/8.t ...................... ok
t/9.t ...................... ok
t/a.t ...................... ok
t/b.t ...................... ok
t/c.t ...................... ok
t/d.t ...................... ok
t/e.t ...................... 76/243
#   Failed test at t/e.t line 229.
#          got: '1'
#     expected: '2'

#   Failed test 'value 30 value unchanged'
#   at t/e.t line 231.
#          got: undef
#     expected: '30'

#   Failed test 'clamp 70 down to be in range'
#   at t/e.t line 235.
#          got: undef
#     expected: '50'

#   Failed test 'clamp -70 down to be in range'
#   at t/e.t line 238.
#          got: undef
#     expected: '20'
# Looks like you failed 4 tests of 243.
t/e.t ...................... Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/243 subtests
t/f.t ...................... ok
t/filename.t ............... ok
t/g.t ...................... 1/33
#   Failed test at t/g.t line 155.
#          got: undef
#     expected: 'C:\strawberry\cpan\build\Glib-1.223-9ldjvH\tmp.ini'
# Looks like you failed 1 test of 33.
t/g.t ...................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/33 subtests
t/h.t ...................... ok
t/lazy_loader.t ............ ok
t/make_helper.t ............ ok
t/options.t ................ ok
t/signal_emission_hooks.t .. ok
t/signal_marshal.t ......... ok
t/signal_query.t ........... ok
t/tied_definedness.t ....... ok

Test Summary Report
-------------------
t/64bit.t                (Wstat: 1536 Tests: 12 Failed: 6)
  Failed tests:  2-3, 7, 9-10, 12
  Non-zero exit status: 6
t/e.t                    (Wstat: 1024 Tests: 243 Failed: 4)
  Failed tests:  234, 236, 238, 240
  Non-zero exit status: 4
t/g.t                    (Wstat: 256 Tests: 33 Failed: 1)
  Failed test:  32
  Non-zero exit status: 1
Files=26, Tests=828,  8 wallclock secs ( 0.51 usr +  0.28 sys =  0.80 CPU)
Result: FAIL
Failed 3/26 test programs. 11/828 subtests failed.
dmake.EXE:  Error code 255, while making 'test_dynamic'
  TSCH/Glib-1.223.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports TSCH/Glib-1.223.tar.gz
Running make install
  make test had returned bad status, won't install without force

C:\Users\thequietcenter\prg>
 
Thanks,

Brian

Hint: you can run pkg-config to verify that everything is set up
correctly to compile Gtk2/Glib/Pango/Cairo:

SOBAKA# pkg-config --modversion gtk+-2.0
2.16.0




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]