in reply to Re^12: gmake error on Glib compile
in thread gmake error on Glib compile

Getting it to build is good news.

If you can isolate the differences between pkg-config versions then it's worth logging an issue with PkgConfog.

Replies are listed 'Best First'.
Re^14: gmake error on Glib compile
by syphilis (Archbishop) on Aug 26, 2023 at 01:09 UTC
    If you can isolate the differences between pkg-config versions then it's worth logging an issue with PkgConfig

    Yes, I'll try to reach an understanding of that and file an issue.

    It would also be nice to not have to rename the Gtk static and import libs.
    UPDATE:One way is to edit the Libs entry in the relevant pc file.
    For example, in D:\msys64\mingw64\lib\pkgconfig\glib-2.0.pc change the entry:
    Libs: -L${libdir} -lglib-2.0 -lintl to Libs: -L${libdir} -lglib-2.0.dll -lintl.dll
    That's probably less tedious than renaming the libraries, but it's still tedious :-(

    And it would be good to not have to edit any of the generated Makefiles.
    UPDATE: This is achieved by downgrading ExtUtils-Depends-0.8001 to ExtUtils-Depends-0.8000.

    Finally, I'd like to see the G-I-O-0.050 test suite skip all of the tests as it should. (I actually managed to get that to happen a coupla nights back with my own build of perl-5.38.0 ... but haven't since been able to reproduce that "success".)
    UPDATE: This is discussed at https://www.perlmonks.org/?node_id=11154072 and addressed by the patch at https://rt.cpan.org/Ticket/Display.html?id=149570

    Unfortunately, there's a lot of opacity to get through when dealing with each of those issues ... but I'll plug away at it, at least util I get sick of it ;-)

    Cheers,
    Rob

      Hi sorry but i have been a way for a while and came back to this today. Good news is GLIB now installed, but getting similar undefined reference to in Cairo now even though i have renamed the dlls etc.

      C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: C:\msys64\mingw64\lib\libcairo.a(win32_c +airo-win32-printing-surface.c.obj):(.text+0x3fbc): more undefined ref +erences to `__stack_chk_fail' follow collect2.exe: error: ld returned 1 exit status gmake: *** [Makefile:522: blib\arch\auto\Cairo\Cairo.xs.dll] Error 1

      Thanks Mike

        ... but getting similar undefined reference to in Cairo now even though i have renamed the dlls etc.

        What does the EXTRALIBS entry in the generated Makefile specify ?
        Also, what does pkg-config --version output ?

        UPDATE: That missing symbol is resolved by the static library libfontconfig.a.
        But the Cairo build shouldn't need to pull in that library ... so it's a bit weird.
        Hopefully the EXTRALIBS spec will make things a bit clearer.

        Cheers,
        Rob