Re: Help, SQLBOX gwlib not found when running ./configure

2012-08-28 Thread Adan Canales
Hi again: I did everything from scracth and now I can fnd Mysql Server,
this is getting me crazy, this is what I have in my.cnf file which is in
/etc/mysql/my.cnf

user= mysql
pid-file= /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir  = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking

I supposed mysql is on /usr then, am I right?

When try to compile kannel with mysql doesn't find the directory in any
combination: see the log:

root@smsbkserver:~# cd trunk
root@smsbkserver:~/trunk# ./configure --with-mysql
checking svn checkout revision... 4991

Configuring for Kannel gateway version svn-r4991 ...

Running system checks ...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for flex... no
checking for lex... no
checking for ar... ar
checking for convert... /usr/bin/convert
checking for perl... /usr/bin/perl
checking for inline... inline
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking for log in -lm... yes
checking for accept in -lsocket... no
checking for inet_ntoa in -lnsl... yes
checking for inet_ntop in -lresolv... yes
checking for inet_ntop in -lbind... no
checking for pthread_exit in -lpthread... yes
checking for ANSI C header files... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for net/if.h... yes
checking sys/ucontext.h usability... yes
checking sys/ucontext.h presence... yes
checking for sys/ucontext.h... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
 extern size_t iconv (iconv_t cd, char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for gettimeofday... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for getopt_long... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for backtrace... yes
checking for srandom... yes
checking for initgroups... yes
checking for strtoll... yes
checking for strtoq... yes
checking for getopt... yes
checking for gethostbyname_r... yes
checking for which type of gethostbyname_r... 6
checking for socklen_t in sys/socket.h... yes
checking for getopt in stdio.h... no
checking for getopt in unistd.h... yes
checking ftw.h usability... yes

Re: Help, SQLBOX gwlib not found when running ./configure

2012-08-28 Thread spameden
Hi.

If you're on debian you need to install libmysqlclient16-dev for 5.1 MySQL
or libmysqlclient18-dev for MySQL 5.5.

on centos - mysql-devel.



2012/8/28 Adan Canales adan...@gmail.com

 Hi again: I did everything from scracth and now I can fnd Mysql Server,
 this is getting me crazy, this is what I have in my.cnf file which is in
 /etc/mysql/my.cnf

 user= mysql
 pid-file= /var/run/mysqld/mysqld.pid
 socket = /var/run/mysqld/mysqld.sock
 port = 3306
 basedir = /usr
 datadir = /var/lib/mysql
 tmpdir  = /tmp
 lc-messages-dir = /usr/share/mysql
 skip-external-locking

 I supposed mysql is on /usr then, am I right?

 When try to compile kannel with mysql doesn't find the directory in any
 combination: see the log:

 root@smsbkserver:~# cd trunk
 root@smsbkserver:~/trunk# ./configure --with-mysql
 checking svn checkout revision... 4991

 Configuring for Kannel gateway version svn-r4991 ...

 Running system checks ...
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking for gcc... gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking for gcc option to accept ISO C99... -std=gnu99
 checking for a BSD-compatible install... /usr/bin/install -c
 checking for ranlib... ranlib
 checking for bison... bison -y
 checking for flex... no
 checking for lex... no
 checking for ar... ar
 checking for convert... /usr/bin/convert
 checking for perl... /usr/bin/perl
 checking for inline... inline
 checking for special C compiler options needed for large files... no
 checking for _FILE_OFFSET_BITS value needed for large files... no
 checking how to run the C preprocessor... gcc -std=gnu99 -E
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking size of short... 2
 checking size of int... 4
 checking size of long... 8
 checking size of long long... 8
 checking for log in -lm... yes
 checking for accept in -lsocket... no
 checking for inet_ntoa in -lnsl... yes
 checking for inet_ntop in -lresolv... yes
 checking for inet_ntop in -lbind... no
 checking for pthread_exit in -lpthread... yes
 checking for ANSI C header files... (cached) yes
 checking sys/ioctl.h usability... yes
 checking sys/ioctl.h presence... yes
 checking for sys/ioctl.h... yes
 checking sys/time.h usability... yes
 checking sys/time.h presence... yes
 checking for sys/time.h... yes
 checking for sys/types.h... (cached) yes
 checking for unistd.h... (cached) yes
 checking sys/poll.h usability... yes
 checking sys/poll.h presence... yes
 checking for sys/poll.h... yes
 checking pthread.h usability... yes
 checking pthread.h presence... yes
 checking for pthread.h... yes
 checking getopt.h usability... yes
 checking getopt.h presence... yes
 checking for getopt.h... yes
 checking syslog.h usability... yes
 checking syslog.h presence... yes
 checking for syslog.h... yes
 checking zlib.h usability... no
 checking zlib.h presence... no
 checking for zlib.h... no
 checking execinfo.h usability... yes
 checking execinfo.h presence... yes
 checking for execinfo.h... yes
 checking for stdlib.h... (cached) yes
 checking sys/socket.h usability... yes
 checking sys/socket.h presence... yes
 checking for sys/socket.h... yes
 checking sys/sockio.h usability... no
 checking sys/sockio.h presence... no
 checking for sys/sockio.h... no
 checking netinet/in.h usability... yes
 checking netinet/in.h presence... yes
 checking for netinet/in.h... yes
 checking for net/if.h... yes
 checking sys/ucontext.h usability... yes
 checking sys/ucontext.h presence... yes
 checking for sys/ucontext.h... yes
 checking for ld used by GCC... /usr/bin/ld
 checking if the linker (/usr/bin/ld) is GNU ld... yes
 checking for shared library run path origin... done
 checking for iconv... yes
 checking for working iconv... yes
 checking for iconv declaration...
  extern size_t iconv (iconv_t cd, char * *inbuf, size_t
 *inbytesleft, char * *outbuf, size_t *outbytesleft);
 checking for gettimeofday... yes
 checking for select... yes
 checking for socket... yes
 checking for strdup... yes
 checking for getopt_long... yes
 checking for localtime_r... yes
 checking for gmtime_r... yes
 checking for backtrace... yes
 checking for srandom... yes
 checking for initgroups... yes
 checking 

UNSUBSCRIBE

2012-08-28 Thread NOSI / DAS - Jorge Monteiro
UNSUBSCRIBE

[Description: Description: Description: Descrição: logo_nosi2]
 NOSI / DAS - Jorge Monteiro




AVISO DE CONFIDENCIALIDADE:
Esta mensagem, assim como os ficheiros eventualmente anexos, é confidencial e 
reservada apenas ao conhecimento da(s) pessoa(s) nela indicada(s) como 
destinatária(s). Se não é o seu destinatário, ou se lhe foi enviada por erro, 
solicitamos que não faça qualquer uso do respectivo conteúdo e proceda à sua 
destruição, notificando o remetente.
LIMITAÇÃO DE RESPONSABILIDADE:
A segurança da transmissão de informação por via electrónica não pode ser 
garantida pelo remetente, o qual, em consequência, não se responsabiliza por 
qualquer facto susceptível de afectar a sua integridade.
CONFIDENTIALITY NOTICE:
This message, as well as existing attached files, is confidential and intended 
exclusively for the individual(s) named as addressees. If you are not the 
intended recipient, or if it was sent to you by error, you are kindly requested 
not to make any use of its contents and to proceed to the destruction of the 
message, thereby notifying the sender.
DISCLAIMER:
The sender of this message can not ensure the security of its electronical 
transmission and consequently does not accept liability for any fact which may 
interfere with the integrity of its content.
inline: image001.gif

Setting fixed mask for SMPPBOX or Bearerbox

2012-08-28 Thread ha...@aeon.pk
Hi,

I have a client requiring connectivity over SMPP. I assume I can entertain
him via following configuration:

OPERATOR SMSC -- BEARERBOX -- SMPPBOX -- CLIENT APPLICATON

However, I do not want to let the client set the MASK of outgoing SMS he
sends. Instead, I want to keep that mask control with me. Is there any way
to handle this? Some configuation in either SMPPBOX or BEARERBOX that could
force outgoing SMS masking? Or some other method of connection?

Regards,


Re: Setting fixed mask for SMPPBOX or Bearerbox

2012-08-28 Thread spameden
You probably need to modify opensmppbox source and force it there

2012/8/28 ha...@aeon.pk ha...@aeon.pk

 Hi,

 I have a client requiring connectivity over SMPP. I assume I can entertain
 him via following configuration:

 OPERATOR SMSC -- BEARERBOX -- SMPPBOX -- CLIENT APPLICATON

 However, I do not want to let the client set the MASK of outgoing SMS he
 sends. Instead, I want to keep that mask control with me. Is there any way
 to handle this? Some configuation in either SMPPBOX or BEARERBOX that could
 force outgoing SMS masking? Or some other method of connection?

 Regards,




Re: Help, SQLBOX gwlib not found when running ./configure

2012-08-28 Thread spameden
Sorry, it was a mistype from my end:

./configure --with-kannel-dir=/usr/local/include/kannel

2012/8/28 Adan Canales adan...@gmail.com

 Thanks you, it works for mysql and kannel. Now I have this warning:

 config.status: creating gw/Makefile
 config.status: creating rpm/sqlbox.spec
 config.status: creating sb-config.h
 config.status: sb-config.h is unchanged
 config.status: executing depfiles commands
 config.status: executing libtool commands
 configure: WARNING: unrecognized options: --with-kannel

 License information ...
 ++
 | License:   |
 | This software is subject to the Kannel Software License, available |
 | in this distribution in the file LICENSE. By continuing this   |
 | installation process, you are bound by the terms of this license   |
 | agreement. If you do not agree with the terms of this license, you |
 | must abort the installation process at this point. |
 ||
 |  The Kannel Group http://www.kannel.org/ |
 ++

 Thank you for using Kannel.
 root@smsbkserver:~/trunk/addons/sqlbox#

 root@smsbkserver:~/trunk/addons/sqlbox# make
 make  all-recursive
 make[1]: se ingresa al directorio «/home/adan/trunk/addons/sqlbox»
 Making all in gw
 make[2]: se ingresa al directorio «/home/adan/trunk/addons/sqlbox/gw»
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox.o -MD -MP -MF .deps/sqlbox.Tpo -c -o sqlbox.o sqlbox.c
 sqlbox.c: En la función ‘run_sqlbox’:
 sqlbox.c:450:10: aviso: conversión de puntero a entero de tamaño diferente
 [-Wpointer-to-int-cast]
 sqlbox.c: En la función ‘wait_for_connections’:
 sqlbox.c:490:13: aviso: conversión a puntero desde un entero de tamaño
 diferente [-Wint-to-pointer-cast]
 sqlbox.c: En la función ‘sqlboxc_run’:
 sqlbox.c:616:12: aviso: conversión de puntero a entero de tamaño diferente
 [-Wpointer-to-int-cast]
 mv -f .deps/sqlbox.Tpo .deps/sqlbox.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox_mssql.o -MD -MP -MF .deps/sqlbox_mssql.Tpo -c -o sqlbox_mssql.o
 sqlbox_mssql.c
 mv -f .deps/sqlbox_mssql.Tpo .deps/sqlbox_mssql.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox_mysql.o -MD -MP -MF .deps/sqlbox_mysql.Tpo -c -o sqlbox_mysql.o
 sqlbox_mysql.c
 mv -f .deps/sqlbox_mysql.Tpo .deps/sqlbox_mysql.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox_pgsql.o -MD -MP -MF .deps/sqlbox_pgsql.Tpo -c -o sqlbox_pgsql.o
 sqlbox_pgsql.c
 mv -f .deps/sqlbox_pgsql.Tpo .deps/sqlbox_pgsql.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox_sdb.o -MD -MP -MF .deps/sqlbox_sdb.Tpo -c -o sqlbox_sdb.o
 sqlbox_sdb.c
 mv -f .deps/sqlbox_sdb.Tpo .deps/sqlbox_sdb.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox_sqlite.o -MD -MP -MF .deps/sqlbox_sqlite.Tpo -c -o
 sqlbox_sqlite.o sqlbox_sqlite.c
 mv -f .deps/sqlbox_sqlite.Tpo .deps/sqlbox_sqlite.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox_sqlite3.o -MD -MP -MF .deps/sqlbox_sqlite3.Tpo -c -o
 sqlbox_sqlite3.o sqlbox_sqlite3.c
 mv -f .deps/sqlbox_sqlite3.Tpo .deps/sqlbox_sqlite3.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -MT sqlbox_oracle.o -MD -MP -MF .deps/sqlbox_oracle.Tpo -c -o
 sqlbox_oracle.o sqlbox_oracle.c
 mv -f .deps/sqlbox_oracle.Tpo .deps/sqlbox_oracle.Po
 gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel