Hi, * Vincent Lefevre [07-02-28 03:43:34 +0100] wrote:
What are the output of "env | grep PATH", the include paths given by "cpp -v", and the OS?
$ env | grep PATH PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/opt/freebsd/gcc34/bin:/usr/local/gnu-autotools/bin $ uname -msr FreeBSD 6.2-STABLE i386 'cpp -v' only mentions /usr/include as expected.I've also looked up how I fixed it in mutt-ng: in configure.in I've switched the order from 'ncurses ncursesw' the other way round.
But when thinking about it, this is a kludge only since in /usr I could have ncursesw, too but still could prefer the /usr/local one.
Anyway, since /usr/include is a builtin path I think the only proper fix could be to make gcc ignore builin paths and construct everything manually adding the defaults to the end. But I bet this will break quite often.
bye, Rocco -- :wq!