[oe] [php5.6.26]error during build

Randy MacLeod randy.macleod at windriver.com
Fri Aug 18 18:15:02 UTC 2017


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



More information about the Openembedded-devel mailing list