Problem on a machine with sys/sysmacros.h
Tobias Burnus
burnus@net-b.de
Wed Feb 21 14:37:00 GMT 2007
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