libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -I/usr/local/include -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/local/include/pixman-1 -I/usr/local/include/X11/dri -I/usr/local/include/libdrm -D_THREAD_SAFE -pthread -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden -I/usr/local/include -I/usr/local/include/libdrm -D_THREAD_SAFE -pthread -O2 -pipe -march=skylake-avx512 -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -D_THREAD_SAFE -pthread -MT glamor_segs.lo -MD -MP -MF .deps/glamor_segs.Tpo -c glamor_segs.c -fPIC -DPIC -o .libs/glamor_segs.o glamor_glx.c:24:10: fatal error: 'epoxy/glx.h' file not found #include <epoxy/glx.h> ^~~~~~~~~~~~~ libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -I/usr/local/include -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/local/include/pixman-1 -I/usr/local/include/X11/dri -I/usr/local/include/libdrm -D_THREAD_SAFE -pthread -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../dbe -I../present -fvisibility=hidden -I/usr/local/include -I/usr/local/include/libdrm -D_THREAD_SAFE -pthread -O2 -pipe -march=skylake-avx512 -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -D_THREAD_SAFE -pthread -MT glamor_lines.lo -MD -MP -MF .deps/glamor_lines.Tpo -c glamor_lines.c -fPIC -DPIC -o .libs/glamor_lines.o 1 error generated. gmake[8]: *** [Makefile:763: glamor_glx.lo] Error 1 gmake[8]: *** Waiting for unfinished jobs.... mv -f .deps/glamor_segs.Tpo .deps/glamor_segs.Plo mv -f .deps/glamor_lines.Tpo .deps/glamor_lines.Plo gmake[8]: Leaving directory '/usr/ports/x11-servers/xorg-server/work/xorg-server-1.20.9/glamor' gmake[7]: *** [Makefile:816: all-recursive] Error 1 gmake[7]: Leaving directory '/usr/ports/x11-servers/xorg-server/work/xorg-server-1.20.9' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[6]: stopped in /usr/ports/x11-servers/xorg-server *** Error code 1 Stop. make[5]: stopped in /usr/ports/x11-servers/xorg-server *** Error code 1 Stop. make[4]: stopped in /usr/ports/x11-drivers/xf86-input-keyboard *** Error code 1 Stop. make[3]: stopped in /usr/ports/x11-drivers/xorg-drivers *** Error code 1 Stop. make[2]: stopped in /usr/ports/x11-drivers/xorg-drivers *** Error code 1 Stop. make[1]: stopped in /usr/ports/x11/xorg *** Error code 1 Stop. make: stopped in /usr/ports/x11/xorg
Likely a pilot error. graphics/libepoxy was built with X11 disabled either via "make config" or OPTIONS_UNSET+=X11 in /etc/make.conf. FreeBSD Ports (unlike Gentoo ebuilds) cannot override user preferences in dependencies to avoid unsupported cases, so disabling default options in non-leaf ports is fragile. See also bug 251855.
You are right, it's stupid of me. I copied my make.conf from another VPS instance I have. On this one, I need X over SSH and it never occurred to me I may have unset X11. I changed it to the following: OPTIONS_UNSET+=\ BASH \ DEBUG \ DEBUGLOG \ DOCS \ DOXYGEN \ EXAMPLES \ HTMLDOCS \ MAN3 \ MANPAGES \ MEM_DEBUG \ RDOC \ TEST \ TESTS \ ZSH OPTIONS_SET+=\ CPU_OPTS \ GMP \ LTO \ OPENMP \ OPTIMIZED_CFLAGS \ SIMD \ SSE \ THREADS \ X11 And: $ rm -rf /var/db/ports $ portupgrade -afkC I'm going to close this for now. If I had any trouble, I'll report back. Thank you and sorry for the inconvenience.
After enabling X11 in make.conf, it won't give that error anymore. But, instead I am getting this error now: $ make install clean ===> Staging for xorg-7.7_3 ===> xorg-7.7_3 depends on file: /usr/local/libdata/pkgconfig/dri.pc - found ===> xorg-7.7_3 depends on file: /usr/local/libdata/pkgconfig/xbitmaps.pc - found ===> xorg-7.7_3 depends on file: /usr/local/share/icons/handhelds/cursors/X_cursor - found ===> xorg-7.7_3 depends on package: xorg-apps>0 - found ===> xorg-7.7_3 depends on package: xorg-libraries>0 - found ===> xorg-7.7_3 depends on package: xorg-fonts>0 - found ===> xorg-7.7_3 depends on package: xorg-drivers>0 - not found ===> Staging for xorg-drivers-7.7_6 ===> xorg-drivers-7.7_6 depends on file: /usr/local/lib/xorg/modules/input/kbd_drv.so - found ===> xorg-drivers-7.7_6 depends on file: /usr/local/lib/xorg/modules/input/libinput_drv.so - found ===> xorg-drivers-7.7_6 depends on file: /usr/local/lib/xorg/modules/input/mouse_drv.so - not found ===> Building for xf86-input-mouse-1.9.3_3 --- all --- /usr/bin/make all-recursive --- all-recursive --- Making all in include Making all in src --- bsd_mouse.lo --- /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/usr/local/include/xorg -fvisibility=hidden -I/usr/local/include -I/usr/local/include/pixman-1 -I/usr/local/include/X11/dri -I/usr/local/include/libdrm -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -march=skylake-avx512 -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT bsd_mouse.lo -MD -MP -MF .deps/bsd_mouse.Tpo -c -o bsd_mouse.lo bsd_mouse.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/usr/local/include/xorg -fvisibility=hidden -I/usr/local/include -I/usr/local/include/pixman-1 -I/usr/local/include/X11/dri -I/usr/local/include/libdrm -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -march=skylake-avx512 -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT bsd_mouse.lo -MD -MP -MF .deps/bsd_mouse.Tpo -c bsd_mouse.c -fPIC -DPIC -o .libs/bsd_mouse.o bsd_mouse.c:76:10: fatal error: 'usbhid.h' file not found #include <usbhid.h> ^~~~~~~~~~ 1 error generated. *** [bsd_mouse.lo] Error code 1 make[7]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3/src 1 error make[7]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3/src ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[4]: stopped in /usr/ports/x11-drivers/xf86-input-mouse *** Error code 1 Stop. make[3]: stopped in /usr/ports/x11-drivers/xorg-drivers *** Error code 1 Stop. make[2]: stopped in /usr/ports/x11-drivers/xorg-drivers *** Error code 1 Stop. make[1]: stopped in /usr/ports/x11/xorg *** Error code 1 Stop. make: stopped in /usr/ports/x11/xorg
(In reply to Mohammad S. Babaei from comment #3) Do you have some options in src.conf? If yes, may you try a vanilla world? /usr/src $ find . -name 'usbhid.h' ./sys/dev/usb/usbhid.h ./lib/libusbhid/usbhid.h
You're a life-saver. I never have figured it out. Thank you! $ cat /etc/src.conf WITHOUT_ASSERT_DEBUG=yes WITHOUT_BHYVE=yes WITHOUT_BLUETOOTH=yes WITHOUT_BSDINSTALL=yes WITH_CCACHE_BUILD=yes WITHOUT_CROSS_COMPILER=yes WITHOUT_DEBUG_FILES=yes WITHOUT_DICT=yes WITHOUT_EXAMPLES=yes WITHOUT_FLOPPY=yes WITHOUT_FREEBSD_UPDATE=yes WITHOUT_GAMES=yes WITHOUT_GPIO=yes WITHOUT_HTML=yes WITHOUT_HYPERV=yes WITHOUT_IPFILTER=yes WITHOUT_ISCSI=yes WITHOUT_JAIL=yes WITHOUT_KDUMP=yes WITHOUT_KERNEL_SYMBOLS=yes WITHOUT_KVM=yes WITHOUT_KVM_SUPPORT=yes WITHOUT_LEGACY_CONSOLE=yes WITHOUT_LIB32=yes WITHOUT_LLVM_TARGET_AARCH64=yes WITHOUT_LLVM_TARGET_ALL=yes WITHOUT_LLVM_TARGET_ARM=yes WITHOUT_LLVM_TARGET_MIPS=yes WITHOUT_LLVM_TARGET_POWERPC=yes WITHOUT_LLVM_TARGET_SPARC=yes WITH_LLVM_TARGET_X86=yes WITHOUT_MAN=yes WITHOUT_MAN_UTILS=yes WITHOUT_PC_SYSINSTALL=yes WITHOUT_PF=yes WITHOUT_RADIUS_SUPPORT=yes WITHOUT_SENDMAIL=yes WITHOUT_SHAREDOCS=yes WITHOUT_TESTS=yes WITHOUT_TESTS_SUPPORT=yes WITHOUT_USB=yes WITHOUT_USB_GADGET_EXAMPLES=yes WITHOUT_VI=yes WITHOUT_WIRELESS=yes WITHOUT_WIRELESS_SUPPORT=yes WITHOUT_WPA_SUPPLICANT_EAPOL=yes I guess WITH_USB=yes should do it. Thanks again.