2001-03-10 00:05:08

by Nathan Dabney

[permalink] [raw]
Subject: [PATCH] aicasm db3 fiasco

Debian does not use db3 at all, yet.

Applies against 2.4.2-ac17

-Nathan

diff -urN linux.orig/drivers/scsi/aic7xxx/aicasm/Makefile linux/drivers/scsi/aic7xxx/aicasm/Makefile
--- linux.orig/drivers/scsi/aic7xxx/aicasm/Makefile Fri Mar 9 15:38:13 2001
+++ linux/drivers/scsi/aic7xxx/aicasm/Makefile Fri Mar 9 15:52:27 2001
@@ -28,10 +28,12 @@
aicdb.h:
if [ -e "/usr/include/db3/db_185.h" ]; then \
echo "#include <db3/db_185.h>" > aicdb.h; \
+ elif [ -e "/usr/include/db2/db_185.h" ]; then \
+ echo "#include <db2/db_185.h>" > aicdb.h; \
elif [ -e "/usr/include/db/db_185.h" ]; then \
echo "#include <db/db_185.h>" >aicdb.h ; \
else \
- echo "*** Install db3 development libraries"; \
+ echo "*** Install db development libraries"; \
fi

clean:


2001-03-10 00:35:21

by Gregoire Favre

[permalink] [raw]
Subject: Re: [PATCH] aicasm db3 fiasco

Thus spake FAVRE Gregoire ([email protected]):

> The files exist but aren't seen??? I have tried to change the path to
> them, that don't change anything???

If I put absolut path, that go further...

> I don't understand why...

But:

make[4]: Entering directory
`/usr/src/linux-2.4.2-ac17/drivers/scsi/aic7xxx'
yacc aicasm/aicasm_gram.y
mv -f y.tab.c aicasm/aicasm_gram.c
lex -t aicasm/aicasm_scan.l > aicasm/aicasm_scan.c
make -C aicasm
make[5]: Entering directory
`/usr/src/linux-2.4.2-ac17/drivers/scsi/aic7xxx/aicasm'
kgcc -I/usr/include -ldb aicasm_gram.c aicasm_scan.c aicasm.c
aicasm_symbol.c -o aicasm
/home/greg/tmp/ccM7IZO2.o: In function `symtable_open':
/home/greg/tmp/ccM7IZO2.o(.text+0x1b5): undefined reference to
`__db185_open'
collect2: ld returned 1 exit status
make[5]: *** [aicasm] Error 1
make[5]: Leaving directory
`/usr/src/linux-2.4.2-ac17/drivers/scsi/aic7xxx/aicasm'
make[4]: *** [aicasm/aicasm] Error 2
make[4]: Leaving directory
`/usr/src/linux-2.4.2-ac17/drivers/scsi/aic7xxx'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory
`/usr/src/linux-2.4.2-ac17/drivers/scsi/aic7xxx'
make[2]: *** [_subdir_aic7xxx] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.2-ac17/drivers/scsi'
make[1]: *** [_subdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.2-ac17/drivers'
make: *** [_dir_drivers] Error 2

I give out...

Thanks you very much,

Greg
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

2001-03-10 00:27:52

by Gregoire Favre

[permalink] [raw]
Subject: Re: [PATCH] aicasm db3 fiasco

Thus spake Nathan Dabney ([email protected]):

> Debian does not use db3 at all, yet.
>
> Applies against 2.4.2-ac17

Hello,

thanks for your answer, I cannot apply your patch, don't know why, but
readind it I think it won't change anything for me: I have db3 (I have a
Mandrake...).

>From my compilation:
make[5]: Entering directory
`/usr/src/linux-2.4.2-ac17/drivers/scsi/aic7xxx/aicasm'
kgcc -I/usr/include -ldb aicasm_gram.c aicasm_scan.c aicasm.c
aicasm_symbol.c -o aicasm
aicasm/aicasm_gram.y:45: ../queue.h: No such file or directory
aicasm/aicasm_gram.y:50: aicasm.h: No such file or directory
aicasm/aicasm_gram.y:51: aicasm_symbol.h: No such file or directory
aicasm/aicasm_gram.y:52: aicasm_insformat.h: No such file or directory
aicasm/aicasm_scan.l:44: ../queue.h: No such file or directory
aicasm/aicasm_scan.l:49: aicasm.h: No such file or directory
aicasm/aicasm_scan.l:50: aicasm_symbol.h: No such file or directory
aicasm/aicasm_scan.l:51: y.tab.h: No such file or directory

The files exist but aren't seen??? I have tried to change the path to
them, that don't change anything???

I don't understand why...

Thanks you very much,

Greg
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]

2001-03-10 01:44:00

by Peter Blomgren

[permalink] [raw]
Subject: Re: [PATCH] aicasm db3 fiasco

While we're at it, on my RH6.2 system db_185.h is in /usr/include,
i.e.

bash$ echo "`locate db_185.h` ($(rpm -qf `locate db_185.h`))"
/usr/include/db_185.h (glibc-devel-2.1.3-22)

FWIW, for my builds I've been using the following patch (hey, it works
for me):

--- linux/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c.orig Thu Mar 8 17:09:00 2001
+++ linux/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c Thu Mar 8 17:09:14 2001
@@ -36,7 +36,7 @@
#include <sys/types.h>

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

Maybe .../aic7xxx/aicasm/Makefile should do something like:

if [ ! -z `find /usr/include -name db_185.h` ]; then
echo "#include <`find /usr/include -name db_185.h | sed \
's+/usr/include/++g'`>" > aicdb.h
else
echo "*** Install db development libraries ***";
exit 1
fi

But what do I know? :-}


On Fri, Mar 09, 2001 at 04:01:45PM -0800, Nathan Dabney wrote:
> Debian does not use db3 at all, yet.
>
> Applies against 2.4.2-ac17
>
> -Nathan
>
> diff -urN linux.orig/drivers/scsi/aic7xxx/aicasm/Makefile linux/drivers/scsi/aic7xxx/aicasm/Makefile
> --- linux.orig/drivers/scsi/aic7xxx/aicasm/Makefile Fri Mar 9 15:38:13 2001
> +++ linux/drivers/scsi/aic7xxx/aicasm/Makefile Fri Mar 9 15:52:27 2001
> @@ -28,10 +28,12 @@
> aicdb.h:
> if [ -e "/usr/include/db3/db_185.h" ]; then \
> echo "#include <db3/db_185.h>" > aicdb.h; \
> + elif [ -e "/usr/include/db2/db_185.h" ]; then \
> + echo "#include <db2/db_185.h>" > aicdb.h; \
> elif [ -e "/usr/include/db/db_185.h" ]; then \
> echo "#include <db/db_185.h>" >aicdb.h ; \
> else \
> - echo "*** Install db3 development libraries"; \
> + echo "*** Install db development libraries"; \
> fi
>
> clean:
> Please read the FAQ at http://www.tux.org/lkml/

--
\Peter.

2001-03-10 14:17:49

by Chmouel Boudjnah

[permalink] [raw]
Subject: Re: [PATCH] aicasm db3 fiasco

FAVRE Gregoire <[email protected]> writes:

> thanks for your answer, I cannot apply your patch, don't know why, but
> readind it I think it won't change anything for me: I have db3 (I have a
> Mandrake...).

on which version ? it works fine for me.

--
MandrakeSoft Inc http://www.chmouel.org
--Chmouel

2001-03-10 17:01:28

by Gregoire Favre

[permalink] [raw]
Subject: Re: [PATCH] aicasm db3 fiasco

Thus spake Chmouel Boudjnah ([email protected]):

> FAVRE Gregoire <[email protected]> writes:
>
> > thanks for your answer, I cannot apply your patch, don't know why, but
> > readind it I think it won't change anything for me: I have db3 (I have a
> > Mandrake...).
>
> on which version ? it works fine for me.

Mandrake Cooker, but if you read the mail I send afterthat, I explained
that my problem what that I was having both db3 and BerkeleyDB, removing
the last one solved the problem ;-)

Thanks,

Greg
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:[email protected]