in reply to Re^7: EXTERN.h missing when compiling on OpenWrt
in thread EXTERN.h missing when compiling on OpenWrt

And there is a perlbase-devel package available, but it does not contain an EXTERN.h

Going by your original post, EXTERN.h (and a whole lot of other headers) should be in /usr/lib/perl5/5.20/CORE.
I envisage that all of those headers are missing, and that the error signifies that EXTERN.h was the first required header that couldn't be located.
EXTERN.h is, of course, the first header that SSLeay.xs tries to load.

I don't suppose there's a perlbase-core (or similar name) package available ?


Cheers,
Rob
  • Comment on Re^8: EXTERN.h missing when compiling on OpenWrt

Replies are listed 'Best First'.
Re^9: EXTERN.h missing when compiling on OpenWrt
by marto (Cardinal) on Dec 12, 2018 at 12:55 UTC
      Thanks for all your effort.

      As for the tutorial you mention, it seems that it is not quite complete and some things seem to be just a little bit different on my system.

      E.g. I do not need to build make, but I need to install perlbase-dumpvalue to make cpanm work.

      But I can use cpanm like this now:

      curl -L https://cpanmin.us | perl - -M https://cpan.org -n <module>
      Again I need to use cpan.org and not cpan.metacpan.org as in the tutorial, as otherwise the modules are not found.

      But of course when I try this to install Net::SSLeay it fails becuase of the missing EXTERN.h.

      I is totally unclear to me how the author of this tutorial who initially also had the problem of a misssing EXTERN.h managed to make this problem go away.

      This is magic that I cannot reproduce.