RE: compiling with mysql

2004-06-09 Thread Mesedilla, Fritz C.(Digitel-GSM)

Everyone thank you very much!

I did try to install the MySQL-devel and MySQL-shared libraries like you all
have advised... and it worked!!! I was able to compile and make properly.

Thank you again for the tremendous help!


Fritz Mesedilla
---
+ Basta Ikaw Lord



> -Original Message-
> From: James Coleman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 09, 2004 4:54 PM
> To: Mesedilla, Fritz C.(Digitel-GSM)
> Cc: [EMAIL PROTECTED]
> Subject: Re: compiling with mysql
> 
> 
> Alejandro is right.
> You need to install mysql-devel package I think.
> It provides more than just the header files.
> Check if you also already have the libs 
> e.g. for myself:
> 
> /$ rpm -ql mysql-devel
> /usr/include/mysql
> /usr/include/mysql/dbug.h
> /usr/include/mysql/errmsg.h
> /usr/include/mysql/m_ctype.h
> /usr/include/mysql/m_string.h
> /usr/include/mysql/my_config.h
> /usr/include/mysql/my_global.h
> /usr/include/mysql/my_list.h
> /usr/include/mysql/my_net.h
> /usr/include/mysql/my_no_pthread.h
> /usr/include/mysql/my_pthread.h
> /usr/include/mysql/my_sys.h
> /usr/include/mysql/mysql.h
> /usr/include/mysql/mysql_com.h
> /usr/include/mysql/mysql_version.h
> /usr/include/mysql/mysqld_error.h
> /usr/include/mysql/raid.h
> /usr/include/mysql/sslopt-case.h
> /usr/include/mysql/sslopt-longopts.h
> /usr/include/mysql/sslopt-usage.h
> /usr/include/mysql/sslopt-vars.h
> /usr/lib/mysql
> /usr/lib/mysql/libdbug.a
> /usr/lib/mysql/libheap.a
> /usr/lib/mysql/libmerge.a
> /usr/lib/mysql/libmyisam.a
> /usr/lib/mysql/libmyisammrg.a
> /usr/lib/mysql/libmysqlclient.a
> /usr/lib/mysql/libmysqlclient.so
> /usr/lib/mysql/libmysqlclient_r.a
> /usr/lib/mysql/libmysqlclient_r.so
> /usr/lib/mysql/libmystrings.a
> /usr/lib/mysql/libmysys.a
> /usr/lib/mysql/libnisam.a
> /$ rpm -q mysql-devel
> mysql-devel-3.23.58-1.9
> 
> James.
> 



Re: compiling with mysql

2004-06-09 Thread James Coleman
Alejandro is right.
You need to install mysql-devel package I think.
It provides more than just the header files.
Check if you also already have the libs 
e.g. for myself:

/$ rpm -ql mysql-devel
/usr/include/mysql
/usr/include/mysql/dbug.h
/usr/include/mysql/errmsg.h
/usr/include/mysql/m_ctype.h
/usr/include/mysql/m_string.h
/usr/include/mysql/my_config.h
/usr/include/mysql/my_global.h
/usr/include/mysql/my_list.h
/usr/include/mysql/my_net.h
/usr/include/mysql/my_no_pthread.h
/usr/include/mysql/my_pthread.h
/usr/include/mysql/my_sys.h
/usr/include/mysql/mysql.h
/usr/include/mysql/mysql_com.h
/usr/include/mysql/mysql_version.h
/usr/include/mysql/mysqld_error.h
/usr/include/mysql/raid.h
/usr/include/mysql/sslopt-case.h
/usr/include/mysql/sslopt-longopts.h
/usr/include/mysql/sslopt-usage.h
/usr/include/mysql/sslopt-vars.h
/usr/lib/mysql
/usr/lib/mysql/libdbug.a
/usr/lib/mysql/libheap.a
/usr/lib/mysql/libmerge.a
/usr/lib/mysql/libmyisam.a
/usr/lib/mysql/libmyisammrg.a
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.so
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.so
/usr/lib/mysql/libmystrings.a
/usr/lib/mysql/libmysys.a
/usr/lib/mysql/libnisam.a
/$ rpm -q mysql-devel
mysql-devel-3.23.58-1.9

James.




RE: compiling with mysql

2004-06-08 Thread Pong


On Wed, 9 Jun 2004, Mesedilla, Fritz C.(Digitel-GSM) wrote:

> Actually if I change gw/dlr_mysql.c and edit the include line from
> 
> #include 
> to
> #include 
> 
> it works but stops somewhere else for another error.
> 

below is your last error after including the correct path for mysql.h

---
 /usr/bin/ld: cannot find -lmysqlclient_r
 collect2: ld returned 1 exit status
---

this means the linker did not find the library file 'mysqlclient_r.*'.
you will probably need to re-edit the Makefile to inlcude the path
to this library file (-L perhaps) the same way you did with mysql.h

hth,
pong





Re: compiling with mysql

2004-06-08 Thread Alejandro Guerrieri
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 
> to
> #include 
> 
> 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 us

RE: compiling with mysql

2004-06-08 Thread Mesedilla, Fritz C.(Digitel-GSM)

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 
to
#include 

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

Re: compiling with mysql

2004-06-08 Thread Alejandro Guerrieri
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
>
>
>