Multilib LFS-10: problem with zlib x32 build (LFS-9 as host)
by hazel from LinuxQuestions.org on (#5A0EH)
For once, I think the Book is at fault (shock! horror!).
In Chapter 6, zlib 64-bit and normal 32-bit build successfully. x32 gives this:
Code:Checking for shared library support...
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.11 with gcc -mx32.
Checking for size_t... No.
Checking for long long... Yes.
Failed to find a pointer-size integer type.
** ./configure aborting.Doing some comparisons, I note that the x32 configure command for the ncurses library starts
Code:CC="$LFS_TGT-gcc -mx32" \
CXX="$LFS_TGT-g++ -mx32" \
./configure --prefix=/usr \
--host=$LFS_TGTX32 \
...but that for zlib is much less specific:
Code:CC="gcc -mx32" \
./configure --prefix=/usr \
--libdir=/usr/libx32I assume this difference would not affect the 32-bit build, because the host LFS-9 has 32-bit libc. But it might affect the x32 build, which is an architecture the host does not use.
Is the Book at fault here? If not, why do the zlib builds include less information than the ncurses ones?


In Chapter 6, zlib 64-bit and normal 32-bit build successfully. x32 gives this:
Code:Checking for shared library support...
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.11 with gcc -mx32.
Checking for size_t... No.
Checking for long long... Yes.
Failed to find a pointer-size integer type.
** ./configure aborting.Doing some comparisons, I note that the x32 configure command for the ncurses library starts
Code:CC="$LFS_TGT-gcc -mx32" \
CXX="$LFS_TGT-g++ -mx32" \
./configure --prefix=/usr \
--host=$LFS_TGTX32 \
...but that for zlib is much less specific:
Code:CC="gcc -mx32" \
./configure --prefix=/usr \
--libdir=/usr/libx32I assume this difference would not affect the 32-bit build, because the host LFS-9 has 32-bit libc. But it might affect the x32 build, which is an architecture the host does not use.
Is the Book at fault here? If not, why do the zlib builds include less information than the ncurses ones?