Skip Menu |

This queue is for tickets about the Config-AutoConf CPAN distribution.

Report information
The Basics
Id: 131735
Status: open
Priority: 0/
Queue: Config-AutoConf

People
Owner: Nobody in particular
Requestors: jkahrman [...] mathworks.com
Cc:
AdminCc:

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



Subject: check_link_perlapi doesn't work properly with Visual Studio
Config::AutoConf->check_link_perlapi constructs default linker arguments from data in %Config: -L$installarchlib\CORE -lperl530.lib ... etc However this is the ld syntax. The MSVC linker takes libraries as arguments (no '-l' option) and the option to add library paths is /LIBPATH:dir https://docs.microsoft.com/en-us/cpp/build/reference/linking?view=vs-2015 https://docs.microsoft.com/en-us/cpp/build/reference/libpath-additional-libpath?view=vs-2015
Please collect me from the very beginning: You're using a perl configured and built using MSys32 (gcc), e.g. Strawberry Perl. And try to compile something else using MSVC? Do I understand that correctly?
On Tue Sep 29 04:31:08 2020, REHSACK wrote: Show quoted text
> Please collect me from the very beginning: > > You're using a perl configured and built using MSys32 (gcc), e.g. > Strawberry Perl. And try to compile something else using MSVC? Do I > understand that correctly?
No, we've built Perl from source using Visual Studio and the Config-AutoConf/t/03.link.t test fails when installing Config-AutoConf
Okay, thanks for clarification. Since I currently have no reasonable access to any Windows-Machine, it might take some time to dig into it.
On Tue Sep 29 11:29:39 2020, jkahrman@mathworks.com wrote: Show quoted text
> On Tue Sep 29 04:31:08 2020, REHSACK wrote:
> > Please collect me from the very beginning: > > > > You're using a perl configured and built using MSys32 (gcc), e.g. > > Strawberry Perl. And try to compile something else using MSVC? Do I > > understand that correctly?
> > No, we've built Perl from source using Visual Studio and the Config- > AutoConf/t/03.link.t test fails when installing Config-AutoConf
Sorry, I don't remember why I phrased this report this way, instead of just mentioning the failing test.
On Tue Sep 29 11:32:37 2020, jkahrman@mathworks.com wrote: Show quoted text
> On Tue Sep 29 11:29:39 2020, jkahrman@mathworks.com wrote:
> > On Tue Sep 29 04:31:08 2020, REHSACK wrote:
> > > Please collect me from the very beginning: > > > > > > You're using a perl configured and built using MSys32 (gcc), e.g. > > > Strawberry Perl. And try to compile something else using MSVC? Do I > > > understand that correctly?
> > > > No, we've built Perl from source using Visual Studio and the Config- > > AutoConf/t/03.link.t test fails when installing Config-AutoConf
> > Sorry, I don't remember why I phrased this report this way, instead of > just mentioning the failing test.
I would have asked the same question then, anyway :) It's important to know all the facts and I know especially from AIX users they use xlc built perl and want gcc build modules :) Cheers