Help with libwinprthread-1.dll

[email protected] (RAPPAZ Francois) Tue, 21 Jun 2016 08:14:43 +0000
Newsgroups perl.win32.vanilla
Message-ID <[email protected]>
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=3D"-IC:/strawberry/c/include/freetype2 -IC:/msys64/min=
gw32/include/cairo -IC:/msys64/mingw32/include -I. -I./build" LIBS=3D"-Lc:/=
msys64/mingw32/lib" verbose

In the C:\msys64\mingw32\lib folder I have copied *.dll.a on *.a files to p=
revent undefined reference errors when running dmake, following someone's (=
Rob) suggestion on the mingw-users list.

dmake executes without error.

dmake test=20

fails with a msgbox "The procedure entry point pthread_setname_np could not=
 be located in the dynamic link library libwinprthread-1.dll"=20
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 "s=
trict subs" in use at t/00-loading.t line 18.
Bareword "Cairo::lib_version" not allowed while "strict subs" in use at t/0=
0-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-lo=
ading.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 c=
ompatible with the one in c:/msys64/mingw32/bin/ (there size differs 51 KB =
/ 65 KB) ?

Thanks for any help

Fran=E7ois

Perl -V says
Summary of my perl5 (revision 5 version 24 subversion 0) configuration:
  =20
  Platform:
    osname=3DMSWin32, osvers=3D6.3, archname=3DMSWin32-x86-multi-thread-64i=
nt
    uname=3D'Win32 strawberry-perl 5.24.0.1 #1 Tue May 10 17:10:11 2016 i38=
6'
    config_args=3D'undef'
    hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Dundef
    useithreads=3Ddefine, usemultiplicity=3Ddefine
    use64bitint=3Ddefine, use64bitall=3Dundef, uselongdouble=3Dundef
    usemymalloc=3Dn, bincompat5005=3Dundef
  Compiler:
    cc=3D'gcc', ccflags =3D' -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DPERL=
_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bit=
fields',
    optimize=3D'-s -O2',
    cppflags=3D'-DWIN32'
    ccversion=3D'', gccversion=3D'4.9.2', gccosandvers=3D''
    intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D123=
45678, doublekind=3D3
    d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=
=3D12, longdblkind=3D3
    ivtype=3D'long long', ivsize=3D8, nvtype=3D'double', nvsize=3D8, Off_t=
=3D'long long', lseeksize=3D8
    alignbytes=3D8, prototype=3Ddefine
  Linker and Libraries:
    ld=3D'g++', ldflags =3D'-s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1=
\c\lib"'
    libpth=3DC:\STRAWB~1\c\lib C:\STRAWB~1\c\i686-w64-mingw32\lib C:\STRAWB=
~1\c\lib\gcc\i686-w64-mingw32\4.9.2
    libs=3D-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -la=
dvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwin=
mm -lversion -lodbc32 -lodbccp32 -lcomctl32
    perllibs=3D-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32=
 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -=
lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    libc=3D, so=3Ddll, useshrplib=3Dtrue, libperl=3Dlibperl524.a
    gnulibc_version=3D''
  Dynamic Linking:
    dlsrc=3Ddl_win32.xs, dlext=3Dxs.dll, d_dlsymun=3Dundef, ccdlflags=3D' '
    cccdlflags=3D' ', lddlflags=3D'-mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -=
L"C:\STRAWB~1\c\lib"'


Characteristics of this binary (from libperl):=20
  Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
                        PERLIO_LAYERS PERL_COPY_ON_WRITE
                        PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_INT
                        USE_ITHREADS USE_LARGE_FILES USE_LOCALE
                        USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
                        USE_PERL_ATOF
  Built under MSWin32
  Compiled at May 10 2016 17:20:50
  %ENV:
    PERL5LIB=3D"U:\docs\perl\lib"
    PERL_CPANM_HOME=3D"C:\Users\rappazf\AppData\Local\Perl\.cpanm"
    PERL_JSON_BACKEND=3D"JSON::XS"
    PERL_YAML_BACKEND=3D"YAML"
  @INC:
    U:\docs\perl\lib
    C:/strawberry/perl/site/lib
    C:/strawberry/perl/vendor/lib
    C:/strawberry/perl/lib
    .=20