* [PATCH] aicasm db3 fiasco
@ 2001-03-10 0:01 Nathan Dabney
2001-03-10 0:26 ` FAVRE Gregoire
2001-03-10 1:42 ` Peter Blomgren
0 siblings, 2 replies; 6+ messages in thread
From: Nathan Dabney @ 2001-03-10 0:01 UTC (permalink / raw)
To: linux-kernel; +Cc: alan, greg
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:
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] aicasm db3 fiasco
2001-03-10 0:01 [PATCH] aicasm db3 fiasco Nathan Dabney
@ 2001-03-10 0:26 ` FAVRE Gregoire
2001-03-10 0:34 ` FAVRE Gregoire
2001-03-10 15:16 ` Chmouel Boudjnah
2001-03-10 1:42 ` Peter Blomgren
1 sibling, 2 replies; 6+ messages in thread
From: FAVRE Gregoire @ 2001-03-10 0:26 UTC (permalink / raw)
To: Nathan Dabney; +Cc: linux-kernel
Thus spake Nathan Dabney (smurf@osdlab.org):
> 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:greg@ulima.unil.ch
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] aicasm db3 fiasco
2001-03-10 0:26 ` FAVRE Gregoire
@ 2001-03-10 0:34 ` FAVRE Gregoire
2001-03-10 15:16 ` Chmouel Boudjnah
1 sibling, 0 replies; 6+ messages in thread
From: FAVRE Gregoire @ 2001-03-10 0:34 UTC (permalink / raw)
To: Nathan Dabney; +Cc: linux-kernel
Thus spake FAVRE Gregoire (greg@ulima.unil.ch):
> 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:greg@ulima.unil.ch
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] aicasm db3 fiasco
2001-03-10 0:01 [PATCH] aicasm db3 fiasco Nathan Dabney
2001-03-10 0:26 ` FAVRE Gregoire
@ 2001-03-10 1:42 ` Peter Blomgren
1 sibling, 0 replies; 6+ messages in thread
From: Peter Blomgren @ 2001-03-10 1:42 UTC (permalink / raw)
To: Nathan Dabney; +Cc: linux-kernel, alan, greg
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] aicasm db3 fiasco
2001-03-10 0:26 ` FAVRE Gregoire
2001-03-10 0:34 ` FAVRE Gregoire
@ 2001-03-10 15:16 ` Chmouel Boudjnah
2001-03-10 17:00 ` FAVRE Gregoire
1 sibling, 1 reply; 6+ messages in thread
From: Chmouel Boudjnah @ 2001-03-10 15:16 UTC (permalink / raw)
To: FAVRE Gregoire; +Cc: Nathan Dabney, linux-kernel
FAVRE Gregoire <greg@ulima.unil.ch> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] aicasm db3 fiasco
2001-03-10 15:16 ` Chmouel Boudjnah
@ 2001-03-10 17:00 ` FAVRE Gregoire
0 siblings, 0 replies; 6+ messages in thread
From: FAVRE Gregoire @ 2001-03-10 17:00 UTC (permalink / raw)
To: Chmouel Boudjnah; +Cc: Nathan Dabney, linux-kernel
Thus spake Chmouel Boudjnah (chmouel@mandrakesoft.com):
> FAVRE Gregoire <greg@ulima.unil.ch> 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:greg@ulima.unil.ch
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-03-10 17:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-10 0:01 [PATCH] aicasm db3 fiasco Nathan Dabney
2001-03-10 0:26 ` FAVRE Gregoire
2001-03-10 0:34 ` FAVRE Gregoire
2001-03-10 15:16 ` Chmouel Boudjnah
2001-03-10 17:00 ` FAVRE Gregoire
2001-03-10 1:42 ` Peter Blomgren
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®