On 19/01/12 10:10 AM, Jo-Philipp Wich wrote:
Hi.

Check whether you can execute
/home/ubuntu/8.09.2/staging_dir/host/bin/sed .

OpenWrt always builds its own sed since it also must work on OS X and
FreeBSD where no GNU sed is available by default.

Also make sure your environment is clean; no custom PATH, no
LD_LIBRARY_PATH, no PREFIX or similar variables.

Thanks Jow, I copy the offending lines from /home/ubuntu/8.09.2/build_dir/host/quilt-0.47/configure below. I can execute /home/ubuntu/8.09.2/staging_dir/host/bin/sed. What's weird is that when I execute it manually, it seems like it should pass the "configure" check:


ubuntu@domU-12-31-39-14-69-45:~/8.09.2$ echo first | /home/ubuntu/8.09.2/staging_dir/host/bin/sed -e 's/\(fir\|lo\)/la/'
last
ubuntu@domU-12-31-39-14-69-45:~/8.09.2$ echo $?
0
ubuntu@domU-12-31-39-14-69-45:~/8.09.2$ if test "`echo first | /home/ubuntu/8.09.2/staging_dir/host/bin/sed -e 's/\(fir\|lo\)/la/' 2>/dev/null`" = "last"; then echo yes; fi
yes
ubuntu@domU-12-31-39-14-69-45:~/8.09.2$


Environment seems clean: no LD_LIBRARY_PATH, PATH seems normal: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

The host is a fresh Amazon EC2 m1.small instance running latest Ubuntu 11.10 AMI, plus subversion, build-essential, libncurses5-dev, etc. If you send me an SSH public key, I'm happy to give you access

Here are the offending lines from /home/ubuntu/8.09.2/build_dir/host/quilt-0.47/configure:


[...]
{ echo "$as_me:$LINENO: checking whether $SED understands (foo|bar)" >&5
echo $ECHO_N "checking whether $SED understands (foo|bar)... $ECHO_C" >&6; }
if test "`echo first | $SED -e 's/\(fir\|lo\)/la/' 2>/dev/null`" = "last"; then
        { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
        { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
        { { echo "$as_me:$LINENO: error:
Sorry, you have a version of sed which doesn't understand constructs
of the form (foo|bar).  $PACKAGE_NAME needs it.  If you have access to
a version of sed which does understand such constructs, you can supply
its path with the '--with-sed=' option.
" >&5
echo "$as_me: error:
Sorry, you have a version of sed which doesn't understand constructs
of the form (foo|bar).  $PACKAGE_NAME needs it.  If you have access to
a version of sed which does understand such constructs, you can supply
its path with the '--with-sed=' option.
" >&2;}
   { (exit 1); exit 1; }; }
fi
[...]
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to