I can't find pthread_setname_np in any of the pthread*.h
files in my Strawberry Perl Portable v52211 which suggests
that it is not supported by the included pthread support.

It is possible that there might be an updated mingw with
that function included. Another possibility is you could
port the usages of pthread_(set|get)_np to some other
implementation.
--Chris
On 6/21/2016 04:14, RAPPAZ Francois wrote:

Hi there
I'm trying to compile Cairo for perl (strawberry 5.24) on windows 7. I have
download the package Cairo using msys64.
From the CPAN/Build Cairo folder I have created 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
In the C:\msys64\mingw32\lib folder I have copied *.dll.a on *.a files to
prevent undefined reference errors when running dmake, following someone's
(Rob) suggestion on the mingw-users list.
dmake executes without error.
dmake test
fails with a msgbox "The procedure entry point pthread_setname_np could not be
located in the dynamic link library libwinprthread-1.dll"
and in the console:
t/00-loading.t ....
# Failed test at t/00-loading.t line 15.
t/00-loading.t .... 1/18 Bareword "Cairo::LIB_VERSION" not allowed while "strict
subs" in use at t/00-loading.t line 18.
Bareword "Cairo::lib_version" not allowed while "strict subs" in use at
t/00-loading.t line 22.
Bareword "Cairo::lib_version_string" not allowed while "strict subs" in use at
t/00-loading.t line 23.
Bareword "Cairo::version" not allowed while "strict subs" in use at
t/00-loading.t line 32.
Bareword "Cairo::version_string" not allowed while "strict subs" in use at
t/00-loading.t line 33.
Execution of t/00-loading.t aborted due to compilation errors.
t/00-loading.t .... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 17/18 subtests etc...
Is it that my libwinpthread-1.dll in my c:/strawberry/perl/bin is not the
compatible with the one in c:/msys64/mingw32/bin/ (there size differs 51 KB /
65 KB) ?
Thanks for any help
François
Perl -V says
Summary of my perl5 (revision 5 version 24 subversion 0) configuration: