Hi

I would like to run a bot on my OpenWrt-device where I do not have a full perl-installation (there is no working working CPAN-client).
I have copied over all pure-perl modules I need but for the xs-modules I had hoped that I could make do with what I can get via package-manager.

Alas there is one vital ingredient missing, and that is Net::SSLeay that is not available (as an aside - ssl modules for python are packaged...).
So I installed gcc and tried to compile it on the box, but it fails like this:

$ make Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs mips-openwrt-linux-uclibc-gcc -c -D_REENTRANT -D_GNU_SOURCE -Os -pip +e -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour +-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -m +soft-float -I/data3/openwrt-cc-ar71xx/staging_dir/target-mips_34kc_uC +libc-0.9.33.2/usr/include -I/data3/openwrt-cc-ar71xx/staging_dir/targ +et-mips_34kc_uClibc-0.9.33.2/include -I/data3/openwrt-cc-ar71xx/stagi +ng_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include + -I/data3/openwrt-cc-ar71xx/staging_dir/toolchain-mips_34kc_gcc-4.8-l +inaro_uClibc-0.9.33.2/include -O2 -DVERSION=\"1.84\" -DXS_VERSION=\ +"1.84\" -fPIC "-I/usr/lib/perl5/5.20/CORE" SSLeay.c SSLeay.xs:140:20: fatal error: EXTERN.h: No such file or directory #include "EXTERN.h" ^ compilation terminated. make: *** [SSLeay.o] Error 1
Any ideas on how to proceed?

My system is an OpenWrt Chaos Calmer 15.05, the perl is a 5.20.2.

Many thanks!


In reply to EXTERN.h missing when compiling on OpenWrt by morgon

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.