Subject: | using Inline with => 'Event' fails to compile |
Date: | Wed, 14 Nov 2012 17:35:23 +0100 |
To: | bug-Inline [...] rt.cpan.org |
From: | Peter Smoczynski <peter.smoczynski [...] i-new.com> |
Hi!
I guess this one has -- indirectly -- sth to do with #67053 space in pwd..?
It's broken since version 0.49.
Version 0.48 works perfectly fine.
sorry!, for not being able to provide a patch.
thanx!, peter
Sun-A3 root 288/0 (~/peter/inline_fails_to_compile)# la
total 1
-rw-r--r-- 1 root root 529 Nov 14 17:05 compile_test_1.t
Sun-A3 root 289/0 (~/peter/inline_fails_to_compile)# cat compile_test_1.t
#!/opt/perl5.12.2.debug/bin/perl
use strict;
use warnings;
use Inline with => 'Event';
use Inline C => <<'EOC_EVDMP_EVENT_C';
void evdmp_event_c (pe_event * event)
{
char *classname = HvNAME(SvSTASH(SvRV(event->mysv)));
printf("evdmp_event_c()\ne type: %s\ne hits: %d\ne prio %d\n",
classname,
event->hits,
event->prio
);
if (strcmp(classname, (const char *) "Event::Event::Io") == 0)
{
printf("e got: %u\n", ((pe_ioevent *) event)->got);
}
}
EOC_EVDMP_EVENT_C
exit 0;
Sun-A3 root 290/0 (~/peter/inline_fails_to_compile)#
Sun-A3 root 290/0 (~/peter/inline_fails_to_compile)#
/opt/perl5.12.2.debug/bin/perl -c compile_test_1.t
/opt/perl5.12.2.debug/bin/perl
/opt/perl5.12.2.debug/lib/5.12.2/ExtUtils/xsubpp -typemap
"/opt/perl5.12.2.debug/lib/5.12.2/ExtUtils/typemap" -typemap
"/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event/typemap"
compile_test_1_t_a7b1.xs > compile_test_1_t_a7b1.xsc && mv
compile_test_1_t_a7b1.xsc compile_test_1_t_a7b1.c
gcc -c -I"/root/peter/inline_fails_to_compile" "-I
/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event"
-I/usr/local/include -I/usr/local/BerkeleyDB.4.5/include -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -g
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC
"-I/opt/perl5.12.2.debug/lib/5.12.2/i86pc-solaris/CORE"
compile_test_1_t_a7b1.c
compile_test_1_t_a7b1.xs:5:22: error: EventAPI.h: No such file or directory
compile_test_1_t_a7b1.xs:6: error: expected ')' before '*' token
compile_test_1_t_a7b1.c: In function 'XS_main_evdmp_event_c':
compile_test_1_t_a7b1.c:99: error: 'pe_event' undeclared (first use in
this function)
compile_test_1_t_a7b1.c:99: error: (Each undeclared identifier is
reported only once
compile_test_1_t_a7b1.c:99: error: for each function it appears in.)
compile_test_1_t_a7b1.c:99: error: 'event' undeclared (first use in this
function)
compile_test_1_t_a7b1.c:99: error: expected expression before ')' token
make: *** [compile_test_1_t_a7b1.o] Error 1
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
make > out.make 2>&1
The build directory was:
/root/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1
To debug the problem, cd to the build directory, and inspect the output
files.
at compile_test_1.t line 8
BEGIN failed--compilation aborted at compile_test_1.t line 25.
Sun-A3 root 291/2 (~/peter/inline_fails_to_compile)#
Sun-A3 root 291/2 (~/peter/inline_fails_to_compile)# cd
/root/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1
Sun-A3 root 292/0
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)#
gcc -c -I"/root/peter/inline_fails_to_compile" "-I
/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event"
-I/usr/local/include -I/usr/local/BerkeleyDB.4.5/include -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -g
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC
"-I/opt/perl5.12.2.debug/lib/5.12.2/i86pc-solaris/CORE"
compile_test_1_t_a7b1.c
compile_test_1_t_a7b1.xs:5:22: error: EventAPI.h: No such file or directory
compile_test_1_t_a7b1.xs:6: error: expected ')' before '*' token
compile_test_1_t_a7b1.c: In function 'XS_main_evdmp_event_c':
compile_test_1_t_a7b1.c:99: error: 'pe_event' undeclared (first use in
this function)
compile_test_1_t_a7b1.c:99: error: (Each undeclared identifier is
reported only once
compile_test_1_t_a7b1.c:99: error: for each function it appears in.)
compile_test_1_t_a7b1.c:99: error: 'event' undeclared (first use in this
function)
compile_test_1_t_a7b1.c:99: error: expected expression before ')' token
Sun-A3 root 293/1
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)#
Sun-A3 root 293/1
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)#
gcc -c -I"/root/peter/inline_fails_to_compile"
-I"/opt/perl5.12.2.debug/lib/site_perl/5.12.2/i86pc-solaris/Event"
-I/usr/local/include -I/usr/local/BerkeleyDB.4.5/include -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -g
-DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC
"-I/opt/perl5.12.2.debug/lib/5.12.2/i86pc-solaris/CORE"
compile_test_1_t_a7b1.c
Sun-A3 root 294/0
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)#
Sun-A3 root 295/0
(~/peter/inline_fails_to_compile/_Inline/build/compile_test_1_t_a7b1)#
less /opt/perl5.12.2.debug/lib/site_perl/5.12.2/Inline/C.pm
package Inline::C;
$Inline::C::VERSION = '0.51';
$Inline::C::VERSION = eval $Inline::C::VERSION;