[Android Software Development] Droidzone:
I'm getting stuck on building Ncurses in my ssh envt..

** Configuration summary for NCURSES 5.9 20110404:

extended funcs: yes
xterm terminfo: xterm-new

bin directory: /home/users/d/dr/droidzone/arms/bin
lib directory: /home/users/d/dr/droidzone/arms/lib
include directory: /home/users/d/dr/droidzone/bldroot/sysroot/include/ncursesw
man directory: /home/users/d/dr/droidzone/bldroot/sysroot/man
terminfo directory: /home/users/d/dr/droidzone/arms/share/terminfo

** Include-directory is not in a standard location
cd include && make DESTDIR="" all
make[1]: Entering directory `/home/users/d/dr/droidzone/bldroot/sources/ncurses-5.9/include'
cat curses.head >curses.h
AWK=gawk sh ./MKkey_defs.sh ./Caps >>curses.h
sh -c 'if test "cchar_t" = "cchar_t" ; then cat ./curses.wide >>curses.h ; fi'
cat ./curses.tail >>curses.h
sh ./MKhashsize.sh ./Caps >hashsize.h
AWK=gawk sh ./MKncurses_def.sh ./ncurses_defs >ncurses_def.h
AWK=gawk sh ./MKparametrized.sh ./Caps >parametrized.h
touch config.h
gawk -f MKterm.h.awk ./Caps > term.h
sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h
** edit: HAVE_TCGETATTR 1
** edit: HAVE_TERMIOS_H 1
** edit: HAVE_TERMIO_H 1
** edit: BROKEN_LINKER 0
make[1]: Leaving directory `/home/users/d/dr/droidzone/bldroot/sources/ncurses-5.9/include'
cd ncurses && make DESTDIR="" all
make[1]: Entering directory `/home/users/d/dr/droidzone/bldroot/sources/ncurses-5.9/ncurses'
gawk -f ./tinfo/MKcodes.awk bigstrings=1 ./../include/Caps >codes.c
gcc -D_GNU_SOURCE -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DUSE_BUILD_CC ./tinfo/make_hash.c
sh -e ./tinfo/MKcaptab.sh gawk 1 ./tinfo/MKcaptab.awk ./../include/Caps > comp_captab.c
sh -e ./tty/MKexpanded.sh "/home/users/d/dr/droidzone/bldroot/arm-2011.09/bin/arm-none-linux-gnueabi-gcc -E" -DHAVE_CONFIG_H -I../ncurses -I. -I/home/users/d/dr/droidzone/bldroot/sysroot/include -I/home/users/d/dr/droidzone/bldroot/arm-2011.09/lib/gcc/arm-none-linux-gnueabi/4.6.1/include -I/home/users/d/dr/droidzone/bldroot/arm-2011.09/arm-none-linux-gnueabi/libc/usr/include -g -Os -marm -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -I. -I../include -I/home/users/d/dr/droidzone/bldroot/sysroot/include/ncursesw -I/home/users/d/dr/droidzone/bldroot/sysroot/include -I/home/users/d/dr/droidzone/bldroot/arm-2011.09/lib/gcc/arm-none-linux-gnueabi/4.6.1/include -I/home/users/d/dr/droidzone/bldroot/arm-2011.09/arm-none-linux-gnueabi/libc/usr/include > expanded.c
sh -e ./tinfo/MKfallback.sh /home/users/d/dr/droidzone/arms/share/terminfo ../misc/terminfo.src /usr/bin/tic linux vt100 xterm >fallback.c
creating temporary terminfo directory...

I see a /usr/bin/tic.. Could it be an issue? I dont have access to / or /usr

creating temporary terminfo directory is the last line in the log where it stalls

Edit: SOLVED. Apparently the location of the program tic (Ncurses) was sourced from /usr/bin, and it must have been trying to create something there.

Solution: Compiled Ncurses for the host first, to ~/$HOME/bin. Then, it proceeded smoothly. :)

Btw,

1. There may be an error while extracting python. The logs told me that it was using -j option in tar for .xz. Python build failed on my system

2. Could you substitute http:// for ftp:/ in a future release? There's no ftp access on my server. Of course if it is a bother, I could just patch your build.sh. Not a big issue..

3. The http source for 'file' is a problem

4. Could you add dosfstools?

5. Does Ncurses have to be build each time? Once successfully built, cant it be reused?

If you can, I've already got the patch done for script..

--- package_names_urls.conf 2012-01-30 16:20:42.662267449 +0530
+++ /home/droidzone/Documents/package_names_urls.conf 2012-02-01 14:06:22.952391329 +0530
@@ -71,9 +71,12 @@ IMAGEMAGICK_URL="http://image_magick.vei

# *******************************************
# IPTables patched from Droidwall / extern
+#http://netfilter.org/projects/iptables/files/iptables-1.4.12.2.tar.bz2
IPTABLES_PKG="iptables-1.4.10.tar.bz2"
#IPTABLES_PKG="iptables-1.4.12.tar.bz2"
-IPTABLES_URL="ftp://ftp.netfilter.org/pub/iptables/$IPTABLES_PKG"
+#IPTABLES_URL="ftp://ftp.netfilter.org/pub/iptables/$IPTABLES_PKG"
+
+IPTABLES_URL="http://netfilter.org/projects/iptables/files/$IPTABLES_PKG"
# *******************************************

LESS_PKG="less-444.tar.gz"
@@ -100,8 +103,9 @@ LUA_PKG="lua-5.2.0.tar.gz"
LUA_URL="http://www.lua.org/ftp/$LUA_PKG"

PYTHON_VERSION="2.7.2"
-PYTHON_PKG="Python-$PYTHON_VERSION.tar.xz"
+PYTHON_PKG="Python-$PYTHON_VERSION.tar.bz2"
PYTHON_URL="http://www.python.org/ftp/python/$PYTHON_VERSION/$PYTHON_PKG"
+#http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2

PHP_PKG="php-5.3.8.tar.bz2"
PHP_URL="http://de3.php.net/get/$PHP_PKG/from/this/mirror"
@@ -141,7 +145,7 @@ AUTOCONF_PKG="autoconf-2.68.tar.bz2"
AUTOCONF_URL="http://ftp.gnu.org/gnu/autoconf/$AUTOCONF_PKG"

LIBTOOL_PKG="libtool-2.4.2.tar.xz"
-LIBTOOL_URL="ftp://ftp.gnu.org/gnu/libtool/$LIBTOOL_PKG"
+LIBTOOL_URL="http://ftp.gnu.org/gnu/libtool/$LIBTOOL_PKG"

LIBUNISTRING_PKG="libunistring-0.9.3.tar.gz"
LIBUNISTRING_URL="http://ftp.gnu.org/gnu/libunistring/$LIBUNISTRING_PKG"
@@ -150,7 +154,7 @@ BDW_GC_PKG="gc-7.1.tar.gz"
BDW_GC_URL="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$BDW_GC_PKG"

GUILE_PKG="guile-2.0.3.tar.gz"
-GUILE_URL="ftp://ftp.gnu.org/gnu/guile/$GUILE_PKG"
+GUILE_URL="http://ftp.gnu.org/gnu/guile/$GUILE_PKG"

AUTOGEN_VERSION="5.14"
AUTOGEN_PKG="autogen-$AUTOGEN_VERSION.tar.gz"
@@ -183,11 +187,12 @@ RSYNC_PKG="rsync-3.0.9.tar.gz"
RSYNC_URL="http://rsync.samba.org/ftp/rsync/src/$RSYNC_PKG"

WGET_PKG="wget-1.13.4.tar.xz"
-WGET_URL="ftp://ftp.gnu.org/gnu/wget/$WGET_PKG"
+WGET_URL="http://ftp.gnu.org/gnu/wget/$WGET_PKG"

LIBFFI_VERSION="3.0.10"
LIBFFI_PKG="libffi-$LIBFFI_VERSION.tar.gz"
-LIBFFI_URL="ftp://sourceware.org/pub/libffi/$LIBFFI_PKG"
+#LIBFFI_URL="ftp://sourceware.org/pub/libffi/$LIBFFI_PKG"
+LIBFFI_URL="http://ltsp.mirrors.tds.net/pub/sourceware.org/libffi/$LIBFFI_PKG"

SLANG_MAINVERSION="2.2"
SLANG_PKG="slang-$SLANG_MAINVERSION.4.tar.bz2"
@@ -256,7 +261,8 @@ OPENSSH_URL="http://ftp.wu-wien.ac.at/pu

BIND_VERSION="9.8.1-P1"
BIND_PKG="bind-$BIND_VERSION.tar.gz"
-BIND_URL="ftp://ftp.isc.org/isc/bind9/$BIND_VERSION/$BIND_PKG"
+#BIND_URL="ftp://ftp.isc.org/isc/bind9/$BIND_VERSION/$BIND_PKG"
+BIND_URL="http://gd.tuwien.ac.at/infosys/servers/isc/bind9/$BIND_VERSION/$BIND_PKG"

LIGHTTPD_MAINVERSION="1.4"
LIGHTTPD_PKG="lighttpd-$LIGHTTPD_MAINVERSION.30.tar.bz2"
@@ -305,8 +311,9 @@ UNZIP_URL="http://downloads.sourceforge.

# *******************************************
# file must be the same version as on BUILDHOST, check with file -v!!!
-FILE_PKG="file-5.04.tar.gz"
-FILE_URL="ftp://ftp.astron.com/pub/file/$FILE_PKG"
+FILE_PKG="file-5.09.tar.gz"
+#FILE_URL="ftp://ftp.astron.com/pub/file/$FILE_PKG"
+FILE_URL="http://en.sourceforge.jp/frs/g_redir.php?m=jaist&f=%2Flinux4m%2F3.0%2Faddons%2Ffile%2Fsrc%2F$FILE_PKG"
# *******************************************

FREETYPE_PKG="freetype-2.4.8.tar.bz2"
@@ -325,7 +332,7 @@ READLINE_URL="http://ftp.gnu.org/gnu/rea

TERMCAP_VERSION="1.3.1"
TERMCAP_PKG="termcap-$TERMCAP_VERSION.tar.gz"
-TERMCAP_URL="ftp://ftp.gnu.org/gnu/termcap/$TERMCAP_PKG"
+TERMCAP_URL="http://ftp.gnu.org/gnu/termcap/$TERMCAP_PKG"

LIBICONV_PKG="libiconv-1.14.tar.gz"
LIBICONV_URL="http://ftp.gnu.org/gnu/libiconv/$LIBICONV_PKG"
@@ -343,10 +350,12 @@ MHASH_PKG="mhash-$MHASH_VERSION.tar.bz2"
MHASH_URL="http://downloads.sourceforge.net/project/mhash/mhash/$MHASH_VERSION/$MHASH_PKG"

LIBXML2_PKG="libxml2-2.7.8.tar.gz"
-LIBXML2_URL="ftp://xmlsoft.org/libxml2/$LIBXML2_PKG"
+#LIBXML2_URL="ftp://xmlsoft.org/libxml2/$LIBXML2_PKG"
+LIBXML2_URL="http://xmlsoft.org/sources/$LIBXML2_PKG"

LIBXSLT_PKG="libxslt-1.1.26.tar.gz"
-LIBXSLT_URL="ftp://xmlsoft.org/libxslt/$LIBXSLT_PKG"
+#LIBXSLT_URL="ftp://xmlsoft.org/libxslt/$LIBXSLT_PKG"
+LIBXSLT_URL="http://xmlsoft.org/sources/$LIBXSLT_PKG"

MYSQL_MAINVERSION="5.5"
MYSQL_PKG="mysql-$MYSQL_MAINVERSION.19.tar.gz"
@@ -394,4 +403,13 @@ FLEX_VERSION="2.5.35"
FLEX_PKG="flex-$FLEX_VERSION.tar.bz2"
FLEX_URL="http://downloads.sourceforge.net/project/flex/flex/flex-$FLEX_VERSION/$FLEX_PKG"

+
+# capabilities tools and libs (needs kernel support to work)
+ATTR_VERSION="2.4.43"
+ATTR_PKG="attr_$ATTR_VERSION-1.tar.gz"
+ATTR_URL="ftp://oss.sgi.com/projects/xfs/cmd_tars/$ATTR_PKG"
+
+LIBCAP_PKG="libcap-2.22.tar.bz2"
+LIBCAP_URL="http://mirror.nexcess.net/kernel.org/linux/libs/security/linux-privs/libcap2/$LIBCAP_PKG"
+
# ******************************************************************************************************