Stefan Dirsch wrote:
> I had the same problem and reverted one line of the change by using
> the following patch.
> (...)

Thanks, but it didn't work for me. However, I managed to solve it on my box
by adding a

#include <freetype/config/ftheader.h>

to all "troublemaking" files.

I looked at the 4.3.99.15-4.3.99.16.diff.bz2 patch. The idea behind that
patch was correct, removing clutter and really trying to push freetype
references out of the local tree, replacing '#include "foo"' with
'#include <FT_FOO>'. But I did noticed something else: there really
shouldn't be ANY need for me to add my own include: See, the patch
always added a

#include <ft2build.h>

And my /usr/include/ft2build.h looks like this:

        #ifndef __FT2_BUILD_UNIX_H__
        #define __FT2_BUILD_UNIX_H__
        #include <freetype/config/ftheader.h>
        #endif /* __FT2_BUILD_UNIX_H__ */

So it should automatically include the file freetype/config/ftheader.h.
Unless __FT2_BUILD_UNIX_H__ was already defined.

*Or* the compiler directive '#include <ft2build.h>' wasn't picking up the
/usr/include/ft2build.h file...

So I checked the access time on /usr/include/ft2build.h...

...and I was right. Nothing had accessed it.

My conclusion: I'm using gcc-3.2.3. And that is probably the key to the
whole mess. Newer releases of gcc treat the '-I' command line options
a bit differently now, the include directories are searched in
a different order than they would have been searched with earlier
versions of gcc. And this bad, bad thing that happens when you try to
use an external freetype is that gcc (at least my gcc) picks some
includes from /usr/include/freetype2, and some from xc/extras/freetype2.

I found that I really don't even need any patches. All I have to do is
remove all ft2build.h files from the xc tree and it will build nicely.
So it is obviously something related to the order in which my gcc picks
up header files. Because no-one else reported this, I guess it's
a gcc-version-incompatibility thing.

But that's the way it goes with newer tools, for example twm won't
compile with my flex-2.5.31. Compilation fails with

<stdout>: In function `yylex':
<stdout>:837: error: `yy_prev_more_offset' undeclared (first use in this
function)
<stdout>:837: error: (Each undeclared identifier is reported only once
<stdout>:837: error: for each function it appears in.)

not that I care, I don't need twm, but I think that xfree86 developers
really could update their devel tools, some of us users are maybe using
more up-to-date tools and XFree86 just won't compile for us :/

-- 
\hoppke
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to