Fwd: Problem on a machine with sys/sysmacros.h
Benjamin Réveillé
benjamin.reveille@gmail.com
Wed Feb 21 15:13:00 GMT 2007
Hi Tobias
I'll remember the gcc-help list now.
As for the rest:
line 66-70 of sysmacros.h is:
__inline unsigned int
__NTH (gnu_dev_major (unsigned long long int __dev))
{
return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}
This seems to be the same as yours.
__NTH however is not defined in /usr/include/sys/cdefs.h on the
machine with the problem
It is however defined on the machine that has no problem. So I guess
you've found the source of the problem.
So the last question is "is this a new PR or the reopening of PR30678
or a problem with my work distro ?
Thanks again
Benjamin.
On 2/21/07, Tobias Burnus <burnus@net-b.de> wrote:
> Hi,
>
> Benjamin Réveillé wrote:
> > If there is a better list to send it to, I will be more than happy
> > to accept any redirection.
> I think gcc-help@ ( http://gcc.gnu.org/ml/gcc-help/ ) is the appropriate
> place for this question.
>
> > gcc -c PB.c
> > In file included from /usr/include/sys/types.h:219,
> > from /usr/include/stdlib.h:416,
> > from PB.c:28:
> > /home/irsrvhome1/R10/reveillb/usr/local/gfortran/irun/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/include/sys/sysmacros.h:67:
> >
> > error: expected ')' before '(' token
> Could you check this file, i.e. sysmacros.h?
>
> On my system <gcc-trunk>/..../sys/sysmacros.h contains at line 66-70:
> __inline unsigned int
> __NTH (gnu_dev_major (unsigned long long int __dev))
> {
> return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
> }
>
> And __NTH is here defined in /usr/include/sys/cdefs.h.
>
> > /usr/include/sys/types.h:219 looks like this (full #if block included):
> > # include <sys/sysmacros.h> <----------------------- thisis line 219
> The error occurs in sys/sysmacros.h not in sys/types.h.
>
> Tobias
>
>
More information about the Fortran
mailing list