Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 121219
Status: open
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: simon.reinhardt [...] stud.uni-regensburg.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Not possible to link with microsoft import libraries since 5.22
Date: Mon, 17 Apr 2017 17:58:01 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Simon Reinhardt <simon.reinhardt [...] stud.uni-regensburg.de>
If I link XS code with a windows import library with SP 5.22 or 5.24, I get the following error: g++ Zhinst.def -o blib\arch\auto\Lab\Zhinst\Zhinst.xs.dll -mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib" Zhinst.o "C:\STRAWB~1\perl\lib\CORE\libperl524.a" "C:\Program Files\Zurich Instruments\LabOne\API\C\lib\ziAPI-win32.lib" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libmoldname.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libkernel32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libuser32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libgdi32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libwinspool.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libcomdlg32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libadvapi32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libshell32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libole32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\liboleaut32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libnetapi32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libuuid.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libws2_32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libmpr.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libwinmm.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libversion.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libodbc32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libodbccp32.a" "C:\STRAWB~1\c\i686-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-image-base C:\Program Files\Zurich Instruments\LabOne\API\C\lib\ziAPI-win32.lib: error adding symbols: File format not recognized collect2.exe: error: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Lab\Zhinst\Zhinst.xs.dll' It's working fine for 5.18 and 5.20: https://ci.appveyor.com/project/amba/lab-zhinst/build/1.0.3 The reason seems to be bug 17910 in binutils 2.25: https://sourceware.org/bugzilla/show_bug.cgi?id=17910 Moreover, If I use a 64bit version of perl, no version of SP seems to work. Maybe this is related to bug 16598 in the binutils: https://sourceware.org/bugzilla/show_bug.cgi?id=16598 This should all be fixed in recent (>= 2.26) binutils releases.
Download signature.asc
application/pgp-signature 819b

Message body not shown because it is not plain text.

Could you please check the latest strawberry perll 5.26.0.1?
Subject: Re: [rt.cpan.org #121219] Not possible to link with microsoft import libraries since 5.22
Date: Mon, 3 Jul 2017 15:03:19 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Simon Reinhardt <simon.reinhardt [...] stud.uni-regensburg.de>
Subject: Re: [rt.cpan.org #121219] Not possible to link with microsoft import libraries since 5.22
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Simon Reinhardt <simon.reinhardt [...] stud.uni-regensburg.de>
With 5.26.0.1 (32bit) it compiles. But on loading the XS module I get this error: Zhinst.c: loadable library and perl binaries are mismatched (got handshake key 0ad80080, needed 0b000080) Full build log is here: https://ci.appveyor.com/project/amba/lab-zhinst-o0emu/build/1.0.26/job/02ejk4nujul5c4ja Am 03.07.2017 um 13:20 schrieb kmx via RT: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=121219 > > > Could you please check the latest strawberry perll 5.26.0.1? >
Download signature.asc
application/pgp-signature 833b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #121219] Not possible to link with microsoft import libraries since 5.22
Date: Fri, 22 Mar 2019 13:34:44 +0100
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: Simon Reinhardt <simon.reinhardt [...] physik.uni-regensburg.de>
I did some more research. The problem with the handshake key was due to custom CCFLAGS in the Makefile.PL of my distribution: WriteMakefile( ... CCFLAGS => "-Wall", ... ); instead one should append to $Config{ccflags}: CCFLAGS => "$Config{ccflags} -Wall", Now it works with SP 5.28.1.1 and 5.26.3.1, both 32 and 64 bit :) Am 03.07.2017 um 13:20 schrieb kmx via RT: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=121219 > > > Could you please check the latest strawberry perll 5.26.0.1? >