in reply to EXTERN.h missing when compiling on OpenWrt
Perhaps a better choice would be to cross-compile the required package on a desktop machine? It might be harder to pass paths to proper headers (and, perhaps, library rpaths), but once you get it running, you would be able to compile anything you want, not subject to any limitations of the development environment on the router itself.
In Section
Seekers of Perl Wisdom