[PLUG] Kernel 2.4.3 and aic7xxx compile problems

Matthew Henkler henkler@purdue.edu
Fri, 30 Mar 2001 23:49:09 -0500


Well, it looks like one of the Makefiles in 2.4.3 is broken.  For some
reason, the output from aicasm_scan.l is lex.yy.c, but it is supposed to
be called aicasm_scan.c.  For anyone else who has a Adaptec Ultra2 Wide,
Ultra160 card, etc., here's how to make it compile.

in /usr/src/linux/drivers/scsi/aic7xxx/aicasm:
lex -oaicasm_scan.c aicasm_scan.l
then, let the kernel compile as normal

matt henkler

"patrick.n.fitzgerald.1" wrote:
> 
> It looks like it's getting the appropriate header files, but can't find
> the function "yylex". This function should be in the file "lex.yy.c" which
> is generated by lex, unless some other name is specified for it. Try
> editing the Makefile such that when it compiles aicasm you specify that
> you also want lex.yy.c to be compiled with it by adding that filename in
> with the rest of the .c files it's compiling. If that file is missing,
> then it's not being generated by lex, and you'll need to figure out what
> file is used as input to lex and generate the lex.yy.c file from that.
> 
> I'm not sure where include_file comes from, but a good guess would be that
> it's somewhere in the input for lex.
> 
> Good luck, and I hope this helps,
> Patrick F.
> 
> > make -C aic7xxx modules
> > make[3]: Entering directory `/usr/src/linux-2.4.3/drivers/scsi/aic7xxx'
> > make -C aicasm
> > make[4]: Entering directory
> > `/usr/src/linux-2.4.3/drivers/scsi/aic7xxx/aicasm'
> > gcc -I/usr/include -ldb1 aicasm_gram.c aicasm_scan.c aicasm.c
> > aicasm_symbol.c -o aicasm
> > /tmp/ccgHcZKd.o: In function `yyparse':
> > /tmp/ccgHcZKd.o(.text+0xd62): undefined reference to `yylex'
> > /tmp/ccgHcZKd.o(.text+0x126c): undefined reference to `include_file'
> > /tmp/ccgHcZKd.o(.text+0x1288): undefined reference to `include_file'
> > /tmp/ccgHcZKd.o(.text+0x26f7): undefined reference to `yylex'
> > /tmp/ccsdxyUb.o: In function `main':
> > /tmp/ccsdxyUb.o(.text+0x3ce): undefined reference to `include_file'
> > collect2: ld returned 1 exit status
> > ____________________________________________________
> > The Purdue Linux Users' Group (PLUG) mailing list.
> > For account maintenance, go to:
> > plug mailing list  -  plug@csociety.purdue.edu
> > http://csociety.ecn.purdue.edu/mailman/listinfo/plug
> >
> 
> --
> If all else fails, immortality can always be assured by spectacular error.
> -John Kenneth Gailbraith

-- 

***********************************
oblivious to the obvious since 1994
***********************************