linux 2.4.3

Per Lidén per at fukt.bth.se
Sat Mar 31 06:02:03 PST 2001


On 31 Mar 2001, Jean-Pierre Schwickerath wrote:

>
> On Fri, 30 Mar 2001 11:29:03 -0500, jerry said:
>
> >  I noticed that there was a new kernel 2.4.3 so I downloaded it and I tried
> >  to compile it.
> >   There were 3 nasty surprises.
> >   This only applies to the compile of adaptec aic7xxx driver AFAIK.
> >   This driver requires lex, yacc , and berkely db.
> >   1. link of lex to flex works
> >   2. alias yacc to bison -y with shell script seems to work.
> >   3. berkely db version 1 seems to be required and only bdb version 3 seems
> >      to be available at the bdb site.
>
> Well it's now needed for the
> "Aic7xxx SCSI host adapter firmware asssembler symbol table implementation"
>
> >   Based on the fact that bdb is now required to do kernel compile with a
> >   very popular scsi controller , should bdb become part of the base system.
>
> I think we should wait as it's the first version where it's implemented and may
> see if the new maintainer doesn't even switch to mysql ;-)
> This is one thing I hate about Linux (the kernel). It used to be a very
> powerful and efficient thing. But as the newer version came it got less and
> less true IMHO. Things are getting implemented that you can really wonder
> about. I mean why do we need a database to access the SCSI controller? Why
> don't implement the priority queue for TCQ commands in a SQL-database? I don't
> understand this

The Berkeley DB library is not used by the kernel. As you said yourself,
it is used by the firmware assembler, which is a userland application
like any other. The Berkeley DB library is a quite small library for easy
access to a very simple filebesed database. It cannot be compared with
MySQL or any other SQL database. It's more like the map<> or vector<>
templates found in STL.

> and as I don't want to install he old db1 I will continue using
> the 2.4.2 kernel.

Using Sleepycat's version 3.2.9 compiled with 1.85 support works fine, you
don't need to install a separate copy of version 1 to compile 2.4.3.
However, I had to make the following patch:

diff -ru linux/drivers/scsi/aic7xxx/aicasm/Makefile
linux-new/drivers/scsi/aic7xxx/aicasm/Makefile
--- linux/drivers/scsi/aic7xxx/aicasm/Makefile  Wed Mar  7 07:44:16 2001
+++ linux-new/drivers/scsi/aic7xxx/aicasm/Makefile      Sat Mar 31
15:04:56 2001
@@ -8,7 +8,7 @@
 SRCS=  ${GENSRCS} ${CSRCS}
 CLEANFILES= ${GENSRCS} ${GENHDRS} y.output
 # Override default kernel CFLAGS.  This is a userland app.
-AICASM_CFLAGS:= -I/usr/include -ldb1
+AICASM_CFLAGS:= -I/usr/include -ldb
 YFLAGS= -d

 NOMAN= noman
diff -ru linux/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
linux-new/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
--- linux/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c   Sun Mar  4
23:30:18 2001
+++ linux-new/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c       Sat Mar 31
15:05:08 2001
@@ -36,7 +36,7 @@
 #include <sys/types.h>

 #ifdef __linux__
-#include <db1/db.h>
+#include <db_185.h>
 #else
 #include <db.h>
 #endif


/pli


-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list