>I think you missed the point. my files are where they are supposed to
>be. all the include files are at /usr/local/mysql/include/mysql/*.h
>which is where they're supposed to be in a --prefix=/usr/local/mysql
>installation of mySQL.. you refer to a --prefix=/usr/local installation,
>which is not the case here - note the kannel configuration switch I
>used.
>I simply claim that the two files that include mySQL headers don't agree
>with each other where those headers are supposed to be, and one of them
>does not agree with the configure script - in which case one of those
>should be fixed : either the configure script and gw/shared.c or
>gw/dlr.c.


well you say that the include files are supposed to be in 
/usr/local/mysql/include/mysql/*.h, well they arent in my mysql 
installations (Redhat 7.1, Cobalt Cube 6.2, MacOS X) and many others 
out there.

    ln -s /usr/local/mysql/include/mysql /usr/include/mysql

And you're all set. For now and for the future.


>[oded@superion gateway]$./configure --with-mysql=/usr/local/mysql
>--enable-mysql-dlr
>[oded@superion gateway]$ make
><snip>
>gcc -D_REENTRANT=1 -I. -I/usr/include/libxml2/libxml
>-I/usr/include/libxml2 -DBROKEN_PTHREADS=1
>-I/usr/local/mysql/include/mysql -o gw/dlr.o -c gw/dlr.c
>gw/dlr.c:47: mysql/mysql.h: No such file or directory
>make: *** [gw/dlr.o] Error 1
>[oded@superion gateway]$ rgrep '#include.*mysql' *
>gw/dlr.c:#include <mysql/mysql.h>
>gw/shared.c:#include <mysql_version.h>
>[oded@superion gateway]$ locate mysql_version.h
>/usr/local/mysql/include/mysql/mysql_version.h
>[oded@superion gateway]$ locate mysql.h
>/usr/local/mysql/include/mysql/mysql.h
>
>mysql_version.h and mysql.h are located at the same directory, but the
>sources expect them to be at a different location.
>Please state if you do not wish to fix the sources, in which case I'll
>have to submit for mySQL AB to fix their installation script to copy the
>files based on where Kannel expects them to be.

Well are you really sure those include files are not copied to 
/usr/include/mysql (or some other reasonable location) once you type 
"make install" in the mysql distribution? It would mean that EVERY 
standard application being compiled using mysql needs specific 
compile flags to find the include files and library files. I dont 
think so. In any case, kannel has to know where they are and in your 
case they seem to be not in a location where any kannel developer has 
found them before.

-- 

Andreas Fink
Fink-Consulting

------------------------------------------------------------------
Tel: +41-61-6932730 Fax: +41-61-6932729  Mobile: +41-79-2457333
Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland
E-Mail:  [EMAIL PROTECTED]  Homepage: http://www.finkconsulting.com
------------------------------------------------------------------
Something urgent? Try http://www.smsrelay.com/  Nickname afink

Reply via email to