I tried running PHP configuration step manually using the same call as bitbake does and it doesn't look good. You get hundreds of lines:
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 371: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 389: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 405: 5: Bad file descriptor
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 406: 6: Bad file descriptor
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 427: conftest.: Permission denied
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 445: ac_fn_c_try_run: command not found
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 468: 5: Bad file descriptor
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 469: 6: Bad file descriptor
/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/php-5.2.3-r6/php-5.2.3/configure: line 471: 5: Bad file descriptor
........

After doing some reading I found that it might be the problem with autoconf versions or maybe other problems.


From: cybaslt@hotmail.com
To: gumstix-users@lists.sourceforge.net
Date: Sat, 30 Oct 2010 07:22:06 +0000
Subject: [Gumstix-users] Compiling nginx (latest version) and PHP 5.2.3

I just tried writing recipie for nginx latest version and it fails. Here is the recipie:
nginx_0.8.53.bb:
# ---------------------------------------------------------------------------------
DESCRIPTION = "Nginx web server"
SECTION = "net"
HOMEPAGE = "http://nginx.org/"

SRC_URI = "http://nginx.org/download/nginx-0.8.53.tar.gz"

PR = "r0"

S = "${WORKDIR}/nginx-${PV}"
# CFLAGS_append = "-Os"

inherit autotools

do_configure() {
  oe_runconf
}

# EXTRA_OECONF = "-Os"

SRC_URI[md5sum] = "717eaea1b34e8663849f64b9aa05a9da"
SRC_URI[sha256sum] = "8ab8a87beb555d9ea09fe61d0de86a71ea4e90ef7970df0d38f7acfb9bed6dcf"
# ---------------------------------------------------------------------------------

Execution:
# ---------------------------------------------------------------------------------
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 360 of 607 (ID: 10, /home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb, do_setscene)
NOTE: Running task 361 of 607 (ID: 9, /home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb, do_fetch)
NOTE: Running task 368 of 607 (ID: 0, /home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb, do_unpack)
NOTE: Unpacking sources/nginx-0.8.53.tar.gz to tmp/work/armv7a-angstrom-linux-gnueabi/nginx-0.8.53-r0/
NOTE: Running task 382 of 607 (ID: 1, /home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb, do_patch)
NOTE: Running task 383 of 607 (ID: 11, /home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb, do_configure)
ERROR: function do_configure failed
ERROR: log data follows (/home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/nginx-0.8.53-r0/temp/log.do_configure.22840)
| /home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/nginx-0.8.53-r0/nginx-0.8.53/configure: error: invalid option "--build=i686-linux"
NOTE: Task failed: /home/david/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/nginx-0.8.53-r0/temp/log.do_configure.22840
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb do_configure failed
ERROR: Task 11 (/home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb, do_configure) failed
NOTE: Tasks Summary: Attempted 382 tasks of which 378 didn't need to be rerun and 1 failed.
ERROR: '/home/david/overo-oe/org.openembedded.dev/recipes/nginx/nginx_0.8.53.bb' failed
# ---------------------------------------------------------------------------------

It fails with configure, it looks like nginx configure script does not support --build= argument.

The other problem is PHP 5.2.3. I can not go with different version of PHP, because it's very likely that code is going to be breaked. I tried writing PHP 5.2.3. recipie. Copied 5.2.13, copied php.inc inside. Had to change URL for downloading PHP, remove all patches. So it looks like this:

# ---------------------------------------------------------------------------------
DESCRIPTION = "A server-side, HTML-embedded scripting language. This package provides the CGI."
HOMEPAGE = "http://www.php.net"
SECTION = "console/network"
LICENSE = "PHP"

SRC_URI = "http://museum.php.net/php5/php-${PV}.tar.bz2;name=src"

S = "${WORKDIR}/php-${PV}"

inherit autotools

CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -D_GNU_SOURCE"

acpaths = ""

do_install  () {
    oe_runmake 'INSTALL_ROOT=${D}' install
}

DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \
           libc-client openssl"

PR = "r6"

SRC_URI[src.md5sum] = "eb50b751c8e1ced05bd012d5a0e4dec3"
SRC_URI[src.sha256sum] = "eedffda5069caa801a7fec217c77619657416a5fcaefb79ba4620432f0befe29"

export THREADS="pthread"
export LIBS=" -lpthread "

EXTRA_OECONF = "    --without-iconv \
                    --enable-mbstring \
                    --enable-discard-path \
                    --enable-sockets \
                    --enable-bcmath \
                    --enable-shared \
                    --enable-pcntl \
                    --enable-memory-limit \
                    --enable-wddx \
                    --disable-embedded-mysqli \
                    --enable-magic-quotes \
                    --enable-fastcgi \
                    --with-imap=${STAGING_DIR_HOST} \
                    --with-imap-ssl=${STAGING_DIR_HOST} \
                    --with-zlib --with-zlib-dir=${STAGING_LIBDIR}/.. \
                    --with-libxml-dir=${STAGING_BINDIR_CROSS} \
                    --with-sqlite=shared \
                    --with-pdo-sqlite=shared \
               "

export LD_LIBRARY_PATH = "${STAGING_LIBDIR}"
export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
export PHP_PEAR_PHP_BIN = "${bindir}/php"

#LDFLAGS += "-lstdc++"

do_configure_append() {
    find ${S} -type f -readable -writable | xargs sed -i 's:I/usr/include:I${STAGING_INCDIR}:g'
}

# fixme
do_install_append() {
    mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ${D}/${sysconfdir}
    rm -rf ${D}/${STAGING_DIR_NATIVE}
    rm -rf ${D}/.registry
    rm -rf ${D}/.channels
    rm -rf ${D}/.[a-z]*
}

PACKAGES = "${PN}-dbg \
            ${PN}-cli \
            ${PN}-cgi \
            ${PN}-pear \
            ${PN}-dev \
            ${PN}-doc \
            ${PN} \
"


FILES_${PN}-dbg            =+ "${bindir}/.debug"

FILES_${PN}-doc            += "${libdir}/php/doc" 

FILES_${PN}-cli            = "${bindir}/php"
FILES_${PN}-cgi            = "${bindir}/php-cgi"

FILES_${PN}-pear            = "${bindir}/pear* ${bindir}/pecl \
                             ${libdir}/php/PEAR \
                             ${libdir}/php/PEAR.php \
                             ${libdir}/php/System.php ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \
                             ${libdir}/php/.channels  ${libdir}/php/.channels/.alias  \
                             ${libdir}/php/.channels\__uri.reg \
                             ${libdir}/php/.channels\pear.php.net.reg ${libdir}/php/.channels/pecl.php.net.reg \
                             ${libdir}/php/.registry \
                             ${libdir}/php/Archive/Tar.php \
                             ${libdir}/php/Console/Getopt.php ${libdir}/php/OS/Guess.php \
                             ${sysconfdir}/pear.conf"


FILES_${PN}-dev            = "${includedir}/php ${libdir}/build \
                             ${bindir}/phpize ${bindir}/php-config \
                             ${libdir}/php/.depdb ${libdir}/php/.depdblock ${libdir}/php/.filemap ${libdir}/php/.lock \
                             ${libdir}/php/test "

FILES_${PN}                 = "${libdir}/php"
FILES_${PN}                += "${bindir}"

RDEPENDS_${PN}-pear         = ${PN}
RDEPENDS_${PN}-cli          = ${PN}
RDEPENDS_${PN}-dev          = ${PN}
# ---------------------------------------------------------------------------------

The problem is that it stucks at configure. I check htop/top, there is "yes" command running for more than hour, running at 100%.

Any helps trying to compile those to?

David


------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________ gumstix-users mailing list gumstix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gumstix-users