TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: COMPUTER NERD KEV
from: COMPUTER NERD KEV
date: 2021-02-03 00:30:00
subject: Re: Building XFree86 for

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.