Skip to contentSkip to conversation

aicasm db3 fiasco

PATCH In review Nathan Dabney 4 participants 6 messages Mar 10, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aicasm db3 fiasco

Debian does not use db3 at all, yet.

Applies against 2.4.2-ac17

-Nathan

drivers/scsi/aic7xxx/aicasm/Makefile +3 -1
diff -urN linux.orig/drivers/scsi/aic7xxx/aicasm/Makefile linux/drivers/scsi/aic7xxx/aicasm/Makefile
@@ -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:
#1 lore raw

Thus spake Nathan Dabney ([email protected]):

Quoted 3 lines

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...).

Quoted 1 line

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]

#2 lore raw
In reply to Nathan Dabney

Thus spake FAVRE Gregoire ([email protected]):

Quoted 2 lines

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...

Quoted 1 line

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]

#3 lore raw
In reply to Nathan Dabney

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):

drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c Thu Mar 8 17:09:14 2001 renamed from drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c.orig Thu Mar 8 17:09:00 2001 +1 -1
@@ -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? :-}

Quoted 24 lines · Nathan Dabney

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

drivers/scsi/aic7xxx/aicasm/Makefile +3 -1
@@ -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/

Signature · 1 line
\Peter.
#4 lore raw
In reply to Nathan Dabney
Quoted 3 lines · FAVRE Gregoire

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.

Signature · 2 lines
MandrakeSoft Inc                     http://www.chmouel.org
                      --Chmouel
#5 lore raw
In reply to Nathan Dabney

Thus spake Chmouel Boudjnah ([email protected]):

Quoted 7 lines
Quoted 3 lines · FAVRE Gregoire

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]