Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the ExtUtils-ParseXS CPAN distribution.

Report information
The Basics
Id: 2229
Status: resolved
Worked: 15 min
Priority: 0/
Queue: ExtUtils-ParseXS

People
Owner: kwilliams [...] cpan.org
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.98_01
Fixed in: 2.01



Subject: xsubpp is not compatible with the original (-C++ is missing)
xsubpp is not compatible with the original (-C++ is missing) Please visit http://search.cpan.org/author/GSAR/perl-5.6.1/lib/ExtUtils/xsubpp and/or http://search.cpan.org/author/JHI/perl-5.8.0/lib/ExtUtils/xsubpp and make sure that xsubpp has all the same options. I was compiling wxPerl [http://wxperl.sf.net/] when I ran into this issue. Thanks
As far as I can tell, the xsubpp 'C++' flag doesn't actually do anything. It causes a variable ($cplusplus) to be set, and then that variable is never used again. Can you confirm that from a look at http://search.cpan.org/author/JHI/perl-5.8.0/lib/ExtUtils/xsubpp ? Since it looked like the code ##ifdef __cplusplus #extern "C" ##endif was getting added regardless of what the 'C++' flag was set to, I just removed the flag. -Ken
... Show quoted text
> was getting added regardless of what the 'C++' flag was set to, I just > removed the flag.
Yup, that appears to be the case, but xsubpp will die cause it doesn't recognize C++ as an option. I've done some sourcediving back to perl5.003_07, and it didn't do anything there either. It appears it is only there for some kind of backwards compatibility, and that smells like a good reason to put it back. So, your xsubpp currently dies if -C++ shows up (not good), and most folks using the option don't have a clue it's useless. You should ammend the documentation to discourage people from using the -C++ option ( and/or submit a patch to the same effect to p5p -- actually, a better idea might be to incorporate yer module into CORE ;)
Date: Sun, 16 Mar 2003 21:03:24 -0600
Subject: Re: [cpan #2229] xsubpp is not compatible with the original (-C++ is missing)
From: Ken Williams <ken [...] mathforum.org>
To: bug-ExtUtils-ParseXS [...] rt.cpan.org
RT-Send-Cc:
On Sunday, March 16, 2003, at 12:08 PM, Guest via RT wrote: Show quoted text
> Yup, that appears to be the case, > but xsubpp will die cause it doesn't > recognize C++ as an option.
Aha, indeed. I forgot that GetOpt would die in that situation. I'll add it back in so that it doesn't die. Show quoted text
> You should ammend the documentation to discourage people from using > the -C++ option > ( and/or submit a patch to the same effect to p5p -- > actually, a better idea might be to incorporate yer module into CORE > ;)
Yeah, I do want to get it back into core (this isn't a module I'm really eager to maintain!), but probably there's not time to get it properly tested for 5.8.1. I can write Hugo/p5p, maybe. -Ken
RT-Send-CC: crazyinsomniac [...] yahoo.com
This is now fixed in ExtUtils::ParseXS 2.01. -Ken