Add: --with-mysql=/usr/local/mysql/include
To your ./configure line If you past this and get more errors, please post them then. Regards, ----- Original Message ----- From: "Mesedilla, Fritz C.(Digitel-GSM)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 09, 2004 4:02 AM Subject: RE: compiling with mysql > > I have mysql.h... > > locate mysql.h > /usr/local/mysql/include/mysql/mysql.h > > Actually if I change gw/dlr_mysql.c and edit the include line from > > #include <mysql/mysql.h> > to > #include </usr/local/mysql/include/mysql/mysql.h> > > it works but stops somewhere else for another error. > > > Fritz Mesedilla > --- > + Basta Ikaw Lord > > > > > -----Original Message----- > > From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 09, 2004 9:31 AM > > To: [EMAIL PROTECTED] > > Subject: Re: compiling with mysql > > > > > > Look at the line: > > > > > > gw/dlr_mysql.c:74:25: mysql/mysql.h: No such file or directory > > > > > > You are missing the MySQL header file. Maybe it's not on the > > right place or > > is really missing. > > > > If you are using redhat, you must install the mysql-devel package. > > > > Regards, > > > > > > ----- Original Message ----- > > From: "Mesedilla, Fritz C.(Digitel-GSM)" <[EMAIL PROTECTED]> > > To: "Kannel Mailing List (E-mail)" <[EMAIL PROTECTED]> > > Sent: Wednesday, June 09, 2004 3:14 AM > > Subject: compiling with mysql > > > > > > > > > > Greetings! > > > I have been trying to compile kannel with mysql using > > cvs... I can't seem > > to > > > get past the make. It configures properly but doesn't > > proceed with make. > > > > > > > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/bb_alog.o -c gw/bb_alog.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/bb_boxc.o -c gw/bb_boxc.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/bb_http.o -c gw/bb_http.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/bb_smscconn.o -c gw/bb_smscconn.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/bb_store.o -c gw/bb_store.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/bb_udp.o -c gw/bb_udp.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/bearerbox.o -c gw/bearerbox.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/dlr.o -c gw/dlr.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/dlr_mem.o -c gw/dlr_mem.c > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o gw/dlr_mysql.o -c gw/dlr_mysql.c > > > gw/dlr_mysql.c:74:25: mysql/mysql.h: No such file or directory > > > gw/dlr_mysql.c:109: error: syntax error before '*' token > > > gw/dlr_mysql.c: In function `mysql_select': > > > gw/dlr_mysql.c:112: error: `MYSQL_RES' undeclared (first use in this > > > function) > > > gw/dlr_mysql.c:112: error: (Each undeclared identifier is > > reported only > > once > > > gw/dlr_mysql.c:112: error: for each function it appears in.) > > > gw/dlr_mysql.c:112: error: `result' undeclared (first use in this > > function) > > > gw/dlr_mysql.c: In function `dlr_mysql_get': > > > gw/dlr_mysql.c:170: error: `MYSQL_RES' undeclared (first use in this > > > function) > > > gw/dlr_mysql.c:170: error: `result' undeclared (first use in this > > function) > > > gw/dlr_mysql.c:171: error: `MYSQL_ROW' undeclared (first use in this > > > function) > > > gw/dlr_mysql.c:171: error: syntax error before "row" > > > gw/dlr_mysql.c:192: error: `row' undeclared (first use in > > this function) > > > gw/dlr_mysql.c: In function `dlr_mysql_messages': > > > gw/dlr_mysql.c:253: error: `MYSQL_RES' undeclared (first use in this > > > function) > > > gw/dlr_mysql.c:253: error: `result' undeclared (first use in this > > function) > > > gw/dlr_mysql.c:254: error: `MYSQL_ROW' undeclared (first use in this > > > function) > > > gw/dlr_mysql.c:254: error: syntax error before "row" > > > gw/dlr_mysql.c:269: error: `row' undeclared (first use in > > this function) > > > make: *** [gw/dlr_mysql.o] Error 1 > > > > > > > > > I tried editing gw/dlr_mysql.c and changing the include path to > > > /usr/local/mysql/include/mysql/mysql.h instead of the mysql/mysql.h > > > > > > It somehow continued with make but stopped at > > > > > > gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE > > > -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 > > -I/usr/local/mysql/include/mysq > > l > > > -o wmlscript/wmlsc wmlscript/wmlsc.o libgw.a libwmlscript.a libwap.a > > > libgwlib.a -lresolv -lnsl -lm -lpthread -lxml2 -lz -lpthread -lm > > > -L/usr/local/mysql/lib/mysql -lmysqlclient_r -lpthread > > -lcrypt -lnsl -lm > > > -lpthread > > > /usr/bin/ld: cannot find -lmysqlclient_r > > > collect2: ld returned 1 exit status > > > make: *** [wmlscript/wmlsc] Error 1 > > > > > > I hope someone can help me. I basically need the radius and > > mysql function > > > of kannel for the msisdn use. > > > > > > Thank you so much in advance! > > > > > > > > > Fritz Mesedilla > > > --- > > > + Basta Ikaw Lord > > > > > > > > > > > > > > >