In comp.sys.raspberry-pi Computer Nerd Kev wrote:
>
> The main problem is that I haven't been able to find a good place
> for setting extra system include directories to be checked by
> makedepend (more "-I" options). I tried adding PreIncDir and
> ExtraIncDir defines in config/cf/linux.cf, based on other
> config/cf/*.cf files, but that did nothing.
It turns out the makedpend executable wasn't getting recompiled,
and the include paths are actually compiled into it, so that's why
the changes to linux.cf weren't doing anything.
> I'm also a bit unclear about which directories should be looked in
> for those headers. I've found various headers (often multiple files
> with the same name) that it complains are missing in:
> /usr/include/arm-linux-gnueabihf
> /usr/src/linux-headers-5.4.51+
> /usr/lib/gcc/arm-linux-gnueabihf/8/include
"gcc -xc -E -v -" shows default include paths that GCC would use.
"/usr/src/linux-headers-5.4.51+" isn't among them, but I got past
the makedepend stage by adding header paths to lib/Xaw6/Imakefile.
But then it started with compiler errors about wrong types, etc.
It seems those problems are all in lib/Xaw/OS.c which includes
as a fall-back method of determining the page size.
This include has been commented out in the X.Org version of the
file:
https://gitlab.freedesktop.org/xorg/lib/libxaw/-/blob/master/src/OS.c
so I just did that too and it worked (plus it no longer needs the
extra include paths in lib/Xaw6/Imakefile).
Actually it's still compiling now, but it got me further at the
very least... Now it's stopped in lib/GLU/libnurbs/internals with
a bunch of compiler errors related to this first one:
"In file included from arc.cc:49:
simplemath.h:56:13: error: 'REAL abs(REAL)' conflicts with a
previous declaration
abs( REAL x ) { return ( x < 0.0 ) ? -x : x; }
^
"
Removing the "#if" around this in
extras/ogl-sample/main/gfx/lib/glu/libnurbs/internals/simplemath.h
"#if defined(_SCO_DS) || defined(__SCO__)
#define abs __gluabs
#endif
"
seems to fix that. Looks like I might get there eventually...
--
__ __
#_ < |\| |< _#
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|