Building environment using system headers instead of the in-tree headers
Xin Li
delphij at delphij.net
Tue Oct 9 00:14:18 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
Josh Paetzel recently discovered an interesting build issue with the
current FreeBSD 'buildworld', where 'make buildworld' over a FreeBSD
9.0 tree on a FreeBSD 9.1 system will fail.
As it turns out, this was caused by addition of xlocale functionality
on FreeBSD 9.1, which uses macros and expects some new functions found
in more recent FreeBSD releases. On the other hand, we do not pass
e.g. -I${.CURDIR}/../../include so the header is preferred than system
header.
So an obvious way to get around this would be to add that to CFLAGS.
It looks like that in r81600 Peter have "sneak in" such change in libc
because the FILE structure was changed and we have to use that to get
the code compile.
Thinking about the problem, it seems to be reasonable to do it for all
Makefile's as that would bring more consistent compiling results. Is
there any reason not to do this? If no then I will work on changing
the build infrastructure to implement that and send the patch for review.
Comments or objections?
Cheers,
- --
Xin LI <delphij at delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iQEcBAEBCAAGBQJQc2xaAAoJEG80Jeu8UPuz4sQIAIf2Iad2enrPbb6fcVNasMCV
SVwPhR/aQgoTzAC+H/iMcU8NqG89QVxl/0tqlism6RbyA6I0L0bmk1foPPuOJvWr
0/I8RXfwCdiDbb4+5ipNcfjY7sHRypCriEqCB5cpuIS5CkB3k7bxNhHCTGjVobZ2
GviB0jIUkRGZ4EdScaml879ZjnYm6pAbUwWvrruJQTqNMEdbEmdeObRJpl6jbxdV
+5mS9BuYRWAH8OxbrraNicWy1rAZfRRJ8pjqxDtRX+fCYnHMmcYeByBMEpLwpTBV
VQKQ9lFAhOhLkqM1v4J/9MpTx1ruF6uiremLmukXfhStLqdivwZkYPdsZlcG0PA=
=gkqZ
-----END PGP SIGNATURE-----
More information about the freebsd-arch
mailing list