On Thu, 12 Jul 2018 08:16:06 +1000
Stephen Morris <samorris(a)netspace.net.au> wrote:
Both with the F28 kernel, being 4.17.3-200, and the F27 kernel I
mentioned, the compile fails with stdarg.h not found, so I'm now
confused about what the F28 upgrade has done. The F28 upgrade should
not have updated the F27 kernel source that was already installed and
hence there should not be any barriers to compiling the driver
against the F27 kernel when under F27 it did compile.
It sounds like you are either missing the package that provides the C
standard library include files, or its location has changed. I doubt
it has anything to do with the kernel.
On my system, I have the following hits when I use:
$ find /usr -iname '*stdarg*'
/usr/lib/dietlibc/include/stdarg-cruft.h
/usr/lib/dietlibc/include/stdarg.h
/usr/lib/gcc/x86_64-redhat-linux/8/include/cross-stdarg.h
/usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/include/stdarg.h
/usr/lib64/llvm5.0/lib/clang/5.0.1/include/stdarg.h
/usr/lib64/bcc/include/stdarg.h
/usr/lib64/clang/6.0.0/include/stdarg.h
/usr/lib64/pcc/x86_64-unknown-linux-gnu/1.2.0.DEVEL/include/libpcc_stdarg.h
/usr/lib64/pcc/x86_64-unknown-linux-gnu/1.2.0.DEVEL/include/stdarg.h
/usr/lib64/perl5/stdarg.ph
/usr/share/castxml/clang/include/stdarg.h
/usr/share/root/cling/lib/clang/5.0.0/include/stdarg.h
/usr/share/splint/imports/stdarg.lcs
/usr/share/splint/imports/stdarg.lcl
/usr/share/man/man0p/stdarg.h.0p.gz
/usr/share/man/man3/stdarg.3.gz
/usr/share/sdcc/include/pic16/stdarg.h
/usr/share/sdcc/include/stdarg.h
/usr/include/efi/efistdarg.h
/usr/include/c++/8/tr1/cstdarg
/usr/include/c++/8/tr1/stdarg.h
/usr/include/c++/8/cstdarg
/usr/include/boost/compatibility/cpp_c_headers/cstdarg
I think this
/usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h
is the official one, though I'm not sure where the drivers you are
trying to compile are looking. You could look at them (use a grep for
stdarg) in their source directory. The standard version comes from the
gcc package, gcc-8.1.1-1.fc28.x86_64. Is it installed on your system?