You are right, sorry. by installing mySQL with --prefix=/usr it will compile while both files are in the same directory, because the configure script (when called with --with-mysql=/usr) will build a include switch for mysql by slapping /include/mysql on it's with-mysql dir, which will help gw/shared.c include mysql_version.h, and also - gcc always implicitly includes /usr/include which will allow gw/dlr.c to include mysql/mysql.h . I guess that a similar conicidence causes mySQL installation with --prefix=/usr/local to work also. but it still causes kannel to fail compilation with mysql installations to non-standard prefix (which does not mean that the installation is non standard - just that it's in a non-standard directory). the whole point of the --with-mysql switch to allow people to install mySQL to non-standard location, otherwise a simple search will do.
Oded Arbel m-Wise ltd. -----Original Message----- From: David Holland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 4:34 PM To: Oded Arbel Cc: [EMAIL PROTECTED] Subject: Re: problems compiling kannel with mySQL. On Tue, Jan 08, 2002 at 03:40:54PM +0200, Oded Arbel wrote: > Yaouch ! this will still not work - it doesn't matter where mySQL > include files are, as long as mysql.h and mysql_version.h are on the > same directory, kannel will not compile successful. Really? It works fine for me with them both in /usr/include/mysql: [dholland@geodude dholland]$ locate mysql.h /usr/include/mysql/mysql.h [dholland@geodude dholland]$ locate mysql_version.h /usr/include/mysql/mysql_version.h [dholland@geodude dholland]$ [dholland@geodude gateway]$ ./configure --with-mysql=/usr ..... checking for MySQL client support in... /usr checking for /usr/include/mysql/mysql.h... yes checking for mysql/mysql.h... yes checking for mysql/mysql_com.h... yes checking for mysql/mysql_version.h... yes ..... and the build succeeds. This is on Red Hat 7.1 with the mysql-devel-3.23.36-1 rpm. I am interested to know what the difference in file layouts is between the Red Hat packaged version and the default MySQL install. Dave -- David Holland =*= Systems Manager =*= tel: +44 01223 478900 http://www.3glab.com/ =*= 3G Lab, UK =*= fax: +44 01223 478901