Re: build 32bit php an 64bit linux fails with error in gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 10 Aug 2020 at 20:28, Jonathan Wakely wrote:
>
> On Mon, 10 Aug 2020 at 20:15, aotto <aotto1968@xxxxxxxxxxx> wrote:
> >
> > 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
>
> The linker looks for liblzma.so or liblzma.so, neither of those files matches.

Oops, sorry, I typed the same thing twice. I meant liblzma.a or liblzma.so

>
> You have the dynamic library that is used at runtime by programs that
> have already been linked. But to link new programs against them, you
> need the liblzma.so symlink. That is probably installed by a package
> named something like lzma-devel.i686 (I don't know how Suse names
> these things)



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux