Skip Menu |

This queue is for tickets about the Module-Build-WithXSpp CPAN distribution.

Report information
The Basics
Id: 64240
Status: open
Priority: 0/
Queue: Module-Build-WithXSpp

People
Owner: Nobody in particular
Requestors: shmuelfomberg [...] gmail.com
Cc:
AdminCc:

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



While trying to create a module using this module, I got the following error: Multiple definition of ctype 'Animal *' in TYPEMAP section at C:/strawberry/perl/site/lib/Module/Build/WithXSpp.pm line 267 Well, in this case, I don't really care where in your code this error is reported. I care for where in my files the error is. Thanks. Shmuel Fomberg.
Subject: Indeed, it's hard to debug
Hi Shmuel, I've added a sort of generic title to the ticket since there's quite a few things about the module that make debugging a bit harder than it should be and bumped the severity a bit. It's clearly an important issue. I'll add it to the ever growing todo list to take a look. Best regards, Steffen
I've investigated this specific problem a bit, and it seen that this line: __PACKAGE__->add_property( 'extra_xs_dirs' => [qw(. xs XS xsp XSP)] ); causes the find_map_files function to return duplicate files: one 'xsp\\mytype.map' and one 'XSP\\mytype.map'. this is on Windows, so both XSP and xsp point to the same folder. Is it possible to overcome this?
On Mon Dec 27 17:21:44 2010, SEMUELF wrote: Show quoted text
> I've investigated this specific problem a bit, and it seen that this line: > __PACKAGE__->add_property( 'extra_xs_dirs' => [qw(. xs XS xsp > XSP)] ); > > causes the find_map_files function to return duplicate files: one > 'xsp\\mytype.map' and one 'XSP\\mytype.map'. > this is on Windows, so both XSP and xsp point to the same folder. > > Is it possible to overcome this?
Thanks for diagnosing this! I just committed a very sad workaround (disambiguate based on content) to github. Can you try the current version from https://github.com/tsee/module-build-withxspp and let me know if that fixes you problem? Best regards, Steffen
thanks Steffen, this version works. see you in the next bug... (hehe) Shmuel.
On Wed Dec 29 17:30:10 2010, SEMUELF wrote: Show quoted text
> thanks Steffen, this version works. > see you in the next bug... (hehe)
Hi Shmuel, I'll keep the bug report open despite the workaround for your particular issue. It is still the case that XS++ based modules can be hard to debug when it comes to typemap issues. Cheers, Steffen