I assume 7.4-rc2 will be the final release, so I've continued and building blfs now. Xorg-applications is tagged with 7.4, but I just can't get it working with luit.
Code:
make all-recursive
make[1]: Entering directory `/tmp/build/luit/src/luit-1.1.1'
Making all in man
make[2]: Entering directory `/tmp/build/luit/src/luit-1.1.1/man'
GEN luit.1
make[2]: Leaving directory `/tmp/build/luit/src/luit-1.1.1/man'
make[2]: Entering directory `/tmp/build/luit/src/luit-1.1.1'
CC charset.o
CC iso2022.o
CC locale.o
CC luit.o
CC other.o
CC parser.o
CC sys.o
sys.c: In function 'allocatePty':
sys.c:339:5: error: implicit declaration of function 'posix_openpt' [-Werror=implicit-function-declaration]
pty = posix_openpt(O_RDWR);
^
sys.c:339:5: warning: nested extern declaration of 'posix_openpt' [-Wnested-externs]
cc1: some warnings being treated as errors
make[2]: *** [sys.o] Error 1
make[2]: Leaving directory `/tmp/build/luit/src/luit-1.1.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/build/luit/src/luit-1.1.1'
make: *** [all] Error 2
I have googled and found it's a
bug. I tried the patch but it fails:
Code:
patching file Makefile.am
patching file configure.ac
Hunk #1 succeeded at 33 with fuzz 2 (offset 7 lines).
Hunk #2 FAILED at 38.
Hunk #3 succeeded at 55 (offset -3 lines).
1 out of 3 hunks FAILED -- saving rejects to file configure.ac.rej
Here someone suggests to change
Code:
OS_CFLAGS="-D_XOPEN_SOURCE=500"
to 600 in configure.ac. I tried, but the final Makefile still had the value 500, and I got the same error.
This could also be about dependencies. I want to build all packages in a pure chroot, to have better control of dependencies. I tried to build luit on the running host (lfs-7.3) and then it build fine. Then I tried to build it in a pure chroot with the repos I have for 7.3, and it failed with the same error. I added all dependencies that are listed as required for all xorg-applications. I read the README and INSTALL files in the source package, but the only dependency that is listed is libenfontec. I just can't figure out what dependency is missing.