On Fri, 2002-08-23 at 16:55, Butch Evans wrote: > I am having trouble getting the latest CVS to compile. I am using the > new configure script, but without documentation, I am not sure which > arguments I need to use. Is there documentation somewhere, or is the > CVS version now currently working. I am using FreeBSD4.5-STABLE and > mysql (with mysql.h located in /usr/local/datadisk/mysql/includes/mysql/ > and libmysqlclient located in /usr/local/datadisk/mysql/lib/mysql/). > > The configure script runs fine if I run it without arguments, but > compile fails with: >
I need to look at this as its supposed to fail if you don't specify --with-mysql or --with-pgsql, eg no arguments. > /var/software/servers/dbmail/dbmail/forward.c(.text+0x436): undefined > reference > to `db_send_message_lines' > gmake[1]: *** [dbmail-smtp] Error 1 > gmake[1]: Leaving directory `/var/software/servers/dbmail/dbmail' > gmake: *** [all-recursive] Error 1 > > There are several "undefined reference" lines in the output of gmake. > > I run "configure --with-mysql" and get the following: > checking for mysql.h... /usr/local/include/mysql/mysql.h > -- SEVERAL LINES OF STUFF DELETED-- > checking for mysql_real_connect in -lmysqlclient... no > configure: error: > Unable to link against mysqlclient. It appears you are missing the > development libraries or they aren't in your linker's path > > Ok, so it looked in the wrong place for mysql libs/headers. So I try > > ./configure --with-mysql=/usr/local/datadisk/mysql/include/mysql/ > > And result is: > checking for mysql.h (user supplied)... > /usr/local/datadisk/mysql/include/mysql/ > /mysql.h > -- SEVERAL LINES OF STUFF DELETED -- > checking for mysql_real_connect in -lmysqlclient... no > configure: error: > Unable to link against mysqlclient. It appears you are missing the > development libraries or they aren't in your linker's path > > Still no help. > [EMAIL PROTECTED]:dbmail# ldconfig -r | grep mysqlclient > 171:-lmysqlclient.10 => > /usr/local/datadisk/mysql/lib/mysql/libmysqlclient.so.10 > > Any ideas? > -- I need to look at this as well. Ideally the functionality should be changed to --with-mysql-headers and --with-mysql-libs, one thing you can try is export LD_LIBRARY_PATH=/usr/local/datadisk/mysql/lib/mysql Then rerun configure with the argument you supplied before and see how it goes. Ryan Butler ADI Internet Solutions [EMAIL PROTECTED]