Solved fatal error: '__tuple/tuple_element.h' file not found (when upgrading ports)

Greetings,

A while ago, I upgraded from 13.3 to 13.4 (GENERIC kernel) and noticed that whenever I upgraded the ports, most of them would fail due to the following error...

Code:
===>  Building for ninja-1.11.1,4
/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py:26: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
  import pipes
bootstrapping ninja...
"./src/inline.sh" kBrowsePy < ./src/browse.py > build/browse_py.h
c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -c ./src/browse.cc -o build/browse.o
In file included from ./src/browse.cc:21:
In file included from /usr/include/c++/v1/vector:308:
In file included from /usr/include/c++/v1/__algorithm/copy.h:12:
In file included from /usr/include/c++/v1/__algorithm/copy_move_common.h:14:
In file included from /usr/include/c++/v1/__algorithm/unwrap_range.h:19:
In file included from /usr/include/c++/v1/__utility/pair.h:17:
/usr/include/c++/v1/__fwd/get.h:18:10: fatal error: '__tuple/tuple_element.h' file not found
   18 | #include <__tuple/tuple_element.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
when running:  c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -c ./src/browse.cc -o build/browse.o
Traceback (most recent call last):
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 470, in <module>
    objs += cxx('browse', order_only=built('browse_py.h'))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 287, in cxx
    return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 169, in build
    self._run_command(self._expand(cmd, local_vars))
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 194, in _run_command
    subprocess.check_call(cmdline, shell=True)
  File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -c ./src/browse.cc -o build/browse.o' returned non-zero exit status 1.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/ninja
*** Error code 1


Most notably, the part pertaining to /usr/include/c++/v1/__fwd/get.h:18:10: fatal error: '__tuple/tuple_element.h' file not found.


Doing some research I saw that someone else had a similar issue and they were instructed to delete their source (/usr/src), repopulate it, then attempt to upgrade again.
I did this, deciding to upgrade to 13.5 in the process. However, I noticed after rebooting and running the last freebsd-update install, I saw these errors...
Code:
[carltonfsck@ssh ~]$ sudo freebsd-update install
Installing updates...install: ///usr/include/c++/v1/__tuple/INS@a10n58: No such file or directory
install: ///usr/include/c++/v1/__tuple/INS@6x8kPz: No such file or directory
install: ///usr/include/c++/v1/__tuple/INS@kH4xIZ: No such file or directory

Even after the upgrade I'm still running into the same portupgrade header error originally noted above.

I came across the following bug ID (278377) that explains the issue, but it's not very helpful...

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278377



Any idea how to resolve this?



Thanks!
 
You should unpack a release tarball and take /usr/include from there to replace your /usr/include.
Greetings,

So I went ahead and did what you suggested. However, when I attempt to portupgrade, I still get the error, but it's pointing to a different header file not being found....
Code:
In file included from /usr/include/c++/v1/vector:308:
In file included from /usr/include/c++/v1/__algorithm/copy.h:12:
In file included from /usr/include/c++/v1/__algorithm/copy_move_common.h:14:
In file included from /usr/include/c++/v1/__algorithm/unwrap_range.h:19:
/usr/include/c++/v1/__utility/pair.h:19:10: fatal error: '__tuple/sfinae_helpers.h' file not found
   19 | #include <__tuple/sfinae_helpers.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
when running:  c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -c ./src/browse.cc -o build/browse.o
Traceback (most recent call last):
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 470, in <module>
    objs += cxx('browse', order_only=built('browse_py.h'))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 287, in cxx
    return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 169, in build
    self._run_command(self._expand(cmd, local_vars))
  File "/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py", line 194, in _run_command
    subprocess.check_call(cmdline, shell=True)
  File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -c ./src/browse.cc -o build/browse.o' returned non-zero exit status 1.
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/ninja
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/rust
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/eza
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20250318-53673-hbauof env UPGRADE_TOOL=portupgrade UPGRADE_PORT=eza-0.20.14 UPGRADE_PORT_VER=0.20.14 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! sysutils/eza (eza-0.20.14)    (unknown build error)
[carltonfsck@ssh /usr/ports]$
[code]
 
The problem is stale files, so you have to do an actual replace of the entire /usr/include/

So I went ahead and replaced my /usr/include with the one from the downloaded src.txz file.
Attempted to portupgrade again and I see several ports failing on the following header files...

Code:
/usr/ports/devel/ninja/work/ninja-1.11.1/configure.py:26: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
  import pipes
bootstrapping ninja...
"./src/inline.sh" kBrowsePy < ./src/browse.py > build/browse_py.h
c++ -MMD -MT build/browse.o -MF build/browse.o.d -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.11"' -O2 -DNDEBUG -fdiagnostics-color -I/usr/local/include -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -c ./src/browse.cc -o build/browse.o
[B]./src/browse.cc:17:10: fatal error: 'errno.h' file not found[/B]
   17 | #include <errno.h>
      |          ^~~~~~~~~
1 error generated.



===>   postfix-3.10.1,1 depends on shared library: libsasl2.so - found (/usr/local/lib/libsasl2.so)
===>  Configuring for postfix-3.10.1,1
make -C /usr/ports/mail/postfix/work-default/postfix-3.10.1 -f Makefile.init makefiles  DEBUG= pie=yes CC="cc" OPT="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing " CCARGS="-DDEF_CONFIG_DIR=\\\"/usr/local/etc/postfix\\\"  -DDEF_DAEMON_DIR=\\\"/usr/local/libexec/postfix\\\"  -DDEF_META_DIR=\\\"/usr/local/libexec/postfix\\\"  -DDEF_COMMAND_DIR=\\\"/usr/local/sbin\\\"  -DDEF_SENDMAIL_PATH=\\\"/usr/local/sbin/sendmail\\\"  -DDEF_NEWALIAS_PATH=\\\"/usr/local/bin/newaliases\\\"  -DDEF_MAILQ_PATH=\\\"/usr/local/bin/mailq\\\"  -DDEF_MANPAGE_DIR=\\\"/usr/local/share/man\\\"  -DDEF_README_DIR=\\\"/usr/local/share/doc/postfix\\\"  -DDEF_HTML_DIR=\\\"/usr/local/share/doc/postfix\\\"  -DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\"  -DDEF_DATA_DIR=\\\"/var/db/postfix\\\"  -DDEF_MAIL_OWNER=\\\"postfix\\\"  -DDEF_SGID_GROUP=\\\"maildrop\\\"  -Wmissing-prototypes -Wformat -Wno-comment -DUSE_SASL_AUTH -DHAS_EAI -I/usr/local/include -DHAS_PCRE=2 -I/usr/local/include -DUSE_CYRUS_SASL -I/usr/local/include  -I/usr/local/include/sasl -DUSE_TLS -I/usr/include"  shared=yes shlib_directory=/usr/local/lib/postfix  dynamicmaps=yes  "AUXLIBS_PCRE=`/usr/local/bin/pcre2-config --libs8`"  AUXLIBS="-L/usr/local/lib -licuuc -L/usr/local/lib -lsasl2 -lpam -lcrypt -L/usr/lib   -fstack-protector-strong  -lssl -lcrypto -lblacklist"
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
In file included from makedefs.test.c:1:
[B]/usr/include/setjmp.h:42:10: fatal error: 'sys/cdefs.h' file not found[/B]
   42 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
1 error generated.

There appears to be some directories missing like 'sys' and some others that I recall seeing in my old /usr/include.
This is what the 'src.tar' looks like after I extracted it. There's only the "/usr/src/include" directory.
Code:
[root@ssh ~/usr/src/include]# pwd
/root/usr/src/include
[root@ssh ~/usr/src/include]# ls -l
.rw-r--r-- 6.1k root  7 Mar 00:04 _ctype.h
.rw-r--r-- 1.9k root  7 Mar 00:04 a.out.h
.rw-r--r-- 2.7k root  7 Mar 00:04 ar.h
drwxr-xr-x    - root  7 Mar 00:04 arpa
.rw-r--r-- 3.0k root  7 Mar 00:04 assert.h
.rw-r--r-- 1.5k root  7 Mar 00:04 bitstring.h
.rw-r--r-- 1.4k root  7 Mar 00:04 byteswap.h
.rw-r--r-- 4.8k root  7 Mar 00:04 complex.h
.rw-r--r-- 2.4k root  7 Mar 00:04 cpio.h
.rw-r--r-- 4.7k root  7 Mar 00:04 ctype.h
.rw-r--r-- 7.7k root  7 Mar 00:04 db.h
.rw-r--r-- 4.5k root  7 Mar 00:04 dirent.h
.rw-r--r-- 5.1k root  7 Mar 00:04 dlfcn.h
.rw-r--r-- 2.0k root  7 Mar 00:04 elf-hints.h
.rw-r--r-- 1.6k root  7 Mar 00:04 elf.h
.rw-r--r-- 1.2k root  7 Mar 00:04 endian.h
.rw-r--r-- 3.0k root  7 Mar 00:04 err.h
.rw-r--r-- 2.8k root  7 Mar 00:04 fmtmsg.h
.rw-r--r-- 2.4k root  7 Mar 00:04 fnmatch.h
.rw-r--r-- 3.1k root  7 Mar 00:04 fstab.h
.rw-r--r-- 5.6k root  7 Mar 00:04 fts.h
.rw-r--r-- 2.3k root  7 Mar 00:04 ftw.h
.rw-r--r-- 2.8k root  7 Mar 00:04 getopt.h
.rw-r--r-- 4.3k root  7 Mar 00:04 glob.h
.rw-r--r-- 3.3k root  7 Mar 00:04 grp.h
drwxr-xr-x    - root  7 Mar 00:04 gssapi
.rw-r--r--  142 root  7 Mar 00:04 gssapi.h
.rw-r--r-- 3.6k root  7 Mar 00:04 hesiod.h
.rw-r--r-- 4.3k root  7 Mar 00:04 iconv.h
.rw-r--r--  245 root  7 Mar 00:04 ieeefp.h
.rw-r--r-- 2.1k root  7 Mar 00:04 ifaddrs.h
.rw-r--r-- 2.2k root  7 Mar 00:04 inttypes.h
.rw-r--r-- 1.7k root  7 Mar 00:04 iso646.h
.rw-r--r-- 1.6k root  7 Mar 00:04 kenv.h
.rw-r--r-- 4.0k root  7 Mar 00:04 langinfo.h
.rw-r--r-- 2.7k root  7 Mar 00:04 libgen.h
.rw-r--r-- 4.8k root  7 Mar 00:04 limits.h
.rw-r--r-- 1.7k root  7 Mar 00:04 link.h
.rw-r--r-- 2.7k root  7 Mar 00:04 locale.h
.rw-r--r--  14k root  7 Mar 00:04 Makefile
.rw-r--r--  189 root  7 Mar 00:04 Makefile.depend
.rw-r--r--   89 root  7 Mar 00:04 malloc.h
.rw-r--r-- 5.1k root  7 Mar 00:04 malloc_np.h
.rw-r--r-- 1.7k root  7 Mar 00:04 memory.h
.rwxr-xr-x 1.9k root  7 Mar 00:04 mk-osreldate.sh
.rw-r--r-- 1.9k root  7 Mar 00:04 monetary.h
.rw-r--r-- 4.2k root  7 Mar 00:04 mpool.h
.rw-r--r-- 2.2k root  7 Mar 00:04 mqueue.h
.rw-r--r-- 2.7k root  7 Mar 00:04 ndbm.h
.rw-r--r-- 3.8k root  7 Mar 00:04 netconfig.h
.rw-r--r--  11k root  7 Mar 00:04 netdb.h
.rw-r--r-- 3.0k root  7 Mar 00:04 nl_types.h
.rw-r--r-- 2.2k root  7 Mar 00:04 nlist.h
.rw-r--r-- 2.3k root  7 Mar 00:04 nss.h
.rw-r--r-- 7.4k root  7 Mar 00:04 nsswitch.h
.rw-r--r-- 2.9k root  7 Mar 00:04 ossfuzz.h
.rw-r--r-- 5.4k root  7 Mar 00:04 paths.h
.rw-r--r-- 5.2k root  7 Mar 00:04 printf.h
.rw-r--r-- 3.0k root  7 Mar 00:04 proc_service.h
drwxr-xr-x    - root  7 Mar 00:04 protocols
.rw-r--r--  13k root  7 Mar 00:04 pthread.h
.rw-r--r-- 3.3k root  7 Mar 00:04 pthread_np.h
.rw-r--r-- 6.2k root  7 Mar 00:04 pwd.h
.rw-r--r-- 2.0k root  7 Mar 00:04 ranlib.h
.rw-r--r-- 1.9k root  7 Mar 00:04 readpassphrase.h
.rw-r--r-- 3.9k root  7 Mar 00:04 regex.h
.rw-r--r-- 2.5k root  7 Mar 00:04 res_update.h
.rw-r--r--  19k root  7 Mar 00:04 resolv.h
drwxr-xr-x    - root  7 Mar 00:04 rpc
drwxr-xr-x    - root  7 Mar 00:04 rpcsvc
.rw-r--r-- 3.8k root  7 Mar 00:04 runetype.h
.rw-r--r-- 2.0k root  7 Mar 00:04 sched.h
.rw-r--r-- 1.7k root  7 Mar 00:04 search.h
.rw-r--r-- 2.4k root  7 Mar 00:04 semaphore.h
.rw-r--r-- 2.5k root  7 Mar 00:04 setjmp.h
.rw-r--r-- 4.5k root  7 Mar 00:04 signal.h
.rw-r--r-- 4.7k root  7 Mar 00:04 spawn.h
.rw-r--r-- 3.1k root  7 Mar 00:04 stab.h
.rw-r--r-- 1.8k root  7 Mar 00:04 stdalign.h
.rw-r--r-- 1.7k root  7 Mar 00:04 stdbool.h
.rw-r--r-- 2.6k root  7 Mar 00:04 stddef.h
.rw-r--r--  17k root  7 Mar 00:04 stdio.h
.rw-r--r--  11k root  7 Mar 00:04 stdlib.h
.rw-r--r-- 1.6k root  7 Mar 00:04 stdnoreturn.h
.rw-r--r-- 5.7k root  7 Mar 00:04 string.h
.rw-r--r-- 1.8k root  7 Mar 00:04 stringlist.h
.rw-r--r-- 2.5k root  7 Mar 00:04 strings.h
.rw-r--r-- 5.3k root  7 Mar 00:04 sysexits.h
.rw-r--r-- 3.0k root  7 Mar 00:04 tar.h
.rw-r--r-- 3.3k root  7 Mar 00:04 termios.h
.rw-r--r-- 9.0k root  7 Mar 00:04 tgmath.h
.rw-r--r-- 6.1k root  7 Mar 00:04 time.h
.rw-r--r-- 2.5k root  7 Mar 00:04 timeconv.h
.rw-r--r-- 2.0k root  7 Mar 00:04 timers.h
.rw-r--r-- 3.0k root  7 Mar 00:04 ttyent.h
.rw-r--r-- 2.3k root  7 Mar 00:04 uchar.h
.rw-r--r-- 1.6k root  7 Mar 00:04 ulimit.h
.rw-r--r--  19k root  7 Mar 00:04 unistd.h
.rw-r--r-- 2.0k root  7 Mar 00:04 utime.h
.rw-r--r-- 3.1k root  7 Mar 00:04 utmpx.h
.rw-r--r-- 2.5k root  7 Mar 00:04 uuid.h
.rw-r--r-- 1.6k root  7 Mar 00:04 varargs.h
.rw-r--r-- 9.1k root  7 Mar 00:04 wchar.h
.rw-r--r-- 4.0k root  7 Mar 00:04 wctype.h
.rw-r--r-- 2.8k root  7 Mar 00:04 wordexp.h
drwxr-xr-x    - root  7 Mar 00:04 xlocale
.rw-r--r-- 2.2k root  7 Mar 00:04 xlocale.h
[root@ssh ~/usr/src/include]#

And this is what the '/usr/include' directory looks like once I removed everything, then replaced it with the untarred src.tar from above...

Code:
[root@ssh /usr/include]# ls -l
.rw-r--r-- 6.1k root 19 Mar 05:42 _ctype.h
.rw-r--r-- 1.9k root 19 Mar 05:42 a.out.h
.rw-r--r-- 2.7k root 19 Mar 05:42 ar.h
drwxr-xr-x    - root 19 Mar 05:42 arpa
.rw-r--r-- 3.0k root 19 Mar 05:42 assert.h
.rw-r--r-- 1.5k root 19 Mar 05:42 bitstring.h
.rw-r--r-- 1.4k root 19 Mar 05:42 byteswap.h
.rw-r--r--  30k root 19 Mar 08:39 cdefs.h
.rw-r--r-- 4.8k root 19 Mar 05:42 complex.h
.rw-r--r-- 2.4k root 19 Mar 05:42 cpio.h
.rw-r--r-- 4.7k root 19 Mar 05:42 ctype.h
.rw-r--r-- 7.7k root 19 Mar 05:42 db.h
.rw-r--r-- 4.5k root 19 Mar 05:42 dirent.h
.rw-r--r-- 5.1k root 19 Mar 05:42 dlfcn.h
.rw-r--r-- 2.0k root 19 Mar 05:42 elf-hints.h
.rw-r--r-- 1.6k root 19 Mar 05:42 elf.h
.rw-r--r-- 1.2k root 19 Mar 05:42 endian.h
.rw-r--r-- 3.0k root 19 Mar 05:42 err.h
.rw-r--r--  11k root 19 Mar 07:29 errno.h
.rw-r--r-- 2.8k root 19 Mar 05:42 fmtmsg.h
.rw-r--r-- 2.4k root 19 Mar 05:42 fnmatch.h
.rw-r--r-- 3.1k root 19 Mar 05:42 fstab.h
.rw-r--r-- 5.6k root 19 Mar 05:42 fts.h
.rw-r--r-- 2.3k root 19 Mar 05:42 ftw.h
.rw-r--r-- 2.8k root 19 Mar 05:42 getopt.h
.rw-r--r-- 4.3k root 19 Mar 05:42 glob.h
.rw-r--r-- 3.3k root 19 Mar 05:42 grp.h
drwxr-xr-x    - root 19 Mar 05:42 gssapi
.rw-r--r--  142 root 19 Mar 05:42 gssapi.h
.rw-r--r-- 3.6k root 19 Mar 05:42 hesiod.h
.rw-r--r-- 4.3k root 19 Mar 05:42 iconv.h
.rw-r--r--  245 root 19 Mar 05:42 ieeefp.h
.rw-r--r-- 2.1k root 19 Mar 05:42 ifaddrs.h
.rw-r--r-- 2.2k root 19 Mar 05:42 inttypes.h
.rw-r--r-- 1.7k root 19 Mar 05:42 iso646.h
.rw-r--r-- 1.6k root 19 Mar 05:42 kenv.h
.rw-r--r-- 4.0k root 19 Mar 05:42 langinfo.h
.rw-r--r-- 2.7k root 19 Mar 05:42 libgen.h
.rw-r--r-- 4.8k root 19 Mar 05:42 limits.h
.rw-r--r-- 1.7k root 19 Mar 05:42 link.h
.rw-r--r-- 2.7k root 19 Mar 05:42 locale.h
.rw-r--r--  14k root 19 Mar 05:42 Makefile
.rw-r--r--  189 root 19 Mar 05:42 Makefile.depend
.rw-r--r--   89 root 19 Mar 05:42 malloc.h
.rw-r--r-- 5.1k root 19 Mar 05:42 malloc_np.h
.rw-r--r-- 1.7k root 19 Mar 05:42 memory.h
.rwxr-xr-x 1.9k root 19 Mar 05:42 mk-osreldate.sh
.rw-r--r-- 1.9k root 19 Mar 05:42 monetary.h
.rw-r--r-- 4.2k root 19 Mar 05:42 mpool.h
.rw-r--r-- 2.2k root 19 Mar 05:42 mqueue.h
.rw-r--r-- 2.7k root 19 Mar 05:42 ndbm.h
.rw-r--r-- 3.8k root 19 Mar 05:42 netconfig.h
.rw-r--r--  11k root 19 Mar 05:42 netdb.h
.rw-r--r-- 3.0k root 19 Mar 05:42 nl_types.h
.rw-r--r-- 2.2k root 19 Mar 05:42 nlist.h
.rw-r--r-- 2.3k root 19 Mar 05:42 nss.h
.rw-r--r-- 7.4k root 19 Mar 05:42 nsswitch.h
.rw-r--r-- 2.9k root 19 Mar 05:42 ossfuzz.h
.rw-r--r-- 5.4k root 19 Mar 05:42 paths.h
.rw-r--r-- 5.2k root 19 Mar 05:42 printf.h
.rw-r--r-- 3.0k root 19 Mar 05:42 proc_service.h
drwxr-xr-x    - root 19 Mar 05:42 protocols
.rw-r--r--  13k root 19 Mar 05:42 pthread.h
.rw-r--r-- 3.3k root 19 Mar 05:42 pthread_np.h
.rw-r--r-- 6.2k root 19 Mar 05:42 pwd.h
.rw-r--r-- 2.0k root 19 Mar 05:42 ranlib.h
.rw-r--r-- 1.9k root 19 Mar 05:42 readpassphrase.h
.rw-r--r-- 3.9k root 19 Mar 05:42 regex.h
.rw-r--r-- 2.5k root 19 Mar 05:42 res_update.h
.rw-r--r--  19k root 19 Mar 05:42 resolv.h
drwxr-xr-x    - root 19 Mar 05:42 rpc
drwxr-xr-x    - root 19 Mar 05:42 rpcsvc
.rw-r--r-- 3.8k root 19 Mar 05:42 runetype.h
.rw-r--r-- 2.0k root 19 Mar 05:42 sched.h
.rw-r--r-- 1.7k root 19 Mar 05:42 search.h
.rw-r--r-- 2.4k root 19 Mar 05:42 semaphore.h
.rw-r--r-- 2.5k root 19 Mar 05:42 setjmp.h
.rw-r--r-- 4.5k root 19 Mar 05:42 signal.h
.rw-r--r-- 4.7k root 19 Mar 05:42 spawn.h
.rw-r--r-- 3.1k root 19 Mar 05:42 stab.h
.rw-r--r-- 1.8k root 19 Mar 05:42 stdalign.h
.rw-r--r-- 1.7k root 19 Mar 05:42 stdbool.h
.rw-r--r-- 2.6k root 19 Mar 05:42 stddef.h
.rw-r--r--  17k root 19 Mar 05:42 stdio.h
.rw-r--r--  11k root 19 Mar 05:42 stdlib.h
.rw-r--r-- 1.6k root 19 Mar 05:42 stdnoreturn.h
.rw-r--r-- 5.7k root 19 Mar 05:42 string.h
.rw-r--r-- 1.8k root 19 Mar 05:42 stringlist.h
.rw-r--r-- 2.5k root 19 Mar 05:42 strings.h
.rw-r--r-- 5.3k root 19 Mar 05:42 sysexits.h
.rw-r--r-- 3.0k root 19 Mar 05:42 tar.h
.rw-r--r-- 3.3k root 19 Mar 05:42 termios.h
.rw-r--r-- 9.0k root 19 Mar 05:42 tgmath.h
.rw-r--r-- 6.1k root 19 Mar 05:42 time.h
.rw-r--r-- 2.5k root 19 Mar 05:42 timeconv.h
.rw-r--r-- 2.0k root 19 Mar 05:42 timers.h
.rw-r--r-- 3.0k root 19 Mar 05:42 ttyent.h
.rw-r--r-- 2.3k root 19 Mar 05:42 uchar.h
.rw-r--r-- 1.6k root 19 Mar 05:42 ulimit.h
.rw-r--r--  19k root 19 Mar 05:42 unistd.h
.rw-r--r-- 2.0k root 19 Mar 05:42 utime.h
.rw-r--r-- 3.1k root 19 Mar 05:42 utmpx.h
.rw-r--r-- 2.5k root 19 Mar 05:42 uuid.h
.rw-r--r-- 1.6k root 19 Mar 05:42 varargs.h
.rw-r--r-- 9.1k root 19 Mar 05:42 wchar.h
.rw-r--r-- 4.0k root 19 Mar 05:42 wctype.h
.rw-r--r-- 2.8k root 19 Mar 05:42 wordexp.h
drwxr-xr-x    - root 19 Mar 05:42 xlocale
.rw-r--r-- 2.2k root 19 Mar 05:42 xlocale.h
[root@ssh /usr/include]#

Doing a search for 'errno.h' and 'sys/cdefs.h' confirms this...

Code:
[root@ssh ~]# tar -tf src.tar |grep "errno.h"
usr/src/tools/build/cross-build/include/linux/errno.h
usr/src/sys/contrib/openzfs/include/os/linux/spl/sys/errno.h
usr/src/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/errno.h
usr/src/sys/sys/errno.h
usr/src/sys/bsm/audit_errno.h
usr/src/sys/compat/linux/linux_errno.h
usr/src/sys/compat/linuxkpi/common/include/linux/errno.h
usr/src/sys/xen/interface/errno.h
usr/src/contrib/openbsm/sys/bsm/audit_errno.h
usr/src/contrib/apr-util/include/apu_errno.h
usr/src/contrib/apr/include/apr_errno.h
usr/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_errno.h
usr/src/contrib/llvm-project/libcxx/include/errno.h
usr/src/contrib/lib9p/linux_errno.h
usr/src/stand/liblua/lerrno.h
[root@ssh ~]#

Code:
[root@ssh ~]# tar -rf src.tar |grep "sys/cdefs.h"
tar: no files or directories specified
[root@ssh ~]# tar -rf src.tar |grep "cdefs.h"
tar: no files or directories specified
[root@ssh ~]# tar -tf src.tar |grep "cdefs.h"
usr/src/tools/build/cross-build/include/common/sys/cdefs.h
usr/src/lib/libnetbsd/sys/cdefs.h
usr/src/usr.sbin/lpr/common_source/lp.cdefs.h
usr/src/sys/sys/cdefs.h
usr/src/sys/dev/pms/RefTisa/sallsdk/spc/spcdefs.h
usr/src/sys/mips/include/cdefs.h
usr/src/contrib/sendmail/libsm/cdefs.html
usr/src/contrib/sendmail/include/sm/cdefs.h
usr/src/contrib/bmake/missing/sys/cdefs.h
[root@ssh ~]#
 
Back
Top