[Bookbase-help] Just downloaded the program, and had to fix an aborted compile/make
Status: Beta
Brought to you by:
kurzawa
|
From: Rikke D. G. <rg...@te...> - 2003-03-11 14:20:53
|
The program looks nice! There's a few things I've noticed. For one thing, password should be an option, as my mysql server only serves well, me basically, and I'm not using a password. *gasp... oh the horror!* On my Redhat 7.3 system the compile failed at first. Not sure what exactly is screwy with the configure script to make it fail, but it doesn't correctly locate the -lmysqlclient flag. This is probably Redhat specific, I noticed in the archives another person had this failure. Basically when you compile, when you get to the mysql part, the linker barfs with a bunch of undefined references like this: /home/rgiles/downloads/bookbase-0.8.8/src/callbacks.c:320: undefined reference to `mysql_init' /home/rgiles/downloads/bookbase-0.8.8/src/callbacks.c:325: undefined reference to `mysql_real_connect' /home/rgiles/downloads/bookbase-0.8.8/src/callbacks.c:327: undefined reference to `mysql_error' /home/rgiles/downloads/bookbase-0.8.8/src/callbacks.c:367: undefined reference to `mysql_num_rows' /home/rgiles/downloads/bookbase-0.8.8/src/callbacks.c:375: undefined reference to `mysql_num_rows' ad infinitum. I fixed this by editting the Makefile in the /src directory. I changed the line bookbase_LDFLAGS = to bookbase_LDFLAGS = -L/usr/lib/mysql The program compiles fine after that. The fix is only temporary though, if you have to reconfigure it will lose that line. I'm afraid I'm not enough of an automake, autoconf expert to fix it permanently. I'm looking forward to using this program. I'm glad I don't have to develop one myself, as I was thinking of doing that. If I come up with a way to get around requiring a password, I'll send in the patch, if you want it. Thanks for the program! Rikke |