http://bugs.openembedded.org/show_bug.cgi?id=1323

           Summary: PHP5 build issues
           Product: Openembedded
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]


When I first tried building PHP5 in OE I got the following error:
 CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/libxml2
which is an intentional error of OE to protect against linking with libs from
the host system instead of those compiled for the target system:

I was able to fix tis problem by repacing the following portion of
php_5.0.5.bb:
do_configure_prepend() {
  find ${S} -type f | xargs sed -i 's:/usr/lib:${STAGING_LIBDIR}:'
}
with:

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

This change allowed php5 to compile part way then it had another error
regarding threads so I had to add the following two lines to the bb file:
export THREADS="pthread" 
export LIBS = " -lpthread "

Now PHP5 compiled but when I ran it on the target it was trying to access files
under the host directory structure.  I'm currently working on fixing this bug
but I was able to reduce the configuration of PHP and get it to work, here is
that configuration:

EXTRA_OECONF = "        --disable-libxml \
                        --disable-dom \
                        --disable-simplexml\
                        --disable-xml \
                        --without-pear \
                        --without-iconv \
                        --with-config-file-path=/etc/\
                        --enable-discard-path \
                        --with-sqlite \
                        --with-cgi \
                        --enable-sockets \
                        --enable-safe-mode \
                        --enable-magic-quotes \
                        --enable-memory-limit \
                        --enable-pic \
                        --enable-safe-mode \
                        --enable-sockets \
                        --enable-track-vars \
                        --enable-trans-sid \
                        --enable-wddx \
                        --sysconfdir=/etc/appWeb \
                        --with-exec-dir=/etc/appWeb/exec \
                        --with-db \
                        --with-regex=system \
                        --with-pear \
                        --with-zlib \
                        --enable-libxml"


I will post a patch to this bug when I have everything working correctly.


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe

Reply via email to