Skip to contentSkip to conversation

error during build

php5.6.26 idealsim 3 participants 4 messages Aug 17, 2017 – Aug 19, 2017

lore
Share & tools
lore

idealsim

author
#0 lore raw

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 ?

Mickael

#1 lore raw
Quoted 36 lines · idealsim

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//

Quoted 4 lines

//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 <[email protected]>
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

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

Quoted 3 lines

Mickael

Signature · 2 lines
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, Canada, K2K 2W5
#2 lore raw

There is a patch on master, 6cd2492, that you can cherry-pick. It addresses more than just this issue, though.

Joe

________________________________________
From: [email protected] [[email protected]] on behalf of Randy MacLeod [[email protected]]
Sent: Friday, August 18, 2017 11:15 AM
To: idealsim; [email protected]
Subject: Re: [oe] [php5.6.26]error during build

Quoted 72 lines · idealsim

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//

Quoted 5 lines

//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 <[email protected]>
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

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

Quoted 3 lines

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 [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#3 lore raw

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,

Quoted 132 lines · Joseph

There is a patch on master, 6cd2492, that you can cherry-pick. It addresses more than just this issue, though.

Joe

________________________________________
From: [email protected] [[email protected]] on behalf of Randy MacLeod [[email protected]]
Sent: Friday, August 18, 2017 11:15 AM
To: idealsim; [email protected]
Subject: Re: [oe] [php5.6.26]error during build

Quoted 72 lines · idealsim

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//

Quoted 5 lines

//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 <[email protected]>
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

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

Quoted 2 lines

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 [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel