morgon has asked for the wisdom of the Perl Monks concerning the following question:
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:
Any ideas on how to proceed?$ 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
My system is an OpenWrt Chaos Calmer 15.05, the perl is a 5.20.2.
Many thanks!
|
---|