RJVB / macstrop

RJVB's repository of alternative macports, with ports missing from or overriding those in the standard collection, including a set of KF5 ports.
20 stars 9 forks source link

cairo fails to configure on Linux: `error: Xlib surface backend feature could not be enabled` #122

Closed barracuda156 closed 2 months ago

barracuda156 commented 2 months ago
--->  Extracting cairo-1.16.0.tar.xz
--->  Applying patches to cairo
--->  Applying patch-configure.diff
patching file configure
--->  Configuring cairo
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking whether /usr/bin/clang understands -c and -o together... yes
checking how to run the C preprocessor... /usr/bin/clang -E
checking for grep that handles long lines and -e... /opt/local/bin/ggrep
checking for egrep... /opt/local/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for unistd.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for typeof syntax and keyword spelling... typeof
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of /usr/bin/clang... gcc3
checking whether make supports nested variables... (cached) yes
checking the archiver (/usr/bin/llvm-ar) interface... ar
checking build system type... riscv64-unknown-linux-gnu
checking host system type... riscv64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for fgrep... /opt/local/bin/ggrep -F
checking for ld used by /usr/bin/clang... /usr/bin/riscv64-pine64-linux-ld
checking if the linker (/usr/bin/riscv64-pine64-linux-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/llvm-nm
checking the name lister (/usr/bin/llvm-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert riscv64-unknown-linux-gnu file names to riscv64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert riscv64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/riscv64-pine64-linux-ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... /bin/echo
checking command to parse /usr/bin/llvm-nm output from /usr/bin/clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/clang supports -fno-rtti -fno-exceptions... yes
checking for /usr/bin/clang option to produce PIC... -fPIC -DPIC
checking if /usr/bin/clang PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/clang static flag -static works... no
checking if /usr/bin/clang supports -c -o file.o... yes
checking if /usr/bin/clang supports -c -o file.o... (cached) yes
checking whether the /usr/bin/clang linker (/usr/bin/riscv64-pine64-linux-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk-doc... no
configure: WARNING:
  You will not be able to create source packages with 'make dist'
  because gtk-doc >= 1.15 is not found.
checking for gtkdoc-check... no
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for find... /usr/bin/find
checking for xargs... /usr/bin/xargs
checking for gcc... (cached) /usr/bin/clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/bin/clang accepts -g... (cached) yes
checking for /usr/bin/clang option to accept ISO C89... (cached) none needed
checking whether /usr/bin/clang understands -c and -o together... (cached) yes
checking how to run the C preprocessor... /usr/bin/clang -E
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/clang++ accepts -g... yes
checking dependency style of /usr/bin/clang++... gcc3
checking how to run the C++ preprocessor... /usr/bin/clang++ -E
checking for ld used by /usr/bin/clang++... /usr/bin/riscv64-pine64-linux-ld
checking if the linker (/usr/bin/riscv64-pine64-linux-ld) is GNU ld... yes
checking whether the /usr/bin/clang++ linker (/usr/bin/riscv64-pine64-linux-ld) supports shared libraries... yes
checking for /usr/bin/clang++ option to produce PIC... -fPIC -DPIC
checking if /usr/bin/clang++ PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/clang++ static flag -static works... no
checking if /usr/bin/clang++ supports -c -o file.o... yes
checking if /usr/bin/clang++ supports -c -o file.o... (cached) yes
checking whether the /usr/bin/clang++ linker (/usr/bin/riscv64-pine64-linux-ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for inline... inline
checking for pkg-config... (cached) /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for supported warning flags... 
checking whether /usr/bin/clang supports -Werror... yes
checking whether /usr/bin/clang supports -errwarn... no
checking whether /usr/bin/clang supports -Wall... yes
checking whether /usr/bin/clang supports -Wextra... yes
checking whether /usr/bin/clang supports -Wmissing-declarations... yes
checking whether /usr/bin/clang supports -Werror-implicit-function-declaration... yes
checking whether /usr/bin/clang supports -Wpointer-arith... yes
checking whether /usr/bin/clang supports -Wwrite-strings... yes
checking whether /usr/bin/clang supports -Wsign-compare... yes
checking whether /usr/bin/clang supports -Wpacked... yes
checking whether /usr/bin/clang supports -Wswitch-enum... yes
checking whether /usr/bin/clang supports -Wmissing-format-attribute... yes
checking whether /usr/bin/clang supports -Wvolatile-register-var... yes
checking whether /usr/bin/clang supports -Wstrict-aliasing=2... yes
checking whether /usr/bin/clang supports -Winit-self... yes
checking whether /usr/bin/clang supports -Wunsafe-loop-optimizations... no
checking whether /usr/bin/clang supports -Wno-missing-field-initializers... yes
checking whether /usr/bin/clang supports -Wno-unused-parameter... yes
checking whether /usr/bin/clang supports -Wno-attributes... yes
checking whether /usr/bin/clang supports -Wno-long-long... yes
checking whether /usr/bin/clang supports -Winline... yes
checking whether /usr/bin/clang supports -erroff=E_ENUM_TYPE_MISMATCH_ARG... no
checking whether /usr/bin/clang supports -erroff=E_ENUM_TYPE_MISMATCH_OP... no
checking whether /usr/bin/clang supports -fno-strict-aliasing... yes
checking whether /usr/bin/clang supports -fno-common... yes
checking whether /usr/bin/clang supports -Wp,-D_FORTIFY_SOURCE=2... yes
checking whether /usr/bin/clang supports -Wunused-but-set-variable -Wno-unused-but-set-variable... yes
checking which warning flags were supported...  -Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -Wno-unused-but-set-variable
checking how to enable unused result warnings... __attribute__((__warn_unused_result__))
checking how to allow undefined symbols in shared libraries used by test suite... -Wl,--allow-shlib-undefined
checking whether byte ordering is bigendian... no
checking whether float word ordering is bigendian... no
checking for native atomic primitives... cxx11
checking whether atomic ops require a memory barrier... yes
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of size_t... 8
checking for native Win32... no
checking for Sun Solaris (non-POSIX ctime_r)... no
checking for cos in -lm... yes
checking for sched_yield in -lrt... yes
checking for shm_open in -lrt... yes
checking for connect in -lsocket... no
checking for __builtin_return_address(0)... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for uint64_t... yes
checking for uint128_t... no
checking for __uint128_t... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for sys/stat.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for alarm... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for sched_getaffinity... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for clock_gettime... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking for feenableexcept... no
checking for fedisableexcept... no
checking for feclearexcept... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for signal.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for fenv.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for ctime_r... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for drand48... yes
checking for flockfile... yes
checking for funlockfile... yes
checking for getline... yes
checking for link... yes
checking for strndup... yes
checking for sys/stat.h... (cached) yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking for mkdir... yes
checking mkdir variant... mkdir(path, mode)
checking for fork... yes
checking for waitpid... yes
checking for raise... yes
checking for VALGRIND... no
no
checking for compress in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for lzo2a_decompress in -llzo2... (cached) no
checking for dlsym in -ldl... yes
checking for dlfcn.h... (cached) yes
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking for newlocale... yes
checking for strtod_l... yes
checking for X... no
checking for cairo's Xlib surface backend feature... 
checking for xlib... no
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking whether shmctl IPC_RMID allowes subsequent attaches... yes
checking for X11/extensions/XShm.h... no
checking for X11/extensions/shmproto.h... no
checking for X11/extensions/shmstr.h... no
checking whether cairo's Xlib surface backend feature could be enabled... no (requires X development libraries)
configure: error:  Xlib surface backend feature could not be enabled
Command failed:  cd "/opt/local/var/macports/build/_home_svacchanda_macstrop_graphics_cairo/cairo/work/cairo-1.16.0" && bash -o pipefail -c './configure  --prefix=/opt/local --disable-gl --disable-egl --disable-quartz --disable-quartz-font --disable-quartz-image --disable-silent-rules --disable-symbol-lookup --enable-xlib --enable-xlib-xcb --enable-xcb --disable-xcb-shm --with-x --enable-ft --enable-pdf --enable-png --enable-ps --enable-script --enable-svg --enable-tee --enable-xml ac_cv_prog_GS="" ac_cv_lib_lzo2_lzo2a_decompress=no --enable-xlib-xrender --enable-xcb-shm |& tee /opt/local/var/macports/build/_home_svacchanda_macstrop_graphics_cairo/cairo/work/.macports.cairo.configure.log' 
Exit code: 1
Error: Failed to configure cairo: consult /opt/local/var/macports/build/_home_svacchanda_macstrop_graphics_cairo/cairo/work/cairo-1.16.0/config.log
Error: Failed to configure cairo: configure failure: command execution failed
RJVB commented 2 months ago

On Sunday September 15 2024 13:38:47 Sergey Fedorov wrote:

checking whether cairo's Xlib surface backend feature could be enabled... no (requires X development libraries) configure: error: Xlib surface backend feature could not be enabled

What did I ask about trying known remedies?