I also tried to compile the gateway with the patch. And it seems I'm getting problems with the patch.

After unpacking, I just followed what was in sqlbox-faq.txt
I was installed the gateway in /usr/local/kannel.

kannel# cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs co sqlbox
//some message from cvs download
kannel# cd sqlbox && make patch

The I get this

patch -p0 -d ../gateway < sqlbox.patch
patching file Makefile.in
patching file configure
Hunk #1 succeeded at 81 (offset -4 lines).
Hunk #2 FAILED at 4656.
Hunk #3 FAILED at 4703.
Hunk #4 succeeded at 5466 (offset -309 lines).
2 out of 4 hunks FAILED -- saving rejects to file configure.rej
patching file configure.in
Hunk #1 FAILED at 913.
Hunk #2 succeeded at 1081 (offset -89 lines).
1 out of 2 hunks FAILED -- saving rejects to file configure.in.rej
patching file gw/smsbox.c
Hunk #1 succeeded at 3165 with fuzz 2 (offset -137 lines).
Hunk #2 succeeded at 3346 (offset -2 lines).
patching file gwlib/cfg.def
Hunk #1 succeeded at 238 (offset -5 lines).
Hunk #2 succeeded at 550 (offset -5 lines).
make: *** [patch] Error 1

Although I get an error message, I still proceeded with configure

gateway# ./configure -with-pgsql -with-pgsql-dir=$PGSQL_HOME
(I do not know if I'm lacking with -my-options)

Configure went smoothly. I get "Thank you for using Kannel." at the end of line.
Now when I get to make:

gateway# make
...
...
...
make: *** No rule to make target `gw/sqlbox.o', needed by `wmlscript/wmlsc'.  Stop.

Before, without the patch, when I use make, the last line, is like:
chmod 0744 ...

And it seems like that there is an error with the patch. Note, that I did not use make distclean as indicated in the FAQ because it says "No rule to make target distclean. Stop".

What could be the problem?
Help please.

Jay <[EMAIL PROTECTED]> wrote:
help pls.

i ran,

./configure -with-mysql --with-mysql-dir=/usr/local/mysql --with-dlr=mysql --enable-mysql-dlr -–enable-start-stop-daemon

OK

make bindir=/usr/local/bin install

ERROR

gcc -D_REENTRANT=1 -I. -Igw  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/local/mysql/include -o gw/sqlbox_mysql.o -c gw/sqlbox_mysql.c
gw/sqlbox_mysql.c:4:25: mysql/mysql.h: No such file or directory
gw/sqlbox_mysql.c:48: error: syntax error before '*' token
gw/sqlbox_mysql.c: In function `mysql_select':
gw/sqlbox_mysql.c:51: error: `MYSQL_RES' undeclared (first use in this function)
gw/sqlbox_mysql.c:51: error: (Each undeclared identifier is reported only once
gw/sqlbox_mysql.c:51: error: for each function it appears in.)
gw/sqlbox_mysql.c:51: error: `result' undeclared (first use in this function)
gw/sqlbox_mysql.c: In function `mysql_fetch_msg':
gw/sqlbox_mysql.c:109: error: `MYSQL_RES' undeclared (first use in this function)
gw/sqlbox_mysql.c:109: error: `res' undeclared (first use in this function)
gw/sqlbox_mysql.c:110: error: `MYSQL_ROW' undeclared (first use in this function)
gw/sqlbox_mysql.c:110: error: syntax error before "row"
gw/sqlbox_mysql.c:119: error: `row' undeclared (first use in this function)
make: *** [gw/sqlbox_mysql.o] Error 1

thanks in advance!

New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.


New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Reply via email to