[oe] [php5.6.26]error during build

idealsim idealsim at laposte.net
Sat Aug 19 08:18:14 UTC 2017


Thanks for this. For information i tested to build php5 because i have 
an issue when i try to build php7 in pyro !*
*

But,  Khem Ra give me the solution (for php 5 and 7) :

http://git.openembedded.org/meta-openembedded/commit/?id=6cd249225ecdd0a4592afe1844541378acae6cea


Regards,

Le 18/08/2017 à 21:26, Slater, Joseph a écrit :
> There is a patch on master, 6cd2492, that you can cherry-pick.  It addresses more than just this issue, though.
>
> Joe
>
> ________________________________________
> From: openembedded-devel-bounces at lists.openembedded.org [openembedded-devel-bounces at lists.openembedded.org] on behalf of Randy MacLeod [randy.macleod at windriver.com]
> Sent: Friday, August 18, 2017 11:15 AM
> To: idealsim; openembedded-devel at lists.openembedded.org
> Subject: Re: [oe] [php5.6.26]error during build
>
> On 2017-08-17 06:32 AM, idealsim wrote:
>> Hi try to build an image with php5.6.26 in pyro branch. I have this
>> error during the build :
>>
>> /| ERROR: oe_runmake failed//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
>> In function `ssl_onceonlyinit'://
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
>> warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/ld:
>> TSRM/.libs/TSRM.o: undefined reference to symbol
>> 'pthread_getspecific@@GLIBC_2.4'//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libpthread.so.0:
>> error adding symbols: DSO missing from command line//
>> //| collect2: error: ld returned 1 exit status//
>> //| Makefile:270: recipe for target 'sapi/cli/php' failed//
>> //| make: *** [sapi/cli/php] Error 1//
>> //| make: *** Waiting for unfinished jobs....//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
>> In function `ssl_onceonlyinit'://
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
>> warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/ld:
>> TSRM/.libs/TSRM.o: undefined reference to symbol
>> 'pthread_getspecific@@GLIBC_2.4'//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libpthread.so.0:
>> error adding symbols: DSO missing from command line//
>> //| collect2: error: ld returned 1 exit status//
>> //| Makefile:306: recipe for target 'sapi/cgi/php-cgi' failed//
>> //| make: *** [sapi/cgi/php-cgi] Error 1//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
>> In function `ssl_onceonlyinit'://
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
>> warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.3.0/ld:
>> TSRM/.libs/TSRM.o: undefined reference to symbol
>> 'pthread_getspecific@@GLIBC_2.4'//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libpthread.so.0:
>> error adding symbols: DSO missing from command line//
>> //| collect2: error: ld returned 1 exit status//
>> //| Makefile:283: recipe for target 'sapi/fpm/php-fpm' failed//
>> //| make: *** [sapi/fpm/php-fpm] Error 1//
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/usr/lib/../lib/libc-client.a(osdep.o):
>> In function `ssl_onceonlyinit'://
>> //|
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/uw-imap/2007f-r0/imap-2007f/c-client/osdep.c:302:
>> warning: the use of `tmpnam' is dangerous, better use `mkstemp'//
>> //| WARNING: exit code 1 from a shell command.//
>> //| ERROR: Function failed: do_compile (log file is located at
>> /media/modjo/data1TO/yocto/pyro/quadBuild/tmp/work/udooqdl-poky-linux-gnueabi/php/5.6.26-r0/temp/log.do_compile.15528)//
>>
>> //ERROR: Task
>> (/media/modjo/data1TO/yocto/pyro/sources/meta-openembedded/meta-oe/recipes-devtools/php/php_5.6.26.bb:do_compile)
>> failed with exit code '1'//
>> //NOTE: Tasks Summary: Attempted 6275 tasks of which 6269 didn't need to
>> be rerun and 1 failed.//
>> //
>> //Summary: 1 task failed://
>> ///media/modjo/data1TO/yocto/pyro/sources/meta-openembedded/meta-oe/recipes-devtools/php/php_5.6.26.bb:do_compile//
>>
>> //Summary: There was 1 WARNING message shown.//
>> //Summary: There were 2 ERROR messages shown, returning a non-zero exit
>> code./
>>
>> Do you have an idea to resolve this ?
> Hmm, the recipe might just be missing a -lpthread?
>
> For example, see this fix for oe-core's apr recipe:
>
> $ git log -1 --stat ef9dfc361e5e97157d05dfeaf67a3e872648d372
> commit ef9dfc361e5e97157d05dfeaf67a3e872648d372
> Author: Andreas Müller <schnitzeltony at googlemail.com>
> Date:   Sat Mar 4 11:24:09 2017 +0100
>
>       apr: fix rss+perf+gold failure on do_compile_ptest_base
>
>       Was detected in Martin's world build
>
>       Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
>       Signed-off-by: Ross Burton <ross.burton at intel.com>
>
>
> meta/recipes-support/apr/apr/0002-explicitly-link-libapr-against-phtread-to-make-gold-.patch
> | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
>    meta/recipes-support/apr/apr_1.5.2.bb
>                         |  1 +
>    2 files changed, 51 insertions(+)
>
>
> but the bigger question is why bother with php5 rather than
> php7? Clearly few, if any, meta-oe users are using php5 and
> some people have suggested just removing it.
>
> Good luck,
> ../Randy
>
>
>> Mickael
>>
>
> --
> # Randy MacLeod. SMTS, Linux, Wind River
> Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON,
> Canada, K2K 2W5
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list