Web lists-archives.com

Re: [Mingw-users] Help with perl + pkg-config + msys2




My MakeMaker version is 7.16

I create the makefile with

perl Makefile.pl INC="-IC:/strawberry/c/include/freetype2 -IC:/msys64/mingw32/include/cairo -IC:/msys64/mingw32/include -I. -I./build" LIBS="-Lc:/msys64/mingw32/lib" verbose

Without the INC arg the header files are not found.

Part of the output from perl Makefile.pl is
+++++++++++++++++++++++++++++++
Using PERL=C:\strawberry\perl\bin\perl.exe
Potential libraries are '-L/mingw32/lib -lcairo -lfreetype -lmoldname -lkernel32
 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32
-lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl3
2':
-L/mingw32/lib ignored, directory does not exist
'-lcairo' not found as 'libcairo.a'
'-lcairo' not found as 'C:/STRAWB~1/c/lib\libcairo.a'
'-lcairo' not found as 'C:/STRAWB~1/c/i686-w64-mingw32/lib\libcairo.a'
'-lcairo' not found as 'C:/STRAWB~1/c/lib/gcc/i686-w64-mingw32/4.9.2\libcairo.a'
'-lcairo' not found as 'C:\STRAWB~1\perl\lib/CORE\libcairo.a'
'-lcairo' found as 'C:\msys64\mingw32\lib\libcairo.a'
+++++++++++++++++++++++++++++++

My C:\msys64\mingw32\lib folder has
libcairo.a (1463 KB)
libcairo.dll.a (260 KB)

Setting the LIBRARY_PATH does not removed the error
For example:
C:\msys64\mingw32\lib\libcairo.a(cairo-deflate-stream.o):(.text+0xbb): undefined reference to `deflateEnd'
C:\msys64\mingw32\lib\libcairo.a(cairo-deflate-stream.o):(.text+0x1d1): undefined reference to `deflateInit_'
collect2.exe: error: ld returned 1 exit status

I backed up  C:\msys64\mingw32\lib on C:\msys64\mingw32\lib_old and followed Rob suggestion in copying *.dll.a on *.a files. Now my lib folder has identical libcairo.a and libcairo.dll.a files of 260 kb.

Dmake does not gives any linking errors ...

but the test fails with a msgbox "The procedure entry point thread_setname_np could not be located in the dynamic link library libwinprthread-1.dll" and in the console:
BEGIN failed--compilation aborted at t/CairoPattern.t line 23. t/CairoPattern.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 48/48 subtests t/CairoRegion.t ... Can't load 'C:\strawberry\cpan\1466066656.5212\Cairo-1.106\b lib\arch/auto/Cairo/Cairo.xs.dll' for module Cairo: load_file:The specified procedure could not be found at C:/strawberry/perl/lib/DynaLoader.pm line 193.  at t/CairoRegion.t line 13. Compilation failed in require at t/CairoRegion.t line 13.

Thanks for bearing with me !

François

> -----Original Message-----
> From: sisyphus1@xxxxxxxxxxxxxxx [mailto:sisyphus1@xxxxxxxxxxxxxxx]
> Sent: vendredi, 17. juin 2016 05:48
> To: mingw-users@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [Mingw-users] Help with perl + pkg-config + msys2
> 
> -----Original Message-----
> From: sisyphus1@xxxxxxxxxxxxxxx
> Sent: Friday, June 17, 2016 1:15 PM
> To: mingw-users@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [Mingw-users] Help with perl + pkg-config + msys2
> 
> > (I don't think they do, but I haven't checked in a while.)
> 
> Just thought I should probably check that - and ExtUtils::MakeMaker
> version
> 7.1001 (which is probably the version that the OP has) does, in fact
> check for the existence of the .dll.a import library.
> So that piece of advice probably *was* irrelevant for the OP, after
> all.
> 
> Cheers,
> Rob
> 
> 
> 
> 
> 
> 
> 
> 
> -----------------------------------------------------------------------
> -------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic patterns at an interface-level. Reveals which users, apps, and
> protocols are consuming the most bandwidth. Provides multi-vendor
> support for NetFlow, J-Flow, sFlow and other flows. Make informed
> decisions using capacity planning reports.
> http://sdm.link/zohomanageengine
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@xxxxxxxxxxxxxxxxxxxxx
> 
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same.  Disregard for the list
> etiquette may cause your account to be moderated.
> 
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also: mailto:mingw-users-
> request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe