Skip to contentSkip to conversation

aic7xxx: Add a better library-dependency description when libdb is needed

PATCH Superseded Davidlohr Bueso 1 participant 1 message Nov 9, 2010

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

PATCH 1/1 aic7xxx: Add a better library-dependency description when libdb is needed

From: Davidlohr Bueso <[email protected]>

While recently building aicasm_symbol.c it failed because I didn't have the berkeley libdb, so no aicdb.h file was created. With this patch I wouldn't have had to gone to google to see what "development library" it was referring to. make -C drivers/scsi/aic7xxx/aicasm
*** Install db development libraries
bison -d -b aicasm_gram aicasm_gram.y
mv aicasm_gram.tab.c aicasm_gram.c
mv aicasm_gram.tab.h aicasm_gram.h
bison -d -b aicasm_macro_gram -p mm aicasm_macro_gram.y
mv aicasm_macro_gram.tab.c aicasm_macro_gram.c
mv aicasm_macro_gram.tab.h aicasm_macro_gram.h
flex -oaicasm_scan.c aicasm_scan.l
flex -Pmm -oaicasm_macro_scan.c aicasm_macro_scan.l
gcc -I/usr/include -I. aicasm.c aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c -o aicasm -ldb
aicasm_symbol.c:48: fatal error: aicdb.h: No such file or directory
compilation terminated.
make[4]: *** [aicasm] Error 1
make[3]: *** [drivers/scsi/aic7xxx/aicasm/aicasm] Error 2
make[2]: *** [drivers/scsi/aic7xxx] Error 2

---
 drivers/scsi/aic7xxx/aicasm/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/aic7xxx/aicasm/Makefile +1 -1
index b98c5c1..b399d46 100644
@@ -49,7 +49,7 @@ aicdb.h:
 	 elif [ -e "/usr/include/db_185.h" ]; then		\
 		echo "#include <db_185.h>" > aicdb.h;		\
 	 else							\
-		echo "*** Install db development libraries";	\
+		echo "*** Install Berkeley DB (libdb) development libraries";	\
 	 fi
 
 clean:
Signature · 1 line
1.7.1