Skip to content

xz-file_io.o compile error

  • I agree that I have searched opened and closed issues to prevent duplicates.

Description

Compile error in xz-file_io.o.

xz-file_io.o: In function `io_copy_attrs':
/home/niels/Documents/my_sources/rust/redox/redox/cookbook/recipes/xz/build/src/xz/file_io.c:363: undefined reference to `fchown'
/home/niels/Documents/my_sources/rust/redox/redox/cookbook/recipes/xz/build/src/xz/file_io.c:369: undefined reference to `fchown'
/home/niels/Documents/my_sources/rust/redox/redox/cookbook/recipes/xz/build/src/xz/file_io.c:388: undefined reference to `fchmod'

Environment info

Ubuntu 18.10

  • Operating system: Replace me
  • uname -ioprsv: Linux 4.18.0-14-generic #15-Ubuntu SMP Mon Jan 14 09:01:02 UTC 2019 x86_64 x86_64 GNU/Linux
  • rustc -V: rustc 1.32.0-nightly (15d770400 2018-11-06)
  • git rev-parse HEAD: 25c7d5c640301e8f171f4dea5421fa72a0fac542

Steps to reproduce

(make clean)
make pull
make all

Behavior

  • Expected behavior: Redox compiles with no errors
  • Actual behavior: Compilation aborts on a compile error

Log

/bin/bash ../../libtool  --tag=CC   --mode=link x86_64-unknown-redox-gcc -fvisibility=hidden -Wall -Wextra -Wvla -Wformat=2 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -g -O2   -o xz xz-args.o xz-coder.o xz-file_io.o xz-hardware.o xz-main.o xz-message.o xz-mytime.o xz-options.o xz-signals.o xz-suffix.o xz-util.o xz-tuklib_open_stdxxx.o xz-tuklib_progname.o xz-tuklib_exit.o xz-tuklib_mbstr_width.o xz-tuklib_mbstr_fw.o xz-list.o  ../../src/liblzma/liblzma.la    
libtool: link: x86_64-unknown-redox-gcc -fvisibility=hidden -Wall -Wextra -Wvla -Wformat=2 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -g -O2 -o xz xz-args.o xz-coder.o xz-file_io.o xz-hardware.o xz-main.o xz-message.o xz-mytime.o xz-options.o xz-signals.o xz-suffix.o xz-util.o xz-tuklib_open_stdxxx.o xz-tuklib_progname.o xz-tuklib_exit.o xz-tuklib_mbstr_width.o xz-tuklib_mbstr_fw.o xz-list.o  ../../src/liblzma/.libs/liblzma.a
xz-file_io.o: In function `io_copy_attrs':
/home/niels/Documents/my_sources/rust/redox/redox/cookbook/recipes/xz/build/src/xz/file_io.c:363: undefined reference to `fchown'
/home/niels/Documents/my_sources/rust/redox/redox/cookbook/recipes/xz/build/src/xz/file_io.c:369: undefined reference to `fchown'
/home/niels/Documents/my_sources/rust/redox/redox/cookbook/recipes/xz/build/src/xz/file_io.c:388: undefined reference to `fchmod'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:508: xz] Error 1
Edited by niluxv