* driver compile parse errors for RHEL4
@ 2005-03-10 19:25 Anil Kumar
2005-03-10 19:52 ` Willy Tarreau
0 siblings, 1 reply; 2+ messages in thread
From: Anil Kumar @ 2005-03-10 19:25 UTC (permalink / raw)
To: linux-kernel; +Cc: anilsr
Hi,
I am getting parse errors when I try to build aic7xxx( Adaptec SCSI
controller) driver for RHEL4.
I am using my own build enviroment (I mean Makefiles, scripts) to build this.
#gcc -v
Reading specs from
/usr/adaptec/build/gcc343-32bit/lib/gcc/i386-redhat-linux/3.4.3/specs
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
The sources for the driver can be found under
/usr/src/linux/driver/scsi/aic7xxx when you download 2.6.9 kernel from
www.kernel.org.
The errors are as follows:
drivers/scsi/aic7xxx/aic7xxx_reg_print.c:23: error: parse error before '(' token
drivers/scsi/aic7xxx/aic7xxx_reg_print.c:40: error: parse error before '(' token
drivers/scsi/aic7xxx/aic7xxx_reg_print.c:57: error: parse error before '(' token
drivers/scsi/aic7xxx/aic7xxx_reg_print.c:82: error: parse error before '(' token
Can you please let me know if my gcc is installed correctly, I mean if
I disable/enable any of the flags. If not I will look into my
Makefiles and scripts.
with regards,
Anil
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: driver compile parse errors for RHEL4
2005-03-10 19:25 driver compile parse errors for RHEL4 Anil Kumar
@ 2005-03-10 19:52 ` Willy Tarreau
0 siblings, 0 replies; 2+ messages in thread
From: Willy Tarreau @ 2005-03-10 19:52 UTC (permalink / raw)
To: Anil Kumar; +Cc: linux-kernel
On Thu, Mar 10, 2005 at 11:25:34AM -0800, Anil Kumar wrote:
> The errors are as follows:
>
> drivers/scsi/aic7xxx/aic7xxx_reg_print.c:23: error: parse error before '(' token
> drivers/scsi/aic7xxx/aic7xxx_reg_print.c:40: error: parse error before '(' token
> drivers/scsi/aic7xxx/aic7xxx_reg_print.c:57: error: parse error before '(' token
> drivers/scsi/aic7xxx/aic7xxx_reg_print.c:82: error: parse error before '(' token
>
It looks like some trouble I encountered recently when porting old programs
to gcc-3, which was caused by abusive use of '##' in macros. The error even
changed when I inserted a space before the opening parenthesis !
> Can you please let me know if my gcc is installed correctly, I mean if
> I disable/enable any of the flags. If not I will look into my
> Makefiles and scripts.
You should have started from here, otherwise I guess you will not receive
many responses.
Willy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-10 20:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-10 19:25 driver compile parse errors for RHEL4 Anil Kumar
2005-03-10 19:52 ` Willy Tarreau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®