Re: gcc compiler problem part deux

2000-01-01 Thread Peter Jeremy
I wrote: >Last time I checked (I haven't moved to the latest gcc, so I can't >confirm it there), one significant difference between 'cc -E' and >/usr/libexec/cpp was that the latter would read from a pipe, whilst >the former wouldn't. It seems I was wrong. As several people have pointed out, bot

Re: gcc compiler problem part deux

1999-12-30 Thread Brian Fundakowski Feldman
On Fri, 31 Dec 1999, Peter Jeremy wrote: > Last time I checked (I haven't moved to the latest gcc, so I can't > confirm it there), one significant difference between 'cc -E' and > /usr/libexec/cpp was that the latter would read from a pipe, whilst > the former wouldn't. This can make converting

Re: gcc compiler problem part deux

1999-12-30 Thread John Polstra
In article <[EMAIL PROTECTED]>, Peter Jeremy <[EMAIL PROTECTED]> wrote: > Last time I checked (I haven't moved to the latest gcc, so I can't > confirm it there), one significant difference between 'cc -E' > and /usr/libexec/cpp was that the latter would read from a pipe, > whilst the former would

Re: gcc compiler problem part deux

1999-12-30 Thread Peter Jeremy
Last time I checked (I haven't moved to the latest gcc, so I can't confirm it there), one significant difference between 'cc -E' and /usr/libexec/cpp was that the latter would read from a pipe, whilst the former wouldn't. This can make converting to 'cc -E' a non-trivial exercise. Peter To Uns

Re: gcc compiler problem part deux

1999-12-29 Thread Amancio Hasty
The usage came about oh about 8 years ago with the very first port of X to 386bsd by yours truly 8) Don't forget I did fix the problem on my X build and I am running the latest XFree86 3.9.xx on my other box. Take Care > > Forgot to post about this new feature of /usr/libexec/cpp : > >

Re: gcc compiler problem part deux

1999-12-29 Thread David O'Brien
> Forgot to post about this new feature of /usr/libexec/cpp : NO ONE should have ever have been using /usr/libexec/cpp directly. I have no idea where this usage came from. /usr/bin/cpp should have been used. > 2. Now a very recent FreeBSD -current > gcc -v > Using builtin specs. > gcc version

Re: gcc compiler problem part deux

1999-12-29 Thread Bill Fumerola
On Wed, 29 Dec 1999, Amancio Hasty wrote: > There are packages such as XFree86 which called directly the installed > cpp. Those packages which rely on the old behavior of /usr/libexec/cpp > for instance defining __FreeBSD__ are now broken . ... and they will be fixed through bug reports. We no

Re: gcc compiler problem part deux

1999-12-29 Thread Amancio Hasty
It is more of a question of whether the packages for FreeBSD expect /usr/libexec/cpp to define __FreeBSD__ and in my case XFree86. Once I managed to find out what was wrong it was indeed easy for me to fix. If the "other" applications managed to compile correctly on FreeBSD because of /usr/libexec

Re: gcc compiler problem part deux

1999-12-29 Thread Mike Smith
> There are packages such as XFree86 which called directly the installed > cpp. Those packages which rely on the old behavior of /usr/libexec/cpp > for instance defining __FreeBSD__ are now broken . XFree86 is trivial to patch, since it already supports this behaviour (see our port), and other a

Re: gcc compiler problem part deux

1999-12-29 Thread Amancio Hasty
There are packages such as XFree86 which called directly the installed cpp. Those packages which rely on the old behavior of /usr/libexec/cpp for instance defining __FreeBSD__ are now broken . > > This was discussed weeks ago, and the new behaviour is correct. You > should be using 'cc -E' i

Re: gcc compiler problem part deux

1999-12-29 Thread Mike Smith
This was discussed weeks ago, and the new behaviour is correct. You should be using 'cc -E' instead. > > Forgot to post about this new feature of /usr/libexec/cpp : > 1. Test file > foo.c > > main() { > #ifdef __FreeBSD__ > printf("hello\n"); > #endif > } > > 1. old freebsd-current >

gcc compiler problem part deux

1999-12-29 Thread Amancio Hasty
Forgot to post about this new feature of /usr/libexec/cpp : 1. Test file foo.c main() { #ifdef __FreeBSD__ printf("hello\n"); #endif } 1. old freebsd-current 2. gcc -v Using builtin specs. gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) /usr/libexec/cpp foo.c # 1 "foo.c"