New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
h2xs based on .h and .c files at windows #14828
Comments
From tal.segev@gmail.comExtension based on .h & .c files as described at [1], does not work on The bug accure on several windows system (all windows 7) 64bit and 32bit, I've added a test case at [3]
Regards, Linkedin http://goo.gl/aVYd9 | Dropbox http://goo.gl/mfGFt Perl Info
|
From @jkeenanIt's going to be difficult for people to evaluate this bug report because the source code is at [3]. Attached, please find my attempt at bunzipping and untarring that URL. If anyone can translate this into a more p5p-friendly bug report, please do so. Thank you very much. -- |
From @jkeenantest.bat
|
From @jkeenantest.sh
|
From @jkeenan# Before 'make install' is performed this script should be runnable with ######################### # change 'tests => 1' to 'tests => last_test_to_print'; use strict; use Test::More tests => 3; BEGIN { use_ok('tst') }; # Insert your test code below, the Test::More module is use()ed here so read can_ok('tst', qw(tstAdd)); |
From @jkeenan#include "tst123.h"
int tstAdd(int a,int b) {
return a+b;
} |
From @jkeenantst123.h#ifndef __tst123_H_
#define __tst123_H_
int tstAdd(int,int);
#endif |
The RT System itself - Status changed from 'new' to 'open' |
From @bulk88On VC Perl (note the OP is using GCC Perl), there is something wrong with Perl core. C:\sources\h2xs_test>call h2xs -Oxan tst tst123.h Overwriting existing tst!!! C:\sources\h2xs_test> What is "cppstdin" script/app? INSTALL says =head2 Installed files If you want to see exactly what will happen without installing ./perl installperl -n make install will install the following: binaries perl, scripts cppstdin This is used by the deprecated switch perl -P, What is exactly is capital -P? It was removed in 4c84d7f Where is the cppstdin script? The lines come from the canned config 356231b:/win32/config.vc#l72 -- |
From @bulk88On strawberry perl, the bug is the following from C::Scan sub new { (open($sym, $cmd) or die "Cannot open pipe from `$cmd': $!") If I change my $cmd = "echo '\#include \"$filename\"' | $Cpp->{cppstdin} $Defines $addincludes $Cpp->{cppflags} $Cpp->{cppminus} |"; to my $cmd = "echo \#include \"$filename\" | $Cpp->{cppstdin} $Defines $addincludes $Cpp->{cppflags} $Cpp->{cppminus} |"; removing the single quotes, tst.xs looks correct by defining xsub tstAdd #define PERL_NO_GET_CONTEXT #include "ppport.h" #include <tst123.h> #include "const-c.inc" MODULE = tst PACKAGE = tst INCLUDE: const-xs.inc int The bug was already reported at https://rt.cpan.org/Public/Bug/Display.html?id=54863 but C::Scan was last released in 2001, so nobody cares about h2xs or C::Scan anymore. -- |
From @hvds"bulk88 via RT" <perlbug-followup@perl.org> wrote: I'm not sure if anyone thinks they're the maintainer - I did the last If anyone is willing to maintain it, I for one would have no objection. Hugo |
This appears to be a bug report about a CPAN module. I'm closing this case as a result. |
Migrated from rt.perl.org#125720 (status was 'open')
Searchable as RT125720$
The text was updated successfully, but these errors were encountered: