I am now looking into an option of explicitly compiling header perl.h directly into my extension library. But I am getting the error below.

My Error:

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/perl/5.18/CORE -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/home/losintikfos/git/testproj/env/include/python3.4m -c src/pymechanize.c -o build/temp.linux-x86_64-3.4/src/pymechanize.o -O0 -g3 -Wall -c -fmessage-length=0 -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.18/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.18/CORE
In file included from /usr/lib/perl/5.18/CORE/perl.h:2513:0,
                 from src/pymechanize.c:297:
/usr/lib/perl/5.18/CORE/handy.h:873:1: error: unknown type name ‘EXTCONST’
 EXTCONST U32 PL_charclass[];
 ^
/usr/lib/perl/5.18/CORE/handy.h:873:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PL_charclass’
 EXTCONST U32 PL_charclass[];
              ^
In file included from /usr/lib/perl/5.18/CORE/regexp.h:21:0,
                 from /usr/lib/perl/5.18/CORE/perl.h:3472,
                 from src/pymechanize.c:297:
/usr/lib/perl/5.18/CORE/utf8.h:100:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘unsigned’
 EXTCONST unsigned char PL_utf8skip[];
          ^
In file included from src/pymechanize.c:297:0:
/usr/lib/perl/5.18/CORE/perl.h:4254:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
 EXTCONST char PL_warn_uninit[]
          ^
/usr/lib/perl/5.18/CORE/perl.h:4256:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
 EXTCONST char PL_warn_uninit_sv[]
          ^
/usr/lib/perl/5.18/CORE/perl.h:4258:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
 EXTCONST char PL_warn_nosemi[]
          ^
/usr/lib/perl/5.18/CORE/perl.h:4260:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
 EXTCONST char PL_warn_reserved[]
          ^
/usr/lib/perl/5.18/CORE/perl.h:4262:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char

....
Any ideas monks.

In reply to Re^3: Issue: Encode.so: undefined symbol: PL_utf8skip by losintikfos
in thread Issue: Encode.so: undefined symbol: PL_utf8skip by losintikfos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.