2005-02-21 02:26:05

by Anil Kumar

[permalink] [raw]
Subject: driver compile Parse error with gcc-3.4.3

Hi,

I am new to linux. I am trying to build one of my drivers for
2.6.9-5.EL, RHEL 4, I am getting compile parse errors as follows:
error: parse error before '(' token

#gcc -v
Configured with: ./configure --prefix=/usr/adaptec/build/gcc343-32bit
--enable-threads=posix --disable-checking --target=i386-redhat-linux
--host=i686-redhat-linux-gnu
--with-libs=/usr/adaptec/build/gcc343-32bit/lib
--with-headers=/usr/adaptec/build/gcc343-32bit/include
--enable-languages=c --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --enable-java-awt=gtk --enable-shared
--mandir=/usr/adaptec/build/gcc343-32bit/man
--infodir=/usr/adaptec/build/gcc343-32bit/info
Thread model: posix
gcc version 3.4.3

regards,
Anil


2005-02-21 03:33:00

by Randy.Dunlap

[permalink] [raw]
Subject: Re: driver compile Parse error with gcc-3.4.3

Anil Kumar wrote:
> Hi,
>
> I am new to linux. I am trying to build one of my drivers for
> 2.6.9-5.EL, RHEL 4, I am getting compile parse errors as follows:
> error: parse error before '(' token

Complete gcc output plus driver source file would help a lot.

> #gcc -v
> Configured with: ./configure --prefix=/usr/adaptec/build/gcc343-32bit
> --enable-threads=posix --disable-checking --target=i386-redhat-linux
> --host=i686-redhat-linux-gnu
> --with-libs=/usr/adaptec/build/gcc343-32bit/lib
> --with-headers=/usr/adaptec/build/gcc343-32bit/include
> --enable-languages=c --disable-libunwind-exceptions --with-system-zlib
> --enable-__cxa_atexit --enable-java-awt=gtk --enable-shared
> --mandir=/usr/adaptec/build/gcc343-32bit/man
> --infodir=/usr/adaptec/build/gcc343-32bit/info
> Thread model: posix
> gcc version 3.4.3

--
~Randy

2005-02-21 09:34:20

by Arjan van de Ven

[permalink] [raw]
Subject: Re: driver compile Parse error with gcc-3.4.3

On Sun, 2005-02-20 at 18:25 -0800, Anil Kumar wrote:
> Hi,
>
> I am new to linux. I am trying to build one of my drivers for
> 2.6.9-5.EL, RHEL 4, I am getting compile parse errors as follows:
> error: parse error before '(' token

you forgot to attach your full driver source (or URL to that)