[Bug 4080] New: php-5.2.0-r2 does not build on Gentoo
bugzilla-daemon at treke.net
bugzilla-daemon at treke.net
Sat Mar 15 21:05:03 UTC 2008
http://bugs.openembedded.net/show_bug.cgi?id=4080
Summary: php-5.2.0-r2 does not build on Gentoo
Product: Openembedded
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: treitmayr at devbase.at
CC: treitmayr at devbase.at
Building php_5.2.0.bb on my Gentoo system (32-bit) fails in the configure task
with the following error:
/bin/sh: error while loading shared libraries:
/home/nslu2/slugos/tmp/staging/armeb-linux/usr/lib/libncurses.so.5: ELF file
data encoding not little-endian
The reason seems to be that the recipe sets an LD_LIBRARY_PATH like this:
export LD_LIBRARY_PATH = "${STAGING_LIBDIR}"
pointing to the big-endian libraries.
Commenting out this line get you a bit further until the configure script tries
to find and run 'libxml2-config'. In the php recipe the path to the configure
script is specified by the parameter
--with-libxml-dir=${STAGING_BINDIR}
However at that location this script cannot be found resulting in an error:
checking for xml2-config path...
/home/nslu2/slugos/tmp/staging/armeb-linux/usr/lib/xml2-config
configure: error: xml2-config not found. Please check your libxml2
installation.
FATAL: oe_runconf failed
Tracing this back a bit further shows that the libxml2.inc file installs the
xml2-config script to ${STAGING_BINDIR_CROSS} which is different to where the
php recipe specified it to be.
Adding the following line to libxml2.inc (in do_stage) also fixed that problem:
install -m 0755 xml2-config ${STAGING_BINDIR}
Can someone please review this and also find out why xml2-config should be
installed to ${STAGING_BINDIR_CROSS} (maybe libxml2-native does not install its
config script?) ?
Thanks,
-Thomas
--
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list