[OE-core] php: pyro: php fails to compile under pyro with empty PACKAGECONFIG
Bryan Evenson
bevenson at melinkcorp.com
Thu Jun 29 15:20:16 UTC 2017
I am on poky/morty and I am doing some test builds to attempt to stay up to date with the latest branches. I am having issues building php. For my build, I don't want any of the PACKAGECONFIG features and I add curl support, so I have a bbappend with the following:
DEPENDS += " \
curl \
"
EXTRA_OECONF += " \
--with-curl=${STAGING_LIBDIR}/.. \
"
PACKAGECONFIG = ""
This builds without error under morty, but under pyro I get the following errors:
| ERROR: oe_runmake failed
| /<...>/build/tmp/work/armv5e-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: ext/sqlite3/libsqlite/sqlite3.o: undefined reference to symbol 'dlsym@@GLIBC_2.4'
| /<...>/build/tmp/work/armv5e-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libdl.so.2: error adding symbols: DSO missing from command line
| collect2: error: ld returned 1 exit status
| make: *** [sapi/cgi/php-cgi] Error 1
| make: *** Waiting for unfinished jobs....
| /<...>/build/tmp/work/armv5e-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: ext/sqlite3/libsqlite/sqlite3.o: undefined reference to symbol 'dlsym@@GLIBC_2.4'
| /<...>/build/tmp/work/armv5e-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libdl.so.2: error adding symbols: DSO missing from command line
| collect2: error: ld returned 1 exit status
| make: *** [sapi/cli/php] Error 1
| /<...>/build/tmp/work/armv5e-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: ext/sqlite3/libsqlite/sqlite3.o: undefined reference to symbol 'dlsym@@GLIBC_2.4'
| /<...>/build/tmp/work/armv5e-poky-linux-gnueabi/php/5.6.26-r0/recipe-sysroot/lib/libdl.so.2: error adding symbols: DSO missing from command line
| collect2: error: ld returned 1 exit status
| make: *** [sapi/fpm/php-fpm] Error 1
| ERROR: Function failed: do_compile (log file is located at /<...>/build/tmp/work/armv5e-poky-linux-gnueabi/php/5.6.26-r0/temp/log.do_compile.28830)
NOTE: recipe php-5.6.26-r0: task do_compile: Failed
I get the same error regardless of whether I build version 5.6.26 or version 7.1.0. What I find odd with this error is that it is failing when loading symbols for sqlite3, but I explicitly remove sqlite3 from PACKAGECONFIG. If I use the default PACKAGECONFIG settings, then php builds without error. Has anyone else seen similar errors?
Thanks,
Bryan
More information about the Openembedded-core
mailing list