[yocto] [php7] packageconfig apache2 error

idealsim idealsim at laposte.net
Thu Aug 17 01:55:50 PDT 2017


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 \
"

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170817/83dd594e/attachment.html>


More information about the yocto mailing list