(Added wget operation to download patch) |
(Changed cross compiler to arm-linux-gnueabi-, upgraded to flex-2.5.39) |
||
Line 7: | Line 7: | ||
<PRE> | <PRE> | ||
− | http:// | + | wget http://sourceforge.net/projects/flex/files/flex-2.5.39.tar.bz2 |
− | tar -xjf flex-2.5. | + | tar -xjf flex-2.5.39.tar.bz2 |
− | cd flex-2.5. | + | cd flex-2.5.39/ |
− | ./configure --host=arm | + | ./configure --host=arm-linux-gnueabi --prefix=/home/temp/DHCPv6 |
make | make | ||
make install | make install |
Flex is a dependency for Wide-DHCPv6.
Download flex and cross compile for ARM assuming your ARM cross compiler is located at /opt/arm-2011.09/
wget http://sourceforge.net/projects/flex/files/flex-2.5.39.tar.bz2 tar -xjf flex-2.5.39.tar.bz2 cd flex-2.5.39/ ./configure --host=arm-linux-gnueabi --prefix=/home/temp/DHCPv6 make make install
Wide-DHCPv6 has not been updated for some time and uses structures no longer avaliable in glibc without the use of the #define _GNU_SOURCE
Instead, we patch it with a patch developed by Jeremie Corbier
wget http://downloads.sourceforge.net/project/wide-dhcpv6/wide-dhcpv6/wide-dhcpv6-20080615/wide-dhcpv6-20080615.tar.gz wget http://wiki.beyondlogic.org/patches/wide-dhcpv6/0004-GNU-libc6-fixes.patch tar -xzf wide-dhcpv6-20080615.tar.gz cd wide-dhcpv6-20080615/ patch -p1 < ../0004-GNU-libc6-fixes.patch ./configure --prefix=/home/temp/wide-dhcp --host=arm-none-linux-gnueabi --with-localdbdir=/tmp ac_cv_func_setpgrp_void=yes make