[yocto] [php7] packageconfig apache2 error

Andre McCurdy armccurdy at gmail.com
Thu Aug 17 11:51:22 PDT 2017


On Thu, Aug 17, 2017 at 1:55 AM, idealsim <idealsim at laposte.net> wrote:
> Hi i would like to add modphp to my image (pyro branch). For this i add this
> to my local.conf :
>
> PACKAGECONFIG_append_pn-php = "apache2 pam"
> IMAGE_INSTALL_append = "\
> apache2 \
> php \
> php-cli \
> "

Slightly off topic, but you should include an explicit leading space
when adding to a space separated list with _append, ie:

  PACKAGECONFIG_append_pn-php = " apache2 pam"

It didn't cause a problem this time because the default value for
PACKAGECONFIG in php.inc includes a trailing space, but it's not good
to rely on that.

> But during the build of php (7.1.0 by default in pyro) i have this error
> during install :
>
> |
> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/php-7.1.0/build/shtool
> install -c ext/phar/phar.phar
> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/image/usr/bin
> |   page: php-config.1
> | ln -s -f phar.phar
> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/image/usr/bin/phar
> | Installing PDO headers:
> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/image/usr/include/php/ext/pdo/
> |
> | Notice: unserialize(): Error at offset 394 of 2427 bytes in
> phar:///media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/build/pear/install-pear-nozlib.phar/PEAR/Config.php
> on line 1080
> | ERROR: One of /home/modjo/.pearrc or
> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/recipe-sysroot-native/usr/bin/../../etc//pear.conf
> is corrupt, please remove them and try againInstalling header files:
> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/image/usr/include/php/
> | install: cannot stat 'libs/libphp5.so': No such file or directory
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_install (log file is located at
> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/7.1.0-r0/temp/log.do_install.31439)
> ERROR: Task
> (/media/modjo/data1TO/yocto/pyro/sources/meta-openembedded/meta-oe/recipes-devtools/php/php_7.1.0.bb:do_install)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 1283 tasks of which 1276 didn't need to be
> rerun and 1 failed.
>
> To resolve this i change this line (in php.inc) :
>
> Line 179 install -m 755  libs/libphp5.so ${D}${libdir}/apache2/modules
>
> by this one :
>
> Line 179 install -m 755  libs/libphp7.so ${D}${libdir}/apache2/modules
>
> Perhaps this recipe need a patch ?
>
> Modjo
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list