hi,
the configure of php fails on XML with:
configure:17656: gcc-8 -m32 -o conftest -O2 -Wall -Wcast-align
-fvisibility=hidden -pthread -DNDEBUG -D_REENTRANT conftest.c
-lrt -lm -ldl -lpthread -lxml2 -lz -llzma -lm -ldl >&5
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible
/usr/lib64/gcc/x86_64-suse-linux/8/../../../liblzma.so when searching
for -llzma
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
cannot find -llzma
collect2: error: ld returned 1 exit status
configure:17656: $? = 1
configure: program exited with status 1
configure: failed program was:
64bit gcc using
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld
to resolve 32bit libraries - this works but NOT for "-llzma"
the 32bit "lzma" library is installed at:
# rpm -ql liblzma5-32bit
/usr/lib/liblzma.so.5
/usr/lib/liblzma.so.5.2.3
with:
# file /usr/lib/liblzma.so.5.2.3
/usr/lib/liblzma.so.5.2.3: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked,
BuildID[sha1]=7298ac6623b0e1b897bc0df313b197e8f903b45b, stripped
PROBLEM: the 32bit "gcc-8 -m32" using a 64bit path
"/usr/lib64/gcc/x86_64-suse-linux/8/../../../liblzma.so" to resolve the
32bit "lzma"
./configure --with-tsrm-pthreads --enable-maintainer-zts
--prefix=/some/path/ext/i686-suse-linux-gnu/release
--host=i686-suse-linux-gnu
--libdir=/some/path/ext/i686-suse-linux-gnu/release/lib
without "libxml" the following php-packages are not working:
buildConf+=(--disable-libxml)
buildConf+=(--disable-dom)
buildConf+=(--disable-simplexml)
buildConf+=(--disable-xml)
buildConf+=(--disable-xmlreader)
buildConf+=(--disable-xmlwriter)
buildConf+=(--without-pear)
...
any help available?
mfg