This script below successfully compiles and then segfaults in runtime on
my Linux system (Perl 5.6, gcc version pgcc-2.91.66, Inline 0.30), I am
stumped:


#!/usr/bin/perl

use Inline C => 'DATA';

print "res: ", parse_it(), "\n";

__END__

__C__

int yyparse() {
    return 0;
}

int parse_it() {

    yyparse();
    return 0;
}


Here is the .xs file:

#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "INLINE.h"


int yyparse() {
    return 0;
}

int parse_it() {

    yyparse();
    return 0;
}


MODULE = main_C_parse_pl_4064175892851d3474af50142628c92a       PACKAGE =
main

PROTOTYPES: DISABLE

int
yyparse ()

int
parse_it ()



Vlad

Reply via email to