Topic: Compiling package requiring perl support
I've been pulling my hair since a few days on this one.
I got a Netgear WDNR3700 flashed with backfire 10.03.1-rc4 (ar71xx).
It got a 680MHz CPU, 64MB RAM, 8MB flash extended with a 4GB memory stick.
Due to the powerful nature of this router I was deeply disappointed to find out that there are currently no versions of irssi (popular console irc client) compiled with perl for scriptsupport. Since the lack of scripts makes irssi 50% less fun/useful I decided to try and crosscompile irssi with perl.
After a lot of googling I found out that at least two other persons were unsuccesful in this attempt:
These are the steps I have taken: http://wiki.openwrt.org/doc/howto/build
First off, I'm currently using Ubuntu 10.10 x86_64 so I got the following packages to start off
# apt-get install build-essential asciidoc binutils bzip2 gawk gettext \
git libncurses5-dev libz-dev patch unzip zlib1g-dev ia32-libs \
# apt-get install subversion
Next, I checked out the backfire sources
# mkdir OpenWrt/
# cd OpenWrt/
# svn co svn://svn.openwrt.org/openwrt/branches/backfire
Next I added feeds (only src-svn packages svn://svn.openwrt.org/openwrt/packages)
# cat feeds.conf.default
src-svn packages svn://svn.openwrt.org/openwrt/packages
# ./scripts/feeds update -a
# ./scripts/feeds install -a
Next, I made the default config and a menuconfig
# make defconfig
# make menuconfig
I selected my target and selected irssi and everything under Languages -> Perl (except for microperl) as a module.
My .config: http://dl.dropbox.com/u/4480569/config
Afterwards I just executed a
Afterwards I edited the Makefile of irssi: feeds/packages/net/irssi/Makefile
and changed the with-perl flag
CONFIGURE_ARGS += \
The Makefile: http://dl.dropbox.com/u/4480569/Makefile
I then tried to recompile irssi:
# make package/irssi/clean V=99
# make package/irssi/compile V=99 > BUILDLOG 2>&1
# grep perl BUILDLOG
checking for perl... /usr/bin/perl
checking for working Perl support... error linking with perl libraries, building without Perl
config.status: creating src/perl/Makefile
config.status: creating src/perl/common/Makefile.PL
config.status: creating src/perl/irc/Makefile.PL
config.status: creating src/perl/ui/Makefile.PL
config.status: creating src/perl/textui/Makefile.PL
- Error linking with perl libraries: -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lcrypt: conftest.c:1: warning: -fstack-protector not supported for this target
conftest.c:1: warning: implicit declaration of function 'perl_alloc'
/media/ExHDD_Linux/OpenWrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mips-openwrt-linux-uclibc/4.3.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lperl
The build log: http://dl.dropbox.com/u/4480569/BUILDLOG
I did however compile every perl package available to me, but I guess that got no effect here.
$ ls -l bin/ar71xx/packages/ | grep perl | wc -l
Can someone please, please help me?
Except for those two persons I mentioned, there is also someone on IRC how would love an irssi+perl package and because the hardware of routers gets improved all the time such a package will grow in popularity.