Wed Nov 14 18:05:43 2012: Request 81172 was acted upon.
Transaction: Correspondence added by SISYPHUS
Queue: Inline
Subject: using Inline with => 'Event' fails to compile
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=81172 >
On Wed Nov 14 11:35:40 2012, [email protected] wrote:
> #!/opt/perl5.12.2.debug/bin/perl
>
> use strict;
> use warnings;
>
> use Inline with => 'Event';
use Inline C => Config =>
BUILD_NOISY => 1;
> 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;
Could you insert the "BUILD_NOISY" config option (as per above), and
then run the script with Inline-0.48.
Then post the output, so that I can compare it with the output you've
posted for the failing build.
Where is EventAPI.h located ?
For a quick workaround, I think you could add the location of
EventAPI.h to the CPATH environment variable:
export CPATH=$CPATH:/wherever/it/is
(At least that's how it vwould be done on linux. I assume solaris is
the same.)
Cheers,
Rob