Opened 3 months ago
Closed 3 months ago
#70577 closed defect (fixed)
nnn includes a non-existing header: fatal error: sys/_types/_timespec.h: No such file or directory
Reported by: | barracuda156 | Owned by: | Sergey Fedorov <barracuda@…> |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.1 |
Keywords: | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: | nnn |
Description
Upstream issue: https://github.com/jarun/nnn/issues/1920
---> Building nnn Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/nnn-4.9" && /usr/bin/make -j6 -w all CFLAGS_OPTIMIZATION="" O_PCRE=1 CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/cc/opt/local/bin/gcc-mp-14" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/cxx/opt/local/bin/g++-mp-14" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/objc/opt/local/bin/gcc-mp-14" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/objcxx/opt/local/bin/g++-mp-14" FC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/fc/opt/local/bin/gfortran-mp-14" F77="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/f77/opt/local/bin/gfortran-mp-14" F90="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/f90/opt/local/bin/gfortran-mp-14" INSTALL="/usr/bin/install -c" make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/nnn-4.9' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nnn/nnn/work/compwrap/cc/opt/local/bin/gcc-mp-14 -I/opt/local/include -I/opt/local/include/LegacySupport -DPCRE -DMACOS_BELOW_1012 -Os -I/opt/local/include/LegacySupport -arch ppc -std=c11 -Wall -Wextra -Wshadow -D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR -L/opt/local/lib -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch ppc -o nnn misc/macos-legacy/mach_gettime.c src/nnn.c -lreadline -lpcre -L/opt/local/lib -Wl,-search_paths_first -lncurses -lpthread In file included from misc/macos-legacy/mach_gettime.c:1: misc/macos-legacy/mach_gettime.h:5:10: fatal error: sys/_types/_timespec.h: No such file or directory 5 | #include <sys/_types/_timespec.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from src/nnn.c:112: src/../misc/macos-legacy/mach_gettime.h:5:10: fatal error: sys/_types/_timespec.h: No such file or directory 5 | #include <sys/_types/_timespec.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [nnn] Error 1
Change History (3)
comment:1 Changed 3 months ago by barracuda156
comment:2 Changed 3 months ago by barracuda156
I think we should just throw away that hackish fallback completely and not bother about wrong headers :)
comment:3 Changed 3 months ago by Sergey Fedorov <barracuda@…>
Owner: | set to Sergey Fedorov <barracuda@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The correct header may be
sys/stat.h
, but it does not save us, since there is a conflict betweennnn
fallback for clock_gettime and legacysupport.